
/* 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 { margin-top: 28px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
  margin: 0;
  list-style: none;
}

.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;
  }
}

/* v32: align single product page width with catalog and make photo panel match catalog sidebar panel */
.single-product .site-container,
.single-product .site-main > .site-container {
  width: min(100% - 32px, var(--container)) !important;
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-product .b2b-product-layout,
.single-product .b2b-product-top,
.single-product .b2b-product-sections,
.single-product .related.products {
  max-width: var(--container) !important;
}

.single-product .b2b-product-top {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

.single-product .b2b-product-gallery.card {
  width: 300px !important;
  max-width: 300px !important;
  margin: 0 !important;
  padding: 20px !important;
  border-radius: 14px !important;
  justify-self: start !important;
  position: sticky;
  top: 150px;
}

.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;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image {
  min-height: 240px !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: 240px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.single-product .b2b-product-gallery.card .flex-control-thumbs {
  margin-top: 14px !important;
  gap: 10px !important;
}

.single-product .b2b-product-gallery.card .flex-control-thumbs li {
  max-width: 60px !important;
}

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

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

  .single-product .b2b-product-top {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

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

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

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

  .single-product .b2b-product-gallery.card .woocommerce-product-gallery__image {
    min-height: 220px !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;
  }
}

/* v29-single-sticky-only: keep base single-width-aligned, only make gallery panel compact + sticky */
.single-product .b2b-product-top {
  align-items: start !important;
}

.single-product .b2b-product-top > * {
  min-width: 0;
}

.single-product .b2b-product-gallery.card {
  align-self: start !important;
  position: sticky !important;
  top: 150px !important;
  height: auto !important;
  max-height: calc(100vh - 170px) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery,
.single-product .b2b-product-gallery.card .woocommerce-product-gallery.images {
  display: block !important;
  height: auto !important;
}

.single-product .b2b-product-gallery.card .flex-viewport {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image {
  min-height: 200px !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: 200px !important;
}

.single-product .b2b-product-gallery.card .b2b-gallery-thumbs,
.single-product .b2b-product-gallery.card .flex-control-thumbs {
  margin-top: 10px !important;
}

@media (max-width: 1024px) {
  .single-product .b2b-product-gallery.card {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* v33.0.1: single-product gallery - compact sticky panel, thumbs below, no hover zoom jitter */
.single-product .b2b-product-gallery.card {
  align-self: start !important;
  position: sticky !important;
  top: 150px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.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;
  height: auto !important;
}

.single-product .b2b-product-gallery.card .flex-viewport {
  order: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !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: 10px !important;
  width: 100% !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

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

.single-product .b2b-product-gallery.card .woocommerce-product-gallery__image {
  min-height: 220px !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;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.single-product .b2b-product-gallery.card .zoomImg {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 1024px) {
  .single-product .b2b-product-gallery.card {
    position: static !important;
    top: auto !important;
  }
}

/* v36: align header-to-content gap across pages */
.site-main {
  padding-top: 28px;
}

.b2b-shop-page {
  padding-top: 0;
}

.single-product .site-main {
  padding-top: 28px !important;
}

.single-product .site-main > .site-container,
.single-product .site-main .woocommerce-breadcrumb + .site-container,
.single-product .site-main .woocommerce-notices-wrapper + .product,
.single-product .site-main .product.b2b-product-layout,
.single-product .b2b-product-layout,
.single-product .b2b-product-top {
  margin-top: 0 !important;
}

.single-product .site-main .woocommerce-notices-wrapper {
  margin-bottom: 0 !important;
}

/* v37: make single product top gap tighter while keeping catalog unchanged */
.single-product .site-main {
  padding-top: 14px !important;
}

.single-product .site-main > .site-container,
.single-product .b2b-product-layout,
.single-product .b2b-product-top {
  margin-top: 0 !important;
}


/* v62 classic checkout custom layout */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper.b2b-classic-checkout-form {
  display: block;
}
.woocommerce-checkout .b2b-checkout-group-title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}
.woocommerce-checkout .b2b-checkout-group-title--contact {
  margin-top: 30px;
}
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .shipping_address,
.woocommerce-checkout #ship-to-different-address {
  display: none !important;
}


/* v63 classic checkout hard switch */
.woocommerce-checkout .b2b-checkout-group-title { margin-top: 0; }
.woocommerce-checkout .b2b-checkout-group-title--contact { margin-top: 0; }
.woocommerce-checkout .b2b-classic-checkout-form #billing_country_field { display:none !important; }
.woocommerce-checkout .b2b-checkout-invoice-copy { margin-top: 14px; }
.woocommerce-checkout .b2b-checkout-invoice-copy input[disabled] { opacity: 1; }

/* v64 two-panel classic checkout */
.woocommerce-checkout form.checkout.b2b-two-panel-checkout {
  margin-top: 0;
}
.woocommerce-checkout .b2b-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.woocommerce-checkout .b2b-checkout-main,
.woocommerce-checkout .b2b-checkout-sidebar-card {
  padding: 24px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
}
.woocommerce-checkout .b2b-checkout-main #customer_details,
.woocommerce-checkout .b2b-checkout-main .woocommerce-billing-fields,
.woocommerce-checkout .b2b-checkout-main .woocommerce-shipping-fields,
.woocommerce-checkout .b2b-checkout-main .woocommerce-additional-fields {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.woocommerce-checkout .b2b-checkout-main #customer_details {
  display: block;
}
.woocommerce-checkout .b2b-checkout-main .col-2,
.woocommerce-checkout .b2b-checkout-main .woocommerce-shipping-fields,
.woocommerce-checkout .b2b-checkout-main .shipping_address,
.woocommerce-checkout .b2b-checkout-main #ship-to-different-address {
  display: none !important;
}
.woocommerce-checkout .b2b-checkout-payment-panel {
  margin-top: 24px;
}
.woocommerce-checkout .b2b-checkout-payment-panel .woocommerce-checkout-review-order-table,
.woocommerce-checkout .b2b-checkout-payment-panel #order_review_heading,
.woocommerce-checkout .b2b-checkout-payment-panel .shop_table,
.woocommerce-checkout .b2b-checkout-payment-panel .product-total,
.woocommerce-checkout .b2b-checkout-payment-panel .product-name,
.woocommerce-checkout .b2b-checkout-payment-panel .cart-subtotal,
.woocommerce-checkout .b2b-checkout-payment-panel .shipping,
.woocommerce-checkout .b2b-checkout-payment-panel .order-total {
  display: none !important;
}
.woocommerce-checkout .b2b-checkout-payment-panel #payment {
  background: transparent;
  border: 0;
  padding: 0;
}
.woocommerce-checkout .b2b-checkout-payment-panel #payment ul.payment_methods {
  margin: 0 0 18px;
}
.woocommerce-checkout .b2b-checkout-payment-panel .place-order {
  padding: 18px 0 0;
  margin-top: 20px;
  border-top: 1px solid rgba(221,226,232,0.95);
}
.woocommerce-checkout .b2b-checkout-payment-panel .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 18px;
}
.woocommerce-checkout .b2b-checkout-sidebar {
  position: sticky;
  top: 140px;
}
.woocommerce-checkout .b2b-checkout-sidebar-card h3 {
  margin: 0 0 16px;
}
.woocommerce-checkout .b2b-checkout-sidebar-card #payment {
  display: none !important;
}
.woocommerce-checkout .b2b-checkout-sidebar-card .shop_table {
  margin-bottom: 0;
}
.woocommerce-checkout .b2b-classic-checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0 16px;
}
.woocommerce-checkout .b2b-classic-checkout-form .b2b-checkout-group-title,
.woocommerce-checkout .b2b-classic-checkout-form .b2b-checkout-invoice-copy,
.woocommerce-checkout .b2b-classic-checkout-form .form-row-wide {
  grid-column: 1 / -1;
}
.woocommerce-checkout .b2b-classic-checkout-form .form-row-first,
.woocommerce-checkout .b2b-classic-checkout-form .form-row-last {
  width: 100%;
  float: none;
}
.woocommerce-checkout .b2b-classic-checkout-form .form-row {
  margin-bottom: 14px;
}
.woocommerce-checkout .b2b-classic-checkout-form #billing_city_field,
.woocommerce-checkout .b2b-classic-checkout-form #billing_address_1_field {
  grid-column: 1 / -1;
}
.woocommerce-checkout .b2b-classic-checkout-form #billing_postcode_field,
.woocommerce-checkout .b2b-classic-checkout-form #billing_state_field,
.woocommerce-checkout .b2b-classic-checkout-form #billing_inn_field,
.woocommerce-checkout .b2b-classic-checkout-form #billing_kpp_field,
.woocommerce-checkout .b2b-classic-checkout-form #billing_first_name_field,
.woocommerce-checkout .b2b-classic-checkout-form #billing_last_name_field,
.woocommerce-checkout .b2b-classic-checkout-form #billing_email_field,
.woocommerce-checkout .b2b-classic-checkout-form #billing_phone_field {
  grid-column: span 1;
}
.woocommerce-checkout .b2b-classic-checkout-form #billing_country_field {
  display: none !important;
}
.woocommerce-checkout .b2b-checkout-invoice-copy {
  margin: 6px 0 0;
}
@media (max-width: 980px) {
  .woocommerce-checkout .b2b-checkout-layout {
    grid-template-columns: 1fr;
  }
  .woocommerce-checkout .b2b-checkout-sidebar {
    position: static;
  }
}
@media (max-width: 640px) {
  .woocommerce-checkout .b2b-checkout-main,
  .woocommerce-checkout .b2b-checkout-sidebar-card {
    padding: 18px;
    border-radius: 22px;
  }
  .woocommerce-checkout .b2b-classic-checkout-form {
    grid-template-columns: 1fr;
  }
}


