/* Fluid sizing keeps the layout in CSS pixels, including zoom and safe areas. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-padding-bottom:calc(var(--mobile-action-height,0px) + 24px); }
body { min-width:0; }
input:not([type=checkbox]):not([type=radio]),select,textarea { min-width:0; max-width:100%; font-size:16px!important; font-size:max(1rem,16px)!important; }
button,a,input,select,textarea { touch-action:manipulation; }
input,select,textarea { scroll-margin-block:80px calc(var(--mobile-action-height,0px) + 24px); }
[data-mobile-action] { box-sizing:border-box; padding-bottom:max(var(--mobile-action-padding,10px),calc(10px + env(safe-area-inset-bottom,0px)))!important; }
[data-mobile-action] button { min-height:44px; min-width:0; white-space:normal; line-height:1.3; }
[data-mobile-content] { padding-bottom:calc(var(--mobile-action-height,0px) + 24px)!important; }
[data-mobile-sheet] { max-height:92vh; max-height:92dvh; max-height:calc(var(--mobile-visible-height,100dvh) * .92); overflow-y:auto; overscroll-behavior:contain; }
[data-mobile-overlay] { top:var(--mobile-visible-top,0px)!important; bottom:auto!important; height:var(--mobile-visible-height,100dvh)!important; }
#address-modal-box { top:var(--mobile-visible-top,0px)!important; height:100vh!important; height:var(--mobile-visible-height,100dvh)!important; max-height:var(--mobile-visible-height,100dvh); }
.checkout-app { width:100%; min-width:0; }
.checkout-fixed-footer { display:grid; grid-template-columns:minmax(94px,1fr) minmax(0,1.5fr); gap:8px 12px; }
.checkout-fixed-footer__btn { width:100%; min-height:48px; padding:12px 10px; font-size:clamp(13px,3.6vw,15px); }
.checkout-fixed-footer__total { min-width:0; }
#checkout-feedback { grid-column:1/-1; margin:0; padding:8px 10px; border-radius:6px; font-size:13px; line-height:1.35; color:#991b1b; background:#fef2f2; }
#checkout-feedback[hidden] { display:none; }
.checkout-app [aria-invalid=true] { border-color:#dc2626; }
.checkout-fixed-footer__btn[data-submitting],#btnFinalizarCompra[data-submitting] { position:relative; color:transparent!important; opacity:.75; }
[data-submitting]>* { visibility:hidden; }
.checkout-fixed-footer__btn[data-submitting]::after,#btnFinalizarCompra[data-submitting]::after { content:'Processando…'; position:absolute; inset:0; display:grid; place-items:center; color:white; }
.shopee-gallery__carousel { width:100%; }
.product-carousel-slide { flex:0 0 100%; min-width:0; }
.product-carousel-slide img { height:min(100vw,72vh); height:min(100vw,72svh); max-height:560px; width:100%; object-fit:contain; aspect-ratio:auto; }
.shopee-gallery__icon-btn { width:40px; height:40px; }
.shopee-gallery__header-right { gap:4px; }
.shopee-flash-sale { gap:8px; flex-wrap:wrap; }
.shopee-flash-sale__label { font-size:clamp(13px,3.9vw,18px); }
.shopee-price-section__row { gap:8px; flex-wrap:wrap; }
.shopee-price-section__left { flex-wrap:wrap; min-width:0; }
.shopee-price-section__current { font-size:clamp(23px,6.5vw,30px); }
.shopee-modal { max-height:92vh; max-height:92dvh; overflow-y:auto; padding-bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
.shopee-modal__buy-btn,.btn-action { min-height:48px; }
@media(max-width:600px) {
 body.checkout-field-focused:not(.mobile-keyboard-open) .checkout-fixed-footer { display:grid!important; }
 body.checkout-field-focused:not(.mobile-keyboard-open) .checkout-app { padding-bottom:calc(var(--mobile-action-height,80px) + 24px)!important; }
 body.mobile-keyboard-open .checkout-fixed-footer { display:none!important; }
}
@media(max-width:350px) {
 .checkout-fixed-footer { padding-inline:10px; grid-template-columns:minmax(88px,1fr) minmax(0,1.55fr); }
 .checkout-fixed-footer__btn { font-size:13px; }
 .shopee-gallery__icon-btn { width:36px; height:40px; }
}
@media(min-width:768px) {
 .product-carousel-slide img { height:min(480px,72vh); }
}
body.checkout-success-active .checkout-fixed-footer { display:none!important; }
