:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#261c16;background:#f3eee8;--ink:#261c16;--muted:#77685d;--cream:#fffaf3;--line:#e4d7ca;--accent:#7a2f22;--accent2:#b5653f;--green:#176d50;--danger:#a23d32;--shadow:0 18px 50px rgba(55,35,23,.12)}*{box-sizing:border-box}[hidden]{display:none !important}body{margin:0;background:#f3eee8;color:var(--ink)}button,input,select,textarea{font:inherit}.pos-shell{min-height:100vh}.auth-view{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#241811,#5b3323)}.auth-card{width:min(430px,100%);background:rgba(255,250,243,.98);border-radius:24px;padding:30px;box-shadow:0 28px 80px rgba(0,0,0,.28);text-align:center}.auth-logo{width:106px;height:auto}.auth-kicker{margin-top:8px;text-transform:uppercase;letter-spacing:.18em;color:var(--accent);font-weight:800;font-size:12px}.auth-card h1{margin:5px 0 6px;font-size:30px}.auth-card p{color:var(--muted)}.auth-form{display:grid;gap:14px;margin-top:22px;text-align:left}.auth-form label{display:grid;gap:6px;font-weight:700;font-size:13px}.auth-form input{width:100%;border:1px solid var(--line);background:white;border-radius:12px;padding:12px 13px;outline:none}.auth-form input:focus{border-color:var(--accent2);box-shadow:0 0 0 3px rgba(181,101,63,.12)}.primary-btn,.secondary-btn{border:0;border-radius:12px;padding:12px 16px;font-weight:850;cursor:pointer}.primary-btn{background:var(--accent);color:white}.secondary-btn{background:#eee5dc;color:var(--ink)}.form-message{min-height:24px;margin-top:12px;color:var(--danger);font-weight:700;font-size:13px}.back-link{display:inline-block;margin-top:10px;color:var(--accent);font-weight:750;text-decoration:none}.mfa-panel{margin-top:16px}.mfa-qr{width:190px;height:190px;object-fit:contain;background:white;border-radius:12px;padding:8px}.mfa-secret-wrap{margin-top:8px;display:grid;gap:4px}.mfa-secret-wrap code{word-break:break-all;background:#efe6dd;border-radius:9px;padding:8px}.pos-view{min-height:100vh}.pos-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 18px;background:#241811;color:#fff;box-shadow:0 3px 15px rgba(0,0,0,.2)}.brand-wrap{display:flex;align-items:center;gap:12px}.brand-wrap img{width:56px}.brand-wrap strong{display:block;font-size:18px}.brand-wrap small{display:block;color:#d7c9bd;margin-top:2px}.header-actions{display:flex;align-items:end;gap:10px}.branch-field{display:grid;gap:3px;font-size:11px;color:#d8c8bb}.branch-field select{min-width:190px;border:1px solid #60483b;background:#fff;color:#241811;border-radius:10px;padding:8px 10px}.header-link{border:1px solid #725244;background:transparent;color:#fff;border-radius:10px;padding:9px 12px;text-decoration:none;font-weight:750;cursor:pointer}.header-link.danger{color:#ffd9d3}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;min-height:calc(100vh - 76px)}.catalog-panel{padding:18px;min-width:0}.catalog-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.order-type-group{display:flex;gap:7px;flex-wrap:wrap}.order-type-group button,.category-tabs button,.payment-options button{border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px 13px;font-weight:800;color:var(--ink);cursor:pointer}.order-type-group button.active,.category-tabs button.active,.payment-options button.active{background:var(--accent);border-color:var(--accent);color:#fff}.search-input{flex:1;min-width:220px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 13px}.context-bar{margin-top:13px;background:#fffaf3;border:1px solid var(--line);border-radius:15px;padding:12px;display:flex;gap:12px;align-items:end}.context-bar label{display:grid;gap:5px;font-size:12px;font-weight:800}.context-bar label span{font-weight:600;color:var(--muted)}.context-bar .wide{flex:1}.context-bar select,.context-bar input{border:1px solid var(--line);border-radius:10px;padding:9px 10px;background:#fff;min-width:180px}.context-bar .wide input{width:100%}.category-tabs{display:flex;gap:8px;overflow-x:auto;padding:16px 0 12px}.category-tabs button{white-space:nowrap}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.product-card{position:relative;border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 5px 18px rgba(70,44,27,.06);cursor:pointer;transition:.18s transform,.18s box-shadow;text-align:left}.product-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(70,44,27,.1)}.product-card:disabled{opacity:.52;cursor:not-allowed;transform:none}.product-image{height:106px;background:#efe7df;display:grid;place-items:center;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover}.product-placeholder{font-size:28px}.product-info{padding:10px}.product-info strong{display:block;font-size:14px;line-height:1.25}.product-meta{display:flex;justify-content:space-between;gap:8px;margin-top:7px;align-items:center}.product-price{font-weight:900;color:var(--accent)}.stock-note{font-size:10px;color:var(--muted)}.loading-card,.empty-products{grid-column:1/-1;background:#fff;border:1px dashed var(--line);border-radius:16px;padding:28px;text-align:center;color:var(--muted)}.cart-panel{position:sticky;top:76px;height:calc(100vh - 76px);overflow:auto;border-left:1px solid var(--line);background:#fffaf3;padding:16px;box-shadow:-8px 0 30px rgba(70,44,27,.05)}.cart-head{display:flex;align-items:center;justify-content:space-between}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:10px;font-weight:850;color:var(--accent)}.cart-head h2{margin:2px 0 0}.icon-btn{border:1px solid var(--line);background:#fff;border-radius:10px;width:38px;height:38px;cursor:pointer}.cart-lines{display:grid;gap:9px;margin:15px 0}.empty-cart{border:1px dashed #d8c8bb;border-radius:13px;padding:20px;color:var(--muted);text-align:center}.cart-line{border:1px solid var(--line);background:#fff;border-radius:13px;padding:10px}.cart-line-top{display:flex;justify-content:space-between;gap:12px}.cart-line strong{font-size:13px}.cart-line-price{font-weight:900}.cart-line-sub{font-size:11px;color:var(--muted);margin-top:3px}.cart-line-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}.cart-line-actions button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:5px 8px;cursor:pointer;font-weight:750}.customer-card,.coupon-card,.totals-card,.payment-card{border-top:1px solid var(--line);padding-top:13px;margin-top:13px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.section-title small{color:var(--muted)}.customer-search-row,.coupon-row{display:flex;gap:7px}.customer-search-row input,.coupon-row input,.customer-fields input,.note-field textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 10px}.mini-btn{border:0;background:#4c3428;color:#fff;border-radius:10px;padding:9px 12px;font-weight:800;cursor:pointer}.customer-results{margin-top:7px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}.customer-result{display:block;width:100%;border:0;border-bottom:1px solid #eee5dc;background:#fff;text-align:left;padding:9px 10px;cursor:pointer}.customer-result:last-child{border-bottom:0}.customer-result strong,.customer-result small{display:block}.customer-result small{color:var(--muted);margin-top:2px}.customer-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.tiny-message{min-height:18px;font-size:11px;margin-top:5px;font-weight:700}.tiny-message.success{color:var(--green)}.tiny-message.error{color:var(--danger)}.totals-card>div{display:flex;justify-content:space-between;padding:5px 0}.totals-card .grand-total{font-size:19px;border-top:1px solid var(--line);margin-top:5px;padding-top:10px}.payment-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}.note-field{display:grid;gap:5px;margin-top:13px;font-size:12px;font-weight:800}.order-message{min-height:21px;font-size:12px;margin-top:8px;font-weight:750}.order-message.error{color:var(--danger)}.order-message.success{color:var(--green)}.complete-btn{width:100%;border:0;border-radius:14px;background:var(--green);color:white;font-weight:900;font-size:16px;padding:14px;margin-top:8px;cursor:pointer}.complete-btn:disabled{opacity:.55;cursor:not-allowed}.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px}.modal-backdrop{position:absolute;inset:0;background:rgba(20,12,7,.62)}.modal-card{position:relative;z-index:1;width:min(620px,100%);max-height:min(86vh,780px);overflow:auto;background:#fffaf3;border-radius:20px;padding:20px;box-shadow:0 30px 90px rgba(0,0,0,.32)}.modal-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff;cursor:pointer}.custom-head{padding-right:42px}.custom-head h2{margin:0}.custom-head p{margin:4px 0 0;color:var(--muted)}.custom-section{margin-top:16px}.custom-section h3{margin:0 0 8px;font-size:14px}.size-options,.drink-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.choice-card{border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px;cursor:pointer}.choice-card input{margin-right:6px}.ingredient-list{display:grid;gap:7px}.ingredient-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 10px}.ingredient-row label{display:flex;align-items:center;gap:7px}.custom-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.custom-actions button{border:0;border-radius:10px;padding:10px 14px;font-weight:850;cursor:pointer}.custom-actions .save{background:var(--accent);color:#fff}.custom-actions .cancel{background:#eee5dc}.mfa-panel h2{font-size:20px;margin-bottom:4px}@media(max-width:980px){.pos-layout{grid-template-columns:1fr}.cart-panel{position:static;height:auto;border-left:0;border-top:1px solid var(--line);box-shadow:none}.pos-header{position:static;align-items:flex-start}.header-actions{flex-wrap:wrap;justify-content:flex-end}.branch-field select{min-width:150px}}@media(max-width:620px){.pos-header{padding:9px 10px}.brand-wrap img{width:45px}.brand-wrap strong{font-size:15px}.header-actions{gap:6px}.header-link{padding:7px 9px;font-size:12px}.branch-field{width:100%}.branch-field select{width:100%}.catalog-panel,.cart-panel{padding:11px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-image{height:90px}.customer-fields{grid-template-columns:1fr}.context-bar{align-items:stretch;flex-direction:column}.context-bar select,.context-bar input{width:100%;min-width:0}.order-type-group{display:grid;grid-template-columns:1fr 1fr;width:100%}.search-input{min-width:0;width:100%}}


