.ama-nav-menu [class*="current-"] > a,
.ama-nav-menu [class*="current_"] > a{color: var(--ama-link-color)}
.ama-nav-menu li[class*="current-"]:hover > a,
.ama-nav-menu li[class*="current_"]:hover > a{text-decoration: underline!important}

.h__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.h__cart-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.h__cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background-color: #e02020;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.h__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ama-link-color);
  text-decoration: none;
}
.h__cart svg {
  width: 24px;
  height: 24px;
  display: block;
  vertical-align: middle !important;
}
 
bdi {
  width: 150px;
  display: block;
}

.products-attrs.attrs-btns .attr-item {
    padding: 0;
    padding-right: 0px;
    padding-left: 0px;
    color: var(--ama-primary-color);
    font-size: 1rem;
    line-height: 1.25rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    background: var(--ama-ex-light-blue-color);
    text-decoration: none;
}

.products-attrs:not(.attrs-imgs) .attr-item {
    padding-left: 1.1875rem;
    padding-right: 1.1875rem;
}


 .products-attrs.attrs-btns .attr-item:hover {
    background-color: #e9ecef ;
    border-color: #adb5bd ;
    color: #212529 ;
}

 .products-attrs.attrs-btns .attr-item.active {
    background-color: #007bff ;
    border-color: #007bff ;
    color: #ffffff ;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3) ;
}

.products-attrs .attr-item.selected,
.products-attrs.attrs-btns .attr-item.selected {
  border: 2px solid var(--ama-primary-color);
  border-radius: 1.25rem;
}
.products-attrs.attrs-btns .attr-item.backorder {
    opacity: 0.8;
    background-color: #f5f6f7;
    color: #6c757d;
    border-color: transparent;
    filter: grayscale(12%);
}
.products-attrs.attrs-btns .attr-item.backorder:hover {
    background-color: #f5f6f7;
    color: #6c757d;
}

.product-warehouse {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

li.selected label {
    border: 2px solid var(--ama-primary-color) !important;
    background-color: var(--ama-ex-light-blue-color) !important;
    font-weight: bold; 
}

li.is-out-of-stock {
    opacity: 0.5;
}


.checkout-county-row select:focus,
#cart_checkout_county:focus,
select.input-text:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
    border-color: hsla(0,0%,7%,1);
}

.single_add_to_cart_button.is-disabled,
.single_add_to_cart_button[disabled] {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(20%);
}

.po-group__quantity{
    margin: 2rem 0 ;
}

.quantity-pill {
  display: flex;
  align-items: stretch;
  gap: 0;
  background-color: var(--ama-input-background-color);
  border: var(--ama-input-border-width) solid var(--ama-input-border-color);
  border-radius: var(--ama-input-border-radius);
  overflow: hidden;
  max-width: fit-content;
}

.quantity-pill__input {
  flex: 1 1 auto;
  color: var(--ama-input-color);
  background-color: transparent !important;
  border: none !important;
  padding: var(--ama-input-padding-y) var(--ama-input-padding-x);
  text-align: center;
  min-width: 60px;
  height: 100%;
  box-sizing: border-box;
}

.quantity-pill__input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ama-primary-color);
}

.quantity-pill__unit {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ama-primary-color);
  color: #ffffff;
  padding: var(--ama-input-padding-y) var(--ama-input-padding-x) ;
  font-weight: 600;
  white-space: nowrap;
  height: 100%;
}

.quantity-pill__unit-dropdown {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ama-primary-color);
  color: #ffffff;
  padding: var(--ama-input-padding-y) var(--ama-input-padding-x);
  font-weight: 600;
  white-space: nowrap;
  height: 100%;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  font-size: inherit;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25rem 1.25rem;
  padding-right: calc(var(--ama-input-padding-x) + 1.5rem);
}

.quantity-pill__unit-dropdown:hover {
  opacity: 0.85;
}

.quantity-pill__unit-dropdown:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

input.input-text.qty.text,
input.qty {
    color: var(--ama-input-color);
    background-color: var(--ama-input-background-color);
    border-radius: var(--ama-input-border-radius);
    padding: var(--ama-input-padding-y) var(--ama-input-padding-x);
    border: var(--ama-input-border-width) solid var(--ama-input-border-color);
    text-align: center;
    width: 5rem;
}

