.shopping-dialog{
  --shop-ink:#202020;--shop-muted:#777570;--shop-line:#e9e6e1;--shop-surface:#f3f1ed;--shop-accent:#674589;
  width:min(680px,calc(100% - 32px));height:min(920px,calc(var(--shop-height,100dvh) - 32px));
  max-width:none;max-height:none;padding:0;margin:auto;border:1px solid var(--shop-line);border-radius:12px;
  background:#faf9f6;color:var(--shop-ink);font:14px/1.5 'Segoe UI',Arial,sans-serif;overflow:hidden;
}
.shopping-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.shopping-dialog::backdrop{background:rgba(22,20,24,.5)}
.shopping-dialog *{min-width:0}
.shopping-dialog [hidden]{display:none!important}
.shop-head{display:grid;grid-template-columns:36px minmax(0,1fr) 44px;gap:8px;align-items:center;padding:20px;border-bottom:1px solid var(--shop-line)}
.shop-head>div{grid-column:2;grid-row:1}.shop-head .shop-back{grid-column:1;grid-row:1}.shop-head>button:last-child{grid-column:3;grid-row:1}
.shop-kicker{font-size:10px;letter-spacing:.08em;color:var(--shop-muted)}
.shop-head h2{font:400 30px/1.1 Georgia,serif;letter-spacing:-.035em;margin:6px 0 0;overflow-wrap:anywhere}
.shop-icon{width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:var(--shop-ink);font-size:25px;cursor:pointer;padding:0}
.shop-back{width:36px}
.shop-icon:hover{background:var(--shop-surface)}
.shop-scroll{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:20px;scroll-padding:20px}
.shop-scroll::-webkit-scrollbar{display:none;width:0;height:0}
.shop-scroll h3{font:600 15px/1.4 'Segoe UI',Arial,sans-serif;letter-spacing:0;margin:0}
.shop-cart-content{margin:0 auto}
.shop-section{border:0;border-bottom:1px solid var(--shop-line);padding:0 0 24px;margin:0 0 24px}
.shop-section:last-child{border-bottom:0;padding-bottom:0;margin-bottom:0}
.shop-section h3{margin-bottom:12px}
.shop-recipient-group{padding:16px;border-radius:10px;background:var(--shop-surface);display:grid;gap:14px}
.shop-field{margin-top:14px}.shop-recipient-group .shop-field{margin-top:0}
.shop-field label{display:block;font-size:13px;font-weight:500;margin-bottom:8px}.shop-field label span{font-weight:400;color:var(--shop-muted)}
.shop-field :is(input,select){display:block;width:100%;height:48px;padding:12px;border:1px solid #d8d3cc;border-radius:8px;background:#fff;color:#202020;font:400 16px/1.4 'Segoe UI',Arial,sans-serif;box-shadow:none}
.shop-address-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.shop-address-details .shop-field{margin-top:0}
.shop-address-details .shop-intercom{grid-column:1 / -1}
.shop-address-details select{padding-right:28px}
@media(min-width:480px){.shop-address-details{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-address-details .shop-intercom{grid-column:auto}}
.shop-field input::placeholder{color:#8b8781;opacity:1}
.shop-field [aria-invalid=true]{border-color:#a72727}
.shop-field-error{font-size:12px;color:#a12222;line-height:1.5;margin:6px 0 0}
.shop-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;margin:0;border:0}
.shop-switches label{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;gap:6px;padding:6px 8px;border:1px solid #ded8cf;border-radius:8px;background:transparent;font-size:13px;font-weight:500;text-align:center;cursor:pointer;line-height:1.3}
.shop-switches input{position:absolute;width:1px;height:1px;padding:0;margin:0;opacity:0;clip-path:inset(50%)}
.shop-switches label:has(input:checked){background:#eee8f3;border-color:#bba8cb;color:#513d64}
.shop-switches label:has(input:focus-visible){outline:2px solid var(--shop-accent);outline-offset:3px}
.shop-switches label:has(input:disabled){cursor:not-allowed;background:var(--shop-surface);color:#8a857e;border-color:var(--shop-line)}
.shop-switches label small{display:block;font-size:10px;line-height:1.2;font-weight:400;margin-top:2px;color:var(--shop-muted)}
.shop-online-payment{margin-top:16px;padding:16px;border-radius:12px;background:#f0ecf3}
.shop-online-head{display:flex;align-items:center;gap:12px}
.shop-online-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:12px;background:#e5dbed;color:#674589}
.shop-online-icon svg{width:22px;height:22px}
.shop-online-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.shop-online-heading h4{margin:0;font:600 15px/1.4 'Segoe UI',Arial,sans-serif;letter-spacing:-.01em;color:#28232d}
.shop-online-status{padding:3px 8px;border-radius:20px;background:#e5dbed;color:#59436a;font-size:11px;line-height:1.4;white-space:nowrap}
.shop-online-payment p{margin:12px 0 0;color:#68616c;font-size:13px;line-height:1.6}
.shop-online-more{margin-top:12px;border-top:1px solid #ded5e4}
.shop-online-more summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;color:#59436a;font:500 12px/1.5 'Segoe UI',Arial,sans-serif;cursor:pointer;border-radius:4px}
.shop-online-more summary::-webkit-details-marker{display:none}
.shop-online-more summary span{font-size:20px;font-weight:400;line-height:1}
.shop-online-more[open] summary span{transform:rotate(45deg)}
.shop-online-more p{margin:0 0 2px}
.shop-online-more summary:focus-visible{outline:2px solid #674589;outline-offset:3px}
.shop-map-status{width:100%;height:240px;margin:12px 0 0;padding:24px;border:0;border-radius:10px;background:var(--shop-surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:var(--shop-muted)}
.shop-map-status svg{width:28px;height:28px;flex:none;color:#8b857e;margin-bottom:2px}
.shop-map-status strong{font-size:14px;line-height:1.4;font-weight:500;color:#66615b}
.shop-map-status p{font-size:12px;line-height:1.5;margin:0;max-width:28ch}
.shop-service-note{font-size:12px;line-height:1.5;color:var(--shop-muted);margin:10px 0 0}
.shop-list-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:0}
.shop-list-heading>span{font-size:11px;color:var(--shop-muted);white-space:nowrap}
.shop-order .shop-list-heading h3{margin-bottom:0}
.shop-items{list-style:none;padding:0;margin:0}
.shop-item{display:grid;grid-template-columns:56px minmax(0,1fr) auto;column-gap:12px;row-gap:8px;align-items:start;padding:16px 0;border-bottom:1px solid var(--shop-line)}
.shop-item:last-child{border-bottom:0}
.shop-thumb{grid-column:1;grid-row:1 / 3;width:56px;height:64px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;--photo-size:58px;overflow:hidden}
.shop-thumb .product-photo-frame{max-width:52px}
.shop-item-main{grid-column:2;grid-row:1}
.shop-item-name{display:inline-block;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.shop-item-flavor{font-size:12px;line-height:1.4;color:var(--shop-muted);margin:4px 0 0;overflow-wrap:anywhere}
.shop-item-total{grid-column:3;grid-row:1;align-self:center;font-size:13px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.shop-item-actions{grid-column:2 / -1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.shop-quantity{display:flex;align-items:center;border:1px solid #ded8cf;border-radius:8px;background:transparent;flex:none}
.shop-quantity button{width:38px;height:42px;border:0;background:transparent;border-radius:7px;font-size:18px;color:#202020;cursor:pointer;padding:0}
.shop-quantity output{min-width:26px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}
.shop-quantity button:disabled{color:#b0aaa2;cursor:default}
.shop-remove{padding:8px 0;min-height:44px;border:0;background:none;color:#6c626f;font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.shop-footer{padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#faf9f6;border-top:1px solid var(--shop-line)}
.shop-footer>p{margin:0 0 8px;color:var(--shop-muted);font-size:11px;line-height:1.5;text-align:center}
.shop-footer>.shop-footer-note{margin:8px 0 0}
.shop-primary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:50px;border:1px solid #202020;border-radius:8px;padding:12px 16px;background:#202020;color:#fff;font:600 14px/1.4 'Segoe UI',Arial,sans-serif;text-align:center;cursor:pointer}
.shop-primary:disabled{background:#e8e4df;border-color:#e8e4df;color:#77716a;cursor:not-allowed}
.shop-secondary{display:block;min-height:44px;margin:4px auto -4px;padding:8px 16px;background:none;border:0;color:#6c626f;font:400 12px 'Segoe UI',Arial,sans-serif;cursor:pointer}
.shop-expenses{margin:16px 0 8px;font-size:13px}
.shop-expenses>div{display:flex;justify-content:space-between;gap:16px;margin:8px 0}.shop-expenses dt{color:var(--shop-muted)}.shop-expenses dd{margin:0;text-align:right;font-weight:500}
.shop-hint{display:block;color:var(--shop-muted);font-size:12px;line-height:1.5;margin:6px 0 0}
.shop-errors{padding:12px;border-left:3px solid #a12222;background:#fff4f1;font-size:13px;margin-bottom:20px;color:#862020}
.shop-errors ul{margin:6px 0 0;padding-left:18px}.shop-errors a{text-decoration:underline;display:inline-block;padding:4px 0}
.shop-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#584764;background:#f3edf8;padding:4px 12px;border-radius:8px;margin:8px 0}
.shop-undo button{min-height:44px;border:0;background:none;font:600 13px 'Segoe UI',Arial,sans-serif;color:#674589;cursor:pointer}
.shop-empty{text-align:center;max-width:340px;margin:32px auto}.shop-empty-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;background:#efe9f4;color:#674589;border-radius:50%;margin:0 auto 20px}.shop-empty-icon svg{width:30px;height:30px}
.shop-empty p{font-size:14px;line-height:1.6;color:var(--shop-muted);margin:8px 0 24px}
.shop-review{margin:auto}.shop-step-label{font-size:10px;letter-spacing:.1em;color:var(--shop-muted);margin:0 0 8px}
.shop-review-details{margin:20px 0 8px;font-size:14px}.shop-review-details>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px;padding:10px 0;border-bottom:1px solid var(--shop-line)}
.shop-review-details dt{color:var(--shop-muted)}.shop-review-details dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.shop-text-button{min-height:44px;padding:8px 0;border:0;background:none;color:#674589;text-decoration:underline;text-underline-offset:3px;font:500 13px 'Segoe UI',Arial,sans-serif;cursor:pointer;margin-bottom:20px}
.shop-unavailable{border-top:1px solid var(--shop-line);margin-top:20px;padding-top:16px;font-size:13px}.shop-unavailable p{font-size:12px;line-height:1.5;color:var(--shop-muted);margin:6px 0 0}
.shopping-dialog :is(a,button,input,select):focus-visible{outline:2px solid #674589;outline-offset:3px}
.shop-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.cart-add:disabled,.detail-add:disabled{cursor:default;color:#777;background:#eeeae5}
.shopping-dialog.shop-compact .shop-head{padding-top:8px;padding-bottom:8px}
.shopping-dialog.shop-compact .shop-head h2{font-size:23px}
.shopping-dialog.shop-compact .shop-footer>p,.shopping-dialog.shop-compact .shop-secondary{display:none}
.shopping-dialog.shop-compact .shop-footer{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
@media(max-width:700px){
  .shopping-dialog{width:100%;height:var(--shop-height,100dvh);top:var(--shop-top,0px);bottom:auto;left:0;right:0;margin:0;border:0;border-radius:0}
  .shop-head{padding:max(24px,env(safe-area-inset-top)) 12px 16px;gap:4px}.shop-head h2{font-size:27px}.shop-kicker{font-size:9px}
  .shop-scroll{padding:20px;scroll-padding:20px}
  .shop-section{padding-bottom:20px;margin-bottom:20px}
}
@media(max-width:350px){.shop-head h2{font-size:25px}.shop-recipient-group{padding:14px}.shop-item{grid-template-columns:48px minmax(0,1fr) auto;column-gap:10px}.shop-thumb{width:48px;height:60px;--photo-size:54px}.shop-switches label{font-size:12px}.shop-primary{font-size:13px}}
@media(prefers-reduced-motion:reduce){.shopping-dialog *{scroll-behavior:auto}}
