:root{--order-wine:#741612;--order-wine-dark:#450806;--order-green:#15933b;--order-bg:#f8f4f1}
.order-body{margin:0;background:var(--order-bg);padding-bottom:90px;color:#251b19;overflow-x:hidden}
.order-body button,.order-body input,.order-body textarea,.order-body select{font:inherit}
.order-header{height:72px;position:sticky;top:0;z-index:30;background:linear-gradient(135deg,#781713,#4a0b09);color:#fff;display:flex;align-items:center;padding:0 max(16px,calc((100% - 1180px)/2));gap:11px;box-shadow:0 8px 25px #3a08072b}
.order-header img{width:47px;height:47px}
.order-header>div{display:grid}
.order-header strong{font-size:17px}
.order-header small{color:#f0cfca}
.order-header button{margin-left:auto;width:48px;height:48px;border:0;border-radius:14px;background:#ffffff18;color:#fff;position:relative;cursor:pointer}
.order-header b{position:absolute;right:-4px;top:-4px;background:#18a044;border-radius:99px;min-width:21px;height:21px;display:grid;place-items:center;font-size:11px}
.order-container{max-width:1180px;margin:auto;padding:24px 18px}
.order-hero{min-height:126px;background:linear-gradient(130deg,#fff,#f8e7e1);border:1px solid #ead7d1;border-radius:22px;padding:28px;margin-bottom:20px;display:flex;align-items:center;background-position:center;background-size:cover;overflow:hidden}
.order-hero.has-banner{min-height:240px;color:#fff}
.order-hero h1{margin:0 0 7px;font-size:30px;color:#50100d}
.order-hero p{margin:0;color:#706865;max-width:600px}
.order-hero.has-banner h1,.order-hero.has-banner p{color:#fff;text-shadow:0 2px 12px #0008}
.order-products{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.order-product{overflow:hidden;position:relative;cursor:pointer;transition:.18s transform,.18s box-shadow;outline:none}
.order-product:hover,.order-product:focus-visible{transform:translateY(-2px);box-shadow:0 12px 30px #4b17121c}
.order-product:active{transform:scale(.985)}
.order-product img{width:100%;aspect-ratio:1.35;object-fit:cover;display:block}
.order-product>div{padding:13px}
.order-product strong,.order-product small{display:block}
.order-product small{color:var(--order-wine);font-weight:800;margin-top:5px}
.order-product>button{position:absolute;right:10px;top:10px;border:0;border-radius:50%;background:var(--order-wine);color:#fff;width:42px;height:42px;font-size:24px;box-shadow:0 6px 18px #3c090755;cursor:pointer}
.order-float{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);width:min(620px,calc(100% - 24px));z-index:35;border:0;border-radius:16px;background:linear-gradient(135deg,#1aa145,#08782b);color:#fff;min-height:62px;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;font-weight:900;box-shadow:0 12px 35px #0a662c55;cursor:pointer}
.order-modal-backdrop{position:fixed;inset:0;background:#230604aa;z-index:80;display:grid;place-items:center;padding:16px;overflow:hidden}
.order-modal{width:min(620px,100%);max-height:min(92vh,820px);display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:22px;box-shadow:0 28px 80px #23060455}
.order-modal>header{padding:18px 20px;border-bottom:1px solid #eee;display:flex;align-items:center;flex:none}
.order-modal>header h2{margin:0;font-size:21px}
.order-modal>header button{margin-left:auto}
.order-modal-body{padding:20px;overflow-y:auto;overscroll-behavior:contain}
.order-modal-actions{flex:none;background:#fff;padding:14px 20px;border-top:1px solid #eee;display:flex;justify-content:flex-end;gap:8px}
.order-modal .field{display:grid;gap:7px;margin:0 0 14px}
.order-modal .field label{font-size:13px;font-weight:800;color:#453a37}
.order-modal input,.order-modal textarea,.order-modal select{width:100%;min-width:0;min-height:50px;border:1px solid #ded5d1;border-radius:12px;background:#fff;padding:11px 13px;color:#251b19;outline:none}
.order-modal input:focus,.order-modal textarea:focus,.order-modal select:focus{border-color:var(--order-wine);box-shadow:0 0 0 3px #74161218}
.input-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.input-wrap .btn{min-height:50px}
.weight-product{display:flex;gap:12px;align-items:center;padding:12px;background:#faf6f4;border-radius:14px;margin-bottom:12px}
.weight-product img{width:68px;height:58px;border-radius:11px;object-fit:cover}
.weight-product strong,.weight-product small{display:block}
.weight-tabs{display:grid;grid-template-columns:1fr 1fr;background:#eee9e6;border-radius:12px;padding:3px;margin-bottom:12px}
.weight-tabs button{min-height:44px;border:0;border-radius:10px;background:transparent;font-weight:900;color:#5f5653}
.weight-tabs button.active{background:var(--order-wine);color:#fff;box-shadow:0 5px 14px #74161233}
.weight-input{display:flex;align-items:center;border:2px solid #d8cfcb;border-radius:14px;overflow:hidden}
.weight-input:focus-within{border-color:var(--order-wine);box-shadow:0 0 0 3px #74161212}
.weight-input input{border:0!important;box-shadow:none!important;text-align:right;font-size:25px!important;font-weight:900;min-height:64px;flex:1 1 auto;min-width:0;padding-right:7px!important}
.weight-input span{flex:0 0 auto;min-width:42px;padding:0 14px 0 7px;font-weight:900;color:#6d625f;text-align:left;pointer-events:none}
.weight-help{margin:-4px 0 10px;color:#6d625f;font-size:12px}
.weight-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.weight-shortcuts button{min-height:48px;border:1px solid #e2c9c3;border-radius:11px;background:#fff8f6;color:var(--order-wine);font-weight:900;cursor:pointer}
.weight-shortcuts button:active{background:#f5ddd7;transform:scale(.98)}
.weight-clear{display:block;margin:9px 0 4px auto;border:0;background:transparent;color:#8a1b17;font-weight:800;text-decoration:underline;cursor:pointer}
.order-cart-line{display:grid;grid-template-columns:1fr auto;gap:10px;padding:13px 0;border-bottom:1px solid #eee}
.order-cart-line small{color:#777;display:block}
.order-line-actions{display:flex;gap:6px;margin-top:7px}
.order-line-actions button{border:0;border-radius:8px;padding:7px 10px;font-weight:800}
.order-remove{color:#b52622;background:#fff0ef}
.order-steps{display:flex;gap:5px;margin-bottom:18px}
.order-steps i{height:5px;flex:1;border-radius:99px;background:#e7e2df}
.order-steps i.active{background:var(--order-wine)}
.order-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.order-choice button,.order-choice label{border:1px solid #e5dedb;background:#fff;border-radius:13px;min-height:68px;padding:13px;font-weight:850;text-align:left}
.order-choice button.active,.order-choice label:has(input:checked){border-color:var(--order-wine);background:#fff3f0;color:var(--order-wine)}
.order-choice input{display:none}
.order-summary{background:#faf7f5;border-radius:14px;padding:14px;margin-top:14px}
.order-summary-row{display:flex;justify-content:space-between;padding:8px 0}
.order-summary-row.total{border-top:2px solid #332825;font-size:20px;font-weight:900}
.order-success{text-align:center}
.order-success .check{width:72px;height:72px;border-radius:50%;background:#e8f8ed;color:var(--order-green);display:grid;place-items:center;margin:0 auto 12px;font-size:35px}
.order-pix{display:grid;place-items:center}
.order-pix svg{width:min(300px,100%);height:auto}
.order-pix textarea{min-height:82px;font-size:10px}
.address-grid{display:grid;grid-template-columns:2fr 1fr;gap:10px}
.address-grid .wide{grid-column:1/-1}
#order-toast{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:120}
.order-toast{background:#262120;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:0 8px 25px #0003}
.order-toast.error{background:#ab2924}
.lookup-card{padding:12px;border-radius:12px;background:#ecf8ef;border:1px solid #b8e2c3;margin:10px 0}
.order-loading{opacity:.6;pointer-events:none}
.hidden{display:none!important}

@media(max-width:820px){.order-header{height:64px;padding:0 14px}
.order-header img{width:41px;height:41px}
.order-container{padding:14px 11px}
.order-hero{min-height:108px;padding:19px 16px;border-radius:17px;margin-bottom:14px}
.order-hero.has-banner{min-height:175px}
.order-hero h1{font-size:23px}
.chips{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;padding-bottom:3px}
.order-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.order-product>div{padding:10px}
.order-product strong{font-size:14px}
.order-product img{aspect-ratio:1.2}
.order-product>button{width:38px;height:38px;right:8px;top:8px}
.order-modal-backdrop{padding:0;align-items:end}
.order-modal{width:100%;border-radius:22px 22px 0 0;max-height:94dvh}
.order-modal-body{padding:16px}
.order-modal-actions{padding:12px 14px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr}
.order-modal-actions .btn{width:100%;min-height:52px}
.order-choice{grid-template-columns:1fr}
.address-grid{grid-template-columns:1fr 1fr}
.address-grid .street,.address-grid .wide{grid-column:1/-1}
.weight-shortcuts{grid-template-columns:1fr 1fr}
.weight-shortcuts button{min-height:52px}
.input-wrap{grid-template-columns:1fr}
.input-wrap .btn{width:100%}
.order-body input,.order-body select,.order-body textarea{font-size:16px!important}
}

@media(max-width:390px){.order-products{grid-template-columns:1fr 1fr}
.order-product small{font-size:12px}
.order-modal>header{padding:15px 16px}
.order-modal-body{padding:14px}
.order-header strong{font-size:15px}
}

.order-header .account-button{margin-left:auto}
.order-header .account-button.has-account{background:#15933b}
.order-header .account-button+button{margin-left:8px}
.customer-account{display:grid;gap:14px}
.account-tabs{display:grid;grid-template-columns:1fr 1fr;background:#eee9e6;border-radius:12px;padding:3px}
.account-tabs button{border:0;border-radius:9px;min-height:44px;background:transparent;font-weight:850}
.account-tabs button.active{background:var(--order-wine);color:#fff}
.account-orders,.account-debts{display:grid;gap:12px}
.account-order,.account-debt{border:1px solid #eadfdb;border-radius:15px;padding:14px;background:#fff}
.account-order>div:first-child{display:flex;justify-content:space-between;gap:10px}
.order-status{border-radius:99px;padding:5px 9px;background:#fff2d8;color:#805500;font-size:11px;font-weight:900}
.status-completed{background:#e7f7eb;color:#147533}
.status-canceled{background:#fff0ef;color:#b52622}
.status-timeline{display:flex;gap:4px;overflow:auto;margin:13px 0;padding-bottom:4px}
.status-timeline>span{min-width:120px;font-size:11px;display:grid;grid-template-columns:10px 1fr;gap:5px}
.status-timeline i{width:9px;height:9px;border-radius:50%;background:var(--order-green);margin-top:3px}
.status-timeline small{grid-column:2;color:#777}
.customer-chat{display:grid;gap:7px;background:#faf7f5;border-radius:12px;padding:10px;margin-top:10px}
.customer-chat textarea{min-height:70px}
.customer-chat button{border:0;border-radius:9px;background:var(--order-wine);color:#fff;min-height:42px;font-weight:850}
.cancel-customer-order{border:0;background:transparent;color:#b52622;text-decoration:underline;font-weight:800;margin-top:11px}
.account-debt{display:grid;grid-template-columns:1fr auto;gap:6px}
.account-debt strong{color:var(--order-wine)}
.account-debt span{grid-column:1/-1;color:#9b6810;font-weight:850}
.account-debt.late{border-color:#efb8b4;background:#fff7f6}
.account-debt.late span{color:#b52622}

.recognized-customer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom:14px;border:1px solid #b9e6c5;border-radius:14px;background:#f1fbf4}
.recognized-customer div{display:grid;gap:2px}
.recognized-customer small,.recognized-customer span{color:#5d6b61}
.recognized-customer button,.wrong-customer-link{border:0;background:transparent;color:#8c1815;text-align:right;font-weight:700;cursor:pointer}
.recognized-customer button strong{display:block}
.saved-addresses{margin:16px 0;padding:14px;border-radius:14px;background:#f8f5f3}
.saved-addresses>b{display:block;margin-bottom:8px}
.saved-address-list{display:grid;gap:8px}
.saved-address-list button{display:flex;align-items:flex-start;gap:9px;width:100%;padding:12px;border:1px solid #ded7d3;border-radius:12px;background:#fff;text-align:left;color:#26211f}
.saved-address-list button.active{border-color:#15883e;background:#effaf2;box-shadow:0 0 0 2px rgba(21,136,62,.12)}
.saved-addresses>small{display:block;margin-top:8px;color:#746b67}
.schedule-alert,.schedule-open{display:grid;gap:4px;padding:12px 14px;margin-bottom:14px;border-radius:14px}
.schedule-alert{background:#fff3dc;border:1px solid #f2cf8c;color:#6d4500}
.schedule-open{background:#effaf2;color:#126a30}
.schedule-alert span{display:block}

@media(max-width:600px){.recognized-customer{align-items:flex-start}
.recognized-customer button{max-width:135px}
.saved-address-list button{min-height:54px}
.schedule-alert,.schedule-open{font-size:14px}
}

.fulfillment-title,.payment-group-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0 10px}
.fulfillment-title>span,.payment-group-title span{display:block;color:#746b67;font-size:12px;margin-top:2px}
.payment-group-title em,.fulfillment-choice em{font-style:normal;font-size:10px;font-weight:950;letter-spacing:.05em;border-radius:99px;padding:5px 8px;background:#eaf8ee;color:#127436}
.delivery-payment-title{margin-top:22px}
.delivery-payment-title em{background:#fff1d8;color:#865500}
.fulfillment-choice button{display:grid;grid-template-columns:44px 1fr;gap:10px;align-items:center;position:relative;padding:14px 14px 35px;min-height:104px}
.choice-icon,.payment-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#f4e8e4;color:var(--order-wine);font-size:21px;font-weight:950}
.choice-copy{display:grid;gap:3px}
.choice-copy strong{font-size:15px}
.choice-copy small{font-weight:500;color:#756b68}
.fulfillment-choice em{position:absolute;left:14px;bottom:10px}
.fulfillment-choice button.active em{background:var(--order-wine);color:#fff}
.payment-options{display:grid;gap:10px}
.delivery-payment-grid{grid-template-columns:1fr 1fr}
.payment-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:11px;min-height:78px;padding:12px 14px;border:1px solid #e5dedb;border-radius:14px;background:#fff;cursor:pointer;position:relative}
.payment-card input{display:none}
.payment-card:has(input:checked){border:2px solid var(--order-wine);background:#fff5f2;box-shadow:0 8px 22px #74161216}
.payment-pix{min-height:92px;background:linear-gradient(135deg,#f2fff6,#fff)}
.payment-pix:has(input:checked){border-color:#15933b;background:linear-gradient(135deg,#ebfff1,#fff)}
.pix-icon{background:#15933b;color:#fff;transform:rotate(45deg);font-size:30px}
.payment-copy{display:grid;gap:3px}
.payment-copy strong{font-size:15px}
.payment-copy small{color:#746b67;font-weight:500}
.payment-selected{color:#15933b;font-size:20px}
.refund-customer-box{display:grid;gap:8px;margin-top:12px;padding:13px;border:1px solid #b9e3c4;border-radius:13px;background:#f1fbf4}
.refund-customer-box>span,.refund-customer-box>small{color:#526258}
.refund-key-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.refund-key-row input{min-height:46px}
.refund-key-row button{border:0;border-radius:10px;background:#15933b;color:#fff;padding:0 14px;font-weight:900}
.refund-status{width:max-content;border-radius:99px;padding:5px 9px;font-weight:900;font-size:12px}
.refund-pending{background:#fff0cf;color:#825400}
.refund-processing{background:#e8f1ff;color:#1554a1}
.refund-completed{background:#dff5e5;color:#116b30}
.refund-rejected{background:#fff0ef;color:#a5221e}

@media(max-width:600px){.fulfillment-choice{grid-template-columns:1fr 1fr}
.fulfillment-choice button{grid-template-columns:38px 1fr;padding:12px 10px 34px}
.choice-icon{width:36px;height:36px}
.choice-copy strong{font-size:13px}
.choice-copy small{font-size:11px}
.fulfillment-choice em{left:10px}
.delivery-payment-grid{grid-template-columns:1fr}
.payment-card{min-height:74px}
.payment-pix{min-height:88px}
.refund-key-row{grid-template-columns:1fr}
.refund-key-row button{min-height:46px}
}
.weight-input{width:100%;min-width:0}.weight-input input{width:100%;min-width:0;max-width:100%;overflow:hidden;text-overflow:clip}.weight-live-description{display:block;margin-top:7px;color:#6e625f;font-weight:800;min-height:18px}.weight-clear{margin:10px 0 5px auto;padding:9px 12px;border:1px solid #eccbc7!important;border-radius:10px;background:#fff5f3!important;text-decoration:none!important;min-height:40px}.order-cart-line{grid-template-columns:64px minmax(0,1fr);align-items:start}.order-cart-line>img{width:64px;height:64px;border-radius:12px;object-fit:cover;background:#f0e9e6}.order-cart-line>div{min-width:0;display:grid;gap:3px}.order-cart-line>div>span{font-size:12px;color:#6f6562}.order-line-actions{display:flex!important;flex-direction:row}.order-processing{position:fixed;inset:0;z-index:250;background:#2a070675;display:grid;place-items:center;padding:20px;opacity:0;pointer-events:none;transition:.18s}.order-processing.show{opacity:1;pointer-events:auto}.order-processing>div{width:min(330px,100%);background:#fff;border-radius:19px;padding:24px;box-shadow:0 24px 70px #21040355;display:grid;place-items:center;text-align:center;gap:7px}.order-processing small{color:#746b67}.order-processing-ring,.order-mini-spinner{border-radius:50%;border:3px solid #ead9d5;border-top-color:#741612;animation:order-spin .75s linear infinite}.order-processing-ring{width:42px;height:42px;margin-bottom:5px}.order-mini-spinner{width:17px;height:17px;display:inline-block}@keyframes order-spin{to{transform:rotate(360deg)}}@media(max-width:600px){.weight-input input{font-size:22px!important;padding-left:10px;padding-right:6px}.weight-input span{padding:0 11px}.order-cart-line{grid-template-columns:58px minmax(0,1fr);gap:10px}.order-cart-line>img{width:58px;height:58px}.order-modal-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.order-modal-actions .btn{white-space:normal;line-height:1.2;padding:10px 8px}}
