:root{font-family:"Segoe UI",Arial,sans-serif;color:#211835;background:#f3f2f6;--ink:#211835;--line:#dfdce5;--muted:#706783;--green:#36245b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{border:1px solid transparent;border-radius:10px;background:var(--green);color:white;padding:13px 20px;min-height:48px;font-size:14px;font-weight:600;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #8877ad;outline-offset:3px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #6d5b94;outline-offset:1px}.quiet{background:#fff;color:var(--ink);border-color:var(--line)}[hidden]{display:none!important}.brand{font-size:31px;font-weight:850;letter-spacing:-1.5px;color:inherit;text-decoration:none;white-space:nowrap}.brand span{font-size:10px;letter-spacing:2px;margin-left:10px;font-weight:600;background:#e3dfed;padding:5px 8px;border-radius:4px;vertical-align:middle}header{display:flex;align-items:center;gap:32px;padding:20px 30px;background:#fff;border-bottom:1px solid var(--line)}label{display:grid;gap:8px;font-size:12px;font-weight:600;color:var(--muted)}input,select,textarea{min-width:0;width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:16px;min-height:48px}textarea{resize:vertical}.org-label{min-width:200px;max-width:300px;font-size:10px;gap:4px}.org-label select{font-size:13px;min-height:38px;padding:8px}.header-account{margin-left:auto;display:flex;gap:20px;align-items:center;font-size:12px}.header-account .quiet{min-height:38px;font-size:12px;padding:8px 14px}nav{display:flex;gap:10px;align-items:center;padding:14px 30px;background:#eae7f0;border-bottom:1px solid var(--line);flex-wrap:wrap}nav button{font-size:12px;min-height:40px;padding:10px 17px}nav a{font-size:12px;color:inherit;margin-left:8px}#shift-label{margin-left:auto;font-size:11px;color:var(--muted)}#checkout-view{display:grid;grid-template-columns:minmax(0,1fr) 380px;min-height:calc(100dvh - 175px)}.catalog{padding:32px;min-width:0}.catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.catalog-heading .quiet{font-size:12px;min-height:42px}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:650;color:var(--muted);margin:0 0 10px}h1{font-size:29px;letter-spacing:-.8px;margin:0;font-weight:650}h2{font-size:19px;letter-spacing:-.4px;margin:0}h3{font-size:14px;margin:0 0 12px}.search{max-width:600px}.search input{font-size:14px}.categories{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0}.categories button{background:transparent;color:#655d76;border:1px solid var(--line);min-height:38px;font-size:12px;padding:8px 15px;border-radius:20px}.categories button[aria-pressed=true]{background:#32244f;color:#fff;border-color:#32244f}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:16px}.product{padding:0;background:#fff;border:1px solid var(--line);color:var(--ink);text-align:left;overflow:hidden;min-height:165px;display:flex;flex-direction:column;justify-content:space-between;position:relative}.product-art{height:75px;background:#e6e2ee;display:flex;align-items:center;justify-content:center;color:#786d8e;font-size:30px;font-weight:300;letter-spacing:-1px}.product:nth-child(3n+2) .product-art{background:#e6e3eb}.product:nth-child(3n) .product-art{background:#edf0df}.product img{height:110px;width:100%;object-fit:cover}.product-copy{padding:17px 16px;width:100%}.product-copy span{display:block;font-size:13px;margin-bottom:10px;line-height:1.4}.product-copy strong{font-size:18px;letter-spacing:-.4px}.product-copy small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:7px}.product:hover:enabled{border-color:#716291;box-shadow:0 5px 15px #2b1d4a0b}.cart{padding:26px 24px;background:#fff;border-left:1px solid var(--line);position:sticky;top:0;align-self:start;max-height:100dvh;overflow-y:auto}.cart-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.cart-heading .quiet{font-size:11px;min-height:33px;padding:7px 12px}.cart-items{min-height:100px}.empty-cart{font-size:13px;color:#8e85a0;padding:25px 0}.cart-line{padding:16px 0;border-bottom:1px solid #edebf1}.line-top{display:flex;justify-content:space-between;gap:20px;font-size:13px;font-weight:600}.line-controls{display:flex;align-items:center;gap:12px;margin-top:12px}.line-controls button{font-size:17px;min-height:34px;min-width:34px;padding:4px 10px;border-radius:7px}.line-controls span{font-size:13px;font-variant-numeric:tabular-nums}.line-controls .remove{font-size:11px;min-height:32px;margin-left:auto;background:none;color:#8b4b3c;padding:4px}.order-summary{display:flex;justify-content:space-between;align-items:center;margin:24px 0;padding-top:15px;font-size:14px}.order-summary strong{font-size:27px;letter-spacing:-.8px}.payment-section{border-top:1px solid var(--line);padding-top:22px}.payment-section>p{font-size:11px;line-height:1.6;color:var(--muted)}#code-form{display:grid;gap:12px;margin-top:18px}#payment-code{text-transform:uppercase;font-family:monospace;font-size:15px}.payment-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.payment-actions button{font-size:12px;min-height:42px}.payment-card{border:1px solid #d5cfe2;background:#f7f9ec;padding:12px;border-radius:8px;margin-top:12px;font-size:11px}.payment-card strong{font-size:14px;display:block;margin:5px 0}.payment-card p{margin:4px 0;color:var(--muted);overflow-wrap:anywhere}.payment-card button{min-height:24px;padding:3px 6px;font-size:10px;float:right}.payment-total{display:flex;justify-content:space-between;margin-top:20px;font-size:12px}.pay-button{width:100%;margin-top:22px;min-height:58px;font-size:16px}.credit-note{text-align:center;font-size:10px;color:var(--muted);margin:18px 0 0}#checkout-error,#dialog-error{font-size:12px;line-height:1.5;background:#fff0eb;color:#9b3c29;border:1px solid #e6c7bc;padding:12px;border-radius:7px}.wide-view{padding:35px;max-width:1300px;margin:auto}.wide-view .search{margin-bottom:25px}.sale-card,.catalog-row{display:flex;align-items:center;gap:20px;justify-content:space-between;background:white;border:1px solid var(--line);padding:22px;border-radius:10px;margin-bottom:12px;font-size:13px}.sale-card small,.catalog-row small{display:block;color:var(--muted);font-size:11px;margin-top:7px}.sale-card>strong,.catalog-row>strong{margin-left:auto}.sale-card button,.catalog-row button{font-size:12px;min-height:42px}dialog{border:1px solid var(--line);border-radius:15px;padding:28px;background:#fff;color:var(--ink);width:490px;max-width:calc(100% - 30px);max-height:calc(100dvh - 40px);box-shadow:0 25px 100px #19112a50}dialog::backdrop{background:#19112bad;backdrop-filter:blur(2px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.dialog-heading .quiet{font-size:14px;padding:6px 12px;min-height:36px}dialog form{display:grid;gap:18px}dialog p{font-size:13px;line-height:1.6;color:var(--muted)}dialog small{font-weight:400;font-size:11px}dialog video{width:100%;border-radius:10px;background:#1b122d;min-height:200px}.receipt-line{display:flex;justify-content:space-between;gap:20px;font-size:13px;padding:12px 0;border-bottom:1px solid var(--line)}.receipt-total{font-size:20px;font-weight:650;margin:18px 0}.receipt-actions{display:flex;gap:10px;margin-top:25px}.receipt-actions button{flex:1;font-size:12px}.receipt-meta{font-size:11px!important;line-height:1.8!important}.login{max-width:410px;margin:auto;padding:65px 25px}.login .brand{display:block;margin-bottom:65px}.login h1{margin-bottom:18px}.login>p{font-size:13px;color:var(--muted);line-height:1.6}.login form{display:grid;gap:20px;margin-top:30px}#google{margin-top:22px}.admin-link{display:block;margin-top:35px;font-size:12px;color:var(--ink)}#message{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;z-index:50;padding:16px 22px;background:#f2f6df;border:1px solid #c2b8d7;color:#362853;border-radius:9px;font-size:13px}#message.error{background:#fff0eb;border-color:#e6c7bc;color:#9b3c29}.empty{font-size:13px;color:var(--muted);padding:30px 0}.pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(min-width:1550px){#checkout-view{grid-template-columns:minmax(0,1fr) 430px}.catalog{padding:40px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(max-width:1100px){header{padding:18px 22px;gap:20px}.header-account>span{display:none}nav{padding:12px 22px}#checkout-view{grid-template-columns:minmax(0,1fr) 340px}.catalog{padding:25px 22px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.catalog-heading{align-items:flex-start}.catalog-heading h1{font-size:25px}.catalog-heading .quiet{font-size:10px;padding:8px 12px;min-height:36px}.cart{padding:24px 20px}#shift-label{display:none}}
@media(max-width:750px){header{flex-wrap:wrap;gap:16px}.brand{font-size:27px}.header-account{margin-left:auto}.org-label{order:3;max-width:none;width:100%}nav{gap:8px;padding:12px 16px}nav button{font-size:10px;padding:8px 12px}nav a{font-size:10px}#checkout-view{grid-template-columns:1fr}.catalog{padding:25px 16px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}.cart{position:static;max-height:none;border-left:0;border-top:1px solid var(--line);padding:28px 22px}.wide-view{padding:28px 16px}.catalog-heading h1{font-size:25px}.sale-card,.catalog-row{flex-wrap:wrap;padding:18px;gap:15px}.sale-card>div,.catalog-row>div{flex:1 1 65%}.sale-card>strong,.catalog-row>strong{margin-left:0}.sale-card button,.catalog-row button{margin-left:auto}dialog{padding:23px}.login{padding-top:40px}.login .brand{margin-bottom:45px}}
@media print{body>*{display:none!important}dialog[open]{display:block!important;position:static;width:80mm;max-width:100%;max-height:none;box-shadow:none;border:0;padding:0;margin:0}.dialog-heading button,.receipt-actions,#dialog-error{display:none!important}.receipt-line{font-size:11px}.receipt-meta{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.processing{pointer-events:none;opacity:.7}

/* One unified POS toolbar, with responsive wrapping inside the same surface. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pos-topbar{gap:16px;padding:17px 24px;min-height:80px;flex-wrap:nowrap}.pos-topbar>.brand{font-size:27px}.pos-topbar .brand span{margin-left:7px;font-size:9px}.pos-topbar .org-label{min-width:145px;max-width:210px;flex:0 1 180px;order:0}.pos-topbar .org-label select{min-height:42px;font-size:12px;padding:10px 28px 10px 12px}.pos-topbar nav{padding:0;background:none;border:0;flex-wrap:nowrap;gap:6px}.pos-topbar nav button{white-space:nowrap;min-height:42px;font-size:12px;padding:10px 14px}.pos-topbar nav a{font-size:11px;margin:0 5px;white-space:nowrap}.pos-topbar .shift-controls{display:flex;align-items:center;gap:12px;margin-left:auto}.pos-topbar #shift-label{font-size:10px;white-space:nowrap;margin:0;max-width:170px;overflow:hidden;text-overflow:ellipsis}.pos-topbar #shift-button{min-height:42px;padding:10px 13px;font-size:11px;white-space:nowrap}.pos-topbar .header-account{margin-left:0;gap:12px}.pos-topbar .header-account>span{font-size:10px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-topbar #logout{min-height:42px;font-size:11px;padding:10px 13px;white-space:nowrap}#checkout-view{min-height:calc(100dvh - 80px)}.catalog-toolbar{display:flex;gap:18px;align-items:flex-end;margin:0}.catalog-toolbar .search{flex:1;max-width:600px}.catalog-toolbar>button{min-height:48px;font-size:12px;white-space:nowrap}.catalog{padding-top:25px}
@media(max-width:1450px){.pos-topbar .header-account>span{display:none}.pos-topbar{gap:12px}.pos-topbar .org-label{flex-basis:170px}.pos-topbar #shift-label{max-width:140px}}
@media(max-width:1250px){.pos-topbar #shift-label{display:none}.pos-topbar nav button{font-size:11px;padding:10px 12px}.pos-topbar .org-label{max-width:175px}.pos-topbar>.brand{font-size:25px}.pos-topbar{padding:16px 20px;gap:12px}}
@media(max-width:950px){.pos-topbar{flex-wrap:wrap;gap:12px}.pos-topbar nav{order:4;flex:1 1 auto}.pos-topbar .shift-controls{order:5;margin-left:auto}.pos-topbar .org-label{max-width:240px;flex:1 1 170px}.pos-topbar .header-account{margin-left:auto}.pos-topbar nav button{font-size:12px}.catalog-toolbar{gap:12px}.catalog-toolbar>button{font-size:11px;padding:12px}}
@media(max-width:600px){.pos-topbar{padding:16px;gap:12px}.pos-topbar>.brand{font-size:24px}.pos-topbar .brand span{font-size:8px;padding:4px 6px;margin-left:5px}.pos-topbar .org-label{flex:1;min-width:110px;max-width:none}.pos-topbar .org-label select{font-size:11px;min-height:38px;padding:8px 22px 8px 9px}.pos-topbar #logout{font-size:10px;min-height:38px;padding:8px 10px}.pos-topbar nav{flex:1 1 100%;flex-wrap:wrap;gap:7px}.pos-topbar nav button{min-height:38px;font-size:11px;padding:9px 11px}.pos-topbar nav a{font-size:10px}.pos-topbar .shift-controls{order:6;margin-left:0}.pos-topbar #shift-label{display:block;max-width:180px}.pos-topbar #shift-button{min-height:36px;padding:8px 11px;font-size:10px}.catalog-toolbar{gap:12px}.catalog-toolbar>button{font-size:10px;padding:10px;min-height:48px}}

.product-image-preview{display:flex;align-items:center;gap:15px}.product-image-preview img{width:110px;height:110px;object-fit:cover;border-radius:9px;border:1px solid var(--line)}.product-image-preview button{font-size:11px;min-height:38px}input[type=file]{font-size:12px;padding:10px}

.checkout-qr-panel{text-align:center}.checkout-qr-panel>strong{display:block;font-size:30px;margin:12px 0}.checkout-qr-panel img{display:block;background:#fff;max-width:100%;width:300px;height:auto;margin:0 auto}.checkout-qr-panel>p{font-size:12px}.checkout-qr-panel details{font-size:11px;margin:20px 0}.checkout-qr-panel code{display:block;overflow-wrap:anywhere;font-size:17px;margin:15px 0}.checkout-qr-panel>button{width:100%;margin-top:12px}

.login .password-field{display:grid;gap:8px}.login .password-input{position:relative}.login .password-input input{padding-right:132px}.login .password-input button{position:absolute;right:4px;top:4px;bottom:4px;min-height:40px;padding:6px 10px;font-size:12px;border:0;background:transparent;color:var(--ink)}.login .password-input button:hover{background:#ede8f5}

#alcohol-age-check{text-align:left;border:2px solid #5d2be6;border-radius:16px;padding:18px;margin:20px 0}#alcohol-age-check h3{margin-top:0}#alcohol-age-check label{display:block;margin:14px 0}#alcohol-age-check input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:8px}#alcohol-age-check p{font-size:14px;line-height:1.5}

.pos-product-form{display:grid;gap:16px;max-width:760px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px}.pos-product-form .form-actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--line);padding-top:18px;margin-top:4px}.pos-product-form #product-form-error{font-size:12px;color:#9b3c29}.pos-product-form small{font-size:11px;font-weight:400;color:var(--muted)}@media(max-width:600px){.pos-product-form{padding:18px}.pos-product-form .form-actions{flex-direction:column-reverse}.pos-product-form .form-actions button{width:100%}}
#cash-payment h3 { margin: 0 0 14px; }
.cash-fields { display: grid; gap: 14px; min-width: 0; }
.cash-fields label { display: grid; gap: 6px; min-width: 0; }
.cash-fields label strong { color: var(--ink); font-size: 14px; }
.cash-fields small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cash-change-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft, #f4f0fa);
}
.cash-change-summary output { font-weight: 700; font-variant-numeric: tabular-nums; }
.cash-recipient { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
#cash-payment #use-coupons { margin-top: 14px; }
/* Keep the total and checkout action outside the scrolling order details. */
#checkout-view .cart {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
  align-self: stretch;
  top: auto;
  max-height: none;
  padding: 0;
  overflow: hidden;
}
.cart .cart-heading {
  padding: 14px 20px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.cart-scroll {
  min-height: 0;
  padding: 12px 20px 16px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.cart .cart-items { min-height: 0; }
.cart-line { padding-block: 8px; }
.cart .payment-section { margin-top: 10px; padding-top: 12px; }
.cart-footer {
  padding: 10px 20px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -6px 20px #24173d0d;
}
.cart-footer .order-summary { margin: 0 0 8px; padding: 0; }
.cart-footer .order-summary strong { font-size: 23px; font-variant-numeric: tabular-nums; }
.cart-footer .pay-button { margin: 0; min-height: 46px; }
#cash-payment h3 { margin-bottom: 10px; }
.cash-fields { gap: 10px; }
.cash-change-summary { background: #f1ecff; color: #3c246e; }
.cash-recipient { background: #faf8ff; }
.change-options {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.change-options legend { margin-bottom: 6px; font-size: 13px; font-weight: 650; }
.cash-fields .change-options label {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.change-options label:has(input:checked) { border-color: #5c29e8; background: #f3edff; }
.change-options input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: #5c29e8; }
.mobile-only { display: none; }
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5f2fb;
}
.payment-methods button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}
.payment-methods button[aria-pressed="true"] {
  background: #c4e2ff;
  border-color: #78a9dd;
  color: #153c68;
  font-weight: 700;
}

@media (min-width: 751px) {
  #app:has(> #checkout-view:not([hidden])) {
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }
  #checkout-view { min-height: 0; }
  #checkout-view > .catalog { min-height: 0; overflow-y: auto; }
}
@media (max-width: 750px) {
  .pos-topbar {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 6px 8px;
    padding: 8px 12px;
  }
  .pos-topbar > .brand { grid-area: 1 / 1; }
  .pos-topbar .brand .kupon-logo { width: 90px; }
  .pos-topbar .brand > span { display: none; }
  .pos-topbar .header-account { grid-area: 1 / 3; justify-self: end; }
  .pos-topbar .org-label { grid-area: 1 / 2; min-width: 0; max-width: none; }
  .pos-topbar .shift-controls { grid-area: 2 / 3; justify-self: end; margin: 0; }
  .pos-topbar #shift-label { display: none; }
  .pos-topbar nav {
    grid-area: 2 / 1 / 3 / 3;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    gap: 2px;
  }
  .pos-topbar :is(#logout,#shift-button) { padding: 6px 8px; min-height: 40px; font-size: 11px; }
  .pos-topbar #logout { border-color: transparent; }
  .pos-topbar #shift-button { background: #f3edff; color: #4523a3; border-color: transparent; }
  .pos-topbar nav :is(button,a) { min-height: 40px; padding: 6px; font-size: 12px; margin: 0; }
  .pos-topbar nav a { display: inline-flex; align-items: center; text-decoration: none; }
  .pos-topbar nav .quiet { border-color: transparent; }
  .pos-topbar nav [aria-current=page] { color: #4523a3; background: #ede5ff; }
  .pos-topbar .org-label select { font-size: 16px; min-height: 40px; padding-block: 6px; background: #f9f7ff; }
  .desktop-label { display: none; }
  #checkout-view { display: block; min-height: 0; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  #checkout-view .catalog { padding: 12px; }
  #checkout-view[data-mobile-order] .catalog { display: none; }
  .catalog-toolbar { gap: 8px; }
  .catalog-toolbar .search { min-width: 0; }
  .catalog-toolbar > button { min-width: 0; min-height: 44px; padding-inline: 10px; font-size: 12px; }
  .catalog-toolbar input { min-height: 44px; padding-block: 9px; }
  .categories { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 10px 0 12px; gap: 6px; }
  .categories button { flex: 0 0 auto; min-height: 42px; white-space: nowrap; padding-inline: 12px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product { border-radius: 12px; }
  .product-copy span { overflow-wrap: anywhere; }
  #checkout-view .cart { display: block; margin: 0; border: 0; overflow: visible; }
  .cart-scroll { overflow: visible; padding: 12px 16px 24px; }
  #checkout-view:not([data-mobile-order]) :is(.cart-heading,.cart-scroll,.payment-methods,#complete) { display: none; }
  .cart-footer {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  }
  #mobile-order-count { margin-left: 6px; color: var(--muted); font-size: 12px; }
  .mobile-only { display: inline; }
  #mobile-review-order { width: 100%; min-height: 46px; }
  #checkout-view:not([data-mobile-order]) .cart-footer {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(130px,48%);
    align-items: center;
    gap: 6px 12px;
  }
  #checkout-view:not([data-mobile-order]) .cart-footer .order-summary { display: grid; gap: 2px; margin: 0; font-size: 12px; }
  #checkout-view:not([data-mobile-order]) #checkout-error { grid-column: 1 / -1; }
  #checkout-view[data-mobile-order] .cart-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
  }
  #checkout-view[data-mobile-order] .cart-footer .order-summary { margin: 0; }
  #checkout-view[data-mobile-order] #mobile-order-count { display: none; }
  #checkout-view[data-mobile-order] :is(#checkout-error,.payment-methods,#complete) { grid-column: 1 / -1; }
  #checkout-view[data-mobile-order] #mobile-review-order {
    width: auto;
    min-height: 44px;
    background: transparent;
    color: #4f20c8;
    padding: 4px 0;
    margin: 0 0 4px;
  }
  #checkout-view[data-mobile-order] { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
  .cart-footer .payment-methods button { min-height: 44px; }
  #checkout-view input { font-size: 16px; scroll-margin-bottom: 190px; }
  .cart .cart-heading { padding: 8px 14px; }
  .cart .cart-heading .quiet { min-height: 40px; }
  :is(#order-heading,#checkout-catalog):focus { outline: none; }
  .cart .line-controls { margin-top: 6px; }
  .cart .line-controls button { min-width: 44px; min-height: 44px; }
  #message { top: 12px; bottom: auto; pointer-events: none; }
  #dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
}
.cart-footer #checkout-error { margin: 0 0 8px; padding: 6px 9px; }

@media (max-width: 480px) {
  .product-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .product {
    display: grid;
    grid-template-columns: 60px minmax(0,1fr) 36px;
    min-height: 76px;
    align-items: center;
    gap: 12px;
    padding: 7px 10px 7px 7px;
  }
  .product :is(img,.product-art) { width: 60px; height: 60px; border-radius: 8px; }
  .product img { object-fit: contain; background: #f6f3fc; }
  .product-art { font-size: 23px; }
  .product-copy {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: baseline;
    gap: 3px 8px;
    padding: 0;
  }
  .product-copy span { grid-column: 1 / -1; margin: 0; font-size: 14px; }
  .product-copy strong { font-size: 15px; white-space: nowrap; }
  .product-copy small { margin: 0; }
  .product::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee7ff;
    color: #4f20c8;
    font-size: 22px;
    line-height: 1;
  }
  .product:disabled::after { visibility: hidden; }
}

.pos-topbar #fullscreen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 7px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 10px;
  white-space: nowrap;
}
.fullscreen-exit-icon,
#fullscreen-toggle[data-active="true"] .fullscreen-enter-icon { display: none; }
#fullscreen-toggle[data-active="true"] .fullscreen-exit-icon { display: inline; }
@media (max-width: 1250px) {
  #fullscreen-label { display: none; }
}
@media (max-width: 750px) {
  .pos-topbar #fullscreen-toggle { display: none; }
}