/* v66 checkout section grouping + compact order summary */
.woocommerce-checkout .b2b-classic-checkout-form {
  display: block;
}
.woocommerce-checkout .b2b-checkout-section + .b2b-checkout-section {
  margin-top: 10px;
}
.woocommerce-checkout .b2b-checkout-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0 16px;
}
.woocommerce-checkout .b2b-checkout-section-grid .form-row-wide,
.woocommerce-checkout .b2b-checkout-section-grid #billing_company_field,
.woocommerce-checkout .b2b-checkout-section-grid #billing_city_field,
.woocommerce-checkout .b2b-checkout-section-grid #billing_address_1_field,
.woocommerce-checkout .b2b-checkout-section-grid #billing_country_field {
  grid-column: 1 / -1;
}
.woocommerce-checkout .b2b-checkout-section-grid .form-row-first,
.woocommerce-checkout .b2b-checkout-section-grid .form-row-last {
  width: 100%;
  float: none;
}
.woocommerce-checkout .b2b-checkout-section-grid .form-row {
  margin-bottom: 14px;
}
.woocommerce-checkout .b2b-checkout-section-grid #billing_country_field {
  display: none !important;
}
.woocommerce-checkout .b2b-checkout-group-title {
  margin: 0 0 12px;
}
.woocommerce-checkout .b2b-checkout-invoice-copy {
  margin: 4px 0 0;
}
.woocommerce-checkout .b2b-checkout-sidebar-card {
  padding: 24px;
}
.woocommerce-checkout .b2b-checkout-sidebar-card h3 {
  margin-bottom: 12px;
}
.woocommerce-checkout .b2b-checkout-sidebar-card .shop_table {
  font-size: 16px;
}
.woocommerce-checkout .b2b-checkout-sidebar-card .shop_table th,
.woocommerce-checkout .b2b-checkout-sidebar-card .shop_table td {
  padding: 12px 14px;
}
.woocommerce-checkout .b2b-checkout-sidebar-card .cart_item .product-name,
.woocommerce-checkout .b2b-checkout-sidebar-card .cart_item .product-total {
  padding-top: 12px;
  padding-bottom: 12px;
}
.woocommerce-checkout .b2b-checkout-sidebar-card .product-name {
  line-height: 1.45;
}
.woocommerce-checkout .b2b-checkout-sidebar-card .product-name .product-quantity {
  font-weight: 700;
}
.woocommerce-checkout .b2b-checkout-sidebar-card .cart-subtotal th,
.woocommerce-checkout .b2b-checkout-sidebar-card .shipping th,
.woocommerce-checkout .b2b-checkout-sidebar-card .order-total th,
.woocommerce-checkout .b2b-checkout-sidebar-card .cart-subtotal td,
.woocommerce-checkout .b2b-checkout-sidebar-card .shipping td,
.woocommerce-checkout .b2b-checkout-sidebar-card .order-total td {
  padding-top: 10px;
  padding-bottom: 10px;
}
@media (max-width: 640px) {
  .woocommerce-checkout .b2b-checkout-section-grid {
    grid-template-columns: 1fr;
  }
}


/* v14: сплошной фон шапки таблицы корзины, включая пустые ячейки */
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart thead,
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart thead tr,
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart thead th,
.woocommerce-cart table.shop_table.cart thead,
.woocommerce-cart table.shop_table.cart thead tr,
.woocommerce-cart table.shop_table.cart thead th {
    background-color: #e3e6ea !important;
    background-image: none !important;
}

