
/* WooCommerce and cart refinement */

.wp-block-button__link { border-radius: 999px; }
.wp-block-image img, .entry-content img { border-radius: 20px; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.entry-content table th,
.entry-content table td {
  padding: 12px 14px;
  border: 1px solid #e1e5eb;
}

.entry-content table th {
  background: #eef0f3;
  text-align: left;
}

.woocommerce-store-notice,
p.demo_store { background: #c61f2a; }

.woocommerce span.onsale {
  min-width: 52px;
  min-height: 52px;
  line-height: 52px;
  border-radius: 999px;
  background: #c61f2a;
}

.woocommerce .quantity {
  display: inline-flex;
  align-items: center;
}

.woocommerce .quantity .qty,
.quantity .qty {
  width: 86px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  appearance: auto;
  -webkit-appearance: auto;
  opacity: 1;
}

.woocommerce div.product form.cart .variations select { margin-bottom: 0; }
.woocommerce div.product form.cart .button { margin-top: 12px; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 14px; }

.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 6px; }

.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde2e8;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #1f2937;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #c61f2a;
  color: #fff;
  border-color: #c61f2a;
}

.woocommerce-result-count,
.woocommerce-ordering { margin-bottom: 18px; }

/* Cart layout */
.woocommerce-cart-form,
.woocommerce-cart .cart-collaterals .cart_totals {
  overflow: hidden;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table,
.woocommerce-cart .shop_table.shop_table_responsive.cart {
  table-layout: fixed;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
  padding: 18px 14px;
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.woocommerce-cart table.cart th.product-name { width: 38%; }
.woocommerce-cart table.cart th.product-price { width: 14%; }
.woocommerce-cart table.cart th.product-quantity { width: 16%; }
.woocommerce-cart table.cart th.product-subtotal { width: 16%; }

.woocommerce-cart table.cart img {
  width: 84px;
  border-radius: 16px;
  margin-right: 14px;
}

.woocommerce-cart table.cart td.product-name a {
  color: #1f2937;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
}

.woocommerce-cart table.cart td.product-name {
  min-width: 0;
}

.woocommerce-cart table.cart td.actions {
  padding-top: 20px;
}

.woocommerce-cart table.cart td.actions .coupon {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-width: 220px;
  flex: 1 1 220px;
}

.woocommerce-cart .cart-collaterals {
  margin-top: 22px;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.woocommerce-cart .wc-proceed-to-checkout .button {
  width: 100%;
  min-height: 54px;
  font-size: 16px;
}

.woocommerce-cart .product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  min-width: 92px;
}

.woocommerce-cart .product-quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart .product-quantity .qty::-webkit-inner-spin-button {
  opacity: 1;
  height: 32px;
}

.woocommerce a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff1f2;
  color: #c61f2a !important;
  font-size: 22px;
  font-weight: 700;
}

.woocommerce a.remove:hover {
  background: #c61f2a;
  color: #fff !important;
}

.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal {
  font-weight: 800;
  color: #1f2937;
}

.woocommerce-cart .shop_table .amount {
  white-space: nowrap;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  padding: 14px 12px;
  font-size: 15px;
}

.woocommerce-checkout h3,
.woocommerce-cart h2,
.woocommerce-cart h1,
.woocommerce-checkout h1 {
  font-size: 28px;
}

@media (max-width: 992px) {
  .woocommerce-cart table.cart th,
  .woocommerce-cart table.cart td {
    padding: 14px 10px;
  }
}

@media (max-width: 768px) {
  .woocommerce-cart table.cart td.product-thumbnail {
    display: none;
  }

  .woocommerce-cart table.cart td,
  .woocommerce-cart table.cart th {
    font-size: 14px;
  }

  .woocommerce-cart table.cart td.product-name a {
    font-size: 15px;
  }

  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-cart .woocommerce-cart-form {
    padding: 16px;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    flex-direction: column;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text,
  .woocommerce-cart table.cart td.actions .coupon button,
  .woocommerce-cart table.cart td.actions > button {
    width: 100%;
  }
}


/* WooCommerce Blocks cart styling */
.woocommerce-cart .wp-site-blocks,
.woocommerce-cart .entry-content,
.woocommerce-cart .wc-block-cart,
.woocommerce-cart .wc-block-components-sidebar {
  font-family: var(--font-main);
}

.woocommerce-cart .wc-block-cart,
.woocommerce-cart .wc-block-checkout {
  display: grid;
  gap: 22px;
}

.woocommerce-cart .wc-block-cart .wc-block-cart__main,
.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar,
.woocommerce-cart .wc-block-checkout .wc-block-components-main,
.woocommerce-cart .wc-block-checkout .wc-block-components-sidebar {
  width: 100%;
}

.woocommerce-cart .wc-block-cart__main,
.woocommerce-cart .wc-block-cart__sidebar,
.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  padding: 24px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.woocommerce-cart .wc-block-cart__main,
.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main {
  overflow: hidden;
}

.woocommerce-cart .wc-block-cart-items,
.woocommerce-cart .wc-block-components-totals-wrapper,
.woocommerce-cart .wc-block-cart__submit,
.woocommerce-cart .wc-block-components-order-summary {
  border-top: 0 !important;
}

.woocommerce-cart .wc-block-cart-items__header,
.woocommerce-cart .wc-block-components-product-metadata,
.woocommerce-cart .wc-block-components-totals-item,
.woocommerce-cart .wc-block-components-order-summary-item {
  font-family: var(--font-main);
}

.woocommerce-cart .wc-block-cart-item,
.woocommerce-cart .wc-block-components-order-summary-item {
  padding: 18px 0 !important;
  border-bottom: 1px solid #e7ebf0;
}

.woocommerce-cart .wc-block-cart-item__image img,
.woocommerce-cart .wc-block-components-order-summary-item__image img {
  width: 92px !important;
  max-width: 92px !important;
  border-radius: 18px;
}

.woocommerce-cart .wc-block-components-product-name,
.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
  display: inline-block;
  color: var(--text) !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  text-decoration: none;
}

.woocommerce-cart .wc-block-components-product-price,
.woocommerce-cart .wc-block-formatted-money-amount,
.woocommerce-cart .wc-block-components-product-price__value {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.woocommerce-cart .wc-block-cart-item__prices,
.woocommerce-cart .wc-block-components-product-badge,
.woocommerce-cart .wc-block-components-product-metadata {
  font-size: 14px;
  color: var(--text-soft);
}

.woocommerce-cart .wc-block-cart-item__quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.woocommerce-cart .wc-block-components-quantity-selector {
  display: inline-grid !important;
  grid-template-columns: 42px 72px 42px;
  align-items: center;
  min-height: 48px;
  border: 1px solid #d7dde5;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.woocommerce-cart .wc-block-components-quantity-selector::before,
.woocommerce-cart .wc-block-components-quantity-selector::after {
  display: none !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 48px;
  min-width: 42px;
  min-height: 48px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--surface-alt) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button:hover {
  background: #e3e7ec !important;
  color: var(--red) !important;
  transform: none !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__input {
  width: 72px !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-left: 1px solid #e1e6eb !important;
  border-right: 1px solid #e1e6eb !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--text) !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  appearance: textfield;
  -moz-appearance: textfield;
}

.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.woocommerce-cart .wc-block-cart-item__remove-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--red) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  background: var(--red);
  color: #fff !important;
}

.woocommerce-cart .wc-block-components-totals-item__label,
.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.woocommerce-cart .wc-block-components-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.woocommerce-cart .wc-block-components-totals-item__value,
.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.woocommerce-cart .wc-block-components-totals-footer-item {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #e7ebf0;
}

.woocommerce-cart .wc-block-cart__submit-button,
.woocommerce-cart .wc-block-components-checkout-place-order-button,
.woocommerce-cart .wc-block-components-button {
  min-height: 52px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.woocommerce-cart .wc-block-components-text-input input,
.woocommerce-cart .wc-block-components-text-input textarea,
.woocommerce-cart .wc-block-components-combobox .components-combobox-control__input,
.woocommerce-cart .wc-block-components-form .wc-block-components-text-input input {
  min-height: 50px !important;
  border: 1px solid #d7dde5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 15px !important;
}

.woocommerce-cart .is-large.wc-block-cart .wc-block-cart__sidebar,
.woocommerce-cart .is-large.wc-block-checkout .wc-block-components-sidebar {
  width: 100% !important;
}

.woocommerce-cart .is-large.wc-block-cart .wc-block-cart__main,
.woocommerce-cart .is-large.wc-block-checkout .wc-block-components-main {
  width: 100% !important;
}

@media (min-width: 782px) {
  .woocommerce-cart .is-large.wc-block-cart,
  .woocommerce-cart .is-large.wc-block-checkout {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr);
    align-items: start;
  }
}

@media (max-width: 781px) {
  .woocommerce-cart .wc-block-cart__main,
  .woocommerce-cart .wc-block-cart__sidebar,
  .woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
  .woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    padding: 18px;
    border-radius: 22px;
  }

  .woocommerce-cart .wc-block-components-quantity-selector {
    grid-template-columns: 40px 64px 40px;
  }

  .woocommerce-cart .wc-block-components-quantity-selector__input {
    width: 64px !important;
  }

  .woocommerce-cart .wc-block-components-product-name,
  .woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
    font-size: 16px !important;
  }
}


