/* RC2 is additive: RC1 shell, tokens and installation contracts are preserved. */
.ht-v3 [data-ht-page]{min-width:0;max-width:100%;overflow-wrap:anywhere}
.ht-v3 [data-ht-form] :is(input,textarea,select){max-width:100%;scroll-margin-block:100px;}
.ht-v3 [data-ht-form] label{line-height:1.5}
.ht-v3 [data-ht-form] .ht-rc2-grid>*,.ht-v3 [data-ht-page] .ht-rc2-grid>*{min-width:0}
.ht-v3 .ht-field-error{color:#b91c1c;font-size:12px;line-height:1.5;margin-top:6px}
html.dark .ht-v3 .ht-field-error{color:#fca5a5}
.ht-v3 [data-ht-dialog]{overscroll-behavior:contain}
.ht-v3 [data-ht-dialog]>:not(.absolute):not(button){max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.ht-v3 .ht-stock-details{margin-top:8px;border-top:1px solid var(--ht-border);padding-top:6px}
.ht-v3 .ht-stock-details summary{font-size:12px;font-weight:700;color:var(--ht-muted);cursor:pointer;min-height:36px;display:flex;align-items:center;gap:8px}
.ht-v3 .ht-stock-details summary::before{content:'＋'}
.ht-v3 .ht-stock-details[open] summary::before{content:'−'}
.ht-v3 .ht-stock-details>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:8px}
.ht-v3 .ht-stock-primary{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}
.ht-cart-launch,.ht-cart-close,.ht-cart-backdrop{display:none}
.ht-v3 .ht-dense-hint{position:sticky;left:0}
.ht-v3 [data-ht-page*="inbox"] #chat-messages :is(img,video,audio),.ht-v3 [data-ht-page*="service-orders-view"] :is(img,video,audio){max-width:100%;height:auto}
.ht-v3 #chat-input{min-width:0}
.ht-v3 .ht-table-region{max-width:100%;scrollbar-width:thin;overscroll-behavior-x:contain}
.ht-v3 [data-ht-page] :is(h1,h2,h3){overflow-wrap:anywhere}
@media(max-width:767px){
 .ht-v3 [data-ht-page]{margin-inline:0}
 .ht-v3 [data-ht-page] :is(.p-8,.p-10){padding:16px}
 .ht-v3 [data-ht-page] :is(h1.text-3xl,h1.text-4xl){font-size:24px;line-height:1.25}
 .ht-v3 [data-ht-form] .ht-rc2-grid{grid-template-columns:minmax(0,1fr)!important}
 .ht-v3 [data-ht-form] .ht-rc2-grid>[class*="col-span"]{grid-column:auto!important}
 .ht-v3 [data-ht-dialog]{align-items:flex-end!important;padding:8px!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
 .ht-v3 [data-ht-dialog]>:not(.absolute):not(button){width:100%;max-width:100%;max-height:calc(100dvh - 16px);border-radius:20px 20px 12px 12px}
 .ht-v3 [data-ht-dialog] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select){font-size:16px!important;min-height:44px!important}
 .ht-v3 [data-ht-page] .flex.justify-between:not(.flex-col):not(.flex-wrap){flex-wrap:wrap;gap:12px}
 .ht-v3 .product-card-transition{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:start;padding:10px;gap:10px}
 .ht-v3 .product-card-transition>.relative{position:relative;min-width:0}
 .ht-v3 .product-card-transition .ht-product-image{height:76px!important;border-radius:12px}
 .ht-v3 .product-card-transition .ht-product-image img{object-fit:contain}
 .ht-v3 .product-card-transition>.space-y-4{padding:0!important}
 .ht-v3 .product-card-transition h3.products-line-clamp-2{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:14px;line-height:1.4}
 .ht-v3 .product-card-transition>.relative>.absolute.left-3{position:static;margin-top:8px;gap:4px}
 .ht-v3 .product-card-transition>.relative>.absolute.right-3{right:0;top:0}
 .ht-v3 .ht-stock-primary>div{padding:6px 8px!important}
 .ht-v3 .ht-stock-details>div{grid-template-columns:minmax(0,1fr)}
 .ht-v3 .ht-product-actions summary{min-height:44px}
 .ht-v3 .ht-product-actions+div{max-width:90px}
 .ht-v3 [data-ht-save-bar]{bottom:calc(70px + env(safe-area-inset-bottom));padding:10px;max-width:100%}
 .ht-v3.ht-keyboard-open [data-ht-save-bar]{position:static!important}
 .ht-v3 #unsaved-os-bar{bottom:calc(80px + env(safe-area-inset-bottom))}
 .ht-v3 [data-ht-page*="inbox"]{height:auto!important;min-height:calc(100dvh - 160px)}
 .ht-v3 [data-ht-page*="inbox"] #chat-form{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}
 .ht-v3 [data-ht-page*="inbox"] #chat-form>label{width:44px;height:44px}
 .ht-v3 [data-ht-page*="inbox"] #send-btn{grid-column:2/-1}
 .ht-v3 [data-ht-page*="inbox"] #chat-messages{min-height:240px;max-height:52dvh}
}

/* The original checkout nodes stay in place; only the same sidebar is presented as a sheet. */
@media(max-width:1024px){
 .ht-v3.ht-cart-enhanced .pdv-main{display:block!important;height:auto!important;min-height:calc(100dvh - 130px);padding-bottom:100px!important}
 .ht-v3.ht-cart-enhanced .pdv-content{height:auto!important;max-height:none!important;overflow:visible!important;padding:12px!important}
 .ht-v3.ht-cart-enhanced #productList.product-grid{display:grid!important;max-height:none!important;grid-template-columns:repeat(auto-fill,minmax(min(140px,100%),1fr))!important}
 .ht-v3.ht-cart-enhanced #productList .product-img{height:96px!important}
 .ht-v3.ht-cart-enhanced #productSearch{min-height:48px!important;font-size:16px!important}
 .ht-v3.ht-cart-enhanced .pdv-shortcut-bar{overflow-x:auto!important;flex-wrap:nowrap!important;max-width:100%;padding-block:6px!important}
 .ht-v3.ht-cart-enhanced .pdv-shortcut-chip{min-height:44px!important;flex:0 0 auto}
 .ht-v3.ht-cart-enhanced .pdv-sidebar{display:none!important;width:100%!important;max-width:100%!important}
 .ht-v3.ht-cart-enhanced.ht-cart-open .pdv-sidebar{display:flex!important;flex-direction:column;position:fixed!important;inset:auto 0 0!important;z-index:98;height:min(92dvh,var(--ht-viewport-height,92dvh))!important;max-height:100dvh!important;border-radius:22px 22px 0 0!important;background:var(--pdv-panel-solid);box-shadow:0 -20px 100px #0005}
 .ht-v3.ht-cart-enhanced .cart-items{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
 .ht-v3.ht-cart-enhanced .cart-context{display:block!important;flex:0 0 auto;max-height:30dvh;overflow-y:auto}
 .ht-v3.ht-cart-enhanced :is(#vendedorId,#customerSearch,.cart-qty-input,.cart-price-input){min-height:44px!important;height:44px!important;font-size:16px!important}
 .ht-v3.ht-cart-enhanced .cart-qty-group{grid-template-columns:44px minmax(36px,1fr) 44px!important}
 .ht-v3.ht-cart-enhanced .cart-qty-group button,.ht-v3.ht-cart-enhanced .cart-remove-btn{height:44px!important;width:44px!important;min-height:44px!important}
 .ht-v3.ht-cart-enhanced .cart-item-controls{grid-template-columns:minmax(132px,1fr) minmax(72px,1fr)!important;gap:8px!important}
 .ht-v3.ht-cart-enhanced .cart-line-total{grid-column:1/-1;text-align:right}
 .ht-v3.ht-cart-enhanced .cart-footer{flex:0 0 auto;padding:12px 16px max(12px,env(safe-area-inset-bottom))!important}
 .ht-v3.ht-cart-enhanced .cart-footer button{min-height:48px!important}
 .ht-cart-launch{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;inset:auto 12px max(12px,env(safe-area-inset-bottom));z-index:80;min-height:56px;border:0;border-radius:18px;padding:12px 18px;background:var(--ht-accent,#249f5d);color:white;font-weight:800;box-shadow:0 8px 28px #0003}
 .ht-cart-close{display:block;border:1px solid var(--pdv-border);border-radius:12px;padding:8px 12px;min-height:44px;color:var(--pdv-text);background:var(--pdv-panel-solid)}
 .ht-v3.ht-cart-open .ht-cart-launch{display:none}
 .ht-v3.ht-cart-open .ht-cart-backdrop{display:block;position:fixed;inset:0;background:#0005;z-index:97;border:0;padding:0}
 .ht-v3.ht-keyboard-open .ht-cart-launch{display:none}
}
@media print{.ht-cart-launch,.ht-cart-close,.ht-cart-backdrop,.ht-field-error{display:none!important}.ht-v3 .ht-stock-details>div{display:grid!important}.ht-v3.ht-cart-enhanced .pdv-sidebar{position:static!important;display:flex!important}}

@media(max-width:767px){
.ht-v3[data-ht-page="site-index"] h1{font-size:36px!important;line-height:1.15!important}
.ht-v3[data-ht-page="site-index"] nav .flex{flex-wrap:wrap;gap:12px}
.ht-v3[data-ht-page="site-index"] .inline-flex{white-space:normal}
.ht-v3[data-ht-page="site-index"] #main-mockup{padding:16px;min-height:400px}
.ht-v3[data-ht-page="billing-pages-planos"] .flex.items-center.gap-6{flex-wrap:wrap;gap:12px;min-width:0}
.ht-v3[data-ht-page="catalogo-pages-catalogo"] header .flex{flex-wrap:wrap;gap:8px}
.ht-v3[data-ht-page="catalogo-pages-catalogo"] header button{padding:8px;min-height:44px;min-width:44px}
.ht-v3[data-ht-page="os-reports-sales-tv"] :is(h1,.text-5xl){font-size:28px;line-height:1.25}
.ht-v3[data-ht-page="os-reports-sales-tv"] .flex{flex-wrap:wrap;gap:12px}
.ht-v3[data-ht-page="os-reports-sales-tv"] .text-right{max-width:100%;text-align:left}
.ht-v3 [data-ht-page] .ht-rc2-grid> :is(h3.text-3xl,p.text-4xl){font-size:clamp(20px,6vw,30px)}
.ht-v3 .ht-os-editor{border:1px solid var(--ht-border);border-radius:16px;background:var(--ht-surface)}
.ht-v3 .ht-os-editor>summary{padding:14px 16px;min-height:48px;font-weight:800;color:var(--ht-accent);cursor:pointer}
}

@media(max-width:767px){
.ht-v3[data-ht-page="os-reports-sales-tv"] .grid{grid-template-columns:minmax(0,1fr)!important}
.ht-v3[data-ht-page="os-reports-sales-tv"] .grid>*{min-width:0;overflow-wrap:anywhere}
.ht-v3[data-ht-page="os-reports-sales-tv"] h3.truncate{white-space:normal}
.ht-v3[data-ht-page="site-index"] .scale-110{transform:none!important}
}
