/* RC.7: purchase internals only; row/columns/typography remain Divi Theme Builder concerns. */
body.single-product .konteners-pdp--native-extras{
 width:100%;max-width:none;margin:12px 0 0;padding:0;min-width:0;
}
body.single-product form.cart{max-width:100%;min-width:0}
body.single-product form.cart .single_add_to_cart_button{min-height:44px;line-height:1.4}
body.single-product form.cart .quantity{margin-bottom:10px}
body.single-product .konteners-pdp--native-extras .konteners-pdp__shipping{margin-top:18px}
body.single-product .konteners-pdp--native-extras .konteners-pdp__quote-open{min-height:44px}
body.single-product .konteners-wc-price{min-width:0;max-width:100%}
@media(max-width:767px){
 body.single-product form.cart .single_add_to_cart_button{max-width:100%;white-space:normal}
 body.single-product .konteners-pdp--native-extras{margin-top:12px}
}

/* RC.8 — grouping of real Woo purchasing controls, not a new cart form. */
body.single-product :is(.et_pb_wc_add_to_cart,form.cart) .variations{margin-bottom:18px;}
body.single-product :is(.et_pb_wc_add_to_cart,form.cart) .variations td{padding-top:8px;padding-bottom:8px;}
body.single-product :is(.et_pb_wc_add_to_cart,form.cart) .single_variation_wrap{margin-top:14px;}
body.single-product .konteners-pdp--native-extras .konteners-pdp__quote-trigger{margin-top:12px;min-height:44px;}
body.single-product .konteners-pdp--native-extras .konteners-pdp__shipping{margin-top:20px;}

/* RC.9: placement target for the single Woo-hook/fallback extras instance. */
body.single-product .konteners-pdp-extras-slot{width:100%;min-width:0}
body.single-product .konteners-pdp-extras-slot .konteners-pdp--native-extras{margin-top:12px}
body.single-product .konteners-pdp--native-extras .konteners-pdp__quote-trigger{width:100%;max-width:100%;min-height:46px}
@media(min-width:768px){body.single-product .konteners-pdp--native-extras .konteners-pdp__quote-trigger{max-width:300px}}
@media(max-width:767px){body.single-product .konteners-pdp--mobile-buy{position:fixed;bottom:0;left:0;right:0;z-index:1001;width:100%;max-width:100%;margin:0;padding:0;pointer-events:none}body.single-product .konteners-pdp--mobile-buy [data-scroll-purchase]{width:100%;pointer-events:auto;padding-bottom:calc(13px + env(safe-area-inset-bottom))}}

body.single-product .konteners-pdp__mobile-buy[hidden],
body.single-product .konteners-pdp--mobile-buy [data-scroll-purchase][hidden]{display:none!important}

/* RC.10.13: price + native Woo quantity now share a single Golden Master
 * grid wrapper emitted by the two standard quantity hooks. The cart CTA stays
 * in the normal Woo flow; the original RAL swatches remain unchanged. */
/* RC.10.12: only the OUTER spacing after the approved Color Swatches block.
 * Golden Master uses a 10px handoff to the price divider. Do not touch swatch
 * dimensions, gaps, borders, inner picker markup or selection behavior. */
body.single-product .et_pb_wc_add_to_cart form.variations_form:has(.konteners-wc-pricing) .variations {
  margin-bottom: 0;
}
body.single-product .et_pb_wc_add_to_cart form.variations_form:has(.konteners-wc-pricing) .single_variation_wrap {
  margin-top: 12px;
}

/* RC.10.16 - CTA integration inside the native WooCommerce cart form.
 * No opening/closing wrapper across two different Woo hooks. Quote trigger is
 * a direct sibling of Woo's existing submit. Never move or duplicate it.
 * Values from the supplied reference image: #ff671f orange and 6px corners.
 */
