/* The supermarket uses one page scrollbar, with the shelf above the cart. */
body.signed-in.shop-open{display:block;height:auto;min-height:100dvh;overflow:visible}
.shop-open .shell{height:auto;min-height:0;overflow:visible;padding-bottom:36px;align-items:start}
.shop-open .nav{max-height:none;overflow:visible}
.shop-open main.shop-page{display:block;height:auto;overflow:visible;min-width:0}
.shop-page .shop-content,.shop-page .shop-layout,.shop-page .shelf-section,
.shop-page .shelf-section>.shelf,.shop-page .cart-items,
.shop-page .shop-layout>#payment,.shop-page #payment>.payment-body{
  height:auto;max-height:none;min-height:0;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto
}
.shop-page .shop-content{display:block;padding:0}
.shop-page .shop-layout{display:flex;flex-direction:column;gap:28px;align-items:stretch}
.shop-page .shop-layout>.cart-panel,.shop-page .shop-layout>#payment{display:block;position:static;width:100%;flex:none;margin:0;padding:24px}
.shop-page>.hero{padding:22px 24px;margin-bottom:24px}
.shop-page>.hero h1{font-size:25px;margin-bottom:6px}
.shop-page>.hero p{display:block;font-size:16px}
.shop-page>.hero .hero-illustration{display:block;font-size:52px}
.shop-page .steps{gap:8px;flex-wrap:wrap;margin-bottom:24px}
.shop-page .steps .step{font-size:15px;padding:8px 14px;letter-spacing:0;white-space:normal}
.shop-page .shelf-section{display:block}
.shop-page .shelf-section>.section-heading{margin:0 0 8px;flex-wrap:wrap;align-items:center}
.shop-page h2,.shop-page .cart-panel>h2{font-size:23px;margin-bottom:12px}
.shop-page .hint{font-size:16px;line-height:1.8}
.shop-page .shelf-section>.shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:0;margin:16px 0 0}
.shop-page .product{padding:16px 12px 12px}
.shop-page .product-art{height:90px;margin-bottom:12px}
.shop-page .product-art svg{width:78px;height:78px}
.shop-page .product h3{font-size:19px;overflow-wrap:anywhere}
.shop-page .price{font-size:21px}
.shop-page .product .btn{font-size:16px;min-height:48px;padding:10px 6px;margin-top:12px}
.shop-page .product-picked{font-size:14px;color:#78877b;min-height:28px;margin-top:8px}
.shop-page .product-picked.selected{color:#327551;font-weight:800}
.shop-page .shop-cart-link,.shop-page .shop-back-link{display:inline-block;font-size:16px;font-weight:700;padding:10px 4px;min-height:44px}
.shop-page .cart-panel,.shop-page #shop-shelf,.shop-page #payment{scroll-margin-top:20px}
.shop-page .cart-items{padding:0;flex:none}
.shop-page .cart-row{gap:14px;padding:16px 0;flex-wrap:wrap}
.shop-page .cart-art svg{width:52px;height:52px;display:block}
.shop-page .cart-info strong{font-size:19px;overflow-wrap:anywhere}
.shop-page .cart-info small{font-size:16px;color:#667663}
.shop-page .qty{gap:10px;font-size:18px;font-weight:700}
.shop-page .qty button{width:48px;height:48px;min-width:48px;min-height:48px;flex-basis:48px;font-size:24px}
.shop-page .cart-empty{padding:24px 12px;font-size:17px}
.shop-page .cart-footer .cart-count{font-size:17px;margin:16px 0}
.shop-page .cart-footer .calc-block{display:block;margin-top:18px;padding:22px;background:#fff9e8;border:2px dashed #eed39e;border-radius:18px}
.shop-page .cart-footer .calc-block h3{font-size:21px;text-align:left;margin:0 0 8px}
.shop-page .cart-footer .amount-line{flex-wrap:wrap;justify-content:flex-start;gap:10px;font-size:20px;margin:16px 0}
.shop-page .cart-footer .amount-line input:first-child,.shop-page .cart-footer .amount-line input:last-of-type{width:86px;min-height:54px;height:54px;font-size:23px;padding:8px}
.shop-page .cart-footer .calc-block .btn{width:auto;min-height:50px;font-size:18px;padding:12px 20px;margin:6px 12px 0 0!important;white-space:normal}
.shop-page .cart-footer .calc-block .ghost{font-size:16px}
.shop-page .feedback,.shop-page #payment .payment-feedback .feedback{font-size:17px;line-height:1.8;padding:12px 16px}
.shop-page .total-feedback .feedback.error{background:#ffe3e3;color:#c92a2a;font-weight:800}
.shop-page .shop-stage-notice{border:2px solid #b5d7b3}
.shop-page .shop-next-step{margin-top:4px;font-size:14px;color:#527451}
.shop-page .shop-stage-enter{animation:shop-stage-enter .45s ease-out}
@keyframes shop-stage-enter{from{opacity:.3;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.shop-page .shop-stage-enter{animation:none}}
.shop-page #payment>.payment-body{flex:none}
.shop-page #payment>.payment-checkout{position:static;flex-wrap:wrap;justify-content:flex-start;margin-top:20px;padding-top:18px}
.shop-page #payment>.payment-body>.section-heading h2{font-size:23px}
.shop-page #payment>.payment-body>.hint,.shop-page #payment .money small{font-size:16px}
.shop-page #payment .money-grid{gap:18px;margin:22px 0}
.shop-page #payment .money svg{max-width:165px;max-height:82px}
.shop-page #payment .money.coin svg{height:64px}
.shop-page #payment .payment-tools .btn,.shop-page #payment .payment-checkout .btn{min-height:48px;font-size:17px;padding:10px 16px}
.shop-page #payment .payment-counting{gap:18px;align-items:flex-start}
.shop-page #payment .payment-amount,.shop-page #payment .payment-change{flex-wrap:wrap;gap:10px}
.shop-page #payment .payment-amount h3,.shop-page #payment .payment-change h3{font-size:18px;white-space:normal}
.shop-page #payment .amount-line input{min-height:50px;height:50px;font-size:22px;padding:8px;text-align:center}
.shop-page #payment .amount-line input:last-of-type{width:64px;min-width:64px}
.shop-page .amount-line input{appearance:textfield;-moz-appearance:textfield}
.shop-page .amount-line input::-webkit-inner-spin-button,.shop-page .amount-line input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
@media(max-width:1100px){.shop-page .shelf-section>.shelf{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){
  .shop-open .shell{display:block;padding:16px}
  .shop-open .nav{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;padding-bottom:18px;overflow:visible}
  .shop-page .shop-layout>.shop-selection,.shop-page .shop-layout>.cart-panel{flex:none}
}
@media(max-width:570px){
  .shop-page>.hero{padding:14px 16px;margin-bottom:16px}
  .shop-page>.hero h1{font-size:20px}
  .shop-page>.hero p{font-size:14px}
  .shop-page>.hero .hero-illustration{display:none}
  .shop-page .steps .step{font-size:14px;padding:7px 10px}
  .shop-page .steps{margin-bottom:16px}
  .shop-page h2,.shop-page .cart-panel>h2{font-size:20px}
  .shop-page .hint{font-size:14px;line-height:1.7}
  .shop-page .shelf-section>.shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
  .shop-page .product{padding:10px 10px 8px;border-radius:18px}
  .shop-page .product-art{height:56px;margin-bottom:8px;border-radius:12px}
  .shop-page .product-art svg{width:48px;height:48px}
  .shop-page .product h3{font-size:16px}
  .shop-page .price{font-size:17px}
  .shop-page .product .btn{font-size:14px;min-height:44px;padding:8px 4px;margin-top:8px}
  .shop-page .product-picked{font-size:12px;min-height:20px;margin-top:6px}
  .shop-page .shop-layout>.cart-panel,.shop-page .shop-layout>#payment{padding:18px 14px}
  .shop-page .cart-row{gap:10px}
  .shop-page .cart-art svg{width:32px;height:32px}
  .shop-page .cart-info strong{font-size:16px}
  .shop-page .cart-info small{font-size:14px}
  .shop-page .cart-info{flex:1;min-width:100px}
  .shop-page .qty{margin-left:auto}
  .shop-page .cart-footer .calc-block{padding:16px 12px}
  .shop-page .cart-footer .amount-line input:first-child,.shop-page .cart-footer .amount-line input:last-of-type{width:72px}
  .shop-page #payment .payment-amount input:first-child,.shop-page #payment .payment-change .amount-line input:first-child{width:88px}
  .shop-page #payment .money-grid{gap:12px 8px;margin:16px 0}
  .shop-page #payment .money svg{max-width:110px;max-height:54px}
  .shop-page #payment .money.coin svg{height:40px}
  .shop-page #payment .money small{font-size:13px}
  .shop-page #payment>.payment-body>.section-heading{flex-wrap:wrap}
  .shop-page #payment>.payment-body>.section-heading h2{font-size:20px}
  .shop-page #payment>.payment-body>.hint{font-size:14px}
  .shop-page #payment .payment-counting>.payment-amount,.shop-page #payment .payment-change{min-width:0;max-width:100%}
  .shop-page #payment .payment-counting>.payment-amount{flex:1 1 100%}
  .shop-page #payment .payment-amount .amount-line,.shop-page #payment .payment-change .amount-line{font-size:16px;gap:5px}
  .shop-page #payment .payment-tools .btn,.shop-page #payment .payment-checkout .btn{font-size:15px;min-height:44px;padding:10px 12px}
}
/* Keep the page's scroll affordance visible when the browser shows scrollbars. */
html:has(body.shop-open),body.shop-open{scrollbar-width:auto}
html:has(body.shop-open)::-webkit-scrollbar,body.shop-open::-webkit-scrollbar{display:revert;width:revert;height:revert}

.shop-page .product-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;text-align:left}
.shop-page .product-meta h3{margin:0;min-width:0}
.shop-page .product-meta .price{white-space:nowrap}

/* A compact welcome banner leaves more room for products on desktop. */
@media(min-width:801px){
  .shop-page>.hero{padding:12px 20px;margin-bottom:18px;border-radius:18px}
  .shop-page>.hero .eyebrow{font-size:9px;margin-bottom:2px;letter-spacing:1.5px}
  .shop-page>.hero h1{font-size:22px;line-height:1.3;margin-bottom:3px}
  .shop-page>.hero p{font-size:14px;line-height:1.5}
  .shop-page>.hero .hero-illustration{font-size:38px}
  .shop-page .shelf-section>.shelf{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:12px}
  .shop-page .product{padding:12px 10px 8px;border-radius:18px}
  .shop-page .product-art{height:64px;margin-bottom:8px;border-radius:12px}
  .shop-page .product-art svg{width:56px;height:56px}
  .shop-page .product h3{font-size:16px;margin:2px 0}
  .shop-page .price{font-size:18px}
  .shop-page .product .btn{font-size:14px;min-height:44px;padding:8px 4px;margin-top:8px}
  .shop-page .product-picked{font-size:12px;min-height:22px;margin-top:6px}
}

/* Compact spacing and feedback placed directly after the relevant controls. */
.shop-open .shell{padding-top:20px;padding-bottom:24px}
.shop-page .shop-layout{gap:18px}
.shop-page .steps{margin-bottom:14px;gap:6px}
.shop-page .steps .step{padding:5px 10px;font-size:14px}
.shop-page .shop-layout>.cart-panel,.shop-page .shop-layout>#payment{padding:18px}
.shop-page h2,.shop-page .cart-panel>h2{font-size:21px;margin-bottom:8px}
.shop-page .shelf-section>.section-heading{margin-bottom:4px}
.shop-page .shelf-section>.hint{margin-top:0;font-size:14px}
.shop-page .shop-cart-link,.shop-page .shop-back-link{padding:6px 2px;font-size:15px}
.shop-page .cart-row{padding:10px 0;gap:8px 12px}
.shop-page .cart-art svg{width:36px;height:36px}
.shop-page .cart-info strong{font-size:17px}
.shop-page .cart-info small{font-size:14px}
.shop-page .qty{font-size:16px;gap:8px}
.shop-page .qty button{width:44px;height:44px;min-width:44px;min-height:44px;flex-basis:44px;font-size:22px}
.shop-page .cart-footer .cart-count{font-size:15px;margin:8px 0}
.shop-page .cart-footer .calc-block{margin-top:10px;padding:14px}
.shop-page .cart-footer .calc-block h3{font-size:18px;margin-bottom:6px}
.shop-page .shop-total-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.shop-page .cart-footer .amount-line{font-size:18px;gap:6px;margin:0}
.shop-page .cart-footer .amount-line input:first-child,.shop-page .cart-footer .amount-line input:last-of-type{width:72px;height:48px;min-height:48px;font-size:21px;padding:6px}
.shop-page .cart-footer .calc-block .btn{min-height:44px;font-size:16px;padding:9px 14px;margin:0!important}
.shop-page .cart-footer .calc-block .hint{font-size:13px;margin-top:8px}
.shop-page .feedback,.shop-page #payment .payment-feedback .feedback{font-size:15px;line-height:1.65;padding:8px 10px;margin-top:8px}
.shop-page .feedback.error{background:#ffe3e3;color:#c92a2a}
.shop-page .product-feedback .feedback{font-size:13px;padding:6px 8px;margin-top:6px}
.shop-page .quantity-feedback{flex-basis:100%;min-width:0}
.shop-page .quantity-feedback .feedback{font-size:14px;margin-top:0}
.shop-page :is(.product-feedback,.quantity-feedback,.cart-items-feedback,.cart-actions-feedback,.total-feedback,.money-feedback,.paid-feedback,.change-feedback,.finish-feedback):empty{display:none}
.shop-page #payment>.payment-body>.section-heading{margin:0 0 8px}
.shop-page #payment>.payment-body>.section-heading h2{font-size:21px;margin:0}
.shop-page #payment .money-grid{gap:12px;margin:12px 0}
.shop-page #payment .money svg{max-width:128px;max-height:62px}
.shop-page #payment .money.coin svg{height:44px}
.shop-page #payment .money small{font-size:13px;margin-top:3px}
.shop-page #payment .payment-selected{padding:8px;gap:8px;margin-top:8px}
.shop-page #payment .payment-selected>.money-pile{min-height:36px;padding:0}
.shop-page #payment .payment-tools .btn{min-height:44px;font-size:14px;padding:8px 10px}
.shop-page #payment .payment-counting{display:block;margin:12px 0 0}
.shop-page #payment .payment-exercise{display:block;width:100%;min-width:0;max-width:100%;margin:10px 0 0;padding:12px 0 0;border:0;border-top:1px dashed var(--line)}
.shop-page #payment .payment-exercise>h3{font-size:17px;line-height:1.5;margin:0 0 6px;white-space:normal}
.shop-page #payment .payment-exercise-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;width:100%;min-width:0;margin:0;padding:0;border:0}
.shop-page #payment .payment-exercise-controls .amount-line{margin:0;gap:5px;font-size:17px;justify-content:flex-start;flex-wrap:nowrap}
.shop-page #payment .payment-exercise-controls .btn{min-height:44px;font-size:16px;padding:9px 14px}
.shop-page #payment .amount-line input{height:48px;min-height:48px;font-size:21px;padding:6px}
.shop-page #payment .amount-line input:first-child{width:96px}
.shop-page #payment .amount-line input:last-of-type{width:64px}
.shop-page #payment>.payment-checkout{display:block;margin-top:12px;padding-top:12px}
.shop-page #payment>.payment-checkout:not(:has(>button)){margin:0;padding:0;border:0}
@media(min-width:1000px){.shop-page #payment .money-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:800px){.shop-open .shell{padding-top:12px}.shop-open .nav{padding-bottom:12px}}
@media(max-width:570px){
  .shop-page>.hero{padding:12px 14px;margin-bottom:12px}
  .shop-page>.hero .eyebrow{display:none}
  .shop-page>.hero h1{font-size:19px;margin-bottom:3px}
  .shop-page>.hero p{font-size:13px}
  .shop-page .shop-layout{gap:14px}
  .shop-page .steps .step{font-size:12px;padding:5px 8px}
  .shop-page .shop-layout>.cart-panel,.shop-page .shop-layout>#payment{padding:14px 12px}
  .shop-page h2,.shop-page .cart-panel>h2,.shop-page #payment>.payment-body>.section-heading h2{font-size:19px}
  .shop-page .shelf-section>.shelf{margin-top:8px;gap:8px}
  .shop-page .product{padding:8px 8px 6px}
  .shop-page .product-art{height:48px;margin-bottom:6px}
  .shop-page .product-art svg{width:42px;height:42px}
  .shop-page .product .btn{margin-top:6px}
  .shop-page .product-picked{margin-top:4px}
  .shop-page .cart-row{padding:8px 0;gap:6px 8px}
  .shop-page .cart-art svg{width:30px;height:30px}
  .shop-page .cart-info strong{font-size:16px}
  .shop-page .cart-info{min-width:80px}
  .shop-page .qty{gap:6px}
  .shop-page .cart-footer .calc-block{padding:12px 10px}
  .shop-page .cart-footer .amount-line input:first-child,.shop-page .cart-footer .amount-line input:last-of-type{width:64px}
  .shop-page #payment .money-grid{gap:10px 6px}
  .shop-page #payment .money svg{max-width:96px;max-height:48px}
  .shop-page #payment .money.coin svg{height:34px}
  .shop-page #payment .money small{font-size:12px}
  .shop-page #payment .payment-selected{padding:6px}
  .shop-page #payment .payment-exercise-controls .amount-line{font-size:16px}
  .shop-page #payment .amount-line input:first-child{width:88px}
}
.shop-page .shop-confirm-actions{margin-top:8px}

.shop-page .cart-heading{margin:0;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px}
.shop-page .cart-heading h2{margin:0;min-width:0}
.shop-page .cart-heading>.btn{margin-left:auto;min-height:44px;font-size:14px;white-space:nowrap;flex-shrink:0}
.shop-page .payment-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 12px;margin-left:auto}
.shop-page .payment-header-actions .shop-cart-link{white-space:nowrap}
.shop-page .product-add-short{display:none}
@media(max-width:570px){
  .shop-page .shelf-section>.shelf{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .shop-page .product{padding:7px 6px 5px;border-radius:14px;min-width:0}
  .shop-page .product-art{height:42px;margin-bottom:5px;border-radius:9px}
  .shop-page .product-art svg{width:36px;height:36px}
  .shop-page .product-meta{gap:3px}
  .shop-page .product h3{font-size:14px}
  .shop-page .product .price{font-size:14px}
  .shop-page .product .btn{font-size:14px;padding:6px 2px;margin-top:5px;min-height:44px}
  .shop-page .product-add-full{display:none}
  .shop-page .product-add-short{display:inline}
  .shop-page .product-picked{font-size:12px;min-height:20px;line-height:1.5;margin-top:4px}
  .shop-page .payment-header-actions{gap:2px;flex-direction:column;align-items:flex-end}
  .shop-page #payment>.payment-body>.section-heading{flex-wrap:nowrap;gap:6px;align-items:flex-start}
  .shop-page #payment>.payment-body>.section-heading h2{min-width:0}
  .shop-page .payment-header-actions .shop-cart-link{font-size:13px;padding:0;min-height:44px;display:flex;align-items:center}
  .shop-page .payment-header-actions .pill{font-size:11px;padding:2px 7px}
}
@media(max-width:360px){
  .shop-page .product h3,.shop-page .product .price{font-size:12px}
  .shop-page .product-meta{gap:2px}
  .shop-page .cart-heading h2{font-size:18px}
}

.shop-page .shop-nav-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;font-size:14px;line-height:1.5;text-decoration:none;white-space:nowrap}
.shop-page .shop-back-link.shop-nav-button{margin:10px 0 8px}
.shop-page .payment-header-actions .shop-nav-button{padding:8px 10px;font-size:13px}
.shop-page :is(.total-feedback,.cart-actions-feedback,.cart-items-feedback,.money-feedback,.paid-feedback,.change-feedback,.finish-feedback):not(:empty){padding-top:12px}
.shop-page :is(.total-feedback,.cart-actions-feedback,.cart-items-feedback,.money-feedback,.paid-feedback,.change-feedback,.finish-feedback)>.feedback{margin-top:0}
.shop-page #payment :is(.paid-feedback,.change-feedback,.money-feedback,.finish-feedback)>.feedback{margin-top:0}

.shop-page .cart-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-shrink:0}
.shop-page .cart-header-actions .btn{min-height:40px;font-size:14px;padding:8px 12px;white-space:nowrap}
@media(max-width:570px){
  .shop-page .btn,.shop-page .shop-nav-button,
  .shop-page .cart-header-actions .btn,.shop-page .payment-header-actions .shop-nav-button,
  .shop-page .product .btn,.shop-page .cart-footer .calc-block .btn,
  .shop-page #payment .payment-tools .btn,.shop-page #payment .payment-exercise-controls .btn,
  .shop-page #payment .payment-checkout .btn{min-height:36px;padding:6px 10px;font-size:13px;line-height:1.5;border-radius:10px}
  .shop-page .product .btn{padding:6px 2px}
  .shop-page .cart-heading{gap:6px;margin-bottom:6px}
  .shop-page .cart-heading h2{font-size:17px;white-space:nowrap}
  .shop-page .cart-header-actions{gap:6px}
  .shop-page .cart-header-actions .btn{font-size:12px;padding:6px;min-height:34px}
  .shop-page .qty{gap:6px;font-size:15px}
  .shop-page .qty button{width:36px;min-width:36px;height:36px;min-height:36px;flex-basis:36px;font-size:20px;padding:0;border-radius:9px}
  .shop-page .cart-footer .amount-line input:first-child,.shop-page .cart-footer .amount-line input:last-of-type,
  .shop-page #payment .amount-line input{height:42px;min-height:42px;font-size:20px}
}
.shop-page .payment-heading-title{flex:1;min-width:0;text-align:left}
.shop-page .payment-heading-title>.pill{display:inline-block;margin-top:6px}
.shop-page .payment-header-actions{align-self:flex-start}