/* v5 cart header and plus button fixes */
.woocommerce-cart table.cart thead th,
.woocommerce-cart .shop_table thead th {
  text-align: center !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.25 !important;
  padding: 16px 12px !important;
}

.woocommerce-cart table.cart thead th.product-name,
.woocommerce-cart table.cart thead th.product-subtotal,
.woocommerce-cart .shop_table thead th.product-name,
.woocommerce-cart .shop_table thead th.product-subtotal {
  text-align: center !important;
}

.woocommerce-cart table.cart th.product-name { width: 36% !important; }
.woocommerce-cart table.cart th.product-price { width: 14% !important; }
.woocommerce-cart table.cart th.product-quantity { width: 18% !important; }
.woocommerce-cart table.cart th.product-subtotal { width: 18% !important; }

.woocommerce-cart .wc-block-cart-items__header,
.woocommerce-cart .wc-block-cart-items__header .wc-block-cart-items__header-image,
.woocommerce-cart .wc-block-cart-items__header .wc-block-cart-items__header-product,
.woocommerce-cart .wc-block-cart-items__header .wc-block-cart-items__header-total {
  align-items: center !important;
}

.woocommerce-cart .wc-block-cart-items__header span,
.woocommerce-cart .wc-block-cart-items__header div {
  text-align: center !important;
  justify-content: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.25 !important;
}

.woocommerce-cart .wc-block-cart-items__header .wc-block-cart-items__header-product,
.woocommerce-cart .wc-block-cart-items__header .wc-block-cart-items__header-total {
  padding: 0 6px !important;
}

