/* RICK IMPORTS V8: vitrine, checkout e pedidos responsivos, sem tocar nas integrações */
:root{--v8-border:#e5ebf2;--v8-deep:#152238;--v8-muted:#64748b;--v8-radius:17px}
html{overflow-x:clip}
body{min-width:0}
.page,.client-header-inner,.checkout-layout,.checkout-fields,.checkout-layout>*,.checkout-layout section,.checkout-layout aside,.form-grid>*,.form-card,.summary-box{min-width:0}
/* Navegação do cliente independente e legível */
.client-header-inner{gap:20px;flex-wrap:nowrap}
.client-header-inner .brand{flex:0 1 auto;min-width:0}
.client-header-inner .brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.client-nav{display:flex;gap:12px;margin-left:auto;margin-right:auto;min-width:0}
.client-nav a{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;border-radius:10px;padding:10px 12px;color:#56657a;transition:background .18s,color .18s}
.client-nav a svg{width:17px;height:17px;flex-shrink:0}
.client-nav a.selected,.client-nav a:hover{color:#164ca6;background:#f0f5ff}
.client-header-actions{margin-left:0;gap:11px;flex-shrink:0}
.client-header-actions .icon-action{display:grid;place-items:center;width:41px;height:41px;border-radius:11px;border:1px solid #e6ebf3;color:#25384f;background:#fff}
.client-header-actions .lookup-action{width:41px;height:41px}
.client-header-actions .client-cart-link small{top:-5px;right:-5px;min-width:19px;height:19px;line-height:19px;font-size:11px}
.client-logout{display:inline-flex;align-items:center;gap:7px;min-height:41px;padding:9px 13px;border-radius:11px;font-size:12px}
.client-logout svg{width:15px;height:15px}
/* Index: primeiro os detalhes; não envia carrinho/checkout */
.shop-card .shop-detail-link{display:flex;width:100%;margin-top:auto;min-height:43px;align-items:center;justify-content:center;gap:9px;background:#fff;color:#2055a8;border-color:#cbd9ee;white-space:normal;text-align:center;font-size:13px;font-weight:750;transition:background .15s,border-color .15s}
.shop-card .shop-detail-link:hover{background:#f2f6ff;border-color:#9fb9e8;text-decoration:none}
.shop-card .shop-detail-link svg{width:16px;height:16px;flex-shrink:0}
.shop-card .availability{margin-bottom:11px}
.shop-card .product-info{height:auto}
/* Produto: botões com áreas confortáveis para toque */
.v7-product-detail .add-form{grid-template-columns:96px minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end}
.v7-product-detail .add-form>label{min-width:0;max-width:none}
.v7-product-detail .add-form button{font-size:12px;min-height:48px;line-height:1.4}
.v7-product-detail .detail-photo,.v7-product-detail .detail-content{min-width:0}
.v7-product-detail .detail-content h1,.v7-detail-description p{overflow-wrap:anywhere}
/* Checkout: duas colunas fluidas somente quando cabem */
.checkout-page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 21px}
.checkout-page-head h1{font-size:clamp(25px,3vw,34px);margin:2px 0 7px;letter-spacing:-.9px}
.checkout-page-head p{font-size:13px;line-height:1.6;margin:0;color:#728094}
.checkout-back{display:inline-flex;align-items:center;gap:8px;color:#315b9d;font-size:12px;font-weight:700;white-space:nowrap}
.checkout-back svg{width:16px;height:16px}
.checkout-progress{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--v8-border);border-radius:13px;padding:13px 18px;margin:0 0 22px;max-width:100%}
.checkout-progress>span{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;font-size:12px;font-weight:650;color:#8390a2}
.checkout-progress>span.is-active{color:#184a98}
.checkout-progress>span b{font-size:11px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;border:1px solid #d9e2ef;background:#f7f9fc;color:#738298}
.checkout-progress>span.is-active b{background:#1a55ba;border-color:#1a55ba;color:#fff}
.checkout-progress>svg{height:15px;width:15px;flex:none;color:#b5bfcb}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,340px);align-items:start;gap:21px;margin-top:0}
.checkout-fields{display:grid;gap:18px;min-width:0}
.checkout-layout .form-card{margin:0;background:#fff;border:1px solid var(--v8-border);padding:25px;border-radius:17px;box-shadow:0 4px 24px #192c4805}
.checkout-layout .form-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:19px;min-width:0}
.checkout-layout .form-title>div{min-width:0}
.checkout-layout .form-title>svg{background:#ecf3ff;color:#2459b6;width:20px;height:20px;padding:11px;flex-shrink:0}
.checkout-layout .form-title h3{font-size:16px;line-height:1.4;overflow-wrap:anywhere;margin:2px 0 4px}
.checkout-layout .form-title p{font-size:12px;line-height:1.55;color:#718096}
.checkout-layout label{min-width:0;overflow-wrap:anywhere}
.checkout-layout .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.checkout-layout .form-grid .span2{grid-column:1/-1}
.checkout-layout label:not(.saved-address):not(.new-address-choice){font-size:12px;font-weight:700;color:#47566a}
.checkout-layout input:not([type=radio]):not([type=hidden]):not([type=checkbox]),.checkout-layout select,.checkout-layout textarea{width:100%;max-width:100%;min-width:0;font-size:16px;min-height:46px;border-radius:10px;padding:12px 13px}
.checkout-layout .saved-address,.checkout-layout .new-address-choice{width:100%;max-width:100%;min-width:0}
.checkout-layout .saved-address-text strong{overflow-wrap:anywhere}
.checkout-layout .saved-address-text small{overflow-wrap:anywhere}
.checkout-layout .saved-address-icon{flex:none}
.checkout-layout .location-section{min-width:0;max-width:100%;padding-top:19px}
.checkout-layout .location-warning{display:flex;align-items:flex-start;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.checkout-layout .location-warning svg{flex-shrink:0}
.checkout-layout .checkout-map{width:100%;max-width:100%;min-width:0;height:300px;overflow:hidden}
.checkout-layout .map-fallback,.checkout-layout .gps-bar,.checkout-layout .places-search{max-width:100%;min-width:0}
.checkout-layout .map-fallback{overflow-wrap:anywhere}
.checkout-layout .gps-bar{display:flex;align-items:center;gap:10px}
.checkout-layout .gps-bar button,.checkout-layout .gps-bar a{white-space:normal;min-width:0;min-height:44px}
.checkout-layout .coord-detail{max-width:100%;min-width:0}
.checkout-layout .coord-detail summary{padding:9px 0}
.checkout-summary{width:100%;max-width:100%;padding:22px;border-radius:17px;border-color:var(--v8-border);box-shadow:0 4px 24px #192c4805}
.checkout-summary.sticky{position:sticky;top:100px}
.checkout-summary-head{display:flex;gap:10px;align-items:center;border-bottom:1px solid #edf1f6;padding-bottom:18px;margin-bottom:19px}
.checkout-summary-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:#edf3ff;color:#2154ac}
.checkout-summary-icon svg{width:19px;height:19px}
.checkout-summary-head h3{margin:0 0 4px;font-size:16px;line-height:1.4}
.checkout-summary-head p{margin:0;color:#8793a2;line-height:1.45;font-size:11px}
.checkout-summary .summary-row{display:flex;min-width:0;gap:11px;font-size:12px;line-height:1.5}
.checkout-summary .summary-row>span{flex:1;min-width:0;overflow-wrap:anywhere}
.checkout-summary .summary-row strong{flex:none;max-width:46%;white-space:normal;text-align:right;overflow-wrap:anywhere}
.checkout-summary .summary-row.total{align-items:center}
.checkout-summary .summary-row.total strong{font-size:21px}
.checkout-summary .v7-coupon-row{display:flex;min-width:0;max-width:100%;gap:7px}
.checkout-summary .v7-coupon-row input{flex:1;min-width:0;width:100%;font-size:16px}
.checkout-summary .v7-coupon-row button{flex:none;min-width:0}
.checkout-summary .pix-banner{min-width:0;display:flex;align-items:flex-start;gap:9px}
.checkout-summary .pix-banner>div{min-width:0}
.checkout-summary .pix-banner small{display:block;overflow-wrap:anywhere}
.checkout-summary>.btn{width:100%;height:auto;min-height:49px;padding:12px;font-size:13px;white-space:normal;text-align:center;line-height:1.5}
.checkout-summary>.btn svg{flex:none}
/* Pedidos do cliente: cards arejados, com ação sempre acessível */
.v8-orders-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:9px 0 23px;margin:0 0 20px;border-bottom:1px solid #e6ebf1}
.v8-orders-hero h1{font-size:clamp(26px,3.2vw,35px);margin:3px 0 7px}
.v8-orders-hero p{font-size:13px;color:#758399;margin:0;line-height:1.65}
.v8-orders-back{font-size:12px;flex:none;min-height:42px}
.v8-orders-summary{display:flex;align-items:center;gap:10px;font-size:12px;color:#344964;margin-bottom:18px}
.v8-orders-summary svg{width:18px;color:#315ea8}
.v8-orders-summary span{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.v8-orders-summary small{font-size:11px;color:#8a97a7}
.v8-orders-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.v8-order-card{min-width:0;border-radius:17px;box-shadow:0 4px 22px #203b5507;padding:21px;display:flex;flex-direction:column}
.v8-order-top{display:grid;grid-template-columns:1fr;gap:10px;padding-bottom:16px}
.v8-order-top>div{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;min-width:0}
.v8-order-label{font-size:12px;font-weight:800;color:#213a5b;letter-spacing:.1px}
.v8-order-top>div small{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#8591a2;font-weight:600}
.v8-order-top>div small svg{width:13px;height:13px}
.v8-order-card .v7-status-pill{display:inline-flex;align-items:center;justify-content:center;max-width:100%;width:max-content;text-align:left;white-space:normal;font-size:11px;font-weight:750;border-radius:8px;overflow-wrap:anywhere;padding:7px 10px}
.v8-order-product{flex:1;gap:14px;padding:19px 0;min-width:0}
.v8-order-product .v7-order-thumb{width:76px;height:76px}
.v8-order-product strong{font-size:13px;font-weight:750;line-height:1.5;overflow-wrap:anywhere}
.v8-order-foot{gap:12px;align-items:end}
.v8-order-foot b{font-size:21px;letter-spacing:-.6px;white-space:nowrap}
.v8-order-foot .btn{min-height:42px;white-space:normal;text-align:center;padding:10px 13px;font-size:12px}
.v8-order-foot .btn svg{flex:none}
/* Detalhes de um pedido: não deixar status, preço e endereço escaparem do cartão */
.v7-order-header,.v7-order-columns,.v7-order-columns>*,.v7-order-item,.v7-panel{min-width:0}
.v7-order-header .v7-status-pill{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.v7-order-item-info,.v7-order-item-info strong,.v7-address{overflow-wrap:anywhere}
.v7-panel .v7-total-line{min-width:0}
.v7-panel .v7-total-line strong{white-space:normal;overflow-wrap:anywhere;text-align:right}
@media(max-width:1100px){
 .checkout-layout{grid-template-columns:minmax(0,1fr) minmax(260px,310px);gap:16px}
 .checkout-layout .form-card{padding:21px}
 .checkout-summary{padding:19px}
 .client-header-inner{gap:12px}
 .client-nav{gap:3px}
}
@media(max-width:940px){
 .checkout-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 .checkout-layout .checkout-summary.sticky{position:static;top:auto}
 .checkout-layout .form-card{padding:23px}
 .checkout-layout .checkout-summary{width:100%}
 .client-header-inner{flex-wrap:wrap}
 .client-nav{order:3;flex-basis:100%;width:100%;border-top:1px solid #edf1f6;margin:2px 0 0;padding-top:7px;gap:8px}
 .client-header-actions{margin-left:auto}
}
@media(max-width:620px){
 .client-header-inner{min-height:0;padding:10px 0 8px;gap:7px}
 .client-header-inner .brand{font-size:15px;max-width:calc(100% - 170px)}
 .client-header-inner .brand-mark{flex:none}
 .client-header-actions{gap:6px}
 .client-header-actions .icon-action,.client-header-actions .lookup-action{width:37px;height:37px;padding:7px}
 .client-logout{width:37px;height:37px;padding:7px;justify-content:center;min-height:37px}
 .client-logout span{display:none}
 .client-nav{justify-content:stretch}
 .client-nav a{flex:1;justify-content:center;min-height:40px;padding:9px;font-size:12px}
 .client-nav svg{height:16px;width:16px}
 .page{padding-top:19px}
 .checkout-page-head{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:16px}
 .checkout-page-head h1{font-size:26px}
 .checkout-page-head p{font-size:12px}
 .checkout-back{font-size:12px}
 .checkout-progress{gap:5px;padding:11px 10px;justify-content:space-between}
 .checkout-progress>span{font-size:10px;gap:5px;min-width:0;white-space:normal;line-height:1.3}
 .checkout-progress>span b{height:21px;width:21px;min-width:21px}
 .checkout-progress>svg{width:10px;min-width:10px}
 .checkout-layout,.checkout-fields{gap:13px}
 .checkout-layout .form-card{padding:18px 15px;border-radius:14px}
 .checkout-layout .form-title{margin-bottom:16px}
 .checkout-layout .form-title>svg{width:18px;height:18px;padding:10px}
 .checkout-layout .form-title h3{font-size:15px}
 .checkout-layout .form-title p{font-size:12px}
 .checkout-layout .form-grid{grid-template-columns:minmax(0,1fr);gap:13px}
 .checkout-layout .form-grid .span2{grid-column:auto}
 .checkout-layout .saved-address{padding:11px 9px;gap:9px}
 .checkout-layout .saved-address-icon{width:30px;height:30px}
 .checkout-layout .saved-address .selected-check{width:15px}
 .checkout-layout .new-address-choice{padding:12px 11px;font-size:12px}
 .checkout-layout .location-section{padding-top:17px}
 .checkout-layout .checkout-map{height:248px}
 .checkout-layout .gps-bar{flex-direction:column;align-items:stretch;gap:9px}
 .checkout-layout .gps-bar button,.checkout-layout .gps-bar a{width:100%;text-align:center;justify-content:center}
 .checkout-layout .map-fallback{padding:12px}
 .checkout-layout .location-warning{padding:11px;font-size:12px}
 .checkout-summary{border-radius:14px;padding:17px}
 .checkout-summary .summary-row.total strong{font-size:20px}
 .checkout-summary>.btn{font-size:13px}
 .v7-product-detail .add-form{grid-template-columns:90px minmax(0,1fr);gap:9px}
 .v7-product-detail .add-form button:last-child{grid-column:1/-1}
 .v7-product-detail .add-form button{font-size:13px;min-height:46px}
 .v7-product-detail .add-form label{font-size:12px}
 .v8-orders-hero{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:16px;padding-bottom:17px}
 .v8-orders-hero h1{font-size:27px}
 .v8-orders-hero p{font-size:12px}
 .v8-orders-back{padding:9px 11px;font-size:12px;min-height:39px}
 .v8-orders-list{grid-template-columns:1fr;gap:12px}
 .v8-order-card{padding:16px;border-radius:14px}
 .v8-order-foot{align-items:stretch;flex-direction:column}
 .v8-order-foot span{display:flex;align-items:baseline;justify-content:space-between;width:100%}
 .v8-order-foot .btn{width:100%;min-height:45px;font-size:13px}
 .v8-order-product{padding:16px 0}
 .v7-order-header{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .v7-order-header .v7-status-pill{width:max-content;max-width:100%;padding:8px 10px}
 .v7-order-item{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center}
 .v7-order-item b{grid-column:2;justify-self:start}
 .v7-order-item .v7-order-item-img{width:52px;height:52px}
 .v7-order-secondary{grid-template-columns:1fr}
}
@media(max-width:390px){
 .container{width:calc(100% - 22px)}
 .client-header-inner .brand{font-size:13px;max-width:calc(100% - 147px);gap:6px}
 .client-header-inner .brand-mark{height:29px;width:29px}
 .client-header-actions{gap:4px}
 .client-header-actions .icon-action,.client-header-actions .lookup-action,.client-logout{width:34px;height:34px;min-height:34px}
 .client-nav a{font-size:11px}
 .checkout-progress>span{font-size:9px}
 .checkout-progress>span b{width:18px;height:18px;min-width:18px;font-size:10px}
 .checkout-layout .form-card{padding:16px 12px}
 .checkout-summary{padding:16px 12px}
 .checkout-summary .v7-coupon-row{flex-direction:column;align-items:stretch}
 .checkout-summary .v7-coupon-row button{width:100%;min-height:42px}
 .shop-card .shop-detail-link{font-size:12px;padding:9px 7px}
}
/* Inputs de rádio não devem herdar o 100% de largura dos inputs comuns. */
.checkout-layout input[type="radio"]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;margin:0!important;box-shadow:none!important;flex:0 0 18px}
.checkout-layout .saved-address-text{flex:1 1 auto;min-width:0}
.checkout-layout .saved-address .selected-check{flex:0 0 16px}

/* Pagamento: mesmo cuidado com o QR Pix e o formulário de cartão */
.v8-payment-intro{padding:5px 0 25px;max-width:100%;min-width:0}
.v8-payment-intro h1{font-size:clamp(24px,3vw,34px);margin:9px 0 5px}
.v8-payment-intro .order-status{white-space:normal;max-width:100%;overflow-wrap:anywhere;text-align:center;line-height:1.5}
.v8-payment-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(265px,320px);gap:20px;align-items:start}
.v8-payment-layout>.order-main,.v8-payment-layout>.summary-box,.v8-payment-layout .payment-card,.v8-payment-layout .pay-panel{min-width:0;max-width:100%}
.v8-payment-layout .form-card,.v8-payment-layout .summary-box{border:1px solid var(--v8-border);border-radius:17px;background:#fff;box-shadow:0 4px 24px #192c4805;padding:23px}
.v8-payment-layout .form-title{gap:11px;margin-bottom:18px}
.v8-payment-layout .form-title>div{min-width:0;flex:1}
.v8-payment-layout .form-title p{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.v8-payment-layout .payment-tabs{gap:10px}
.v8-payment-layout .pay-tab{min-width:0;min-height:45px;white-space:normal;text-align:center;font-size:13px}
.v8-payment-layout .pay-panel{padding:7px 0 0;overflow-wrap:anywhere}
.v8-payment-layout .pay-panel>p{font-size:13px;line-height:1.65}
.v8-payment-layout .pix-display{max-width:100%;min-width:0;padding:12px 0;gap:14px}
.v8-payment-layout .pix-qrcode{display:block;width:min(250px,100%);height:auto;aspect-ratio:1;max-width:100%;object-fit:contain}
.v8-payment-layout .pix-display label{min-width:0;max-width:100%;font-size:12px}
.v8-payment-layout .pix-display textarea{width:100%;max-width:100%;min-height:110px;font-size:14px;overflow-wrap:anywhere;word-break:break-all}
.v8-payment-layout .stack input,.v8-payment-layout select,.v8-payment-layout textarea{min-width:0;max-width:100%;font-size:16px}
.v8-payment-layout #cardPaymentBrick_container,.v8-payment-layout #cardPaymentBrick_container iframe{max-width:100%;min-width:0;width:100%}
.v8-payment-layout .status-form{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.v8-payment-layout .status-form button{white-space:normal;text-align:center;line-height:1.45;min-height:44px}
.v8-payment-layout .summary-row{min-width:0;gap:10px}
.v8-payment-layout .summary-row>span{min-width:0;flex:1;overflow-wrap:anywhere}
.v8-payment-layout .summary-row strong{flex:none;max-width:46%;overflow-wrap:anywhere;white-space:normal;text-align:right}
.v8-payment-layout .address-lines{overflow-wrap:anywhere;line-height:1.85}
.v8-payment-layout .summary-box .outline{width:100%;white-space:normal;text-align:center;line-height:1.5;min-height:44px}
@media(max-width:940px){
 .v8-payment-layout{grid-template-columns:1fr;gap:14px}
 .v8-payment-layout .form-card,.v8-payment-layout .summary-box{padding:20px}
}
@media(max-width:620px){
 .v8-payment-intro{padding:0 0 20px}
 .v8-payment-intro h1{font-size:26px}
 .v8-payment-layout{gap:12px}
 .v8-payment-layout .form-card,.v8-payment-layout .summary-box{padding:17px 15px;border-radius:14px}
 .v8-payment-layout .form-title h3{font-size:16px}
 .v8-payment-layout .pay-tab{font-size:13px;padding:10px}
 .v8-payment-layout .pay-panel{padding:4px 0 0}
 .v8-payment-layout .pix-display textarea{font-size:13px}
 .v8-payment-layout .status-form button{width:100%}
}