/* v18: show product name header in cart (override old v15 hidden rule) */
.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-product > span {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 24px !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product::before {
  content: none !important;
  display: none !important;
}


/* v19: одинаковая заливка всех заголовков корзины */
.woocommerce-cart table.wc-block-cart-items thead th,
.woocommerce-cart table.wc-block-cart-items thead th:first-child,
.woocommerce-cart table.wc-block-cart-items thead th:last-child,
.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,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-total,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-quantity {
  background: #e3e6ea !important;
  background-color: #e3e6ea !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.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,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-quantity > span {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}


/* v26: original cart restored; white header + visible product-name title */
.woocommerce-cart table.wc-block-cart-items thead,
.woocommerce-cart table.wc-block-cart-items thead tr,
.woocommerce-cart table.wc-block-cart-items thead th,
.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,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-qty,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-quantity,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-total {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product > span {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  color: #1f2937 !important;
  font-weight: 800 !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-product::before {
  content: none !important;
  display: none !important;
}


/* v78.3.22: checkout delivery address toggle */
.woocommerce-checkout .b2b-checkout-delivery-copy {
  margin: 6px 0 4px;
}
.woocommerce-checkout .b2b-checkout-delivery-copy label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}
.woocommerce-checkout .b2b-checkout-delivery-copy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
}
.woocommerce-checkout .b2b-delivery-address-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.woocommerce-checkout .b2b-delivery-address-fields[hidden] {
  display: none !important;
}
.woocommerce-checkout .b2b-delivery-address-fields.is-open {
  display: block !important;
}
.woocommerce-checkout .b2b-checkout-section-grid--delivery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.woocommerce-checkout .b2b-checkout-section-grid--delivery .form-row-wide,
.woocommerce-checkout .b2b-checkout-section-grid--delivery #shipping_city_field,
.woocommerce-checkout .b2b-checkout-section-grid--delivery #shipping_address_1_field,
.woocommerce-checkout .b2b-checkout-section-grid--delivery #shipping_country_field {
  grid-column: 1 / -1;
}
.woocommerce-checkout .b2b-checkout-section-grid--delivery #shipping_country_field {
  display: none !important;
}
.woocommerce-checkout .b2b-checkout-section-grid--delivery .form-row {
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .woocommerce-checkout .b2b-checkout-section-grid--delivery {
    grid-template-columns: 1fr;
  }
}


/* v78.3.30 experimental flat design: disable visual shadows only */
html body *,
html body *::before,
html body *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}


/* v78.3.40.2: product documentation below gallery */
.single-product .b2b-product-left {
  width: 300px;
  max-width: 300px;
  min-width: 0;
  display: grid;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 150px;
}

.single-product .b2b-product-left > .b2b-product-gallery.card {
  position: relative !important;
  top: auto !important;
  width: 100% !important;
  max-width: 300px !important;
}

.single-product .rsmart-product-documents {
  width: 100%;
  max-width: 300px;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
}

.rsmart-product-documents__title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.rsmart-product-documents__list {
  display: grid;
  gap: 9px;
}

.rsmart-product-document {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.rsmart-product-document:hover,
.rsmart-product-document:focus-visible {
  border-color: rgba(198,31,42,.42);
  background: var(--surface);
  color: inherit !important;
  transform: translateY(-1px);
  outline: none;
}

.rsmart-product-document__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198,31,42,.28);
  border-radius: 9px;
  background: var(--surface);
  color: var(--red);
}