.woocommerce-cart .wc-block-components-quantity-selector {
  position: relative !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--text) !important;
  background: var(--surface-alt) !important;
  position: relative !important;
  z-index: 3 !important;
  font-size: 0 !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus::before {
  content: "+" !important;
  display: block !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--minus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus {
  font-size: 0 !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--minus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus::before {
  content: "−" !important;
  display: block !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

@media (max-width: 781px) {
  .woocommerce-cart .wc-block-cart-items__header span,
  .woocommerce-cart .wc-block-cart-items__header div {
    font-size: 13px !important;
  }
}


/* v6: exact fix for blocks cart header and plus sign */
.woocommerce-cart table.wc-block-cart-items {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.woocommerce-cart table.wc-block-cart-items thead,
.woocommerce-cart table.wc-block-cart-items tbody,
.woocommerce-cart table.wc-block-cart-items tr {
  width: 100% !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header th {
  padding: 16px 10px !important;
  vertical-align: middle !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header th > span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 24px !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.2 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-image {
  width: 120px !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product {
  width: auto !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-total {
  width: 160px !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__total {
  text-align: center !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__total {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus {
  color: transparent !important;
  text-indent: 0 !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus::before {
  content: "+" !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #1f2937 !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--minus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus {
  color: transparent !important;
  text-indent: 0 !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--minus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus::before {
  content: "−" !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #1f2937 !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus:disabled,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus:disabled {
  opacity: .45 !important;
}

@media (max-width: 781px) {
  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-image {
    width: 92px !important;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-total {
    width: 110px !important;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header th {
    padding: 12px 6px !important;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header th > span {
    font-size: 13px !important;
  }
}


/* v7: hard fix for missing plus and lost table borders */
.woocommerce-cart .wc-block-cart__main {
  overflow: hidden !important;
}

.woocommerce-cart table.wc-block-cart-items {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #dde2e8 !important;
  border-top: 1px solid #dde2e8 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.96) !important;
}

.woocommerce-cart table.wc-block-cart-items thead th {
  background: #eef0f3 !important;
  border-top: 1px solid #dde2e8 !important;
  border-bottom: 1px solid #dde2e8 !important;
}

.woocommerce-cart table.wc-block-cart-items thead th:first-child {
  border-top-left-radius: 22px !important;
}

.woocommerce-cart table.wc-block-cart-items thead th:last-child {
  border-top-right-radius: 22px !important;
}

.woocommerce-cart table.wc-block-cart-items tbody tr:last-child td:first-child {
  border-bottom-left-radius: 22px !important;
}

.woocommerce-cart table.wc-block-cart-items tbody tr:last-child td:last-child {
  border-bottom-right-radius: 22px !important;
}

.woocommerce-cart table.wc-block-cart-items tbody td {
  border-bottom: 1px solid #e7ebf0 !important;
}

.woocommerce-cart table.wc-block-cart-items tbody tr:last-child td {
  border-bottom: 0 !important;
}

.woocommerce-cart .wc-block-components-quantity-selector {
  position: relative !important;
  isolation: isolate !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button {
  position: relative !important;
  overflow: visible !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus {
  color: transparent !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus::before {
  content: "+" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  color: #1f2937 !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  pointer-events: none !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--minus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus {
  color: transparent !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--minus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus::before {
  content: "−" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  color: #1f2937 !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  pointer-events: none !important;
}


/* v8: exact second header color + draw plus with lines instead of glyph */
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header th,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header th > span,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-image > span,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product > span,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-total > span {
  color: #1f2937 !important;
  opacity: 1 !important;
}

/* hide any text/glyph inside buttons completely */
.woocommerce-cart .wc-block-components-quantity-selector__button--plus,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus {
  color: transparent !important;
  font-size: 0 !important;
  text-shadow: none !important;
}

/* reset previous pseudo content so only drawn lines remain */
.woocommerce-cart .wc-block-components-quantity-selector__button--plus::before,
.woocommerce-cart .wc-block-components-quantity-selector__button--plus::after,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus::after,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus::before,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus::after,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  background: #1f2937 !important;
  border-radius: 999px !important;
  z-index: 8 !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
}

/* minus horizontal line */
.woocommerce-cart .wc-block-components-quantity-selector__button--minus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus::before {
  width: 16px !important;
  height: 2.5px !important;
}

/* remove any second line from minus */
.woocommerce-cart .wc-block-components-quantity-selector__button--minus::after,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus::after {
  width: 0 !important;
  height: 0 !important;
}

/* plus horizontal line */
.woocommerce-cart .wc-block-components-quantity-selector__button--plus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus::before {
  width: 16px !important;
  height: 2.5px !important;
}

/* plus vertical line */
.woocommerce-cart .wc-block-components-quantity-selector__button--plus::after,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus::after {
  width: 2.5px !important;
  height: 16px !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus:disabled::before,
.woocommerce-cart .wc-block-components-quantity-selector__button--plus:disabled::after,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus:disabled::before,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus:disabled::after {
  background: #98a2b3 !important;
}


/* v9: draw plus/minus with background lines directly on buttons */
.woocommerce-cart .wc-block-components-quantity-selector__button--plus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus {
  position: relative !important;
  color: transparent !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  background-color: var(--surface-alt) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-origin: padding-box !important;
}

/* remove previous pseudo drawings if any */
.woocommerce-cart .wc-block-components-quantity-selector__button--plus::before,
.woocommerce-cart .wc-block-components-quantity-selector__button--plus::after,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus::after,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus::before,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus::after,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus::before,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus::after {
  content: none !important;
  display: none !important;
}

/* draw minus */
.woocommerce-cart .wc-block-components-quantity-selector__button--minus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus {
  background-image:
    linear-gradient(#1f2937, #1f2937) !important;
  background-size: 16px 2.5px !important;
}

/* draw plus */
.woocommerce-cart .wc-block-components-quantity-selector__button--plus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus {
  background-image:
    linear-gradient(#1f2937, #1f2937),
    linear-gradient(#1f2937, #1f2937) !important;
  background-size: 16px 2.5px, 2.5px 16px !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus:disabled,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus:disabled {
  background-color: #edf0f3 !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--plus:disabled,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus:disabled {
  background-image:
    linear-gradient(#98a2b3, #98a2b3),
    linear-gradient(#98a2b3, #98a2b3) !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button--minus:disabled,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus:disabled {
  background-image:
    linear-gradient(#98a2b3, #98a2b3) !important;
}


/* v10: make cart quantity look like simple product-page number input */
.woocommerce-cart .wc-block-cart-item__quantity {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.woocommerce-cart .wc-block-components-quantity-selector {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__button,
.woocommerce-cart .wc-block-components-quantity-selector__button--minus,
.woocommerce-cart .wc-block-components-quantity-selector__button--plus,
.woocommerce-cart button.wc-block-components-quantity-selector__button,
.woocommerce-cart button.wc-block-components-quantity-selector__button--minus,
.woocommerce-cart button.wc-block-components-quantity-selector__button--plus {
  display: none !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__input {
  width: 92px !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #d7dde5 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #1f2937 !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: textfield !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__input:focus {
  outline: none !important;
  border-color: rgba(198,31,42,.45) !important;
  box-shadow: 0 0 0 4px rgba(198,31,42,.10) !important;
}

.woocommerce-cart .wc-block-cart-item__remove-link {
  margin-left: 0 !important;
}

@media (max-width: 781px) {
  .woocommerce-cart .wc-block-components-quantity-selector__input {
    width: 78px !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 15px !important;
  }
}


/* v11: cart qty input like product page — left aligned with native small arrows */
.woocommerce-cart .wc-block-components-quantity-selector {
  justify-content: flex-start !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__input {
  width: 86px !important;
  text-align: left !important;
  padding: 10px 10px 10px 12px !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: inner-spin-button !important;
  opacity: 1 !important;
  margin: 0 !important;
}

@media (max-width: 781px) {
  .woocommerce-cart .wc-block-components-quantity-selector__input {
    width: 74px !important;
    text-align: left !important;
  }
}


/* v12: force cart qty left align and emulate small native arrows */
.woocommerce-cart .wc-block-components-quantity-selector {
  justify-content: flex-start !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__input {
  width: 92px !important;
  padding: 10px 28px 10px 12px !important;
  text-align: left !important;
  direction: ltr !important;
  caret-color: #1f2937 !important;
  background-color: #fff !important;
  background-repeat: no-repeat !important;
  background-position: right 8px top 11px, right 8px bottom 11px !important;
  background-size: 8px 5px, 8px 5px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #7b8794 50%),
    linear-gradient(135deg, transparent 50%, #7b8794 50%) !important;
}

.woocommerce-cart .wc-block-components-quantity-selector__input:hover,
.woocommerce-cart .wc-block-components-quantity-selector__input:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, #1f2937 50%),
    linear-gradient(135deg, transparent 50%, #1f2937 50%) !important;
}

@media (max-width: 781px) {
  .woocommerce-cart .wc-block-components-quantity-selector__input {
    width: 82px !important;
    padding-right: 26px !important;
  }
}


/* v13: add explicit Quantity column to WooCommerce Blocks cart */
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-qty,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol {
  width: 150px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-qty > span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 24px !important;
  margin: 0 !important;
  text-align: center !important;
  line-height: 1.2 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol {
  padding: 18px 10px !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__button,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__button--minus,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__button--plus,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol button.wc-block-components-quantity-selector__button,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol button.wc-block-components-quantity-selector__button--minus,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol button.wc-block-components-quantity-selector__button--plus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 1px solid #d7dde5 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  overflow: hidden !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__button:hover {
  border-color: #c61f2a !important;
  color: #c61f2a !important;
  background: #fff !important;
  transform: none !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__input {
  width: 56px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 6px !important;
  padding: 6px 8px !important;
  border: 1px solid #d7dde5 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1f2937 !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__product .wc-block-cart-item__quantity {
  display: none !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-total {
  width: 160px !important;
}

@media (max-width: 781px) {
  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-qty,
  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol {
    width: 110px !important;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__button,
  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol button.wc-block-components-quantity-selector__button {
    width: 30px !important;
    min-width: 30px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 18px !important;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__input {
    width: 44px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 4px !important;
    font-size: 14px !important;
  }
}


/* v14: fix remove link colors and qty/remove interactions */
.woocommerce-cart .wc-block-cart-item__remove-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #eef0f3 !important;
  color: #5f6b7a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease !important;
}

.woocommerce-cart .wc-block-cart-item__remove-link:hover,
.woocommerce-cart .wc-block-cart-item__remove-link:focus {
  background: #c61f2a !important;
  color: #ffffff !important;
  outline: none !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__button:disabled,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol button.wc-block-components-quantity-selector__button:disabled,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__button[disabled],
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol button.wc-block-components-quantity-selector__button[disabled] {
  opacity: .45 !important;
  cursor: not-allowed !important;
}


/* v15: merge first two cart headers under one title */
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-image,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product {
  background: #eef0f3 !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-image > span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  color: #1f2937 !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product > span {
  visibility: hidden !important;
  opacity: 0 !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product {
  position: relative !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 1px !important;
  background: transparent !important;
}


/* v16: stabilize cart layout after merged header */
@media (min-width: 782px) {
  .woocommerce-cart .is-large.wc-block-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr) !important;
    align-items: start !important;
    column-gap: 22px !important;
  }

  .woocommerce-cart .is-large.wc-block-cart .wc-block-cart__main {
    min-width: 0 !important;
  }

  .woocommerce-cart .is-large.wc-block-cart .wc-block-cart__sidebar {
    position: sticky !important;
    top: 150px !important;
    align-self: start !important;
  }

  body.admin-bar.woocommerce-cart .is-large.wc-block-cart .wc-block-cart__sidebar {
    top: 182px !important;
  }
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product {
  width: auto !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-image {
  width: 120px !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product > span {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  min-height: 18px !important;
}


/* v17: modern B2B single product card */
.b2b-product-layout {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.b2b-product-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

.b2b-product-gallery.card,
.b2b-product-main-card,
.b2b-product-b2b-card,
.b2b-product-section {
  border-radius: 30px;
  background: rgba(255,255,255,.92);
}

.b2b-product-gallery {
  padding: 26px;
}

.b2b-product-gallery .woocommerce-product-gallery {
  margin: 0 !important;
}

.b2b-product-gallery .woocommerce-product-gallery__wrapper,
.b2b-product-gallery .flex-control-thumbs {
  gap: 12px;
}

.b2b-product-gallery .flex-control-thumbs li img {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.b2b-product-aside {
  display: grid;
  gap: 20px;
}

.b2b-product-main-card {
  padding: 26px;
}

.b2b-product-sku {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.b2b-product-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.b2b-product-price-wrap {
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(198,31,42,.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,241,242,.94) 100%);
}


.b2b-product-top-price {
  min-height: 48px;
}

.b2b-product-top-price .price {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.18em;
  white-space: nowrap;
}

.b2b-product-price-wrap {
  min-height: 108px;
}

.b2b-product-price-wrap .price {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1;
}

.b2b-product-price-note {
  color: var(--text-soft);
  font-size: 14px;
}

.b2b-product-short {
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: #f8fafc;
}

.b2b-product-short p:last-child {
  margin-bottom: 0;
}

.b2b-product-purchase {
  margin-bottom: 18px;
}

.b2b-product-purchase form.cart,
.b2b-product-purchase .variations_form {
  display: grid;
  gap: 16px;
  margin: 0;
}

.b2b-product-purchase table.variations {
  margin: 0 !important;
  border: 0 !important;
}

.b2b-product-purchase table.variations td,
.b2b-product-purchase table.variations th {
  padding: 0 0 12px !important;
  border: 0 !important;
}

.b2b-product-purchase .variations label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.b2b-product-purchase .quantity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.b2b-product-purchase .qty {
  width: 92px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #d7dde5;
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
}

.b2b-product-purchase .single_add_to_cart_button,
.b2b-product-purchase .button.alt {
  min-height: 54px !important;
  padding-inline: 26px !important;
  font-size: 16px !important;
}

.b2b-product-meta {
  padding-top: 16px;
  border-top: 1px solid #e8edf2;
}

.b2b-product-meta .product_meta {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.b2b-product-meta .product_meta > span {
  display: block;
}

.b2b-product-b2b-card {
  padding: 24px;
}

.b2b-product-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b2b-product-points li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text);
  font-weight: 600;
}

.b2b-product-points li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d92835 0%, #b91520 100%);
  box-shadow: 0 0 0 6px rgba(198,31,42,0.1);
}

.b2b-product-contact-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  color: var(--text-soft);
  font-size: 14px;
}

.b2b-product-sections {
  display: grid;
  gap: 22px;
}

.b2b-product-section {
  padding: 24px;
}

.b2b-section-head {
  margin-bottom: 16px;
}

.b2b-section-head .section-title {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.b2b-product-content {
  color: var(--text);
}

.b2b-product-content > *:first-child {
  margin-top: 0;
}

.b2b-product-content > *:last-child {
  margin-bottom: 0;
}

.b2b-product-attributes table.shop_attributes {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.b2b-product-attributes table.shop_attributes tr th,
.b2b-product-attributes table.shop_attributes tr td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #e8edf2 !important;
}

.b2b-product-attributes table.shop_attributes tr:last-child th,
.b2b-product-attributes table.shop_attributes tr:last-child td {
  border-bottom: 0 !important;
}

.b2b-product-attributes table.shop_attributes th {
  width: 34%;
  background: #f8fafc;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.b2b-product-attributes table.shop_attributes td {
  background: #fff;
  color: var(--text-soft);
}

.b2b-product-flow .card {
  background: #f8fafc;
  box-shadow: none;
}

.b2b-product-section .related.products {
  margin: 0;
}

.b2b-product-section .related.products > h2,
.b2b-product-layout > .related.products > h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.b2b-product-layout > .related.products {
  padding: 24px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
  .b2b-product-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .b2b-product-gallery,
  .b2b-product-main-card,
  .b2b-product-b2b-card,
  .b2b-product-section,
  .b2b-product-layout > .related.products {
    padding: 18px;
    border-radius: 24px;
  }

  .b2b-product-title {
    font-size: 34px;
  }

  .b2b-product-price-wrap .price {
    font-size: 30px !important;
  }

  .b2b-product-purchase .single_add_to_cart_button,
  .b2b-product-purchase .button.alt {
    width: 100%;
  }

  .b2b-product-attributes table.shop_attributes th,
  .b2b-product-attributes table.shop_attributes td {
    display: block;
    width: 100%;
  }

  .b2b-product-attributes table.shop_attributes th {
    border-bottom: 0 !important;
    padding-bottom: 6px !important;
  }

  .b2b-product-attributes table.shop_attributes td {
    padding-top: 0 !important;
  }
}


/* v18: make single product card narrower and image area smaller */
.single-product .site-container {
  width: min(100% - 32px, 1120px) !important;
}

.b2b-product-top {
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1fr) !important;
  gap: 20px !important;
}

.b2b-product-gallery {
  max-width: 460px;
  justify-self: start;
  padding: 20px !important;
}

.b2b-product-gallery .woocommerce-product-gallery__image img {
  max-height: 420px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.b2b-product-gallery .flex-viewport {
  min-height: auto !important;
}

.b2b-product-main-card {
  padding: 24px !important;
}

.b2b-product-b2b-card,
.b2b-product-section,
.b2b-product-layout > .related.products {
  padding: 22px !important;
}

@media (max-width: 1024px) {
  .single-product .site-container {
    width: min(100% - 24px, 1120px) !important;
  }

  .b2b-product-gallery {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .single-product .site-container {
    width: min(100% - 20px, 1120px) !important;
  }

  .b2b-product-gallery .woocommerce-product-gallery__image img {
    max-height: 320px;
  }
}


/* v19: reduce product image height and constrain page width to footer feel */
.single-product .site-main > .site-container {
  width: min(100% - 32px, 1120px) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-product .b2b-product-layout {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}

.single-product .b2b-product-top,
.single-product .b2b-product-sections,
.single-product .related.products {
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.b2b-product-gallery {
  max-width: 420px !important;
  padding: 16px !important;
}

.b2b-product-gallery .woocommerce-product-gallery__image img,
.b2b-product-gallery .woocommerce-product-gallery__wrapper img {
  max-height: 300px !important;
  width: auto !important;
  object-fit: contain !important;
}

.b2b-product-gallery .woocommerce-product-gallery__wrapper {
  display: flex;
  align-items: center;
}

.b2b-product-gallery .woocommerce-product-gallery__image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.b2b-product-gallery .flex-control-thumbs {
  margin-top: 12px !important;
}

.b2b-product-gallery .flex-control-thumbs li {
  max-width: 74px;
}

@media (max-width: 1024px) {
  .single-product .site-main > .site-container {
    width: min(100% - 24px, 1120px) !important;
  }

  .b2b-product-gallery {
    max-width: 100% !important;
  }

  .b2b-product-gallery .woocommerce-product-gallery__image {
    min-height: 280px;
  }

  .b2b-product-gallery .woocommerce-product-gallery__image img,
  .b2b-product-gallery .woocommerce-product-gallery__wrapper img {
    max-height: 260px !important;
  }
}

@media (max-width: 768px) {
  .single-product .site-main > .site-container {
    width: min(100% - 20px, 1120px) !important;
  }

  .b2b-product-gallery .woocommerce-product-gallery__image {
    min-height: 220px;
  }

  .b2b-product-gallery .woocommerce-product-gallery__image img,
  .b2b-product-gallery .woocommerce-product-gallery__wrapper img {
    max-height: 220px !important;
  }
}


/* v20: tighter single product spacing and slightly smaller typography */
.b2b-product-top {
  gap: 14px !important;
}

.b2b-product-aside {
  gap: 14px !important;
}

.b2b-product-gallery,
.b2b-product-main-card,
.b2b-product-b2b-card,
.b2b-product-section,
.b2b-product-layout > .related.products {
  border-radius: 24px !important;
}

.b2b-product-main-card {
  padding: 18px !important;
}

.b2b-product-b2b-card,
.b2b-product-section,
.b2b-product-layout > .related.products {
  padding: 18px !important;
}

.b2b-product-gallery {
  padding: 14px !important;
}

.b2b-product-title {
  font-size: clamp(24px, 3vw, 36px) !important;
  margin-bottom: 10px !important;
}

.b2b-product-sku {
  margin-bottom: 8px !important;
  font-size: 13px !important;
}

.b2b-product-price-wrap {
  padding: 12px 14px !important;
  margin-bottom: 14px !important;
  border-radius: 18px !important;
}

.b2b-product-price-wrap .price {
  font-size: clamp(24px, 2.6vw, 32px) !important;
  margin-bottom: 4px !important;
}

.b2b-product-price-note,
.b2b-product-contact-note,
.b2b-product-meta .product_meta,
.b2b-product-attributes table.shop_attributes td,
.b2b-product-short,
.b2b-product-short p,
.b2b-product-points li,
.b2b-product-content,
.b2b-product-content p,
.b2b-product-flow .card__text {
  font-size: 14px !important;
}

.b2b-product-short {
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  border-radius: 18px !important;
}

.b2b-product-purchase {
  margin-bottom: 14px !important;
}

.b2b-product-purchase form.cart,
.b2b-product-purchase .variations_form {
  gap: 12px !important;
}

.b2b-product-purchase .variations label,
.b2b-product-meta .product_meta,
.b2b-product-attributes table.shop_attributes th {
  font-size: 13px !important;
}

.b2b-product-purchase .qty {
  width: 82px !important;
  min-height: 44px !important;
  border-radius: 14px !important;
}

.b2b-product-purchase .single_add_to_cart_button,
.b2b-product-purchase .button.alt {
  min-height: 48px !important;
  font-size: 15px !important;
}

.b2b-product-meta {
  padding-top: 12px !important;
}

.b2b-product-b2b-card .card__title,
.b2b-product-flow .card__title {
  font-size: 18px !important;
  margin-bottom: 8px !important;
}

.b2b-product-points {
  gap: 10px !important;
}

.b2b-product-contact-note {
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

.b2b-product-sections {
  gap: 16px !important;
}

.b2b-section-head {
  margin-bottom: 12px !important;
}

.b2b-section-head .section-title,
.b2b-product-section .related.products > h2,
.b2b-product-layout > .related.products > h2 {
  font-size: clamp(22px, 2.5vw, 30px) !important;
}

.b2b-product-flow {
  gap: 14px !important;
}

.b2b-product-flow .card {
  padding: 16px !important;
  border-radius: 18px !important;
}

.b2b-product-attributes table.shop_attributes tr th,
.b2b-product-attributes table.shop_attributes tr td {
  padding: 11px 13px !important;
}

.b2b-product-gallery .woocommerce-product-gallery__image {
  min-height: 260px !important;
}

.b2b-product-gallery .woocommerce-product-gallery__image img,
.b2b-product-gallery .woocommerce-product-gallery__wrapper img {
  max-height: 240px !important;
}

@media (max-width: 1024px) {
  .b2b-product-top {
    gap: 12px !important;
  }
}

@media (max-width: 768px) {
  .b2b-product-title {
    font-size: 28px !important;
  }

  .b2b-product-gallery .woocommerce-product-gallery__image {
    min-height: 200px !important;
  }

  .b2b-product-gallery .woocommerce-product-gallery__image img,
  .b2b-product-gallery .woocommerce-product-gallery__wrapper img {
    max-height: 200px !important;
  }
}


/* v21: prevent short description card from stretching */
.b2b-product-short,
.b2b-product-short.card {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  flex: 0 0 auto !important;
}

.b2b-product-short p {
  margin: 0 !important;
}

.b2b-product-main-card > .b2b-product-short {
  width: 100% !important;
  overflow: visible !important;
}


/* v22: reduce gap between image panel and purchase panel */
.b2b-product-top {
  column-gap: 8px !important;
  gap: 8px !important;
  align-items: start !important;
}

.b2b-product-gallery {
  margin-right: 0 !important;
}

.b2b-product-aside {
  margin-left: 0 !important;
  gap: 12px !important;
}

@media (max-width: 1024px) {
  .b2b-product-top {
    gap: 10px !important;
  }
}


/* v23: target actual WooCommerce gallery element to reduce gap */
.single-product .b2b-product-top {
  display: grid !important;
  grid-template-columns: 360px minmax(0, 1fr) !important;
  column-gap: 0 !important;
  gap: 0 !important;
  align-items: start !important;
}

.single-product .b2b-product-gallery.card {
  width: 360px !important;
  max-width: 360px !important;
  margin: 0 !important;
  padding: 12px !important;
  justify-self: start !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery.images {
  width: 100% !important;
  margin: 0 !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__wrapper {
  margin: 0 !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image {
  min-height: 220px !important;
  margin: 0 !important;
}

.single-product .b2b-product-aside {
  margin-left: -4px !important;
  padding-left: 0 !important;
  gap: 10px !important;
}

.single-product .b2b-product-main-card,
.single-product .b2b-product-b2b-card {
  margin-left: 0 !important;
}

@media (max-width: 1024px) {
  .single-product .b2b-product-top {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .single-product .b2b-product-gallery.card {
    width: 100% !important;
    max-width: 420px !important;
  }

  .single-product .b2b-product-aside {
    margin-left: 0 !important;
  }
}


/* v24: safe gap between product panels + image fits panel width */
.single-product .b2b-product-top {
  display: grid !important;
  grid-template-columns: 360px minmax(0, 1fr) !important;
  column-gap: 12px !important;
  gap: 12px !important;
  align-items: start !important;
}

.single-product .b2b-product-gallery.card {
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 !important;
  padding: 12px !important;
  justify-self: start !important;
  overflow: hidden !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery,
.single-product .b2b-product-gallery.card .woocommerce-product-gallery.images,
.single-product .b2b-product-gallery.card .woocommerce-product-gallery__wrapper,
.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image {
  min-height: 220px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image img,
.single-product .b2b-product-gallery.card .woocommerce-product-gallery__wrapper img,
.single-product .b2b-product-gallery.card img.wp-post-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 240px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.single-product .b2b-product-gallery.card .zoomImg {
  max-width: none !important;
}

.single-product .b2b-product-aside {
  margin-left: 0 !important;
  padding-left: 0 !important;
  gap: 10px !important;
  min-width: 0 !important;
}

@media (max-width: 1024px) {
  .single-product .b2b-product-top {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .single-product .b2b-product-gallery.card {
    max-width: 420px !important;
  }

  .single-product .b2b-product-gallery.card .woocommerce-product-gallery__image img,
  .single-product .b2b-product-gallery.card .woocommerce-product-gallery__wrapper img,
  .single-product .b2b-product-gallery.card img.wp-post-image {
    max-height: 220px !important;
  }
}


/* v25: remove eyebrow and restore native qty + add-to-cart row */
.b2b-product-purchase .cart,
.b2b-product-purchase form.cart,
.b2b-product-purchase .variations_form.cart,
.b2b-product-purchase .single_variation_wrap .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.b2b-product-purchase table.variations,
.b2b-product-purchase .single_variation {
  width: 100% !important;
  flex: 0 0 100% !important;
}

.b2b-product-purchase .quantity {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.b2b-product-purchase .qty {
  width: 86px !important;
  min-height: 46px !important;
  margin: 0 !important;
}

.b2b-product-purchase .single_add_to_cart_button,
.b2b-product-purchase .button.alt {
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .b2b-product-purchase .cart,
  .b2b-product-purchase form.cart,
  .b2b-product-purchase .variations_form.cart,
  .b2b-product-purchase .single_variation_wrap .woocommerce-variation-add-to-cart {
    align-items: stretch !important;
  }

  .b2b-product-purchase .single_add_to_cart_button,
  .b2b-product-purchase .button.alt {
    width: 100% !important;
  }
}


/* v26: custom single-product gallery with one main image + thumbs */
.single-product .b2b-product-gallery.card .flex-control-nav,
.single-product .b2b-product-gallery.card .flex-direction-nav,
.single-product .b2b-product-gallery.card .woocommerce-product-gallery__trigger {
  z-index: 3;
}

.single-product .b2b-product-gallery.card .flex-control-nav:not(.flex-control-thumbs) {
  display: none !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__wrapper {
  position: relative !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image {
  display: none !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image.is-active {
  display: flex !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image a {
  cursor: zoom-in;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 62px));
  gap: 10px;
  margin-top: 12px;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding: 4px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: none !important;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumb.is-active {
  border-color: #c61f2a;
  box-shadow: 0 0 0 3px rgba(198,31,42,.10);
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumb:hover {
  border-color: #c61f2a;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .single-product .b2b-product-gallery.card .b2b-gallery-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(54px, 54px));
    gap: 8px;
  }

  .single-product .b2b-product-gallery.card .b2b-gallery-thumb {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }
}


/* v27: cleaner gallery thumbs under main image */
.single-product .b2b-product-gallery.card .flex-control-thumbs,
.single-product .b2b-product-gallery.card ol.flex-control-nav.flex-control-thumbs,
.single-product .b2b-product-gallery.card .flex-control-nav.flex-control-thumbs,
.single-product .b2b-product-gallery.card .flex-control-paging,
.single-product .b2b-product-gallery.card ol.flex-control-nav,
.single-product .b2b-product-gallery.card ul.flex-direction-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid #dbe2ea !important;
  outline: none !important;
  box-shadow: none !important;
  background: #fff !important;
  border-radius: 12px !important;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumb::before,
.single-product .b2b-product-gallery.card .b2b-gallery-thumb::after {
  content: none !important;
  display: none !important;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumb img {
  border-radius: 8px !important;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumb.is-active {
  border-color: #c61f2a !important;
  box-shadow: 0 0 0 2px rgba(198,31,42,.10) !important;
}


/* v28: force gallery thumbs below main image with clear spacing */
.single-product .b2b-product-gallery.card .woocommerce-product-gallery,
.single-product .b2b-product-gallery.card .woocommerce-product-gallery.images {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__wrapper {
  order: 1 !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumbs {
  order: 2 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 20px !important;
  padding-top: 0 !important;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumb {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__trigger {
  order: 3 !important;
}


/* v29: remove extra note and align related product cards */
.b2b-product-layout > .related.products ul.products li.product,
.b2b-product-section .related.products ul.products li.product,
.single-product .related.products ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  height: 100% !important;
  min-height: 100% !important;
}

.b2b-product-layout > .related.products ul.products li.product a:first-child,
.b2b-product-section .related.products ul.products li.product a:first-child,
.single-product .related.products ul.products li.product a:first-child {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.b2b-product-layout > .related.products ul.products li.product .woocommerce-loop-product__title,
.b2b-product-section .related.products ul.products li.product .woocommerce-loop-product__title,
.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
  min-height: 48px;
}

.b2b-product-layout > .related.products ul.products li.product .price,
.b2b-product-section .related.products ul.products li.product .price,
.single-product .related.products ul.products li.product .price {
  margin-top: auto !important;
  padding-top: 10px !important;
}

.b2b-product-layout > .related.products ul.products,
.b2b-product-section .related.products ul.products,
.single-product .related.products ul.products {
  align-items: stretch !important;
}


/* v30: hide deprecated order-note panel everywhere in product cards */
ul.products li.product .b2b-note,
.related.products li.product .b2b-note,
.single-product .related.products li.product .b2b-note,
.woocommerce ul.products li.product .b2b-note {
  display: none !important;
}


/* v33: sync top price and show quantity total */
.b2b-product-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  background: #f8fafc;
}

.b2b-product-order-total__label {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.b2b-product-order-total__value {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .b2b-product-order-total {
    padding: 10px 12px;
  }

  .b2b-product-order-total__value {
    font-size: 16px;
  }
}


/* v10.1 checkout order summary product title tuning */
.woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name,
.woocommerce-cart .wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name,
.woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__description a,
.woocommerce-cart .wc-block-checkout .wc-block-components-order-summary-item__description a {
  display: inline-block !important;
  max-width: 100% !important;
  font-size: 15px !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__description,
.woocommerce-cart .wc-block-checkout .wc-block-components-order-summary-item__description {
  min-width: 0;
}

@media (max-width: 781px) {
  .woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name,
  .woocommerce-cart .wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name,
  .woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__description a,
  .woocommerce-cart .wc-block-checkout .wc-block-components-order-summary-item__description a {
    font-size: 14px !important;
    line-height: 1.1 !important;
  }
}

/* v11 checkout summary sticky offset under fixed header */
@media (min-width: 782px) {
  .woocommerce-checkout .is-large.wc-block-checkout .wc-block-components-sidebar,
  .woocommerce-cart .is-large.wc-block-checkout .wc-block-components-sidebar {
    position: sticky !important;
    top: 150px !important;
    align-self: start !important;
  }

  body.admin-bar.woocommerce-checkout .is-large.wc-block-checkout .wc-block-components-sidebar,
  body.admin-bar.woocommerce-cart .is-large.wc-block-checkout .wc-block-components-sidebar {
    top: 182px !important;
  }
}


/* v15: keep quantity label directly before qty input for simple and variable products */
.b2b-product-purchase .b2b-product-qty-label {
  flex: 0 0 auto !important;
  align-self: center !important;
  margin: 0 !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}


/* v17: fix variable total precision and align option labels like qty label */
.b2b-product-purchase table.variations th,
.b2b-product-purchase table.variations td.label,
.b2b-product-purchase table.variations td.label label,
.b2b-product-purchase table.variations tr th label,
.b2b-product-purchase .variations label {
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin: 0 !important;
  padding-left: 0 !important;
  color: var(--text) !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.b2b-product-purchase table.variations th,
.b2b-product-purchase table.variations td.label {
  width: auto !important;
  display: table-cell !important;
  vertical-align: middle !important;
}

.b2b-product-purchase .b2b-product-qty-label,
.b2b-product-purchase table.variations td.label label,
.b2b-product-purchase table.variations th label,
.b2b-product-purchase .variations label {
  font-size: 15px !important;
}

/* v20.1: keep variation labels centered against selects without lifting all labels upward */
.b2b-product-purchase table.variations tr,
.b2b-product-purchase table.variations th,
.b2b-product-purchase table.variations td {
  vertical-align: middle !important;
}

.b2b-product-purchase table.variations th.label,
.b2b-product-purchase table.variations td.label {
  display: table-cell !important;
  vertical-align: middle !important;
  padding-right: 18px !important;
}

.b2b-product-purchase table.variations th.label label,
.b2b-product-purchase table.variations td.label label,
.b2b-product-purchase table.variations .label label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 46px !important;
  margin: 0 !important;
  width: 100% !important;
  line-height: 1.25 !important;
}

.b2b-product-purchase table.variations td.value {
  vertical-align: middle !important;
}

/* v23: normalize spacing and alignment for all current and future variation option rows */
.b2b-product-purchase table.variations {
  border-collapse: separate !important;
  border-spacing: 0 16px !important;
}

.b2b-product-purchase table.variations tbody,
.b2b-product-purchase table.variations tr {
  width: 100% !important;
}

.b2b-product-purchase table.variations tr {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) !important;
  align-items: center !important;
  column-gap: 32px !important;
}

.b2b-product-purchase table.variations th,
.b2b-product-purchase table.variations td {
  padding: 0 !important;
  border: 0 !important;
}

.b2b-product-purchase table.variations th.label,
.b2b-product-purchase table.variations td.label,
.b2b-product-purchase table.variations td.value {
  display: flex !important;
  min-height: 48px !important;
}

.b2b-product-purchase table.variations th.label,
.b2b-product-purchase table.variations td.label {
  align-items: center !important;
}

.b2b-product-purchase table.variations td.value {
  align-items: flex-start !important;
}

.b2b-product-purchase table.variations th.label,
.b2b-product-purchase table.variations td.label {
  justify-content: flex-start !important;
  padding-right: 0 !important;
}

.b2b-product-purchase table.variations th.label label,
.b2b-product-purchase table.variations td.label label,
.b2b-product-purchase table.variations .label label {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.b2b-product-purchase table.variations td.value select {
  width: 100% !important;
  min-height: 48px !important;
}

@media (max-width: 767px) {
  .b2b-product-purchase table.variations {
    border-spacing: 0 12px !important;
  }

  .b2b-product-purchase table.variations tr {
    grid-template-columns: 1fr !important;
    row-gap: 8px !important;
  }

  .b2b-product-purchase table.variations td.value {
    min-height: 0 !important;
  }
}


/* v26: keep variation select rows stable when values change and move reset link below */
.b2b-product-purchase table.variations td.value {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.b2b-product-purchase table.variations td.value select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.b2b-product-purchase table.variations td.value .reset_variations {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}


/* v29: stabilize variable product price + option rows when selection/reset state changes */
.b2b-product-price-wrap {
  min-height: 136px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.b2b-product-top-price,
.b2b-product-top-price .price,
.b2b-product-top-price > .price,
.b2b-product-top-price p.price {
  min-height: 48px !important;
  margin: 0 !important;
}

.b2b-product-top-price .price,
.b2b-product-top-price > .price,
.b2b-product-top-price p.price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.b2b-product-purchase table.variations td.value {
  min-height: 78px !important;
  padding-bottom: 22px !important;
  position: relative !important;
}

.b2b-product-purchase table.variations td.value .reset_variations {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .b2b-product-price-wrap {
    min-height: 124px !important;
  }

  .b2b-product-purchase table.variations td.value {
    min-height: 72px !important;
    padding-bottom: 20px !important;
  }
}
