/* Compact storefront rhythm. The home artwork, reference shell and dock keep
   their own geometry; final footer clearance remains owned by the shared shell. */
html body #wrapwrap .kc-cart-page--empty {
  min-height:0;
  padding-bottom:32px;
}
html body #wrapwrap .kc-order--empty {
  max-width:760px;
}
html body #wrapwrap .kc-order--empty > .kc-cart-page__header {
  margin-top:24px;
  margin-bottom:16px;
}
html body #wrapwrap .kc-order--empty .kc-cart-page__header :is(h1,h2) {
  margin:0;
}
html body #wrapwrap section.kc-cart-empty {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:start;
  gap:14px;
  min-width:0;
  max-height:none;
  margin:0;
  padding:36px 24px 24px;
  border:1px solid #c7cfb3;
  border-radius:16px;
  background:#fffdf4;
  color:#263312;
  box-shadow:0 3px 0 rgba(38,51,18,.08);
}
html body #wrapwrap section.kc-cart-empty::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:16px;
  border-radius:15px 15px 0 0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 16' preserveAspectRatio='none'%3E%3Cpath fill='%23fdd201' d='M0 0H800V4H728C723 4 723 13 718 13S713 4 708 4H594C589 4 589 9 584 9S579 4 574 4H447C442 4 442 16 437 16S432 4 427 4H288C283 4 283 11 278 11S273 4 268 4H132C127 4 127 15 122 15S117 4 112 4H0Z'/%3E%3C/svg%3E") center top / 100% 16px no-repeat;
  pointer-events:none;
}
html body #wrapwrap section.kc-cart-empty > h3 {
  max-width:100%;
  margin:0;
  font-size:clamp(22px,2.4vw,28px);
  line-height:1.35;
  overflow-wrap:break-word;
}
html body #wrapwrap .kc-cart-empty__icon {
  display:block;
  width:40px;
  height:40px;
  color:#3b491d;
  line-height:0;
}
html body #wrapwrap .kc-cart-empty__icon > svg {
  display:block;
  width:100%;
  height:100%;
}
html body #wrapwrap section.kc-cart-empty > p {
  max-width:52ch;
  margin:0;
  font-size:18px;
  line-height:1.55;
}
html body #wrapwrap section.kc-cart-empty > .kc-order-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  max-width:100%;
  margin-top:4px;
  padding:12px 24px;
  font-size:22px !important;
  text-align:center;
  white-space:normal;
}
html body #wrapwrap .kc-search-empty__cta {
  display:flex;
  width:fit-content;
  max-width:100%;
  min-height:44px;
  margin-top:12px;
}
/* A long search phrase must wrap instead of expanding the mobile viewport. */
html body #wrapwrap .kc-catalog--no-side > .kc-catalog__main > .kc-section-title h1 {
  overflow-wrap:anywhere;
}
@media (max-width:991.98px) {
  html body #wrapwrap main > .kc-main:not(.kc-home) {
    min-height:0;
    padding-top:16px;
    padding-bottom:24px;
  }
  html body #wrapwrap main > .kc-main:not(.kc-home) > .kc-wrap > .kc-section-title {
    margin-top:0;
    margin-bottom:16px;
  }
  html body #wrapwrap .kc-main:not(.kc-home) .kc-order > .kc-section-title,
  html body #wrapwrap .kc-catalog__main > .kc-section-title {
    margin-top:0;
    margin-bottom:16px;
    padding:20px;
  }
  html body #wrapwrap main > .kc-catalog {
    padding-bottom:24px;
  }
  html body #wrapwrap:has(> main > .kc-main:not(.kc-home)) > footer.kc-footer,
  html body #wrapwrap:has(> main > .kc-catalog) > footer.kc-footer {
    margin-top:0;
  }
  html body #wrapwrap section.kc-cart-empty {
    gap:14px;
    padding:34px 20px 20px;
  }
  html body #wrapwrap section.kc-cart-empty > p {
    font-size:16px;
    line-height:1.55;
  }
  html body #wrapwrap .kc-cart-empty__icon {
    width:36px;
    height:36px;
  }
  html body #wrapwrap section.kc-cart-empty > .kc-order-primary {
    width:100%;
  }
}
@media (max-width:991.98px) and (max-height:720px) {
  html body #wrapwrap main > .kc-cart-page--empty {
    padding-top:12px;
  }
  html body #wrapwrap .kc-order--empty > .kc-cart-page__header {
    margin-bottom:12px;
    padding:14px 20px;
  }
  html body #wrapwrap .kc-cart-empty__icon { display:none; }
  html body #wrapwrap section.kc-cart-empty {
    gap:10px;
    padding:28px 16px 16px;
  }
  html body #wrapwrap section.kc-cart-empty > h3 {
    font-size:22px;
    line-height:1.2;
  }
  html body #wrapwrap section.kc-cart-empty > p { line-height:1.45; }
  html body #wrapwrap section.kc-cart-empty > .kc-order-primary {
    min-height:48px;
    margin-top:0;
    padding:10px 20px;
    font-size:20px !important;
  }
}
@media (forced-colors:active) {
  html body #wrapwrap section.kc-cart-empty {
    border-color:CanvasText;
    background:Canvas;
    color:CanvasText;
    box-shadow:none;
  }
  html body #wrapwrap section.kc-cart-empty::before { display:none; }
}