/* BATCH60 POS polish */
:root{--accent:#e36408;--accent2:#f08a25;--accent-strong:#c75300;--green:#e36408;--danger:#a23d32;}
.primary-btn,.order-type-group button.active,.category-tabs button.active,.payment-options button.active,.mini-btn,.complete-btn{background:var(--accent);border-color:var(--accent);color:#fff;}
.primary-btn:hover,.mini-btn:hover,.complete-btn:hover,.order-type-group button.active:hover,.category-tabs button.active:hover,.payment-options button.active:hover{background:var(--accent-strong);border-color:var(--accent-strong);}
.header-link{border-color:#8c5d44;background:rgba(255,255,255,.04);}
.header-link:hover{background:rgba(255,255,255,.1);}
.pos-header{padding:14px 18px;background:linear-gradient(180deg,#281911 0%, #1f140e 100%);}
.header-actions{gap:12px;align-items:center;}
.branch-field{min-width:230px;background:rgba(255,250,243,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:8px 10px;color:#f2e5d8;}
.branch-field span{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#e7d7c9;}
.branch-field select{-webkit-appearance:none;appearance:none;min-width:0;width:100%;border:1px solid #8f664e;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23c75300' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;background-size:16px;padding:10px 38px 10px 12px;border-radius:12px;font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.6);}
.order-type-group button,.category-tabs button,.payment-options button{transition:all .16s ease;}
.order-type-group button{display:inline-flex;align-items:center;gap:8px;border-radius:12px;padding:11px 14px;background:#fff;color:var(--ink);}
.order-type-group button:hover,.category-tabs button:hover,.payment-options button:hover{border-color:#d8a27d;box-shadow:0 2px 12px rgba(227,100,8,.08);}
.type-icon{font-size:15px;line-height:1;}
.category-tabs button{border-radius:14px;}
.icon-btn{display:grid;place-items:center;}
.clear-cart-btn{color:#8c4d27;background:#fff7f1;border-color:#edd0bd;}
.clear-cart-btn svg{width:18px;height:18px;}
.clear-cart-btn:hover{background:#fff0e4;color:#c75300;border-color:#e0b598;}
.section-title small{font-size:11px;font-weight:700;color:#8f7768;}
.mini-btn{background:#d66108;}
.complete-btn{box-shadow:0 10px 24px rgba(227,100,8,.18);}
.customer-search-row input,.coupon-row input,.customer-fields input,.note-field textarea,.search-input,.context-bar select,.context-bar input{transition:border-color .15s ease, box-shadow .15s ease;}
.customer-search-row input:focus,.coupon-row input:focus,.customer-fields input:focus,.note-field textarea:focus,.search-input:focus,.context-bar select:focus,.context-bar input:focus{outline:none;border-color:#e28a47;box-shadow:0 0 0 3px rgba(227,100,8,.12);}
@media(max-width:980px){.branch-field{min-width:190px;}}
@media(max-width:620px){.branch-field{width:100%;}.branch-field select{width:100%;}.order-type-group button{justify-content:center;}}


/* BATCH61 cart/UI polish */
.order-type-group button{min-height:46px;}
.order-type-group button .type-icon{font-size:16px;}
.cart-line{padding:12px;border-radius:16px;box-shadow:0 4px 16px rgba(70,44,27,.05);}
.cart-line-main{display:flex;gap:10px;align-items:flex-start;}
.cart-thumb{width:62px;min-width:62px;height:62px;border-radius:14px;overflow:hidden;background:#f2e6da;border:1px solid #ead7c7;display:grid;place-items:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);}
.cart-thumb img{width:100%;height:100%;object-fit:cover;}
.cart-thumb-placeholder{font-size:24px;}
.cart-line-body{min-width:0;flex:1;}
.cart-line-top strong{font-size:14px;line-height:1.25;}
.cart-line-price{color:var(--accent);font-weight:900;font-size:15px;}
.cart-line-sub{line-height:1.45;background:#fff8f2;border:1px solid #f1e0d1;border-radius:10px;padding:6px 8px;margin-top:6px;}
.cart-line-actions{justify-content:flex-start;flex-wrap:wrap;gap:7px;margin-top:10px;}
.cart-btn{display:inline-flex;align-items:center;gap:6px;border-radius:10px;padding:7px 10px;font-weight:800;font-size:12px;border:1px solid #e1cbb8;background:#fff;color:#5f4031;box-shadow:0 1px 0 rgba(255,255,255,.8);}
.cart-btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(70,44,27,.08);}
.cart-btn-add{background:#fff7ef;color:#c45d08;border-color:#ecc9a8;}
.cart-btn-edit{background:#fff;color:#7d573f;border-color:#dcc5b3;}
.cart-btn-remove{background:#fff5f3;color:#b24d3b;border-color:#e9c0b9;}
.mini-btn{border-radius:11px;box-shadow:0 6px 14px rgba(70,44,27,.08);}
.choice-card{display:flex;align-items:flex-start;gap:8px;border-radius:14px;padding:11px 12px;transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;}
.choice-card:hover{border-color:#dba27d;box-shadow:0 6px 18px rgba(227,100,8,.09);transform:translateY(-1px);}
.choice-card input{margin-top:4px;}
.choice-copy{display:flex;flex-direction:column;gap:2px;min-width:0;}
.choice-copy strong{font-size:14px;}
.choice-copy small{color:var(--muted);font-size:12px;font-weight:700;}
.static-choice{cursor:default;}
.drink-choice{align-items:center;min-height:64px;}
.drink-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff5eb;border:1px solid #f0d7c1;font-size:18px;flex:0 0 auto;}
.custom-actions .cancel,.custom-actions .save{border-radius:12px;padding:11px 16px;box-shadow:0 6px 14px rgba(70,44,27,.08);}
.custom-actions .save{background:var(--accent);}
.custom-actions .cancel{color:#624637;}
@media(max-width:620px){.cart-thumb{width:54px;min-width:54px;height:54px;}.cart-btn{padding:7px 9px;font-size:11px;}}

/* Batch 62: POS order-type icons + real drink thumbnails */
.drink-choice{align-items:center;}
.drink-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#fff7ef;border:1px solid #eed5bf;overflow:hidden;flex:0 0 auto;}
.drink-thumb-image{width:100%;height:100%;object-fit:contain;background:#fff;display:block;}
.drink-thumb-fallback{font-size:18px;line-height:1;}


/* Batch 63 — POS UI polish */
.header-link.danger{color:#ffb36f;border-color:#8e5a37;background:rgba(227,100,8,.07)}
.header-link.danger:hover{color:#fff;background:#c75300;border-color:#c75300}
.branch-native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.branch-field{position:relative;min-width:230px;display:grid;gap:5px;background:rgba(255,250,243,.08);border:1px solid rgba(255,255,255,.13);border-radius:16px;padding:8px 10px;color:#f2e5d8}
.branch-field>span{font-size:11px;font-weight:850;letter-spacing:.05em;text-transform:uppercase;color:#efd9c7}
.pos-branch-control{position:relative}
.pos-branch-button{width:100%;min-width:205px;min-height:40px;border:1px solid #bd7f53;border-radius:12px;background:#fffaf5;color:#382217;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;font-weight:850;cursor:pointer;box-shadow:0 5px 16px rgba(0,0,0,.12)}
.pos-branch-button:hover,.pos-branch-button[aria-expanded="true"]{border-color:#e36408;box-shadow:0 0 0 3px rgba(227,100,8,.12),0 8px 20px rgba(0,0,0,.14)}
.pos-branch-button:disabled{cursor:default;opacity:.82}
.pos-branch-chevron{font-size:20px;color:#d65b05;line-height:1;transition:transform .15s ease}
.pos-branch-button[aria-expanded="true"] .pos-branch-chevron{transform:rotate(180deg)}
.pos-branch-menu{position:absolute;top:calc(100% + 7px);right:0;z-index:100;width:max(100%,245px);padding:7px;background:#fffaf5;border:1px solid #e1c6b1;border-radius:14px;box-shadow:0 18px 42px rgba(44,25,14,.24);overflow:hidden}
.pos-branch-option{width:100%;display:grid;grid-template-columns:24px 1fr 24px;align-items:center;gap:7px;border:0;border-radius:10px;background:transparent;color:#3d291e;padding:10px 11px;text-align:left;font-weight:750;cursor:pointer}
.pos-branch-option:hover{background:#fff0e4;color:#b94d00}
.pos-branch-option[aria-selected="true"]{background:#e36408;color:#fff}
.pos-branch-pin,.pos-branch-check{text-align:center}
.table-help{display:block;max-width:260px;color:#8e7665!important;font-size:10px!important;font-weight:650!important;line-height:1.25}
.payment-options button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:12px}
.payment-options button img{width:25px;height:25px;object-fit:contain;flex:0 0 auto}
.payment-options button.active img{filter:none}
.section-title strong{display:inline-flex;align-items:center;gap:6px}
.note-field>span{font-weight:850}
.totals-card>div:first-child span{font-weight:750}
@media(max-width:620px){.branch-field{min-width:0;width:100%}.pos-branch-button{min-width:0}.pos-branch-menu{left:0;right:auto;width:100%}}


/* Batch 64: POS walk-in/customer search polish */
#pos-branch-label{color:#21150f;font-weight:900}
.pos-branch-option{color:#21150f;font-weight:800}
.pos-branch-option:hover{color:#21150f}
.pos-branch-option[aria-selected="true"]{color:#21150f}
#dine-in-bar{align-items:flex-start}
#dine-in-bar>label{flex:1;min-width:0}
#dine-in-bar select,#dine-in-bar input{width:100%}
.customer-result-status{cursor:default;color:var(--muted)}
@media(max-width:620px){#dine-in-bar>label{width:100%}}


/* Batch 65: permanent Walk-in customer selector */
.walk-in-customer{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.walk-in-customer:hover{border-color:#e28a47;box-shadow:0 0 0 3px rgba(227,100,8,.08)}
.walk-in-customer.active{border-color:#e36408;background:#fff3e8;box-shadow:0 0 0 2px rgba(227,100,8,.10)}
.walk-in-customer:disabled{opacity:.52;cursor:not-allowed;box-shadow:none}
.walk-in-main,.walk-in-meta{display:flex;align-items:center;gap:8px}
.walk-in-main strong{font-size:13px}
.walk-in-meta small{color:var(--muted);font-weight:750}
.walk-in-check{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e36408;color:#fff;font-size:12px;font-weight:900;opacity:0}
.walk-in-customer.active .walk-in-check{opacity:1}
.selected-customer-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 9px;padding:9px 11px;border:1px solid #b9d6c9;border-radius:11px;background:#f1fbf6}
.selected-customer-summary>span:first-child{min-width:0}
.selected-customer-summary strong,.selected-customer-summary small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selected-customer-summary strong{font-size:13px}
.selected-customer-summary small{margin-top:2px;color:var(--muted)}
.selected-customer-check{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;font-size:12px;font-weight:900}


/* Batch 66: compact grouped quantities + searchable dine-in fields */
.context-bar label{min-width:0}.context-bar label input[list]{width:100%}.cart-line-actions{align-items:center;justify-content:space-between;flex-wrap:wrap}.cart-qty-control{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}.cart-qty-control button{width:30px;height:28px;padding:0;border:0;border-radius:0;background:#fff;color:var(--accent);font-size:18px;font-weight:900;line-height:1}.cart-qty-control button:hover{background:#fff3e8}.cart-qty-value{min-width:30px;text-align:center;font-weight:900;font-size:13px;border-left:1px solid var(--line);border-right:1px solid var(--line);line-height:28px}.cart-line-secondary-actions{display:flex;gap:6px;margin-left:auto}.cart-line-secondary-actions .cart-btn{white-space:nowrap}@media(max-width:520px){.cart-line-actions{gap:7px}.cart-line-secondary-actions{margin-left:0}}

/* Batch 67 — keep every branch name readable in the opened POS branch list. */
.pos-branch-menu .pos-branch-option,
.pos-branch-menu .pos-branch-option:hover,
.pos-branch-menu .pos-branch-option[aria-selected="true"]{
  color:#21150f !important;
  -webkit-text-fill-color:#21150f !important;
}
.pos-branch-menu .pos-branch-option > span{
  color:#21150f !important;
  -webkit-text-fill-color:#21150f !important;
  opacity:1 !important;
}

/* Batch 68 — clear POS order success feedback */
.complete-btn[aria-busy="true"]{position:relative;cursor:wait;opacity:.82}
.order-success-card{width:min(460px,100%);text-align:center;padding:28px 24px 24px}
.order-success-icon{width:64px;height:64px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#e9f7ef;color:#1f7a4f;font-size:34px;font-weight:950}
.order-success-kicker{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#1f7a4f}
.order-success-card h2{margin:5px 0 16px;font-size:26px;color:var(--ink)}
.order-success-details{display:grid;gap:0;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.order-success-details>div{display:flex;justify-content:space-between;gap:18px;padding:10px 12px;border-bottom:1px solid #eee5dc}
.order-success-details>div:last-child{border-bottom:0}
.order-success-details span{color:var(--muted);font-size:12px;font-weight:750}
.order-success-details strong{text-align:right;color:var(--ink);font-size:13px}
.order-success-status{display:flex;justify-content:center;align-items:center;gap:8px;margin:15px 0 12px;padding:9px 12px;border-radius:12px;background:#fff3e8;color:#7a3d0b;font-size:13px}
.status-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(227,100,8,.12)}
.success-new-order-btn{width:100%;border:0;border-radius:13px;background:var(--accent);color:#fff;padding:13px 16px;font-size:15px;font-weight:900;cursor:pointer}
.success-new-order-btn:hover{background:var(--accent-strong)}
@media(max-width:620px){.order-success-card{padding:24px 16px 18px}.order-success-card h2{font-size:23px}.order-success-details>div{padding:9px 10px}}

/* ==========================================================
   Batch160 — premium POS cards + customer-style fire shell
   ========================================================== */
.pos-header{
  isolation:isolate;
  overflow:visible;
  background:
    linear-gradient(90deg,rgba(26,12,6,.90),rgba(35,17,8,.76),rgba(26,12,6,.90)),
    url('../images/fire-background.webp') center 56%/cover no-repeat;
  border-bottom:1px solid rgba(227,100,8,.72);
}
.pos-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.22;
  background:url('../images/fire-flames-animated.webp') center bottom/cover no-repeat;
  mix-blend-mode:screen;
}
.pos-header>*{position:relative;z-index:1}
.brand-wrap{position:relative;z-index:2}
.pos-menu-button{
  width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;
  border:1px solid rgba(255,145,63,.72);border-radius:12px;
  background:rgba(24,13,8,.66);color:#fff;font-size:24px;font-weight:900;
  cursor:pointer;box-shadow:0 7px 20px rgba(0,0,0,.20)
}
.pos-menu-button:hover,.pos-menu-button:focus-visible{background:#e36408;border-color:#ff9f56;outline:none}

/* D — Premium Tile */
.product-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:15px}
.product-card.premium-product-card{
  min-height:286px;
  border:1px solid rgba(238,111,23,.92);
  border-radius:19px;
  background:#21130c url('../images/wood-fire-texture.webp') center/cover no-repeat;
  box-shadow:0 10px 24px rgba(57,28,12,.16),inset 0 0 0 1px rgba(255,171,99,.14);
  color:#fff;
  overflow:hidden;
}
.product-card.premium-product-card::after{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 0 22px rgba(255,101,0,.16)
}
.product-card.premium-product-card:hover{
  transform:translateY(-3px);
  border-color:#ff7a1a;
  box-shadow:0 14px 32px rgba(74,32,10,.23),0 0 0 2px rgba(227,100,8,.13),inset 0 0 0 1px rgba(255,180,112,.20)
}
.product-card.premium-product-card:disabled{filter:grayscale(.18);opacity:.62}
.premium-product-image{height:154px;position:relative;background:#2a160d}
.premium-product-image::after{
  content:"";position:absolute;inset:auto 0 0;height:58%;pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(25,12,6,.72))
}
.premium-product-image img{transition:transform .22s ease}
.premium-product-card:hover .premium-product-image img{transform:scale(1.025)}
.premium-stock-badge{
  position:absolute;right:10px;bottom:10px;z-index:2;
  padding:5px 9px;border-radius:999px;background:rgba(18,119,66,.93);color:#fff;
  font-size:10px;font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.24);border:1px solid rgba(255,255,255,.18)
}
.premium-stock-badge.sold-out{background:rgba(157,42,35,.95)}
.premium-product-info{
  position:relative;z-index:1;display:flex;min-height:132px;flex-direction:column;
  padding:12px 13px 13px;
  background:linear-gradient(180deg,rgba(25,12,6,.78),rgba(24,12,7,.94));
  text-shadow:0 1px 2px rgba(0,0,0,.35)
}
.premium-product-info>strong{color:#fff;font-size:15px;font-weight:950;letter-spacing:.005em}
.premium-product-description{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:32px;margin:6px 0 8px;color:#e9ded6;font-size:11px;line-height:1.42;font-weight:600
}
.premium-product-meta{margin-top:auto;align-items:center}
.premium-product-meta .product-price{color:#ff9a36;font-size:18px;font-weight:950;text-shadow:none}
.premium-add-pill{
  display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 11px;
  border-radius:10px;background:linear-gradient(180deg,#ff740d,#e35400);color:#fff;
  font-size:11px;font-weight:950;text-shadow:none;box-shadow:0 5px 12px rgba(166,61,0,.28)
}

/* Customer-style POS navigation drawer */
body.pos-menu-open{overflow:hidden}
.pos-menu-shell{position:fixed;inset:0;z-index:900}
.pos-menu-backdrop{position:absolute;inset:0;background:rgba(13,7,4,.58);backdrop-filter:blur(1px)}
.pos-menu-panel{
  position:absolute;top:0;bottom:0;left:0;width:min(330px,88vw);overflow:auto;
  padding:20px;background:
    linear-gradient(rgba(36,18,10,.91),rgba(30,14,8,.95)),
    url('../images/wood-fire-texture.webp') center/cover;
  color:#fff;border-right:1px solid rgba(227,100,8,.55);box-shadow:22px 0 52px rgba(0,0,0,.28);
  transform:translateX(-102%);transition:transform .22s ease
}
.pos-menu-shell.open .pos-menu-panel{transform:translateX(0)}
.pos-menu-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.pos-menu-head img{width:92px;height:auto;filter:drop-shadow(0 8px 16px rgba(0,0,0,.25))}
#pos-menu-close{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.28);color:#fff;font-size:24px;cursor:pointer}
.pos-menu-nav{display:grid;gap:7px}
.pos-menu-link{display:flex;align-items:center;gap:12px;min-height:48px;padding:11px 13px;border-radius:11px;color:#fff;text-decoration:none;font-weight:850;border:1px solid transparent;background:rgba(255,255,255,.035)}
.pos-menu-link>span{width:25px;text-align:center;color:#ff9a45;font-size:18px}
.pos-menu-link:hover{background:rgba(255,240,223,.13);border-color:rgba(255,171,99,.18)}
.pos-menu-link.active{background:#fff0df;color:#a34200;border-color:#ffd1ad}
.pos-menu-link.active>span{color:#d65300}
.pos-menu-separator{height:1px;background:rgba(255,255,255,.12);margin:7px 0}
.pos-menu-sound-toggle{width:100%;margin-top:18px;min-height:42px;border:1px solid rgba(255,147,70,.58);border-radius:11px;background:rgba(20,10,5,.50);color:#fff;font-weight:850;cursor:pointer}

/* Fire footer */
.pos-fire-footer{
  position:relative;overflow:hidden;min-height:118px;border-top:1px solid #d75800;
  background:
    linear-gradient(90deg,rgba(20,9,5,.82),rgba(32,14,7,.58),rgba(20,9,5,.82)),
    url('../images/firewood-edge.webp') center/cover no-repeat;
  color:#fff
}
.pos-fire-footer::before{content:"";position:absolute;inset:0;background:url('../images/fire-flames-animated.webp') center bottom/cover no-repeat;opacity:.24;mix-blend-mode:screen;pointer-events:none}
.pos-fire-footer-inner{position:relative;z-index:1;max-width:1180px;margin:auto;min-height:118px;padding:16px 24px;display:flex;align-items:center;justify-content:center;gap:22px;text-align:center}
.pos-footer-logo{width:76px;height:auto;filter:drop-shadow(0 7px 15px rgba(0,0,0,.38))}
.pos-footer-copy{display:grid;gap:5px}
.pos-footer-copy strong{color:#ffb15e;font-size:15px}
.pos-footer-copy span{font-family:Tahoma,Arial,sans-serif;font-weight:800;font-size:14px}
.pos-footer-sound-toggle{position:absolute;right:22px;bottom:18px;width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,157,85,.72);background:rgba(20,10,5,.72);color:#fff;font-size:18px;cursor:pointer}

@media(max-width:900px){
  .product-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
  .pos-footer-copy span{font-size:12px}
}
@media(max-width:620px){
  .pos-menu-button{width:38px;height:38px;font-size:21px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-card.premium-product-card{min-height:246px;border-radius:15px}
  .premium-product-image{height:124px}
  .premium-product-info{min-height:120px;padding:10px}
  .premium-product-description{font-size:10px;min-height:28px}
  .premium-product-meta .product-price{font-size:16px}
  .premium-add-pill{padding:5px 8px;font-size:10px}
  .pos-fire-footer-inner{padding:16px 62px 16px 14px;gap:10px}
  .pos-footer-logo{width:58px}
  .pos-footer-copy strong{font-size:12px}
}


/* Batch161 refinements */
.pos-lang-switch{display:flex;align-items:center;gap:0;padding:4px;border:1px solid rgba(255,145,63,.35);border-radius:14px;background:rgba(20,10,5,.58);box-shadow:0 8px 18px rgba(0,0,0,.12)}
.pos-lang-switch button{border:0;background:transparent;color:#fff;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:900;cursor:pointer;min-width:52px}
.pos-lang-switch button.active{background:#e36408;color:#fff}
.pos-lang-switch button:not(.active){opacity:.84}
.pos-menu-link{appearance:none;text-align:left;width:100%;cursor:pointer}
.pos-header{background:linear-gradient(rgba(36,18,10,.88),rgba(36,18,10,.88)),url('../images/wood-fire-texture.webp') center/cover}
.pos-header::before{content:"";position:absolute;inset:0;opacity:.18;background:url('../images/fire-flames-animated.webp') center top/cover no-repeat;mix-blend-mode:screen;pointer-events:none}
.pos-header{position:sticky;overflow:hidden}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:15px}
.product-card.premium-product-card{display:flex;flex-direction:column;min-height:330px;border:2px solid #ff8227;border-radius:24px;background:#1a0d08;box-shadow:0 18px 34px rgba(58,27,10,.24),0 0 0 1px rgba(255,153,63,.18);cursor:pointer;position:relative;overflow:hidden}
.product-card.premium-product-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,143,44,.10),transparent 24%,rgba(0,0,0,.10) 56%,rgba(0,0,0,.34) 100%);pointer-events:none;z-index:0}
.product-card.premium-product-card::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 18px rgba(255,110,16,.48), inset 0 -70px 80px rgba(0,0,0,.40);pointer-events:none}
.product-card.premium-product-card.is-disabled{opacity:.58;filter:saturate(.72);cursor:not-allowed}
.product-card.premium-product-card:hover{transform:translateY(-4px);box-shadow:0 22px 40px rgba(74,32,10,.28),0 0 0 2px rgba(227,100,8,.18)}
.premium-product-image{height:190px;position:relative;display:grid;place-items:end center;padding:16px 16px 8px;background:linear-gradient(180deg,rgba(22,9,5,.28),rgba(22,9,5,.68)),url('../images/fire-flames-animated.webp') center/cover no-repeat, url('../images/fire-background.webp') center/cover no-repeat}
.premium-product-image::before{content:"";position:absolute;left:0;right:0;bottom:0;height:44px;background:url('../images/wood-fire-texture.webp') center/cover no-repeat;filter:brightness(.75);opacity:.95}
.premium-product-image::after{content:"";position:absolute;inset:auto 0 0;height:65%;background:linear-gradient(180deg,transparent,rgba(17,7,3,.26) 28%,rgba(17,7,3,.78));pointer-events:none}
.premium-product-image img{position:relative;z-index:1;max-width:90%;max-height:100%;object-fit:contain;filter:drop-shadow(0 12px 14px rgba(0,0,0,.35))}
.premium-top-badge{position:absolute;left:14px;top:14px;z-index:2;display:inline-flex;align-items:center;gap:8px;max-width:72%;padding:7px 14px;border-radius:999px;background:rgba(255,250,243,.96);color:#e15a00;font-weight:950;font-size:12px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.premium-top-badge .fire-icon{font-size:18px;line-height:1}
.premium-favorite-btn{position:absolute;top:14px;right:14px;z-index:3;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.32);background:rgba(10,5,3,.40);backdrop-filter:blur(4px);color:#fff;cursor:pointer;transition:transform .16s ease, background .16s ease, border-color .16s ease}
.premium-favorite-btn:hover{transform:scale(1.04);border-color:#ffb382}
.premium-favorite-btn.active{background:rgba(173,12,12,.86);border-color:#ff9684;color:#fff}
.premium-favorite-btn svg{width:26px;height:26px;display:block}
.premium-product-info{position:relative;z-index:1;display:flex;flex:1;min-height:0;flex-direction:column;padding:14px 15px 15px;background:linear-gradient(180deg,rgba(43,18,8,.72),rgba(22,9,5,.96)),url('../images/wood-fire-texture.webp') center/cover no-repeat}
.premium-product-info>strong{font-size:18px;font-weight:950;line-height:1.15}
.premium-product-description{font-size:13px;line-height:1.4;min-height:36px;color:#f0ddd0;margin:8px 0 12px}
.premium-product-meta{display:flex;justify-content:space-between;align-items:end;gap:10px;margin-top:auto}
.premium-product-meta .product-price{font-size:18px;color:#ffb04f}
.premium-meta-stack{display:flex;flex-direction:column;gap:9px;align-items:flex-start}
.premium-stock-badge{position:static;padding:6px 11px;border-radius:999px;font-size:11px;font-weight:900;background:#0f8a49}
.premium-add-pill{display:inline-flex;align-items:center;justify-content:center;min-width:84px;min-height:42px;padding:8px 16px;border-radius:14px;background:linear-gradient(180deg,#ff7c12,#e95a00);color:#fff;font-size:13px;font-weight:950;box-shadow:0 8px 18px rgba(166,61,0,.28)}
.product-card.premium-product-card .product-placeholder{position:relative;z-index:1;font-size:46px}
.pos-feature-modal-card{width:min(1180px,96vw);height:min(92vh,920px);display:flex;flex-direction:column;padding:16px 16px 14px;background:#fffaf3}
.pos-feature-modal-head{padding:6px 48px 10px 6px}
.pos-feature-modal-head h2{margin:0;font-size:22px}
.pos-feature-frame{flex:1;width:100%;border:1px solid var(--line);border-radius:16px;background:#fff}
@media(max-width:900px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.premium-product-image{height:168px}}
@media(max-width:620px){.header-actions{align-items:center}.pos-lang-switch{order:-1}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card.premium-product-card{min-height:276px;border-radius:18px}.premium-product-image{height:128px;padding:10px 10px 6px}.premium-top-badge{left:10px;top:10px;padding:5px 10px;font-size:10px}.premium-favorite-btn{top:10px;right:10px;width:34px;height:34px}.premium-favorite-btn svg{width:20px;height:20px}.premium-product-info{padding:10px}.premium-product-info>strong{font-size:15px}.premium-product-description{font-size:10px;min-height:30px;margin:6px 0 8px}.premium-product-meta{gap:6px}.premium-meta-stack{gap:6px}.premium-stock-badge{font-size:9px;padding:5px 8px}.premium-add-pill{min-width:68px;min-height:34px;font-size:10px;padding:5px 10px}.pos-feature-modal-card{width:min(100vw,100vw);height:100vh;max-height:100vh;border-radius:0;padding:10px}.pos-feature-frame{border-radius:12px}}

/* Batch162 — true POS-internal menu panels */
.pos-feature-modal-card{width:min(980px,94vw);height:auto;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}
.pos-feature-content{overflow:auto;min-height:220px;max-height:calc(90vh - 86px);padding:2px 2px 8px}
.pos-feature-frame{width:100%;height:min(78vh,760px);border:0;border-radius:16px;background:transparent}
.pos-feature-modal-card.track-mode{width:min(760px,94vw);padding:10px;background:linear-gradient(rgba(32,14,7,.94),rgba(32,14,7,.94)),url('../images/wood-fire-texture.webp') center/cover}
.pos-feature-modal-card.track-mode .pos-feature-modal-head{display:none}
.pos-feature-modal-card.track-mode .pos-feature-content{display:none}
.pos-feature-modal-card.track-mode .pos-feature-frame{display:block;height:min(82vh,780px);border-radius:18px}
.pos-feature-modal-card:not(.track-mode) .pos-feature-frame{display:none}
.pos-internal-panel{display:grid;gap:16px}
.pos-internal-empty{padding:30px;text-align:center;color:#7d6656;border:1px dashed #dcc9b8;border-radius:16px;background:#fffaf3}
.pos-favorites-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.pos-favorite-card{position:relative;overflow:hidden;border:1px solid rgba(238,111,23,.72);border-radius:18px;background:linear-gradient(rgba(34,15,7,.74),rgba(34,15,7,.94)),url('../images/wood-fire-texture.webp') center/cover;color:#fff;box-shadow:0 10px 24px rgba(58,28,12,.14)}
.pos-favorite-card-image{height:150px;display:grid;place-items:center;background:linear-gradient(rgba(20,8,4,.20),rgba(20,8,4,.58)),url('../images/fire-flames-animated.webp') center/cover no-repeat;overflow:hidden}
.pos-favorite-card-image img{max-width:92%;max-height:100%;object-fit:contain;filter:drop-shadow(0 10px 12px rgba(0,0,0,.3))}
.pos-favorite-card-copy{padding:12px;display:grid;gap:8px}
.pos-favorite-card-copy strong{font-size:16px}
.pos-favorite-card-copy p{margin:0;color:#ead7c8;font-size:12px;line-height:1.4;min-height:34px}
.pos-favorite-card-actions{display:flex;justify-content:space-between;gap:8px;align-items:center}
.pos-favorite-remove,.pos-favorite-add{border:0;border-radius:11px;cursor:pointer;font-weight:900}
.pos-favorite-remove{width:38px;height:38px;background:#8f1c16;color:#fff;font-size:20px}
.pos-favorite-add{padding:10px 14px;background:#e85f00;color:#fff}
.pos-info-card{position:relative;overflow:hidden;border:1px solid #efb07e;border-radius:20px;background:#fffaf3;box-shadow:0 12px 30px rgba(70,37,18,.10)}
.pos-info-fire{height:120px;background:linear-gradient(rgba(25,10,4,.24),rgba(25,10,4,.48)),url('../images/firewood-edge.webp') center/cover no-repeat;display:grid;place-items:center}
.pos-info-fire img{width:100px;filter:drop-shadow(0 7px 12px rgba(0,0,0,.35))}
.pos-info-body{padding:18px;display:grid;gap:14px}
.pos-info-body p{margin:0;white-space:pre-line;line-height:1.65;color:#513c2f}
.pos-info-list{display:grid;gap:10px}
.pos-info-row{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #ead9ca;border-radius:12px;background:#fff}
.pos-info-row a{color:#a94400;text-decoration:none;font-weight:800}
.pos-social-row{display:flex;flex-wrap:wrap;gap:8px}
.pos-social-row a{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;background:#2a170e;color:#fff;text-decoration:none;font-weight:800}
.pos-qr-wrap{display:grid;gap:14px;justify-items:center;text-align:center}
.pos-qr-tabs{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pos-qr-tabs button{border:1px solid #e1c7b2;background:#fff;border-radius:999px;padding:8px 12px;font-weight:850;cursor:pointer}
.pos-qr-tabs button.active{background:#e85f00;border-color:#e85f00;color:#fff}
.pos-qr-host{width:280px;height:280px;max-width:80vw;display:grid;place-items:center;padding:14px;background:#fff;border:1px solid #e6d4c3;border-radius:16px}
.pos-qr-host canvas,.pos-qr-host img,.pos-qr-host table{max-width:100%!important;max-height:100%!important}
@media(max-width:620px){.pos-feature-modal-card{width:100vw;max-width:100vw;max-height:100vh;height:100vh;border-radius:0}.pos-feature-content{max-height:none;flex:1}.pos-feature-modal-card.track-mode{width:100vw;max-width:100vw;border-radius:0}.pos-feature-modal-card.track-mode .pos-feature-frame{height:100%;flex:1}.pos-favorites-grid{grid-template-columns:1fr 1fr;gap:9px}.pos-favorite-card-image{height:120px}.pos-info-fire{height:100px}}

/* ======================================================
   Batch163 — POS popup language, quick footer actions,
   tracking layout, and customer Tajawal parity
   ====================================================== */
html[lang='ar'] body,
html[lang='ar'] button,
html[lang='ar'] input,
html[lang='ar'] select,
html[lang='ar'] textarea,
html[lang='ar'] .pos-feature-modal-card,
html[lang='ar'] .pos-menu-panel {
  font-family: 'Tajawal', system-ui, sans-serif !important;
}

.pos-feature-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:4px 50px 10px 6px;
}
.pos-feature-modal-head h2{margin:0;min-width:0}
.pos-feature-language-switch{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:0;
  padding:3px;
  border:1px solid #e1c7b2;
  border-radius:12px;
  background:#fff;
}
.pos-feature-language-switch[hidden]{display:none!important}
.pos-feature-language-switch button{
  min-width:50px;
  border:0;
  border-radius:9px;
  padding:7px 10px;
  background:transparent;
  color:#5b3a27;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.pos-feature-language-switch button.active{background:#e85f00;color:#fff}

.pos-fire-footer-inner{padding-left:170px;padding-right:70px}
.pos-footer-quick-actions{
  position:absolute;
  left:18px;
  bottom:18px;
  z-index:3;
  display:flex;
  gap:8px;
}
.pos-footer-quick-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:36px;
  border:1px solid rgba(255,151,80,.74);
  border-radius:999px;
  padding:7px 11px;
  background:rgba(22,10,5,.80);
  color:#fff;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.20);
}
.pos-footer-quick-btn:hover{background:#e85f00;border-color:#ffb37f}

/* The tracking panel should feel like one POS popup, not a tiny nested card. */
.pos-feature-modal-card.track-mode{
  width:min(980px,96vw);
  height:min(92vh,900px);
  max-height:92vh;
  padding:12px;
  background:linear-gradient(rgba(32,14,7,.95),rgba(32,14,7,.95)),url('../images/wood-fire-texture.webp') center/cover;
}
.pos-feature-modal-card.track-mode .pos-feature-modal-head{
  display:flex;
  min-height:54px;
  color:#fff;
  padding:2px 54px 8px 10px;
}
.pos-feature-modal-card.track-mode .pos-feature-modal-head h2{color:#fff}
.pos-feature-modal-card.track-mode .pos-feature-content{display:none}
.pos-feature-modal-card.track-mode .pos-feature-frame{
  display:block;
  flex:1;
  width:100%;
  min-height:0;
  height:auto;
  border:0;
  border-radius:16px;
  background:#fffaf3;
}
.pos-feature-modal-card.track-mode .modal-close{
  top:14px;
  right:14px;
}
html[dir='rtl'] .pos-feature-modal-card.track-mode .modal-close{right:auto;left:14px}
html[dir='rtl'] .pos-feature-modal-card.track-mode .pos-feature-modal-head{padding-left:54px;padding-right:10px}

@media(max-width:700px){
  .pos-fire-footer-inner{padding:16px 58px 62px 14px}
  .pos-footer-quick-actions{left:12px;right:56px;bottom:12px;justify-content:center}
  .pos-footer-quick-btn{min-height:34px;padding:6px 9px;font-size:10px}
  .pos-feature-modal-head{padding:4px 48px 8px 4px;gap:8px}
  .pos-feature-language-switch button{min-width:44px;padding:6px 8px}
  .pos-feature-modal-card.track-mode{width:100vw;max-width:100vw;height:100vh;max-height:100vh;border-radius:0;padding:8px}
  .pos-feature-modal-card.track-mode .pos-feature-modal-head{min-height:50px}
  .pos-feature-modal-card.track-mode .pos-feature-frame{border-radius:12px}
}


/* ======================================================
   Batch164 — requested cleanup
   - no unsolicited Featured badge
   - Track + Favorites remain true viewport-floating POS actions
   ====================================================== */
.premium-top-badge{display:none !important}
.pos-footer-quick-actions.pos-floating-quick-actions,
html[dir='ltr'] body .pos-footer-quick-actions.pos-floating-quick-actions,
html[dir='rtl'] body .pos-footer-quick-actions.pos-floating-quick-actions{
  position:fixed !important;
  left:14px !important;
  right:auto !important;
  top:auto !important;
  bottom:max(14px, env(safe-area-inset-bottom)) !important;
  z-index:850 !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  pointer-events:auto !important;
}
.pos-footer-quick-actions.pos-floating-quick-actions .pos-footer-quick-btn{
  min-height:34px !important;
  padding:6px 10px !important;
  font-size:10.5px !important;
  border-radius:999px !important;
  white-space:nowrap !important;
}
@media(max-width:700px){
  .pos-footer-quick-actions.pos-floating-quick-actions,
  html[dir='ltr'] body .pos-footer-quick-actions.pos-floating-quick-actions,
  html[dir='rtl'] body .pos-footer-quick-actions.pos-floating-quick-actions{
    left:8px !important;
    bottom:max(10px, env(safe-area-inset-bottom)) !important;
    gap:6px !important;
  }
  .pos-footer-quick-actions.pos-floating-quick-actions .pos-footer-quick-btn{
    min-height:32px !important;
    padding:5px 8px !important;
    font-size:10px !important;
  }
}


/* ======================================================
   Batch166 — real customer-menu badges + floating speaker
   ====================================================== */
/* Keep the retired unsolicited Featured class hidden. Real menu badges use a separate class. */
.premium-top-badge{display:none !important}
.pos-product-badge-stack{
  position:absolute;
  top:12px;
  left:12px;
  z-index:4;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  max-width:calc(100% - 68px);
  pointer-events:none;
}
html[dir='rtl'] .pos-product-badge-stack{left:auto;right:12px}
html[dir='rtl'] .premium-favorite-btn{right:auto;left:14px}
.pos-product-badge{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  background:#fff0df;
  color:#cf4a00;
  border:1px solid rgba(255,122,26,.25);
  font-size:10.5px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.pos-product-badge.badge-free_drink{background:#fff7ef;color:#a33d00}
.pos-product-badge.badge-new{background:#fff7ef;color:#8b4800}
.pos-product-badge.badge-favorite{background:#fff7ef;color:#9f2e44}
.pos-product-badge.badge-most-ordered,.pos-product-badge.badge-best_seller{background:#fff0df;color:#cf4a00}
.pos-footer-quick-actions.pos-floating-quick-actions .pos-floating-sound-btn{
  width:30px !important;
  min-width:30px !important;
  height:30px !important;
  min-height:30px !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  font-size:13px !important;
  line-height:1 !important;
}
@media(max-width:700px){
  .pos-product-badge-stack{top:9px;left:9px;gap:4px;max-width:calc(100% - 52px)}
  html[dir='rtl'] .pos-product-badge-stack{left:auto;right:9px}
  html[dir='rtl'] .premium-favorite-btn{left:10px}
  .pos-product-badge{min-height:20px;padding:2px 6px;font-size:8.5px}
  .pos-footer-quick-actions.pos-floating-quick-actions .pos-floating-sound-btn{width:28px !important;min-width:28px !important;height:28px !important;min-height:28px !important;font-size:12px !important}
}

/* ======================================================
   Batch178 — POS customer delivery + Loyalty / Rewards
   ====================================================== */
#delivery-bar.pos-delivery-context{
  display:grid;
  grid-template-columns:minmax(170px,.8fr) minmax(220px,1.2fr) minmax(220px,1fr) auto;
  align-items:end;
  gap:10px;
}
#delivery-bar.pos-delivery-context[hidden]{display:none !important;}
.pos-saved-address-field{min-width:0;}
.pos-saved-address-field select,
#delivery-google-maps-link{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 10px;
  background:#fff;
}
.pos-map-open{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  white-space:nowrap;
  background:linear-gradient(135deg,#5a3a25,#342118);
}
.pos-map-open::before{content:'🗺️';margin-inline-end:6px;}
.pos-customer-details{
  margin-top:10px;
  padding:11px;
  border:1px solid #e5c6aa;
  border-radius:13px;
  background:linear-gradient(145deg,#fffaf3,#fff3e3);
  box-shadow:0 5px 15px rgba(82,43,18,.06);
}
.pos-loyalty-balance{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#3d2417;
  font-size:13px;
  font-weight:850;
}
.pos-loyalty-balance strong{
  padding:5px 9px;
  border:1px solid #efa667;
  border-radius:999px;
  background:#fff;
  color:#d85508;
  font-size:12px;
  white-space:nowrap;
}
.pos-loyalty-help{
  margin:7px 0 0;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.45;
}
.pos-reward-controls{
  display:grid;
  gap:8px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #ead8c7;
}
.pos-reward-controls label{
  display:grid;
  gap:5px;
  color:#4a3021;
  font-size:11px;
  font-weight:800;
}
.pos-reward-controls select{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 10px;
  background:#fff;
  color:var(--ink);
}
.pos-reward-actions{display:flex;justify-content:flex-end;}
.pos-reward-actions .mini-btn{background:linear-gradient(135deg,#ed650c,#d64f00);}
.pos-reward-actions .mini-btn:disabled{opacity:.5;cursor:not-allowed;}
.pos-selected-reward{
  margin-top:8px;
  padding:7px 9px;
  border:1px solid #b9dcbf;
  border-radius:9px;
  background:#f3fbf4;
  color:#256636;
  font-size:11px;
}
#loyalty-discount-row strong{color:#c6530a;}
html[dir='rtl'] .pos-map-open::before{margin-inline-end:0;margin-inline-start:6px;}
@media(max-width:1180px){
  #delivery-bar.pos-delivery-context{
    grid-template-columns:1fr 1fr;
  }
  .pos-map-open{width:100%;}
}
@media(max-width:620px){
  #delivery-bar.pos-delivery-context{grid-template-columns:1fr;}
  .pos-loyalty-balance{align-items:flex-start;}
}

/* ======================================================
   Batch179 — delivery details belong inside Customer card
   ====================================================== */
#delivery-bar.pos-delivery-customer-panel{
  margin-top:10px;
  padding:11px;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  border:1px solid #e5c6aa;
  border-radius:13px;
  background:linear-gradient(145deg,#fffaf3,#fff3e3);
  box-shadow:0 5px 15px rgba(82,43,18,.06);
}
#delivery-bar.pos-delivery-customer-panel[hidden]{display:none !important;}
.pos-delivery-panel-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:1px;
  color:#3d2417;
  font-size:12px;
}
#delivery-bar.pos-delivery-customer-panel label{
  display:grid;
  gap:5px;
  min-width:0;
  color:#4a3021;
  font-size:11px;
  font-weight:800;
}
#delivery-bar.pos-delivery-customer-panel label > span{
  color:#5f4a3c;
}
#delivery-bar.pos-delivery-customer-panel select,
#delivery-bar.pos-delivery-customer-panel input{
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 10px;
  background:#fff;
  color:var(--ink);
}
#delivery-bar.pos-delivery-customer-panel select:focus,
#delivery-bar.pos-delivery-customer-panel input:focus{
  outline:none;
  border-color:#e28a47;
  box-shadow:0 0 0 3px rgba(227,100,8,.12);
}
#delivery-bar.pos-delivery-customer-panel .pos-map-open{
  width:100%;
  min-height:38px;
}

/* ======================================================
   Batch182 — one-field Address Label picker
   ====================================================== */
.pos-address-label-picker{
  position:relative;
  min-width:0;
}
#delivery-bar .pos-address-label-picker input{
  padding-inline-end:42px;
}
.pos-address-label-toggle{
  position:absolute;
  z-index:2;
  top:1px;
  bottom:1px;
  inset-inline-end:1px;
  width:36px;
  border:0;
  border-inline-start:1px solid #ead3bf;
  border-radius:0 9px 9px 0;
  background:#fff8ef;
  color:#6c3517;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
}
html[dir='rtl'] .pos-address-label-toggle{
  border-radius:9px 0 0 9px;
}
.pos-address-label-menu{
  position:absolute;
  z-index:80;
  top:calc(100% + 4px);
  inset-inline:0;
  display:grid;
  gap:2px;
  padding:5px;
  border:1px solid #e5c6aa;
  border-radius:10px;
  background:#fffdf9;
  box-shadow:0 12px 26px rgba(67,30,10,.2);
}
.pos-address-label-menu[hidden]{display:none !important;}
.pos-address-label-option{
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#3d2417;
  font:inherit;
  font-weight:800;
  text-align:start;
  cursor:pointer;
}
.pos-address-label-option:hover,
.pos-address-label-option:focus-visible{
  background:#fff0df;
  outline:none;
}


/* Batch186 — keep the custom branch menu above the POS content. */
.pos-header{overflow:visible !important;}
.branch-field{z-index:80;}
.pos-branch-menu{z-index:9999 !important;max-height:min(60vh,320px);overflow:auto;}