body.single-product .et_pb_wc_add_to_cart {
  --konteners-cta-primary: var(--konteners-primary, #082a65);
  --konteners-cta-quote: #ff671f;
}
body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__quote-trigger) {
  display: grid !important;
  grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr);
  column-gap: 10px;
  row-gap: 12px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__quote-trigger) > .konteners-wc-pricing {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
}
body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__quote-trigger) > button.single_add_to_cart_button {
  grid-column: 1;
  grid-row: 2;
}
body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__quote-trigger) > button.konteners-pdp__quote-trigger {
  grid-column: 2;
  grid-row: 2;
}
/* The cart button's styles and Material icon do not depend on the quote row
 * existing: if a renderer skips the quote hook, cart is still styled. */
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button,
body.single-product .et_pb_wc_add_to_cart form.cart button.konteners-pdp__quote-trigger {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 46px !important;
  height: auto !important;
  padding: 11px 14px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .15s ease,border-color .15s ease;
}
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button {
  background: var(--konteners-cta-primary) !important;
  border: 1px solid var(--konteners-cta-primary) !important;
  color: #fff !important;
}
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:not(:disabled):hover {
  background: #184783 !important;
  border-color: #184783 !important;
}
body.single-product .et_pb_wc_add_to_cart form.cart button.konteners-pdp__quote-trigger {
  background: var(--konteners-cta-quote) !important;
  border: 1px solid var(--konteners-cta-quote) !important;
  color: #fff !important;
}
/* Keep the secondary CTA visually stable during hover. In the Divi hero,
 * the white outlined variant is owned by pdp-desktop-2026.scss. */
body.single-product .et_pb_wc_add_to_cart form.cart button.konteners-pdp__quote-trigger:hover {
  background: var(--konteners-cta-quote) !important;
  border-color: var(--konteners-cta-quote) !important;
}
body.single-product .et_pb_wc_add_to_cart form.cart .konteners-pdp-cart-icon,
body.single-product .et_pb_wc_add_to_cart form.cart .konteners-pdp__quote-trigger .material-symbols-rounded {
  display: inline-block !important;
  flex: 0 0 auto;
  font-family: 'Material Symbols Rounded' !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: normal !important;
  letter-spacing: normal !important;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  color: inherit;
}
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:not(.loading)::before {
  content: none !important;
}
body.single-product .et_pb_wc_add_to_cart form.cart button:is(.single_add_to_cart_button,.konteners-pdp__quote-trigger):focus-visible {
  outline: 2px solid #207abf !important;
  outline-offset: 3px;
}
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:disabled {
  background: #8c9dab !important;
  border-color: #8c9dab !important;
}
/* A quote fallback in the explicit extras shortcode stays visually equivalent.
 * It is only visible if no inline quote control can be mounted. */
body.single-product .konteners-pdp--native-extras > .konteners-pdp__quote-trigger {
  background: #ff671f !important;
  border: 1px solid #ff671f !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
body.single-product .konteners-pdp--native-extras > .konteners-pdp__quote-trigger .material-symbols-rounded {
  font-family: 'Material Symbols Rounded' !important;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: normal;
}
@media(max-width:430px) {
  body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__quote-trigger) {
    grid-template-columns: minmax(0,1fr);
  }
  body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__quote-trigger) > button.single_add_to_cart_button {grid-column: 1;grid-row: 2}
  body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__quote-trigger) > button.konteners-pdp__quote-trigger {grid-column: 1;grid-row: 3}
}

/* RC.10.17 — final scoped CTA rules. Divi can use ID-scoped styles on its Woo
 * module, while a standalone quote may be emitted outside form.cart. Both
 * renderers share the exact same approved orange primary-secondary treatment.
 * The PHP trigger also contains an inline !important safeguard for Divi's
 * generated background-color declarations; filter handles hover uniformly. */
