/* temporary CSS*/
.woocommerce .content-area .site-main{
	max-width: 100% !important;
}
/* Permanent CSS*/
.vg_footer{
	display: flex;
	justify-content: space-between;
/*	margin-top: 10px;*/
	background: #ddd;
	border-bottom-left-radius: 10px;
}
.count_and_total{
/*	background-color: #ddd;*/
	color: #000;	
	width: 65%; 
	padding: 0 10px;
}
table.variation_grid thead{
	background: #000;
	color: #fff;
}
/*table.variation_grid tr.variations-grid-row:nth-child(even):not(thead tr) {background: #ddd}
table.variation_grid tr.variations-grid-row:nth-child(odd):not(thead tr) {background: #fff}
*/
/* Table Scroll  */
/*.variation_grid_table_wrapper{
	height: 400px;
	overflow: auto;
}
.variation_grid_table_wrapper table.variation_grid td {
    width: 250px;
}
.variation_grid_table_wrapper table.variation_grid{
	width: 1000px;
}
*/

td.item-rows {
    max-width: 100px !important;
}

/* Trait Restriction Styles */
.trait-restricted-grey {
    opacity: 0.5;
    background-color: #f5f5f5 !important;
    pointer-events: none;
    position: relative;
}

.trait-restricted-grey::after {
    content: "Restricted";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.trait-restricted-removed {
    display: none !important;
}

.trait-restriction-message {
    background: #f8d7da !important;
    color: #721c24 !important;
    padding: 15px !important;
    margin: 10px 0 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 4px !important;
}

.trait-restricted-variation {
    opacity: 0.5;
    background-color: #f5f5f5;
}

.restriction-message {
    color: #721c24;
    font-weight: bold;
    text-align: center;
    padding: 5px;
}

/* thead.posFixed was used with JS position:fixed — disabled below so header scrolls horizontally with the table */

/*Grid view plugin*/
/* Horizontal scroll when many columns (e.g. nicotine levels) exceed viewport — especially mobile */
/* overflow-y: clip avoids a vertical scrollport on this box so thead th { position: sticky; top } can
   stick to the viewport while the table still scrolls horizontally inside this wrapper. */
.variation_grid_table_wrapper {
    width: 100% !important;
    max-width: 100%;
    clear: both;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
}

@supports (overflow: clip) {
    .variation_grid_table_wrapper {
        overflow-y: clip;
    }
}

th.grid-head-vert, th.grid-head-horz {
    color: #111;
    padding: 5px;
	text-align: center;
	max-width: 100px;
	border-right:1px solid #666;
	border-top:1px solid #666;
	border-bottom:1px solid #666;
}

table.variation_grid {
}

th.grid-head-vert {border-left:1px solid #666;}

.variation_grid_table_wrapper {height: auto !important;}

table.variation_grid {
    margin: 0px !important;
}

table.variation_grid {
    border-collapse: collapse !important;
}

table:not( .has-background ) tbody tr:nth-child(2n) td, fieldset, fieldset legend {
	background: #ddd;
}

table.variation_grid th.grid-head-vert, table.variation_grid th.grid-head-horz {
    background: #ddd;
}
th.grid-head-horz-single {
    border: 1px solid #111;
    border-right: 0px !important;
    color: #111;
}
th.grid-head-empty {
    border: 1px solid #111;
    border-left: 0px !important;
}
tr.variations-grid-row.single {
    border: 1px solid #111;
}
/*th.grid-head-horz:nth-child(even), td.item-rows:nth-child(even) {*/

tr.variations-grid-row td.item-rows {
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ccc;
}

tr.variations-grid-row:last-child td {
    border-bottom: 1px solid #111;
}

td.item-rows:first-child {
	border-left: 1px solid #111;
}

td.item-rows:last-child {
    border-right: 1px solid #111;
}

.vg_footer {
    max-width: 75%;
	border: 1px solid #111;
}

/*tr.variations-grid-row:nth-child(odd) td.item-rows:not(:last-child) {
    border-right: 1px solid #666;
}

tr.variations-grid-row:nth-child(even) td.item-rows:not(:last-child) {
    border-right: 1px solid #ccc;
}*/

/* td.item-rows {
	border-right: 1px solid #111;
} */
/*d.item-rows {
    padding: 0px !important;
    max-width: 10px;
}*/

table.variation_grid {
	width: max-content !important;
	max-width: none !important;
	min-width: 100%;
}

td.item-rows {
    padding: 3px;
    text-align: center;
}

table.variation_grid {
    position: relative !important;
}

table.variation_grid th {
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.15);
}

/* Logged-in wp-admin bar on front (optional) */
/* body.admin-bar table.variation_grid th {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar table.variation_grid th {
        top: 46px;
    }
} */

/* If old JS/cache still adds .posFixed, neutralize thead only — cells use sticky rules above */
table.variation_grid thead.posFixed {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    z-index: auto !important;
}

/*tr.variations-grid-row:nth-child(even) td.item-rows:first-child {
	border-left: 1px solid #111;
}
*/
/*tr.variations-grid-row:nth-child(odd) td.item-rows:first-child {
	border-left: 1px solid #ccc;
}
*/
td.item-rows:nth-child(even) {
/*    background-color: #ddd !important;*/
}

td.item-rows {
    max-width: 100px !important;
}
input.qty.vg_quantity {
    max-width: 75px !important;
	padding: 0px 5px;
}

/*Modal*/
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  z-index: 1000000000;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width:400px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

button.btn.button.ur-submit-button.ur-hidden {
    background: #475bb2;
}

/*time module*/
.modal-content {
    border-radius: 10px;
    border: 2px solid #cc1818;
}
.countdown {
    width: 100%;
    background: #de350a;
    text-align: center;
    color: #111;
}
p.your-products-have-been-added {
    margin: 0px !important;
    font-weight: bold;
    /* letter-spacing: -1px; */
    font-size: 16px;
}
a#closebtn.close.button.added-to-cart {
    color: #fff;
    float: right;
    font-size: 14px;
    font-weight: bold;
    padding-top: 10px;
    margin-top: -35px;
}
/* .product-in-cart {display:none;} */