/* Responsive audit: bridge old 575px card override and native 768px row rule.
   Image and content must share the same vertical card in this interval. */
@media(min-width:576px) and (max-width:767.98px){
 html body #wrapwrap:has(.kc-head) .kc-card{flex-direction:column!important;min-width:0;}
 html body #wrapwrap:has(.kc-head) .kc-card>.kc-card__media,
 html body #wrapwrap:has(.kc-head) .kc-card>.kc-card__body{width:100%!important;min-width:0;max-width:100%;box-sizing:border-box;}
 html body #wrapwrap:has(.kc-head) .kc-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px;}
}
/* Accessible touch target without changing the Remove action. */
html body #wrapwrap .kc-order .kc-link-btn{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;}

/* Native variant price badges need a full readable column on small screens.
   Auto-fit uses two columns only when each option can hold its price badge. */
html body #wrapwrap #product_details .o_wsale_product_attribute:has(.variant_price_extra){grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;}
html body #wrapwrap #product_details .radio_input_value{min-width:0;}

/* The storefront selection CTA owns this flow. Keep variant and quantity inputs
   but do not offer a second native-cart action when selection CTA is present. */
html body #wrapwrap #product_details form:has(button[data-kc-native-selection]) #add_to_cart{display:none!important;}

/* Owner-requested Checkout emphasis, cart CTA and verified-checkout title only. */
html body #wrapwrap .kc-order-actions a.kc-checkout-btn,
html body #wrapwrap #wrap.kc-checkout-v2 .kc-vcheckout-heading h1{
 color:#fdd201!important;-webkit-text-fill-color:#fdd201!important;
 -webkit-text-stroke:0.9px #263312!important;paint-order:stroke fill;
 text-shadow:0 1px 0 #263312!important;font-weight:400!important;letter-spacing:0!important;
 line-height:1.3!important;white-space:normal;overflow-wrap:break-word;
}
html body #wrapwrap .kc-order-actions a.kc-checkout-btn{font-size:clamp(27px,3vw,32px)!important;min-height:58px;padding:12px 24px;}
html body #wrapwrap #wrap.kc-checkout-v2 .kc-vcheckout-heading h1{font-size:clamp(38px,5vw,50px)!important;}
html:lang(th) body #wrapwrap .kc-order-actions a.kc-checkout-btn,
html:lang(th) body #wrapwrap #wrap.kc-checkout-v2 .kc-vcheckout-heading h1{-webkit-text-stroke:0.6px #263312!important;font-weight:600!important;}

/* Readable address-section heading: no heavy black edge or shadow. */
html body #wrapwrap #wrap.kc-checkout-v2 #kc_verified_location>h2{
 color:#3b491d!important;-webkit-text-fill-color:#3b491d!important;
 -webkit-text-stroke:0.45px #fdd201!important;paint-order:stroke fill;
 text-shadow:none!important;letter-spacing:0.3px!important;line-height:1.4!important;
}
html:lang(th) body #wrapwrap #wrap.kc-checkout-v2 #kc_verified_location>h2{-webkit-text-stroke:0!important;}