body.single-product .et_pb_wc_add_to_cart button.konteners-pdp__quote-trigger[data-open-quote],
body.single-product .konteners-pdp button.konteners-pdp__quote-trigger[data-open-quote] {
  background-color: #ff671f !important;
  background-image: none !important;
  border: 1px solid #ff671f !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  min-height: 46px;
  box-shadow: none !important;
}
body.single-product .et_pb_wc_add_to_cart button.konteners-pdp__quote-trigger[data-open-quote]:hover,
body.single-product .konteners-pdp button.konteners-pdp__quote-trigger[data-open-quote]:hover {
  filter: none !important;
}
body.single-product .et_pb_wc_add_to_cart button.konteners-pdp__quote-trigger[data-open-quote] .material-symbols-rounded,
body.single-product .konteners-pdp button.konteners-pdp__quote-trigger[data-open-quote] .material-symbols-rounded {
  color: #fff !important;
  display: inline-block !important;
  font: normal 400 23px/1 'Material Symbols Rounded' !important;
  font-feature-settings: 'liga' !important;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
  letter-spacing: normal !important;
  opacity: 1 !important;
}
body.single-product .et_pb_wc_add_to_cart form.cart .konteners-pdp-cart-icon {
  font: normal 400 23px/1 'Material Symbols Rounded' !important;
  font-feature-settings: 'liga' !important;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
  letter-spacing: normal !important;
  opacity: 1 !important;
  color: #fff !important;
  position: static !important;
  margin: 0 !important;
  transform: none !important;
}
/* If a Divi re-render produces a cart button before JS attaches the icon,
 * display the identical ligature through ::before. Once JS attaches the real
 * span, the pseudo-icon disappears and cannot duplicate the symbol. */
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:not(.loading):not(:has(.konteners-pdp-cart-icon))::before {
  content: 'shopping_cart' !important;
  font-family: 'Material Symbols Rounded' !important;
  font-size: 23px !important;
  line-height: 1 !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-feature-settings: 'liga' !important;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
  display: inline-block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  color: #fff !important;
  order: -1;
}
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:has(.konteners-pdp-cart-icon)::before {
  content: none !important;
  display: none !important;
}

/* RC.10.21.21 — permanent CE informational banner.
 * Identical static text/icon for every product. No product CE approval, excerpt
 * or attachment condition controls this visual notice.
 */