.woocommerce-form-coupon-toggle {
    margin-bottom: 1rem;

}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table,
.woocommerce-order-details .woocommerce-table.order_details {
  width: 100%;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(28, 45, 60, 0.04);
  border-collapse: separate;
  border-spacing: 0;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead th,
.woocommerce-order-details .woocommerce-table.order_details thead th {
  background: var(--ama-primary-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #f1f3f6;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item td,
.woocommerce-order-details .woocommerce-table.order_details tbody tr.order_item td {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f7fa;
  vertical-align: top;
  border-radius: 0;
}
.woocommerce-order-details .woocommerce-table.order_details tbody tr.order_item td{
  border-bottom: none;
  text-align: left;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item td .product-name,
.woocommerce-order-details .woocommerce-table.order_details tbody tr.order_item td .product-name{
  font-size: 0.98rem;
  color: #1b1b1b;
  line-height: 1.3;
}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .product-name .product-quantity,
.woocommerce-order-details .woocommerce-table.order_details .product-name .product-quantity{
  color: #6b7380;
  font-weight: 600;
  margin-left: 0.35rem;
  font-size: 0.95rem;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table dl.variation {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table dl.variation dt { display: none; }
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table dl.variation dd {
  margin: 0;
  padding: 4px 8px;
  background: #f3f6fa;
  color: #27323a;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody > tr:nth-child(even) dl.variation dd {background: #fff;}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot td{
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  padding: 12px 16px;
}
.woocommerce-order-details .woocommerce-table.order_details tfoot td {padding: 12px 16px;}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr,
.woocommerce-order-details .woocommerce-table.order_details tfoot tr {
  background: #fff;
}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-order-details .woocommerce-table.order_details tfoot tr th,
.woocommerce-order-details .woocommerce-table.order_details tfoot tr th {
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total td,
.woocommerce-order-details .woocommerce-table.order_details tfoot tr td {
  font-size: 1.05rem;
  color: #0b1f3a;
}

.shipping_method {
    display: none;
}
.woocommerce-shipping-methods > li { display: block; padding: 8px 0; }
.woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-shipping-totals.shipping th,
.woocommerce-shipping-totals.shipping td {
  border-top: 1px solid #e6e9ee;
  border-bottom: 1px solid #e6e9ee;
}
.woocommerce-table.order_details tfoot tr th,
.woocommerce-table.order_details tfoot tr td{border-top: 1px solid #f5f7fa}

.fee th,.fee td,.ama-transport-price th,.ama-transport-price td
 {
    border-bottom: 1px solid #e6e9ee;
}



/* ========================================
   WooCommerce Cart Table Styling
   ======================================== */

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents {
  width: 100%;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(28, 45, 60, 0.04);
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.5rem;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents thead th {
  background: var(--ama-primary-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #f1f3f6;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents thead th.product-remove,
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents thead th.product-thumbnail {
  width: 60px;
  text-align: center;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents tbody tr.cart_item td {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f7fa;
  vertical-align: middle;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-remove {
  text-align: center;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-remove .remove {
  color: #dc3545;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  overflow: hidden;
  text-indent: -5000px;
  width: 1.25rem;
  height: 1.25rem
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-remove .remove:hover {
  color: #c82333;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-thumbnail {
  text-align: center;
  width: 80px;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-thumbnail img {
  border-radius: 8px;
  max-width: 60px;
  height: auto;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-name a {
  font-size: 0.98rem;
  color: #1b1b1b;
  line-height: 1.3;
  text-decoration: none;
  font-weight: 600;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-name a:hover {
  color: var(--ama-primary-color);
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents dl.variation {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents dl.variation dt {
  display: none;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents dl.variation dd {
  margin: 0;
  padding: 4px 8px;
  background: #f3f6fa;
  color: #27323a;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
}
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents tbody > tr:nth-child(even) dl.variation dd {background: #fff;}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents thead th.product-price,
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents thead th.product-subtotal,
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents tbody td.product-price,
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents tbody td.product-subtotal{
  text-align: center;
}
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents tbody td.product-price,
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents tbody td.product-subtotal {
  font-weight: 700;
  color: #0b1f3a
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .input-text.qty{
  max-width: 6.25rem
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-quantity {
  text-align: center;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-quantity .quantity {
  display: inline-block;
}

/* Actions row styling */
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions {
  background: #f8f9fa;
  padding: 16px;
  border-top: 1px solid #e6e9ee;
}

/*
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .coupon {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-right: 12px;
  flex-wrap: wrap;
}
*/

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .coupon{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-right: 12px;
  float: left
}
.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions > .button{float: right}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .coupon input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #e6e9ee;
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 150px;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .coupon input[type="text"]:focus {
  outline: none;
  border-color: var(--ama-primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .button[name="update_cart"] {
  background: #6c757d;
  color: #ffffff;
  border: none;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .button[name="update_cart"]:not([disabled]):hover {
  background: #5a6268;
}

.woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .button[name="update_cart"][disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Continue shopping button */
.continue-shopping {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}



/* ========================================
   WooCommerce Cart Totals Styling
   ======================================== */

.cart_totals {
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(28, 45, 60, 0.04);
  padding: 20px;
}

.cart_totals h2 {
  background: var(--ama-primary-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 16px;
  margin: -20px -20px 20px -20px;
  border-bottom: 1px solid #f1f3f6;
}

.cart_totals .shop_table {
  width: 100%;
  border: none;
  background: transparent;
  box-shadow: none;
  margin-bottom: 20px;
}

.cart_totals .shop_table tr {
  border-bottom: 1px solid #f5f7fa;
}

.cart_totals .shop_table tr:last-child {
  border-bottom: none;
}

.cart_totals .shop_table th {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1b1b1b;
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
}

.cart_totals .shop_table td {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0b1f3a;
  padding: 12px 0;
  text-align: right;
  vertical-align: top;
}

.cart_totals .shop_table tr.order-total th,
.cart_totals .shop_table tr.order-total td {
  font-size: 1.1rem;
  padding: 16px;
  color: #0b1f3a;
}

/* Shipping methods */
.cart_totals .woocommerce-shipping-methods {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.cart_totals .woocommerce-shipping-methods li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart_totals .woocommerce-shipping-methods input[type="radio"] {
  margin: 0;
  flex-shrink: 0;
}

.cart_totals .woocommerce-shipping-methods label {
  margin: 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: #27323a;
  cursor: pointer;
}

#shipping_method li:only-child {
  float: right;
  clear: both;
}

.cart_totals .woocommerce-shipping-destination {
  background: #f8f9fa;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #6b7380;
  margin-top: 8px;
  margin-bottom: 12px;
}

/* Shipping calculator */
.cart_totals .shipping-calculator-button {
  display: inline-block;
  color: var(--ama-primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 0;
  transition: all 0.2s ease;
}

.cart_totals .shipping-calculator-button:hover {
  text-decoration: underline;
}

.cart_totals .shipping-calculator-form {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.cart_totals .shipping-calculator-form .form-row {
  margin-bottom: 16px;
}

.cart_totals .shipping-calculator-form .form-row:last-of-type {
  margin-bottom: 0;
}

.cart_totals .shipping-calculator-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #27323a;
  margin-bottom: 6px;
  text-align: left;
}

.cart_totals .shipping-calculator-form .required {
  color: #dc3545;
}

.cart_totals .shipping-calculator-form input[type="text"],
.cart_totals .shipping-calculator-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e6e9ee;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #ffffff;
  color: #27323a;
  transition: all 0.2s ease;
}

.cart_totals .shipping-calculator-form input[type="text"]:focus,
.cart_totals .shipping-calculator-form select:focus {
  outline: none;
  border-color: var(--ama-primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.cart_totals .shipping-calculator-form .button {
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
  transition: all 0.2s ease;
}

/* Proceed to checkout */
.cart_totals .wc-proceed-to-checkout {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e6e9ee;
}

.cart_totals .wc-proceed-to-checkout{text-align: center}
.cart_totals .wc-proceed-to-checkout .checkout-button {
  display: block;
  text-align: center;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive styling for cart totals */
@media (max-width: 768px) {
  .cart_totals {
    margin-top: 20px;
  }

  .cart_totals h2 {
    font-size: 1rem;
  }

  .cart_totals .shop_table th,
  .cart_totals .shop_table td {
    font-size: 0.9rem;
    padding: 10px 0;
  }

  .cart_totals .shop_table td {
    text-align: left;
    padding-left: 0;
  }

  .cart_totals .shop_table tr {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .cart_totals .shop_table tr.order-total {
    padding-top: 12px;
  }
}

@media (max-width: 480px) {
  .cart_totals {
    border-radius: 10px;
    padding: 16px;
  }

  .cart_totals h2 {
    margin: -16px -16px 16px -16px;
  }

  .cart_totals .shipping-calculator-form {
    padding: 12px;
  }
}

/* Responsive styling for cart */
@media (max-width: 768px) {
  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents thead {
    display: none;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents tbody tr.cart_item {
    display: block;
    padding: 16px;
    border-bottom: 2px solid #e6e9ee;
    position: relative;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents tbody tr.cart_item td {
    display: block;
    text-align: left !important;
    padding: 8px 0;
    border: none;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-remove {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 0;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-thumbnail {
    width: 100%;
    text-align: left;
    margin-bottom: 12px;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-thumbnail img {
    max-width: 100px;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-name {
    padding-right: 40px;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-price::before,
  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-quantity::before,
  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-subtotal::before {
    content: attr(data-title) ": ";
    font-weight: 600;
    color: #6b7380;
    margin-right: 8px;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents .product-quantity {
    text-align: left;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions {
    display: block;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .coupon {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
    margin-right: 0;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .coupon input[type="text"] {
    flex: 1;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .button {
    width: 100%;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents {
    border-radius: 10px;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .coupon {
    flex-direction: column;
  }

  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .coupon input[type="text"],
  .woocommerce-cart-form .shop_table.woocommerce-cart-form__contents td.actions .coupon .button {
    width: 100%;
  }
}

.col2-set > .col-1,
.col2-set > .col-2{width: 100%}


* + form.checkout.woocommerce-checkout{margin-top: 2.5rem}
form.checkout.woocommerce-checkout{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ama-gutter-double-x);
  align-items: flex-start
}
  form.checkout.woocommerce-checkout > .woocommerce-NoticeGroup{grid-column: 1 / -1}
  form.checkout.woocommerce-checkout > #order_review_heading{display: none!important}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ama-gutter-x) var(--ama-gutter-double-x);
  align-items: flex-end
}
  .woocommerce-billing-fields__field-wrapper > :not(.form-row-first, .form-row-last),
  .woocommerce-shipping-fields__field-wrapper > :not(.form-row-first, .form-row-last){grid-column: 1 / -1}

  
form.checkout.woocommerce-checkout .col-1 + *{margin-top: var(--ama-gutter-double-x)}
form.checkout.woocommerce-checkout * + .woocommerce-additional-fields{margin-top: var(--ama-gutter-x)}
.woocommerce-shipping-fields__field-wrapper{padding-top: var(--ama-gutter-x)}


.woocommerce-form__label-for-checkbox{position: relative}
  .woocommerce-form__label-for-checkbox > input[type="checkbox"]:not(:only-child){position: absolute; top: 0; left: 0; opacity: 0}

* + .woocommerce-checkout-payment,
.woocommerce-checkout-payment > * + *{margin-top: var(--ama-gutter-x)}

.woocommerce-checkout-payment .wc_payment_methods{list-style: none; padding-left: 0}
.woocommerce-checkout-payment .wc_payment_method + .wc_payment_method{margin-top: var(--ama-gutter-x)}


form.woocommerce-form-coupon{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: flex-end;
  padding: 14px;
  margin-top: 8px;
  border: 1px solid var(--ama-input-border-color);
  border-radius: var(--ama-input-border-radius);
}
  form.woocommerce-form-coupon > .clear{display: none!important}

.payment_box.payment_method_wc_montonio_payments{
  border: 1px solid var(--ama-input-border-color);
  border-radius: var(--ama-input-border-radius);
  background-color: #fff;
  margin-top: .625rem;
  padding: 14px;
}



@media (min-width: 1200px) {
  .text-xl-end {
    text-align: right !important;
  }
}

div.woocommerce > div.woocommerce-order > * + *{margin-top: var(--ama-gutter-double-x)}
div.woocommerce > div.woocommerce-order .woocommerce-order-details > * + *{margin-top: 1.25rem}
div.woocommerce > div.woocommerce-order .woocommerce-columns--2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ama-gutter-double-x)
}
  div.woocommerce > div.woocommerce-order .woocommerce-column__title{margin-bottom: 1.25rem}
@media (max-width: 767px){
  div.woocommerce > div.woocommerce-order .woocommerce-columns--2{grid-template-columns: 1fr}
}

.product-added-tocart > * + * {margin-top: var(--ama-gutter-x)}

.woocommerce-terms-and-conditions-wrapper + * {margin-top: var(--ama-gutter-x)}

@media (max-width: 768px){
  form.checkout.woocommerce-checkout{grid-template-columns: 1fr}
}
@media (max-width: 680px){
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table,
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody,
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot,
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tr,
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tr > th,
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tr > td{display: block}
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tr > th,
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tr > td{border: none}
  
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead{display: none}
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .cart_item,
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .cart-subtotal,
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .order-total{
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .shipping > *{
    text-align: left
  }
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .shipping > * + *{padding-top: 0}
  
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .shipping,
  .woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .order-total{border-top: 1px solid #e6e9ee}
}

.block-product-details {
  margin-bottom: var(--ama-gutter-double-x);
}

.block-products table{table-layout: auto;}

.block-cards {
  --item-width: 50%;
}

.block-cards .item__btn button {
  padding: 20px;
  font-size: 1.5rem;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td{text-align: left}

.woocommerce-checkout .amount bdi{width: unset; display: inline-block}

/* ========================================
   Pallet Fee Expandable Styling
   ======================================== */

#pallet-fee-row {
  cursor: pointer;
}

#pallet-fee-row .pallet-fee-toggle {
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s ease;
  font-size: 12px;
}

#pallet-fee-row.expanded .pallet-fee-toggle {
  transform: rotate(180deg);
}

#pallet-fee-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, visibility 0.4s ease;
  display: none;
}

#pallet-fee-details.expanded {
  display: table-row;
  opacity: 1;
  max-height: 1000px;
  visibility: visible;
}

.pallet-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

.pallet-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  font-size: 14px;
}

.pallet-card::before {
  content: attr(data-status);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 8rem;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2rem;
}

.pallet-card.partial-row::before {
  background: #fff3e0;
  color: #f57c00;
  padding: 2rem;
}

.pallet-card.opted-out-row::before {
  background: #ffebee;
  color: #c62828;
}

.pallet-card-main {
  flex: 1;
  min-width: 0;
}

.pallet-card-title {
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
  word-break: break-word;
}

.pallet-card-ratio {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  margin-top: 2px;
}

.pallet-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px 16px;
  min-width: 140px;
}

.pallet-card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pallet-card-info-label {
  font-weight: 600;
  color: #666;
  font-size: 12px;
}

.pallet-card-info-value {
  font-weight: 600;
  color: #333;
}

.pallet-card-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Hide apartment/suite field in checkout (address_2) */
#billing_address_2_field.hidden,
#shipping_address_2_field.hidden {
  display: none !important;
}

/* ========================================
   Empty Cart Button Styling
   ======================================== */

.ama-empty-cart-btn {
  background: #dc3545;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.ama-empty-cart-btn:hover:not([disabled]) {
  background: #c82333;
}

.ama-empty-cart-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.current-menu-item > a {
  color: var(--ama-link-hover-color) !important;
}

/* =============================================================================
   Mobile Responsive Fixes for Single Product Page
   ========================================================================== */

/* Stack content and media vertically on tablet and below */
@media (max-width: 768px) {
  .block-txtmedia.is-style-alt.alt-v2 > .block__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  
  .block-txtmedia.is-style-alt.alt-v2 > .block__body > .body__content,
  .block-txtmedia.is-style-alt.alt-v2 > .block__body > .summary.entry-summary {
    grid-column: 1 / -1;
    order: 2;
  }
  
  .block-txtmedia.is-style-alt.alt-v2 > .block__body > .body__media-wrapper {
    grid-column: 1 / -1;
    order: 1;
    position: static !important;
    top: auto;
  }
  
  .block-txtmedia.is-style-alt.alt-v2 > .block__body > .body_sand {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0;
  }
}

.ama-transport-row {
    display: flex;
    justify-content: space-between;
}

.ama-transport-label {
    flex: 0 0 70%;
    text-align: left;
    padding: 4px;
}

.ama-transport-data {
    flex: 0 0 30%;
    text-align: right;
}

.leiunurk-product{
  text-align: center;
  margin-top: 1rem;
}

.woocommerce-terms-and-conditions-wrapper{
	display: flex;
	flex-direction: column;
	gap: 1rem;
}