.rsmart-product-document__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rsmart-product-document__body { min-width: 0; }
.rsmart-product-document__name {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.rsmart-product-document__meta {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.rsmart-product-document__arrow {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1;
  transition: color .18s ease, transform .18s ease;
}
.rsmart-product-document:hover .rsmart-product-document__arrow,
.rsmart-product-document:focus-visible .rsmart-product-document__arrow {
  color: var(--red);
  transform: translate(1px,-1px);
}

@media (max-width: 1024px) {
  .single-product .b2b-product-left {
    width: 100%;
    max-width: 420px;
    position: static;
    top: auto;
  }
  .single-product .b2b-product-left > .b2b-product-gallery.card,
  .single-product .rsmart-product-documents {
    width: 100% !important;
    max-width: 420px !important;
  }
}

@media (max-width: 560px) {
  .single-product .b2b-product-left { max-width: 100%; }
  .single-product .rsmart-product-documents,
  .single-product .b2b-product-left > .b2b-product-gallery.card { max-width: 100% !important; }
}

/* v78.3.40.5: allow savings badge in cart subtotal column to wrap neatly */
.woocommerce-cart table.cart td.product-subtotal {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.woocommerce-cart table.cart td.product-subtotal > *,
.woocommerce-cart table.cart td.product-subtotal > * > * {
  max-width: 100%;
}

/* Keep money values intact, but allow surrounding savings label/badge to wrap. */
.woocommerce-cart table.cart td.product-subtotal .amount,
.woocommerce-cart table.cart td.product-subtotal .woocommerce-Price-amount {
  white-space: nowrap !important;
}

.woocommerce-cart table.cart td.product-subtotal span:not(.amount):not(.woocommerce-Price-amount),
.woocommerce-cart table.cart td.product-subtotal div,
.woocommerce-cart table.cart td.product-subtotal small,
.woocommerce-cart table.cart td.product-subtotal strong {
  white-space: normal !important;
  line-height: 1.2 !important;
}


/* v78.3.40.6: move total savings into cart summary and widen quantity field */
.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: 180px !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 {
  width: 38px !important;
  min-width: 38px !important;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__qtycol .wc-block-components-quantity-selector__input {
  width: 72px !important;
  min-width: 72px !important;
  margin: 0 8px !important;
}

.woocommerce-cart .rsmart-cart-total-savings,
.wc-block-cart .rsmart-cart-total-savings,
.wp-block-woocommerce-cart .rsmart-cart-total-savings,
.woocommerce-cart .cart-collaterals .cart_totals .rsmart-cart-total-savings {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  margin: 14px 0 18px !important;
  padding: 12px 14px !important;
  border: 1px solid #8fa0b6 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #4c5c70 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-cart .rsmart-cart-total-savings__label,
.wc-block-cart .rsmart-cart-total-savings__label,
.wp-block-woocommerce-cart .rsmart-cart-total-savings__label {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  color: #5d6d81 !important;
}

.woocommerce-cart .rsmart-cart-total-savings__amount,
.wc-block-cart .rsmart-cart-total-savings__amount,
.wp-block-woocommerce-cart .rsmart-cart-total-savings__amount {
  display: block !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  color: #1f2937 !important;
  white-space: nowrap !important;
}

@media (max-width: 1024px) {
  .woocommerce-cart .rsmart-cart-total-savings__amount,
  .wc-block-cart .rsmart-cart-total-savings__amount,
  .wp-block-woocommerce-cart .rsmart-cart-total-savings__amount {
    font-size: 24px !important;
  }
}

/* v78.3.40.17: product 3D model viewer */
.single-product .b2b-product-gallery-side-icons .rsmart-3d-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0 !important;
  color: #8f1e24 !important;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.single-product .b2b-product-gallery-side-icons .rsmart-3d-trigger:hover {
  border-color: #cf202c !important;
  background: #fff7f7 !important;
  color: #cf202c !important;
  transform: translateY(-1px);
}
.single-product .rsmart-3d-trigger__icon {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.single-product .rsmart-3d-trigger__text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
}
body.rsmart-3d-open { overflow: hidden !important; }
.rsmart-3d-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.rsmart-3d-modal.is-open { display: flex; }
.rsmart-3d-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(12,18,28,.72);
  backdrop-filter: blur(8px);
  cursor: default;
}
.rsmart-3d-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, 96vw);
  height: min(820px, 92vh);
  overflow: hidden;
  border: 1px solid #dce2ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.rsmart-3d-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid #e2e7ee;
  background: #fff;
}
.rsmart-3d-modal__eyebrow {
  margin-bottom: 3px;
  color: #cf202c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.rsmart-3d-modal__title {
  color: #172334;
  font-size: 16px;
  font-weight: 800;
}
.rsmart-3d-modal__tools {
  display: flex;
  align-items: center;
  gap: 7px;
}
.rsmart-3d-modal__tools button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d8dee7;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
.rsmart-3d-modal__tools button:hover,
.rsmart-3d-modal__tools button.is-active {
  border-color: #cf202c;
  color: #cf202c;
  background: #fff6f6;
}
.rsmart-3d-modal__tools .rsmart-3d-modal__close {
  margin-left: 5px;
  color: #cf202c;
  font-size: 25px;
}
.rsmart-3d-modal__viewer {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.98) 0, rgba(247,249,252,.98) 54%, rgba(238,242,247,.98) 100%);
}
.rsmart-3d-modal__viewer model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  --poster-color: transparent;
  background: transparent;
}
.rsmart-3d-modal__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid rgba(211,219,229,.92);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
html[data-theme="dark"] .rsmart-3d-modal__panel,
html[data-theme="dark"] .rsmart-3d-modal__header { background: #171b22; border-color: #303744; }
html[data-theme="dark"] .rsmart-3d-modal__title { color: #f4f6f8; }
html[data-theme="dark"] .rsmart-3d-modal__viewer { background: radial-gradient(circle at 50% 45%, #2a3039 0, #1b2028 60%, #15191f 100%); }
html[data-theme="dark"] .rsmart-3d-modal__tools button { background: #202630; border-color: #3a4350; color: #e5e7eb; }
html[data-theme="dark"] .rsmart-3d-modal__hint { background: rgba(26,31,39,.9); border-color: #3a4350; color: #c5ccd6; }
@media (max-width: 700px) {
  .rsmart-3d-modal { padding: 10px; }
  .rsmart-3d-modal__panel { width: 100%; height: 92vh; border-radius: 14px; }
  .rsmart-3d-modal__header { padding: 11px 10px 11px 14px; }
  .rsmart-3d-modal__title { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rsmart-3d-modal__tools { gap: 4px; }
  .rsmart-3d-modal__tools button { width: 34px; height: 34px; }
  .rsmart-3d-modal__hint { bottom: 8px; font-size: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
}


/* v78.3.40.18: isolate 3D modal from product page stacking contexts */
body > .rsmart-3d-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  isolation: isolate !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
}
body > .rsmart-3d-modal,
body > .rsmart-3d-modal * {
  box-sizing: border-box;
}
body > .rsmart-3d-modal .rsmart-3d-modal__backdrop {
  z-index: 0 !important;
}
body > .rsmart-3d-modal .rsmart-3d-modal__panel {
  z-index: 2 !important;
  transform: none !important;
}
body > .rsmart-3d-modal .rsmart-3d-modal__viewer {
  overflow: hidden !important;
  min-height: 420px !important;
}
body > .rsmart-3d-modal model-viewer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  z-index: 1 !important;
}
.rsmart-3d-status {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(520px, calc(100% - 40px));
  padding: 12px 16px;
  border: 1px solid #d8dee7;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.rsmart-3d-status.is-hidden { display: none !important; }
.rsmart-3d-status.is-error {
  border-color: #efb7bc;
  background: #fff6f6;
  color: #b4232d;
}
html[data-theme="dark"] .rsmart-3d-status {
  background: rgba(27,32,40,.94);
  border-color: #3a4350;
  color: #c5ccd6;
}
html[data-theme="dark"] .rsmart-3d-status.is-error {
  background: #2c1d20;
  border-color: #6a343a;
  color: #ffadb5;
}


/* v78.3.40.19: reliable SVG icons for 3D viewer controls */
.rsmart-3d-modal__tools button svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none !important;
}
.rsmart-3d-modal__tools .rsmart-3d-modal__close svg { width: 17px !important; height: 17px !important; }


/* v78.3.40.20: explicit visible colors for 3D viewer SVG controls */
.rsmart-3d-modal__tools button {
  color: #253244 !important;
}
.rsmart-3d-modal__tools button svg,
.rsmart-3d-modal__tools button svg path {
  stroke: #253244 !important;
}
.rsmart-3d-modal__tools button:hover,
.rsmart-3d-modal__tools button.is-active,
.rsmart-3d-modal__tools .rsmart-3d-modal__close {
  color: #cf202b !important;
}
.rsmart-3d-modal__tools button:hover svg,
.rsmart-3d-modal__tools button.is-active svg,
.rsmart-3d-modal__tools .rsmart-3d-modal__close svg,
.rsmart-3d-modal__tools button:hover svg path,
.rsmart-3d-modal__tools button.is-active svg path,
.rsmart-3d-modal__tools .rsmart-3d-modal__close svg path {
  stroke: #cf202b !important;
}
html[data-theme="dark"] .rsmart-3d-modal__tools button svg,
html[data-theme="dark"] .rsmart-3d-modal__tools button svg path {
  stroke: #e6ebf2 !important;
}
html[data-theme="dark"] .rsmart-3d-modal__tools button:hover svg,
html[data-theme="dark"] .rsmart-3d-modal__tools button.is-active svg,
html[data-theme="dark"] .rsmart-3d-modal__tools .rsmart-3d-modal__close svg,
html[data-theme="dark"] .rsmart-3d-modal__tools button:hover svg path,
html[data-theme="dark"] .rsmart-3d-modal__tools button.is-active svg path,
html[data-theme="dark"] .rsmart-3d-modal__tools .rsmart-3d-modal__close svg path {
  stroke: #ff6670 !important;
}


/* v78.3.40.22: 3D button as last gallery thumbnail; stable backdrop; robust loading state */
.single-product .rsmart-3d-gallery-thumb {
  display: none;
}
.single-product .b2b-gallery-thumbs .rsmart-3d-gallery-thumb.is-mounted {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  padding: 5px !important;
  margin: 0 !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  border: 1px solid #d8dee7 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #c61f2a !important;
  box-shadow: none !important;
  cursor: pointer !important;
  overflow: hidden !important;
  line-height: 1 !important;
}
.single-product .b2b-gallery-thumbs .rsmart-3d-gallery-thumb:hover,
.single-product .b2b-gallery-thumbs .rsmart-3d-gallery-thumb:focus-visible {
  border-color: #cf202c !important;
  background: #fff7f7 !important;
  color: #cf202c !important;
  transform: none !important;
}
.single-product .b2b-gallery-thumbs .rsmart-3d-gallery-thumb .rsmart-3d-trigger__icon {
  width: 28px !important;
  height: 28px !important;
}
.single-product .b2b-gallery-thumbs .rsmart-3d-gallery-thumb .rsmart-3d-trigger__text {
  font-size: 9px !important;
  font-weight: 800 !important;
}

/* Global button-hover rules must never recolor the full-screen backdrop. */
body > .rsmart-3d-modal .rsmart-3d-modal__backdrop,
body > .rsmart-3d-modal .rsmart-3d-modal__backdrop:hover,
body > .rsmart-3d-modal .rsmart-3d-modal__backdrop:focus,
body > .rsmart-3d-modal .rsmart-3d-modal__backdrop:active {
  background: rgba(12,18,28,.72) !important;
  background-color: rgba(12,18,28,.72) !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  outline: 0 !important;
}


/* v78.3.40.25: interactive LED controls for product 3D viewer */
.rsmart-3d-led-panel {
  position: absolute !important;
  left: 50% !important;
  bottom: 50px !important;
  transform: translateX(-50%) !important;
  z-index: 8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 7px !important;
  border: 1px solid #d7dde5 !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}
.rsmart-3d-led-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  border: 1px solid #d7dde5 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #253247 !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease !important;
}
.rsmart-3d-led-btn:hover:not(:disabled) { border-color: #ef3b45 !important; }
.rsmart-3d-led-btn.is-on {
  border-color: #ef3b45 !important;
  background: #fff5f5 !important;
  color: #c91d28 !important;
}
.rsmart-3d-led-btn:disabled {
  opacity: .35 !important;
  cursor: default !important;
}
.rsmart-3d-led-dot {
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  flex: 0 0 10px !important;
  border: 1px solid rgba(0,0,0,.22) !important;
  border-radius: 50% !important;
  background: #c8cdd4 !important;
}
.rsmart-3d-led-btn.is-on .rsmart-3d-led-dot--yellow {
  background: #ffd43b !important;
  box-shadow: 0 0 8px rgba(255,212,59,.85) !important;
}
.rsmart-3d-led-btn.is-on .rsmart-3d-led-dot--red {
  background: #ff3946 !important;
  box-shadow: 0 0 8px rgba(255,57,70,.85) !important;
}
html[data-theme="dark"] .rsmart-3d-led-panel { background: rgba(26,31,39,.94) !important; border-color: #3a4350 !important; }
html[data-theme="dark"] .rsmart-3d-led-btn { background: #202630 !important; border-color: #3a4350 !important; color: #e5e7eb !important; }
html[data-theme="dark"] .rsmart-3d-led-btn.is-on { border-color: #ef3b45 !important; background: #332126 !important; color: #ff7a82 !important; }
@media (max-width: 680px) {
  .rsmart-3d-led-panel { bottom: 46px !important; gap: 4px !important; padding: 5px !important; max-width: calc(100% - 16px) !important; }
  .rsmart-3d-led-btn { padding: 6px 7px !important; font-size: 10px !important; }
}


/* v78.3.40.27: isolated LED controls inside the 3D modal header */
.rsmart-3d-modal__header {
  gap: 18px !important;
}
.rsmart-3d-modal__toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-left: auto !important;
  min-width: 0 !important;
}
.rsmart-3d-led-tools {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.rsmart-3d-led-tools:empty { display: none !important; }
.rsmart-3d-led-tools .rsmart-3d-led-btn--top {
  display: inline-flex !important;
  position: static !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 94px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid #d7dde5 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: 1 !important;
}
.rsmart-3d-led-tools .rsmart-3d-led-btn--top:disabled {
  opacity: .4 !important;
  cursor: not-allowed !important;
}
.rsmart-3d-led-tools .rsmart-3d-led-btn--top.is-on {
  border-color: #ef3b45 !important;
  background: #fff3f4 !important;
  color: #c61f2a !important;
}
.rsmart-3d-led-tools .rsmart-3d-led-dot {
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  flex: 0 0 9px !important;
}
.rsmart-3d-modal__toolbar .rsmart-3d-modal__tools {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}
html[data-theme="dark"] .rsmart-3d-led-tools .rsmart-3d-led-btn--top {
  background: #202630 !important;
  border-color: #3a4350 !important;
  color: #e5e7eb !important;
}
html[data-theme="dark"] .rsmart-3d-led-tools .rsmart-3d-led-btn--top.is-on {
  border-color: #ef3b45 !important;
  background: #332126 !important;
  color: #ff7a82 !important;
}
@media (max-width: 980px) {
  .rsmart-3d-modal__toolbar { gap: 6px !important; }
  .rsmart-3d-led-tools .rsmart-3d-led-btn--top { min-width: 36px !important; width: 36px !important; padding: 0 !important; }
  .rsmart-3d-led-tools .rsmart-3d-led-btn--top span { display: none !important; }
}


/* v78.3.40.29: 3D viewer workshop background + dimmer lighting support + tighter top controls */
.rsmart-3d-modal__header > div:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.rsmart-3d-modal__title {
  max-width: 100% !important;
  line-height: 1.2 !important;
}
.rsmart-3d-modal__toolbar {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-left: auto !important;
}
.rsmart-3d-led-tools {
  flex: 0 0 auto !important;
}
.rsmart-3d-modal__viewer {
  background: linear-gradient(180deg, rgba(245,248,252,.96) 0%, rgba(236,240,246,.96) 100%) !important;
  isolation: isolate !important;
}
.rsmart-3d-modal__viewer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.26) 100%),
    url('../rsmart-3d-workshop-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: .26;
  filter: saturate(.82) brightness(.92) blur(1px);
  transform: scale(1.03);
  pointer-events: none;
}
.rsmart-3d-modal__viewer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.16) 0, rgba(255,255,255,.08) 28%, rgba(230,235,242,.22) 62%, rgba(222,228,236,.34) 100%),
    linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(232,237,244,.16) 100%);
  pointer-events: none;
}
body > .rsmart-3d-modal model-viewer {
  z-index: 1 !important;
}
.rsmart-3d-status,
.rsmart-3d-modal__hint {
  z-index: 3 !important;
}
html[data-theme="dark"] .rsmart-3d-modal__viewer::before {
  opacity: .18;
  filter: saturate(.74) brightness(.55) blur(1px);
}
html[data-theme="dark"] .rsmart-3d-modal__viewer::after {
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 22%, rgba(17,22,29,.24) 64%, rgba(15,19,25,.52) 100%),
    linear-gradient(180deg, rgba(13,17,22,.20) 0%, rgba(13,17,22,.30) 100%);
}
@media (max-width: 980px) {
  .rsmart-3d-modal__header {
    align-items: flex-start !important;
  }
  .rsmart-3d-modal__toolbar {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
  }
}


/* v78.3.40.30: pseudo-volumetric LED glow inside 3D viewer */
.rsmart-3d-modal__viewer {
  overflow: hidden !important;
}
.rsmart-3d-led-glows {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
}
.rsmart-3d-led-glow {
  position: absolute !important;
  width: 86px !important;
  height: 86px !important;
  margin-left: -43px !important;
  margin-top: -43px !important;
  border-radius: 50% !important;
  opacity: 0 !important;
  transform: scale(.68) translateZ(0) !important;
  filter: blur(0.2px) !important;
  transition: opacity .18s ease, transform .22s ease !important;
  mix-blend-mode: screen !important;
}
.rsmart-3d-led-glow::before,
.rsmart-3d-led-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.rsmart-3d-led-glow::before {
  inset: 14px;
  opacity: .92;
  filter: blur(8px);
}
.rsmart-3d-led-glow::after {
  inset: -10px;
  opacity: .7;
  filter: blur(20px);
}
.rsmart-3d-led-glow--state::before,
.rsmart-3d-led-glow--work::before {
  background: radial-gradient(circle, rgba(255,244,175,.98) 0%, rgba(255,226,74,.88) 24%, rgba(255,202,38,.52) 52%, rgba(255,190,20,.10) 78%, rgba(255,190,20,0) 100%);
  box-shadow: 0 0 18px rgba(255,214,70,.62), 0 0 34px rgba(255,214,70,.24);
}
.rsmart-3d-led-glow--state::after,
.rsmart-3d-led-glow--work::after {
  background: radial-gradient(circle, rgba(255,234,102,.78) 0%, rgba(255,217,64,.42) 34%, rgba(255,205,0,.12) 65%, rgba(255,205,0,0) 100%);
}
.rsmart-3d-led-glow--overheat::before {
  background: radial-gradient(circle, rgba(255,188,188,.98) 0%, rgba(255,68,68,.90) 24%, rgba(255,45,45,.58) 52%, rgba(255,24,24,.12) 80%, rgba(255,24,24,0) 100%);
  box-shadow: 0 0 18px rgba(255,72,72,.68), 0 0 34px rgba(255,72,72,.26);
}
.rsmart-3d-led-glow--overheat::after {
  background: radial-gradient(circle, rgba(255,96,96,.82) 0%, rgba(255,60,60,.46) 34%, rgba(255,45,45,.14) 65%, rgba(255,45,45,0) 100%);
}
.rsmart-3d-led-glow.is-on {
  opacity: 1 !important;
  transform: scale(1) translateZ(0) !important;
}
body > .rsmart-3d-modal model-viewer {
  filter: brightness(.93) saturate(.96) contrast(1.02) !important;
}
.rsmart-3d-modal__viewer.is-model-ready .rsmart-3d-status {
  opacity: 0 !important;
  visibility: hidden !important;
}
html[data-theme="dark"] .rsmart-3d-led-glow { mix-blend-mode: screen !important; }
@media (max-width: 980px) {
  .rsmart-3d-led-glow {
    width: 70px !important;
    height: 70px !important;
    margin-left: -35px !important;
    margin-top: -35px !important;
  }
}


/* v78.3.40.31: LED glow anchored to real 3D model coordinates via model-viewer hotspots */
.rsmart-3d-hotspot {
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
  overflow: visible !important;
}
.rsmart-3d-hotspot-glow {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 68px !important;
  height: 68px !important;
  margin-left: -34px !important;
  margin-top: -34px !important;
  border-radius: 50% !important;
  opacity: 0 !important;
  transform: scale(.55) translateZ(0) !important;
  transition: opacity .16s ease, transform .20s ease !important;
  mix-blend-mode: screen !important;
  pointer-events: none !important;
}
.rsmart-3d-hotspot-glow::before,
.rsmart-3d-hotspot-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.rsmart-3d-hotspot-glow::before {
  inset: 13px;
  filter: blur(7px);
}
.rsmart-3d-hotspot-glow::after {
  inset: -8px;
  filter: blur(18px);
  opacity: .72;
}
.rsmart-3d-hotspot--state .rsmart-3d-hotspot-glow::before,
.rsmart-3d-hotspot--work .rsmart-3d-hotspot-glow::before {
  background: radial-gradient(circle, rgba(255,248,188,.98) 0%, rgba(255,226,74,.90) 28%, rgba(255,201,27,.50) 58%, rgba(255,190,20,0) 100%);
  box-shadow: 0 0 16px rgba(255,214,70,.68), 0 0 28px rgba(255,214,70,.30);
}
.rsmart-3d-hotspot--state .rsmart-3d-hotspot-glow::after,
.rsmart-3d-hotspot--work .rsmart-3d-hotspot-glow::after {
  background: radial-gradient(circle, rgba(255,232,94,.72) 0%, rgba(255,211,46,.34) 42%, rgba(255,205,0,0) 100%);
}
.rsmart-3d-hotspot--overheat .rsmart-3d-hotspot-glow::before {
  background: radial-gradient(circle, rgba(255,210,210,.98) 0%, rgba(255,75,75,.92) 28%, rgba(255,42,42,.54) 58%, rgba(255,24,24,0) 100%);
  box-shadow: 0 0 16px rgba(255,72,72,.72), 0 0 28px rgba(255,72,72,.32);
}
.rsmart-3d-hotspot--overheat .rsmart-3d-hotspot-glow::after {
  background: radial-gradient(circle, rgba(255,96,96,.76) 0%, rgba(255,55,55,.38) 42%, rgba(255,45,45,0) 100%);
}
.rsmart-3d-hotspot.is-on .rsmart-3d-hotspot-glow {
  opacity: 1 !important;
  transform: scale(1) translateZ(0) !important;
}
/* Disable the former fixed screen-space glow layer if an old cached node ever exists. */
.rsmart-3d-led-glows { display: none !important; }


/* v78.3.40.32: LED controls inside viewer + front-face-only glow */
.rsmart-3d-led-tools--viewer {
  position: absolute !important;
  z-index: 10 !important;
  top: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px !important;
  margin: 0 !important;
  border: 1px solid rgba(215,221,229,.90) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 16px rgba(24,35,52,.06) !important;
  pointer-events: auto !important;
}
.rsmart-3d-led-tools--viewer:empty { display: none !important; }
.rsmart-3d-led-tools--viewer .rsmart-3d-led-btn--top {
  min-width: 94px !important;
  height: 36px !important;
  min-height: 36px !important;
}
.rsmart-3d-hotspot {
  --min-hotspot-opacity: 0 !important;
  --max-hotspot-opacity: 1 !important;
}
.rsmart-3d-hotspot:not([data-visible]) .rsmart-3d-hotspot-glow {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(.35) translateZ(0) !important;
}
.rsmart-3d-hotspot[data-visible].is-on .rsmart-3d-hotspot-glow {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) translateZ(0) !important;
}
/* Prevent old generic rule from forcing a rear-facing glow visible. */
.rsmart-3d-hotspot.is-on:not([data-visible]) .rsmart-3d-hotspot-glow {
  opacity: 0 !important;
  visibility: hidden !important;
}
html[data-theme="dark"] .rsmart-3d-led-tools--viewer {
  background: rgba(26,31,39,.78) !important;
  border-color: rgba(58,67,80,.90) !important;
}
@media (max-width: 700px) {
  .rsmart-3d-led-tools--viewer {
    top: 9px !important;
    gap: 4px !important;
    padding: 5px !important;
    max-width: calc(100% - 18px) !important;
  }
  .rsmart-3d-led-tools--viewer .rsmart-3d-led-btn--top {
    min-width: 36px !important;
    width: 36px !important;
    padding: 0 !important;
  }
  .rsmart-3d-led-tools--viewer .rsmart-3d-led-btn--top span { display: none !important; }
}


/* v78.3.40.34: configurable 3D demo sequences */
.rsmart-3d-viewer-controls {
  position: absolute !important;
  z-index: 12 !important;
  top: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
  max-width: calc(100% - 24px) !important;
  pointer-events: none !important;
}
.rsmart-3d-viewer-controls .rsmart-3d-led-tools--viewer {
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  pointer-events: auto !important;
}
.rsmart-3d-demo-tools {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 5px !important;
  border: 1px solid rgba(215,221,229,.88) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,.80) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  pointer-events: auto !important;
}
.rsmart-3d-demo-btn {
  appearance: none !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid #d7dde5 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #253247 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.rsmart-3d-demo-btn:hover,
.rsmart-3d-demo-btn.is-running {
  border-color: #cf202c !important;
  background: #fff5f5 !important;
  color: #c61f2a !important;
}
.rsmart-3d-demo-reset {
  border-color: #9da7b5 !important;
}
html[data-theme="dark"] .rsmart-3d-demo-tools {
  background: rgba(26,31,39,.78) !important;
  border-color: rgba(58,67,80,.90) !important;
}
html[data-theme="dark"] .rsmart-3d-demo-btn {
  background: #202630 !important;
  border-color: #3a4350 !important;
  color: #e5e7eb !important;
}
@media (max-width: 700px) {
  .rsmart-3d-viewer-controls { top: 9px !important; gap: 5px !important; }
  .rsmart-3d-demo-btn { min-height: 31px !important; padding: 0 8px !important; font-size: 10px !important; }
}

/* WooCommerce product admin demo builder */
.rsmart-demo-card {
  margin: 8px 12px 14px 162px;
  padding: 12px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fff;
}
.rsmart-demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.rsmart-demo-card-head label { font-weight: 600; }
.rsmart-demo-card-head input { min-width: 280px; margin-left: 8px; }
.rsmart-demo-step {
  display: grid;
  grid-template-columns: 105px repeat(3,minmax(125px,1fr)) auto;
  gap: 8px;
  align-items: end;
  margin: 7px 0;
  padding: 9px;
  background: #f6f7f7;
  border-radius: 6px;
}
.rsmart-demo-step label { display:block; margin:0 0 4px; font-size:11px; font-weight:600; color:#50575e; }
.rsmart-demo-step input,
.rsmart-demo-step select { width:100%; }
.rsmart-demo-remove-step { align-self:center; white-space:nowrap; }
@media (max-width: 1100px) {
  .rsmart-demo-card { margin-left: 12px; }
  .rsmart-demo-step { grid-template-columns: repeat(2,minmax(150px,1fr)); }
}


/* v78.3.40.35: clean WooCommerce admin UI for 3D demo sequences */
#rsmart_3d_model_product_data .rsmart-3d-demo-admin {
  padding: 8px 12px 16px !important;
}
#rsmart_3d_model_product_data .rsmart-3d-demo-admin > p {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#rsmart_3d_model_product_data .rsmart-3d-default-leds {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin: 10px 0 18px !important;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #dcdcde !important;
  border-radius: 8px !important;
}
#rsmart_3d_model_product_data .rsmart-3d-default-leds > label:first-child {
  float: none !important;
  width: auto !important;
  margin: 0 8px 0 0 !important;
  font-weight: 600 !important;
}
#rsmart_3d_model_product_data .rsmart-3d-default-leds label:not(:first-child) {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
#rsmart_3d_demo_builder {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin: 10px 0 14px !important;
}
.rsmart-demo-card {
  border: 1px solid #dcdcde !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
}
.rsmart-demo-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  background: #f6f7f7 !important;
  border-bottom: 1px solid #dcdcde !important;
}
.rsmart-demo-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.rsmart-demo-card-kicker {
  flex: 0 0 auto !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #50575e !important;
}
.rsmart-demo-label {
  width: min(420px, 100%) !important;
  max-width: 420px !important;
  height: 34px !important;
  margin: 0 !important;
}
.rsmart-demo-table-head,
.rsmart-demo-step {
  display: grid !important;
  grid-template-columns: 120px minmax(140px,1fr) minmax(140px,1fr) minmax(140px,1fr) 72px !important;
  column-gap: 10px !important;
  align-items: center !important;
}
.rsmart-demo-table-head {
  padding: 10px 14px !important;
  background: #fcfcfc !important;
  border-bottom: 1px solid #e2e4e7 !important;
  color: #50575e !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.rsmart-demo-step {
  padding: 10px 14px !important;
  border-bottom: 1px solid #f0f0f1 !important;
}
.rsmart-demo-step:last-child {
  border-bottom: 0 !important;
}
.rsmart-demo-cell {
  min-width: 0 !important;
}
.rsmart-demo-step input[type="number"],
.rsmart-demo-step select {
  width: 100% !important;
  max-width: none !important;
  min-height: 34px !important;
  margin: 0 !important;
}
.rsmart-demo-step-actions {
  text-align: right !important;
}
.rsmart-demo-card-footer {
  padding: 12px 14px !important;
  border-top: 1px solid #e2e4e7 !important;
  background: #fcfcfc !important;
}
.rsmart-demo-mobile-label {
  display: none !important;
}
#rsmart_3d_add_demo {
  margin-top: 2px !important;
}
@media (max-width: 1050px) {
  .rsmart-demo-table-head {
    display: none !important;
  }
  .rsmart-demo-step {
    grid-template-columns: 1fr 1fr !important;
    row-gap: 10px !important;
  }
  .rsmart-demo-step-actions {
    grid-column: 1 / -1 !important;
    text-align: left !important;
  }
  .rsmart-demo-mobile-label {
    display: block !important;
    margin-bottom: 4px !important;
    color: #50575e !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
}
@media (max-width: 720px) {
  .rsmart-demo-card-head,
  .rsmart-demo-title-wrap {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  .rsmart-demo-label {
    width: 100% !important;
    max-width: none !important;
  }
  .rsmart-demo-step {
    grid-template-columns: 1fr !important;
  }
}


/* v78.3.40.36: side vertical viewer controls + corrected admin layout */
#rsmart_3d_model_product_data .rsmart-3d-demo-admin .form-field,
#rsmart_3d_model_product_data .rsmart-3d-demo-admin .form-field label,
#rsmart_3d_model_product_data .rsmart-3d-demo-admin p,
#rsmart_3d_model_product_data .rsmart-3d-demo-admin .description {
  float: none !important;
}
#rsmart_3d_model_product_data .rsmart-3d-demo-admin .form-field {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
}
#rsmart_3d_model_product_data .rsmart-3d-default-leds {
  display: grid !important;
  grid-template-columns: 180px repeat(3, minmax(120px, max-content)) !important;
  align-items: center !important;
  gap: 10px 14px !important;
}
#rsmart_3d_model_product_data .rsmart-3d-default-leds > label:first-child {
  font-weight: 700 !important;
  margin-right: 0 !important;
}
#rsmart_3d_model_product_data .rsmart-3d-default-leds label input[type="checkbox"] {
  margin: 0 6px 0 0 !important;
}
#rsmart_3d_model_product_data #rsmart_3d_demo_builder {
  margin: 12px 0 16px !important;
}
#rsmart_3d_model_product_data .rsmart-demo-card {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
#rsmart_3d_model_product_data .rsmart-demo-card-head {
  margin: 0 !important;
  padding: 14px 16px !important;
}
#rsmart_3d_model_product_data .rsmart-demo-title-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
#rsmart_3d_model_product_data .rsmart-demo-label {
  width: 100% !important;
  max-width: 480px !important;
  min-height: 36px !important;
}
#rsmart_3d_model_product_data .rsmart-demo-table-head,
#rsmart_3d_model_product_data .rsmart-demo-step {
  display: grid !important;
  grid-template-columns: 110px repeat(3, minmax(150px,1fr)) 92px !important;
  gap: 10px !important;
  align-items: center !important;
}
#rsmart_3d_model_product_data .rsmart-demo-table-head {
  padding: 10px 16px !important;
}
#rsmart_3d_model_product_data .rsmart-demo-step {
  margin: 0 !important;
  padding: 10px 16px !important;
  background: #fff !important;
  border-radius: 0 !important;
}
#rsmart_3d_model_product_data .rsmart-demo-step .rsmart-demo-mobile-label {
  display: none !important;
}
#rsmart_3d_model_product_data .rsmart-demo-step input,
#rsmart_3d_model_product_data .rsmart-demo-step select {
  width: 100% !important;
  max-width: none !important;
}
#rsmart_3d_model_product_data .rsmart-demo-card-footer {
  padding: 12px 16px !important;
}
@media (max-width: 1100px) {
  #rsmart_3d_model_product_data .rsmart-3d-default-leds {
    grid-template-columns: 1fr 1fr !important;
  }
  #rsmart_3d_model_product_data .rsmart-demo-table-head { display: none !important; }
  #rsmart_3d_model_product_data .rsmart-demo-step {
    grid-template-columns: 1fr 1fr !important;
  }
  #rsmart_3d_model_product_data .rsmart-demo-step .rsmart-demo-mobile-label {
    display: block !important;
    margin: 0 0 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #50575e !important;
  }
  #rsmart_3d_model_product_data .rsmart-demo-step-actions {
    grid-column: 1 / -1 !important;
    text-align: left !important;
  }
}