body.single-product .konteners-pdp__ce-panel {
  display:flex; align-items:center; gap:12px; min-width:0;
  padding:10px 14px; margin:0;
  border:1px solid #dbe4ee; border-radius:8px;
  background:#f5f8fc; color:#263e58;
  font-size:12px; line-height:1.45;
}
body.single-product .konteners-pdp__ce-mark {flex:0 0 auto; max-width:70px; display:flex; align-items:center; justify-content:center}
body.single-product .konteners-pdp__ce-mark svg {width:54px; max-width:100%; height:auto; display:block; color:#000; overflow:visible}
body.single-product .konteners-pdp__ce-copy {min-width:0; flex:1}
body.single-product .konteners-pdp__ce-copy > strong {display:block; font-size:13px; font-weight:700; margin-bottom:3px; color:#072f5c}
body.single-product .konteners-pdp__payment-original p {margin:0 0 3px!important; font-size:inherit!important; color:inherit!important; line-height:inherit!important}
body.single-product .konteners-pdp__payment-original p:last-child {margin-bottom:0!important}
body.single-product .konteners-pdp__ce-static {margin:0; font-size:inherit; line-height:inherit; color:inherit}
body.single-product .konteners-pdp__ce-static b {font-weight:700; color:#263e58}
body.single-product .konteners-pdp__payment-panel {
  display:flex; align-items:flex-start; gap:10px; padding:11px 14px;
  margin:12px 0 0; border:1px solid #dbe4ee;
  border-radius:8px; background:#f5f8fc; color:#40566c;
  font-size:12px; line-height:1.5;
}
body.single-product .konteners-pdp__payment-panel > .material-symbols-rounded,
body.single-product .konteners-pdp__fulfillment-row > .material-symbols-rounded {
  flex:0 0 22px; font-family:'Material Symbols Rounded'!important;
  font-size:22px; font-weight:normal; letter-spacing:normal;
  font-feature-settings:'liga'; font-variation-settings:'FILL' 0,'wght' 350,'GRAD' 0,'opsz' 24;
  line-height:1.15; color:#164d8c;
}
body.single-product .konteners-pdp__payment-content {min-width:0; flex:1}
body.single-product .konteners-pdp__payment-content > strong {display:block; margin-bottom:3px; color:#072f5c; font-size:13px; font-weight:700}
/* Replace the previous two-column label/value rows inside the logistics box. */
body.single-product .konteners-pdp .konteners-pdp__fulfillment {
  width:100%; margin:0; padding:2px 14px;
  border:1px solid #dbe4ee; border-radius:8px; background:#fff;
  box-shadow:none;
}
body.single-product .konteners-pdp .konteners-pdp__fulfillment-row {
  display:flex; align-items:flex-start; gap:10px; padding:9px 0;
  margin:0!important; min-width:0; font-size:12px; line-height:1.45;
}
body.single-product .konteners-pdp .konteners-pdp__fulfillment-row + .konteners-pdp__fulfillment-row {border-top:1px solid #dbe4ee}
body.single-product .konteners-pdp .konteners-pdp__fulfillment-copy {min-width:0; flex:1; display:grid; grid-template-columns:1fr; gap:3px}
body.single-product .konteners-pdp .konteners-pdp__fulfillment-copy strong {display:block; font-size:12px; font-weight:700; color:#263e58}
body.single-product .konteners-pdp .konteners-pdp__fulfillment-copy > span {display:block; color:#60758a; text-align:left; font-size:12px; line-height:1.45}
/* Woo CTA grid: the unconditional static CE card takes a full-width row
   BEFORE the CTA buttons even when the optional quote action is absent. */
@media(min-width:431px) {
  body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__ce-panel) > .konteners-pdp__ce-panel {
    grid-column:1 / -1; grid-row:2; margin:0;
  }
  body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__ce-panel) > button.single_add_to_cart_button {
    grid-row:3;
  }
  body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__ce-panel) > button.konteners-pdp__quote-trigger {
    grid-row:3;
  }
}
@media(max-width:430px) {
  body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__ce-panel) > .konteners-pdp__ce-panel {
    grid-column:1; grid-row:2;
  }
  body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__ce-panel) > button.single_add_to_cart_button {grid-row:3}
  body.single-product .et_pb_wc_add_to_cart :is(form.cart:not(.variations_form),.woocommerce-variation-add-to-cart):has(> .konteners-pdp__ce-panel) > button.konteners-pdp__quote-trigger {grid-row:4}
}


/* RC.10.21.29 — Divi's Woo Add To Cart hover arrow is not our cart icon.
 * Keep our shopping_cart ::before fallback, suppress only the Divi ::after.
 * The rule is deliberately scoped to the Konteners PDP add-to-cart form.
 */
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button::after,
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:hover::after,
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:focus::after,
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:active::after,
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button.loading::after,
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:disabled::after,
body.single-product .et_pb_wc_add_to_cart form.cart button.konteners-pdp__quote-trigger::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
/* RC.10.21.30 — Divi 5 reserves extra space for its hover icon even if
 * the arrow (::after) itself is disabled above. Use an id-scoped selector
 * where the normal Divi #page-container exists, and a hero-row fallback for
 * renderers that place the Woo module outside that wrapper.
 * Physical AND logical paddings are symmetric, in normal / hover / focus /
 * active states, so the icon + label do not shift as the hover state changes. */
body.single-product #page-container .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button,
body.single-product #page-container .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:is(:hover,:focus-visible,:active),
body.single-product .konteners-pdp-hero-row .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button,
body.single-product .konteners-pdp-hero-row .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:is(:hover,:focus-visible,:active) {
  padding-left: 14px !important;
  padding-right: 14px !important;
  padding-inline-start: 14px !important;
  padding-inline-end: 14px !important;
}
body.single-product .et_pb_wc_add_to_cart form.cart button.single_add_to_cart_button:is(:hover,:focus,:active) {
  transform: none !important;
}