@media screen and (max-width: 480px) {
    p.your-products-have-been-added {max-width: 75% !important}
    a#closebtn.close.button.added-to-cart {margin-top: -45px !important}
}

img.variation-grid-product-image {
    max-width: 100px;
    max-height: 100px;
    float: left; 
}

td.item-rows .product-sku {
    /* text-align: right; */
    /* margin-left: 100px; */
}

li.woocommerce-mini-cart-item.mini_cart_item input.del_products {
    display: none !important;
}

div#variationModal button.close {
    width: 25px;
    height: 25px;
    padding: 0px;
    margin: 0px;
    color: #fff !important;
    margin-top: -40px !important;
    border-radius: 50px;
    font-size: 15px !important;
}

h5.product-variation-image-modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-left: -25px;
}

input#searchInput {
    border-radius: 20px;
    border: 1px solid #666;
    float: right;
}
.grid-search {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px; /* Optional: for some space between the columns */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 1px solid #111;
    border-left: 1px solid #111;
    border-right: 1px solid #111;
    border-bottom: 0px;
    background: #111;
    padding: 10px;
}
.checkbox-container {
    padding: 8px;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}
select#flavorDropdown {
    padding: 12px;
    border-radius: 20px;
}

@media (max-width: 767px) {
  .grid-search {
    grid-template-columns: 1fr; /* Stacks items into 1 column */
    gap: 10px; /* Optional: for some space between rows */
    justify-items: center; /* Centers items horizontally */
  }
  .variation-grid-product-info-name {
    clear: both;
  }
}

.custom-tooltip {
    position: absolute;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 10px;
    z-index: 1000;
    display: none; /* Initially hidden */
}

.custom-tooltip img {
    max-width: 200px; /* Adjust as needed */
    height: auto;
}

p.prodcut-grid-show-image-description {
    color: red;
    font-size: 16px;
}

td.item-rows.item-name.has-image {
    cursor: pointer;
}

p.grid-product-code {
    font-family: 'Arial', serif;
    font-weight: bold;
    color: #ACACAC;
    font-stretch: extra-condensed;
    margin: 0px !important;
}

/* advertisement */
.add-to-cart-advertisement img {
    margin-left: auto;
    margin-right: auto;
}