.rsmart-3d-viewer-controls--side {
  top: 50% !important;
  left: auto !important;
  right: 20px !important;
  transform: translateY(-50%) !important;
  align-items: stretch !important;
  width: min(240px, calc(100% - 40px)) !important;
  max-width: 240px !important;
  gap: 10px !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-led-tools--viewer,
.rsmart-3d-viewer-controls--side .rsmart-3d-demo-tools {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  justify-content: stretch !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-led-tools--viewer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 10px !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-demo-tools {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 10px !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-led-btn--top,
.rsmart-3d-viewer-controls--side .rsmart-3d-demo-btn {
  width: 100% !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
  padding: 0 12px !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-demo-tools:empty {
  display: none !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-demo-tools--reset {
  padding-top: 0 !important;
}
@media (max-width: 980px) {
  .rsmart-3d-viewer-controls--side {
    top: 12px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
  .rsmart-3d-viewer-controls--side .rsmart-3d-led-tools--viewer,
  .rsmart-3d-viewer-controls--side .rsmart-3d-demo-tools {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  .rsmart-3d-viewer-controls--side .rsmart-3d-led-btn--top,
  .rsmart-3d-viewer-controls--side .rsmart-3d-demo-btn {
    width: auto !important;
    flex: 1 1 calc(50% - 6px) !important;
  }
}

/* v78.3.40.37: fully dynamic 3D LEDs */
.rsmart-3d-led-btn .rsmart-3d-led-dot {
  background: #c8cdd4 !important;
}
.rsmart-3d-led-btn.is-on .rsmart-3d-led-dot {
  background: var(--rsmart-led-color, #ffd43b) !important;
  box-shadow: 0 0 8px var(--rsmart-led-color, #ffd43b) !important;
}
.rsmart-3d-hotspot .rsmart-3d-hotspot-glow::before {
  background: radial-gradient(circle,
    rgba(255,255,255,.96) 0%,
    color-mix(in srgb, var(--rsmart-led-color, #ffd43b) 92%, white 8%) 24%,
    color-mix(in srgb, var(--rsmart-led-color, #ffd43b) 72%, transparent) 58%,
    transparent 100%) !important;
  box-shadow: 0 0 16px var(--rsmart-led-color, #ffd43b), 0 0 30px color-mix(in srgb, var(--rsmart-led-color, #ffd43b) 42%, transparent) !important;
}
.rsmart-3d-hotspot .rsmart-3d-hotspot-glow::after {
  background: radial-gradient(circle,
    color-mix(in srgb, var(--rsmart-led-color, #ffd43b) 68%, white 32%) 0%,
    color-mix(in srgb, var(--rsmart-led-color, #ffd43b) 42%, transparent) 42%,
    transparent 100%) !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-led-btn--top span {
  display: inline !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-led-btn--top {
  color: #253247 !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-led-btn--top.is-on {
  border-color: var(--rsmart-led-color, #ef3b45) !important;
  background: color-mix(in srgb, var(--rsmart-led-color, #ffd43b) 10%, white 90%) !important;
  color: #253247 !important;
}


/* v78.3.40.38: align reset button with right-side control cards */
.rsmart-3d-viewer-controls--side .rsmart-3d-demo-tools--reset {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.rsmart-3d-viewer-controls--side .rsmart-3d-demo-tools--reset .rsmart-3d-demo-reset {
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}
html[data-theme="dark"] .rsmart-3d-viewer-controls--side .rsmart-3d-demo-tools--reset {
  background: transparent !important;
  border-color: transparent !important;
}
