/* Buyer surface only. Shared operator screens keep their existing layout. */
html.messenger-miniapp,
html.messenger-miniapp > body {
  overscroll-behavior-y: none;
}
html.messenger-miniapp dialog {
  overscroll-behavior-y: contain;
}

body.customer-app {
  --bg:#faf9f6; --ink:#24251f; --muted:#484c40; --accent:#ff781f;
  --action-bg:#ff7c1e; --action-hover:#ff8b3d; --action-active:#ef6a13;
  --card:#fff; --line:#d7d8cf; --field-line:#747867;
  --app-gutter:24px;
  background:var(--bg);color:var(--ink);font-family:Manrope, sans-serif;
  font-size:16px;line-height:1.5;padding-bottom:calc(var(--basket-footer-height,calc(112px + env(safe-area-inset-bottom))) + 24px);
  scrollbar-color:#b6b7ac #faf9f6;scrollbar-width:thin;
}
body.customer-app[data-entry-mode=bot]{padding-bottom:0}
.customer-app ::selection{background:#f0dfcc;color:#24251f}
.customer-app :is(input,textarea){caret-color:#b74700}
.customer-app :is(button,a,input,textarea,select,summary,canvas):focus-visible{outline:3px solid #b74700;outline-offset:3px}
.customer-app :is(button,input,textarea,select){font-family:inherit}
.customer-app a{color:#81401a;text-underline-offset:3px}
.customer-app button{cursor:pointer;touch-action:manipulation}
.customer-app button:disabled{cursor:default;opacity:1;color:#696c60;background:#eeede7;border-color:#d7d8cf}
.customer-app .topbar{max-width:888px;flex-wrap:wrap;gap:12px;padding:calc(16px + env(safe-area-inset-top)) max(var(--app-gutter),env(safe-area-inset-right)) 16px max(var(--app-gutter),env(safe-area-inset-left));border-bottom:1px solid var(--line);margin-bottom:16px}
.customer-app .topbar .brand{gap:12px;min-height:48px}
.customer-app .topbar .brand b{font-family:Manrope,sans-serif;font-size:23px;letter-spacing:-.04em;font-weight:800}
.customer-app .topbar .brand small{font-family:Manrope,sans-serif;font-size:11px;letter-spacing:0;color:var(--muted)}
.customer-app .orders-button{font-size:14px;border-radius:6px;background:white;padding:10px 16px}
.customer-app main{max-width:888px;padding:0 max(var(--app-gutter),env(safe-area-inset-right)) 32px max(var(--app-gutter),env(safe-area-inset-left))}
.customer-app .progress-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:none;margin:0 0 24px}
.customer-app .progress-nav::before{display:none}
.customer-app .progress-nav button{width:auto;height:auto;min-width:0;min-height:48px;border:0;border-bottom:2px solid var(--line);border-radius:0;background:none;text-align:left;padding:8px 0;display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;overflow-wrap:anywhere;color:var(--muted)}
.customer-app .progress-nav button:disabled{background:none;color:#696c60}
.customer-app .progress-nav button[aria-current=step]{border-color:#b74700;background:none;color:var(--ink);font-weight:800}
.customer-app .step-number{display:none}
.customer-app [aria-current=step] .step-number{background:var(--accent);color:var(--ink)}
.customer-app #stepLabel{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.customer-app h1{font-size:28px;line-height:32px;letter-spacing:-.035em;margin:0 0 12px;font-weight:800}
.customer-app h2{font-size:24px;line-height:28px;letter-spacing:-.025em}
.customer-app .lead{font-size:16px;line-height:24px;max-width:64ch;margin:0 0 24px}
.customer-app .quiet{font-size:16px;line-height:24px}
.customer-app :is(.primary,.secondary,.icon-button){border-radius:6px;font-size:14px;min-height:48px}
.customer-app .primary{background:var(--action-bg);color:var(--ink);font-weight:800;min-height:56px;padding:16px 20px}
.customer-app .secondary{background:white;border-color:var(--field-line);padding:11px 14px}
.customer-app .icon-button{width:48px;min-width:48px;font-size:24px}
.customer-app input,.customer-app textarea,.customer-app select{font-size:16px;line-height:24px;min-height:56px;border-radius:6px;border-color:var(--field-line);background:white;padding:12px;color:var(--ink)}
.customer-app :is(input,textarea)::placeholder{color:#696c60;opacity:1}
.customer-app input[type=checkbox],.customer-app input[type=radio]{min-height:22px;width:22px;height:22px;accent-color:#b74700;padding:0}
.customer-app input[type=range]{padding:0;min-height:48px;accent-color:#b74700;background:none}
.customer-app .product-accordion{gap:14px}
.customer-app .product-category{border-radius:8px;background:white;border-color:var(--line)}
.customer-app .product-category>summary{padding:18px 20px;min-height:108px;gap:18px}
.customer-app .product-category>summary b{font-size:20px;font-weight:800;letter-spacing:-.025em}
.customer-app .product-category>summary small{font-size:14px;line-height:1.5}
.customer-app .category-description{font-size:14px}
.customer-app .product-category:not([open]) .category-description{display:none}
.customer-app .category-symbol{width:86px;height:86px;flex-basis:86px}
.customer-app .disclosure{width:40px;height:40px;flex-basis:40px;background:#eeede7;border:0;border-radius:5px;color:var(--ink)}
.customer-app .product-category[open] .disclosure{background:#f0dfcc;color:var(--ink)}
.customer-app .product-category[open] .product-rows{animation:none}
.customer-app .product-rows{padding:0 20px 10px}
.customer-app .product-row{padding:16px 0;gap:16px}
.customer-app .product-row.selected{background:#eff2eb;margin-inline:-10px;padding-inline:10px;border-radius:4px}
.customer-app .row-copy b{font-size:15px;line-height:1.5}
.customer-app .row-copy small{font-size:14px;line-height:1.5}
.customer-app .row-controls{gap:8px}
.customer-app .row-controls .icon-button{background:white;border-color:var(--field-line)}
.customer-app .row-count{font-size:16px;font-variant-numeric:tabular-nums}
.customer-app .category-help{margin:0 20px 20px;padding:14px 0 0;border-radius:0;background:none}
.customer-app .category-help>strong{font-size:14px}
.customer-app .category-help>.quiet{font-size:15px;line-height:1.6}
.customer-app .category-help>.quiet+.quiet{margin-top:8px}
.customer-app .minimum-notice{font-size:14px;background:#f0dfcc;border:0;border-radius:6px;padding:14px 16px;margin:18px 0}
.customer-app .minimum-notice small{font-size:13px;color:#55584d}
.customer-app .minimum-notice.goal-reached{background:#dce3d2;color:#30442c}
.customer-app .minimum-add{font-size:14px;min-height:48px;background:white;border-color:#b6b7ac;border-radius:5px;color:var(--ink)}
.customer-app .builder-delivery-content{display:grid;justify-items:start;gap:12px;padding:16px 0}
.customer-app .builder-delivery[hidden]{display:none}
.customer-app .builder-delivery small{display:block;max-width:65ch;font-size:14px;line-height:1.6;color:var(--muted)}
.customer-app .basket-extras{border-radius:6px;background:#eeede7;border:0;padding:18px;margin:24px 0}
.customer-app .basket-extras h3{font-size:18px;letter-spacing:-.02em}
.customer-app .basket-extras :is(p,button){font-size:14px}
.customer-app .bottom-bar{background:#fff;backdrop-filter:none;border-top:1px solid var(--line);padding:16px max(var(--app-gutter),env(safe-area-inset-right),calc((100vw - 840px)/2)) calc(16px + env(safe-area-inset-bottom)) max(var(--app-gutter),env(safe-area-inset-left),calc((100vw - 840px)/2));gap:16px;display:flex;flex-wrap:nowrap}
.customer-app .bottom-bar small{font-size:13px;line-height:1.4}
.customer-app .bottom-bar strong{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.customer-app .bottom-bar .primary{font-size:15px;min-width:240px;max-width:65%;min-height:56px;padding:14px 20px}
.customer-app .upload-box{border-radius:8px;border-color:#95998a;background:#f0f3ec;min-height:96px;padding:14px 16px;text-align:left;display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px 12px;align-content:center}
.customer-app .upload-box>span{background:#dce3d2;border-radius:6px;grid-row:1/3;width:40px;height:40px;font-size:28px;line-height:40px}
.customer-app .upload-box b{font-size:16px}
.customer-app .upload-box small{font-size:13px}
.customer-app .upload-box input{min-height:1px}
.customer-app .photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.customer-app .photo{border-radius:6px}
.customer-app .photo button{width:48px;height:48px;font-size:22px}
.customer-app .photo-status{font-size:12px}
.customer-app .review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.customer-app .personalized-photo{min-width:0}
.customer-app .personalized-photo:has(.back-caption-editor){grid-column:auto}
.customer-app .review-tile{border-radius:6px;padding:12px;background:#eeede7;border:0}
.customer-app .review-tile canvas{border-radius:0;max-height:360px;object-fit:contain}
.customer-app .review-tile>span,.customer-app .review-tile>small{font-size:13px;margin-top:8px}
.customer-app .review-groups{gap:36px}
.customer-app .review-groups h2{font-size:18px;line-height:1.5;margin-bottom:16px}
.customer-app .back-caption-editor{margin:8px 0 20px;font-size:14px}
.customer-app .back-caption-editor summary{min-height:48px;padding:12px 0;font-weight:700}
.customer-app .back-caption-editor label{font-size:14px;margin:12px 0}
.customer-app .back-caption-editor textarea{font-family:inherit;font-size:16px;border-radius:6px;min-height:104px}
.customer-app .back-caption-editor :is(small,.caption-counter){font-size:13px;line-height:1.6}
.customer-app img.caption-preview{display:block;width:auto;max-width:100%;height:auto;margin:12px auto;padding:8px;border-radius:4px}
.customer-app img.caption-preview[hidden]{display:none}
.customer-app .check-row{font-size:15px;line-height:1.6;min-height:48px;gap:12px}
.customer-app .check-row small{font-size:13px;line-height:1.6}
.customer-app #frameApproval{padding:20px;background:#dce3d2;border-radius:6px;margin:24px 0}
.customer-app .form-grid{gap:24px;margin:32px 0;grid-template-columns:1fr 1fr}
.customer-app .form-grid :is(.recipient-hint,.no-patronymic){grid-column:1/-1}
.customer-app .form-grid label.check-row{display:flex;align-items:center;gap:12px}
.customer-app :is(.form-grid label,.legacy-delivery,.comment-label,.point-search label,.street-search){font-size:14px}
.customer-app :is(.recipient-hint,.legacy-delivery small,.comment-label span){font-size:14px;line-height:1.65}
.customer-app .pickup-panel,.customer-app .summary,.customer-app .order-card{border-radius:6px;background:white}
.customer-app .point-details{font-size:15px}
.customer-app .order-line b{font-size:15px}
.customer-app .order-line small{font-size:14px}
.customer-app .summary{padding:20px 24px}
.customer-app .summary-row{font-size:15px;margin:14px 0}
.customer-app .summary-row.total{font-size:22px}
.customer-app .legal-payment,.customer-app .legal-footer{font-size:13px;line-height:1.7;color:var(--muted)}
.customer-app .legal-footer{margin-top:40px;padding-top:24px}
.customer-app .legal-footer a{display:inline-flex;align-items:center;min-height:48px}
.customer-app .sheet,.customer-app .crop-sheet{background:var(--bg);border-radius:10px;padding:24px;max-height:94dvh}
.customer-app .sheet-head{margin-bottom:16px}
.customer-app .sheet-head h2{font-size:24px;line-height:28px}
.customer-app .delivery-sheet{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0}
.customer-app .crop-sheet canvas{border-radius:4px;width:min(100%,45dvh)}
.customer-app .zoom-label,.customer-app .crop-position,.customer-app .mini-options :is(label,small){font-size:14px}
.customer-app .crop-actions{gap:10px;flex-wrap:wrap}
.customer-app .crop-actions .primary{min-width:170px}
.customer-app .provider-option{font-size:14px;border-radius:6px}
.customer-app .provider-option:has(input:checked){background:#dce3d2;border-color:#647455}
.customer-app .point-card{border-radius:6px;font-size:14px}
.customer-app .point-card small,.customer-app .orders-list :is(p,.status){font-size:13px}
.customer-app .point-card span{font-size:15px}
.customer-app .toast{background:#24251f;color:white;font-size:14px;border-radius:6px;bottom:calc(var(--basket-footer-height,96px) + 12px)}
.customer-app .design-preview-note{padding:10px 20px;background:#dce3d2;color:#30442c;text-align:center;font-size:13px;line-height:1.5}
.customer-app #launchScreen.bot-entry{padding:calc(32px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
.customer-app main.bot-entry-content{max-width:720px;padding:0;color:var(--ink)}
.customer-app .bot-entry-content h1{font-size:28px;line-height:32px;margin:16px 0 8px}
.customer-app .bot-entry-content h2{font-size:24px;line-height:28px;margin:0 0 16px}
.customer-app .bot-entry-content p{font-size:16px;line-height:24px}
.customer-app .bot-entry-tagline{margin:0 0 32px}
.customer-app .bot-entry-cards{gap:24px;margin:24px 0 16px}
.customer-app .bot-entry-cards section{padding:16px}
.customer-app .bot-entry-cards h3{font-size:20px;line-height:24px;margin:0 0 16px}
.customer-app #launchScreen{font-family:Manrope,sans-serif;background:var(--bg);color:var(--ink)}
.customer-app .launch-tagline{letter-spacing:0;color:var(--muted)}
.customer-app .bot-entry-cards section,.customer-app .bot-entry-link{border-radius:6px}
@media(hover:hover){
  .customer-app .primary:not(:disabled):hover{background:#f26c13}
  .customer-app .secondary:not(:disabled):hover,.customer-app .icon-button:not(:disabled):hover{background:#eeede7}
  .customer-app .product-category>summary:hover{background:#f5f5f0}
}
@media(min-width:700px){
  .customer-app .delivery-sheet{width:min(800px,100%);height:auto;max-height:94dvh;border-radius:10px;margin:auto}
}
@media(max-width:600px){
  body.customer-app{--app-gutter:20px}
  .customer-app .topbar .brand b{font-size:20px}
  .customer-app .topbar .brand small{font-size:10px}
  .customer-app main{padding-bottom:24px}
  .customer-app .product-category>summary{padding:14px;gap:12px;min-height:98px}
  .customer-app .category-symbol{width:64px;height:64px;flex-basis:64px}
  .customer-app .product-category>summary b{font-size:18px}
  .customer-app .product-category>summary small{font-size:13px}
  .customer-app .category-description{font-size:13px}
  .customer-app .disclosure{width:30px;height:30px;flex-basis:30px}
  .customer-app .product-rows{padding:0 14px 8px}
  .customer-app .category-help{margin:0 14px 16px}
  .customer-app .product-row{gap:10px;flex-wrap:wrap}
  .customer-app .row-copy{flex:1 1 140px}
  .customer-app .row-controls{margin-left:auto}
  .customer-app .row-copy :is(b,small){font-size:14px}
  .customer-app .bottom-bar{gap:12px}
  .customer-app .bottom-bar small{font-size:11px;max-width:120px}
  .customer-app .bottom-bar strong{font-size:22px}
  .customer-app .bottom-bar .primary{min-width:0;max-width:64%;padding:12px 16px;line-height:24px;overflow-wrap:anywhere}
  .customer-app .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .customer-app .review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .customer-app .personalized-photo:has(.back-caption-editor[open]){grid-column:1/-1}
  .customer-app .review-tile{padding:8px}
  .customer-app .review-tile canvas{max-height:350px}
  .customer-app .form-grid{grid-template-columns:1fr;gap:24px}
  .customer-app .sheet,.customer-app .crop-sheet{padding:24px max(20px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));border-radius:10px 10px 0 0}
  .customer-app .crop-sheet{margin:auto;max-height:96dvh;border-radius:8px}
  .customer-app .crop-actions .secondary{font-size:13px;padding:10px}
  .customer-app .provider-options{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.customer-app *{scroll-behavior:auto;animation:none!important;transition:none!important}}

.customer-app .point-chevron{display:grid;place-items:center;width:32px;height:32px;border-radius:4px;background:#eeede7;color:var(--ink);line-height:0}

.customer-app .order-reassurance{font-size:14px;color:var(--muted);margin:16px 0 24px;max-width:65ch}
.customer-app .cart-recovery{padding:16px;background:#dce3d2;color:#30442c;border-radius:6px;margin:20px 0}
.customer-app .cart-recovery[hidden]{display:none}
.customer-app .cart-recovery p{margin:0 0 12px;max-width:65ch;font-size:14px}
.customer-app .cart-recovery>div{display:flex;flex-wrap:wrap;gap:12px}
.customer-app .cart-recovery button{min-height:48px}
.customer-app .format-comparison{padding:16px 20px;border-top:1px solid var(--line)}
.customer-app .bulk-caption>summary,.customer-app .order-help>summary{cursor:pointer;font-weight:700;min-height:48px;align-content:center}
.customer-app .format-comparison p{font-size:14px;max-width:65ch}
.customer-app .comparison-figures{display:flex;align-items:flex-end;flex-wrap:wrap;gap:24px;padding:16px 0}
.customer-app .comparison-figures figure{margin:0;flex:0 0 120px}
.customer-app .comparison-figures figcaption{font-size:12px;margin-top:12px;max-width:120px}
.customer-app .compare-format,.customer-app .format-thumb{display:block;max-width:100%;height:auto;overflow:visible;border:0;flex-shrink:0}
.customer-app .format-thumb{width:min(54px,calc(88px * var(--format-ratio)));height:auto;max-height:none;aspect-ratio:var(--format-ratio);align-self:center}
.customer-app .product-row{align-items:center}
.customer-app .add-product-label{font-size:14px;min-width:96px;padding:10px}
.customer-app .row-controls .add-product-label:not(:disabled){background:var(--action-bg);border-color:#b74700;color:var(--ink)}
@media(hover:hover){.customer-app .row-controls .add-product-label:not(:disabled):hover{background:#f26c13}}
.customer-app .row-controls .add-product-label:not(:disabled):active{background:#f26c13}
.customer-app .bulk-caption{border-block:1px solid var(--line);padding:12px 0;margin:0 0 24px}
.customer-app .bulk-caption>label{display:flex;flex-direction:column;gap:8px;max-width:480px;margin:16px 0}
.customer-app .bulk-caption>label.check-row{flex-direction:row}
.customer-app .bulk-caption p{font-size:14px;max-width:65ch}
.customer-app .caption-selection{font-size:14px;min-height:48px;padding:8px 0}
.customer-app .remember-checkout{margin-top:20px;max-width:65ch}
.customer-app .field-error{color:#9a2e19;font-size:14px;line-height:1.5}
.customer-app [aria-invalid=true]{border-color:#9a2e19}
.customer-app .order-help{display:block;width:100%;min-width:0;margin:32px 0 20px;border:0;padding:0}
.customer-app .order-help[hidden]{display:none}
.customer-app .order-help>summary{display:flex;width:100%;text-align:left;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:18px 0;border-block:1px solid var(--line);list-style:none;font-size:20px;font-weight:800;line-height:1.4;color:var(--ink)}
.customer-app .order-help>summary::-webkit-details-marker{display:none}
.customer-app .order-help>summary::marker{content:''}
.customer-app .order-help>summary::after{content:'';margin-left:auto;flex:0 0 20px;width:20px;height:20px;background:linear-gradient(currentColor,currentColor) center/14px 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 14px no-repeat}
.customer-app .order-help[open]>summary::after{background-size:14px 2px,2px 0}
@media(hover:hover) and (pointer:fine){.customer-app .order-help>summary:hover{background:#f5f5f0}}
.customer-app .order-help:not([hidden]):has(~.order-help:not([hidden])){margin-bottom:0}
.customer-app .order-help:not([hidden])~.order-help:not([hidden]){margin-top:0}
.customer-app .order-help:not([hidden])~.order-help:not([hidden])>summary{border-top:0}
.customer-app .order-help+.legal-footer{border-top:0}
.customer-app .order-help h2{font-size:22px}
.customer-app .order-help details{padding:12px 0;border-bottom:1px solid var(--line)}
.customer-app .order-help details summary{cursor:pointer;min-height:48px;align-content:center}
.customer-app .order-help p{max-width:65ch;font-size:15px}
.customer-app .order-line{flex-wrap:wrap;gap:12px}
.customer-app .order-line>div{flex:1 1 100%}
@media(max-width:600px){
 .customer-app .format-comparison{padding:12px 14px}
 .customer-app .product-row .format-thumb{width:min(42px,calc(72px * var(--format-ratio)));max-height:none}
 .customer-app .product-row .row-copy{flex:1 1 170px}
 .customer-app .product-row .row-controls{flex:0 0 auto}
 .customer-app .comparison-figures{gap:20px}
 .customer-app .order-reassurance{font-size:13px}
}

.customer-app .screen:has(.bulk-caption:not([open])) .caption-selection{display:none}

.customer-app .review-tile canvas{width:min(100%,calc(350px * var(--photo-ratio,1)));height:auto;max-height:none;aspect-ratio:var(--photo-ratio,auto);object-fit:contain;margin-inline:auto}

.customer-app .format-preview{display:grid;grid-template-rows:minmax(0,1fr) auto;place-items:center;gap:6px;flex:0 0 112px;width:112px;height:120px;padding:8px;background:#eeede7;border-radius:6px}
.customer-app .product-row .format-preview .format-thumb{width:min(var(--diagram-width,96px),calc(var(--diagram-height,78px) * var(--format-ratio)));height:auto;border:0}
.customer-app .format-dimensions{font-size:15px;line-height:1.4;color:var(--muted);white-space:normal;text-align:center;font-variant-numeric:tabular-nums}
.customer-app .compare-format{border:0}
@media(max-width:600px){.customer-app .format-preview{--diagram-width:72px;--diagram-height:68px}}
.customer-app .strip-preview-stage{--strip-stage-height:300px;display:grid;place-items:center;width:100%;height:var(--strip-stage-height);background:#eeede7}
.customer-app .strip-preview-stage canvas{width:min(100%,calc(var(--strip-stage-height) * var(--photo-ratio)));height:auto;max-height:none}
.customer-app .order-help .format-comparison{padding:12px 0;border-top:0}

.customer-app .cart-quantity-editor{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:16px 0;flex-basis:100%;border-top:1px solid var(--line)}
.customer-app .cart-quantity-editor label{display:grid;gap:8px;font-size:14px;max-width:180px}
.customer-app .cart-quantity-editor :is(input,select){width:100%;min-width:100px}
.customer-app .cart-quantity-editor .field-error{flex-basis:100%}
.customer-app .order-caption-details{margin-top:10px}
.customer-app .order-caption-details summary{min-height:48px;align-content:center;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.customer-app .order-caption-details small{white-space:pre-wrap;overflow-wrap:anywhere}
.customer-app .photo.photo-error{grid-column:1/-1;aspect-ratio:auto;min-height:120px;display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px 16px;padding:14px 58px 14px 14px;background:#eeede7;overflow:visible}
.customer-app .photo-error>img,.customer-app .photo-error>.photo-placeholder{grid-column:1;grid-row:1/4;width:64px;height:64px;object-fit:cover;align-self:start;border-radius:4px}
.customer-app .photo-placeholder{display:grid;place-items:center;color:var(--muted);font-size:14px;background:#d7d8cf}
.customer-app .photo-error .photo-status{position:static;grid-column:2;background:none;color:var(--ink);padding:0;font-size:14px;font-weight:700}
.customer-app .photo-error-detail{grid-column:2;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.customer-app .photo-error button.photo-retry{position:static;grid-column:2;width:auto;height:auto;min-height:48px;justify-self:start;border-radius:6px;font-size:14px;background:white;color:var(--ink);padding:10px 14px}
@media(max-width:420px){
 .customer-app .photo.photo-error{grid-template-columns:40px minmax(0,1fr);gap:8px 10px;padding-right:48px}
 .customer-app .photo-error>img,.customer-app .photo-error>.photo-placeholder{width:40px;height:40px}
}
@media(max-width:600px){
 .customer-app .format-preview{flex-basis:88px;width:88px;height:112px}
 .customer-app .product-row .format-preview .format-thumb{width:min(var(--diagram-width),calc(var(--diagram-height) * var(--format-ratio)))}
 .customer-app .product-row:has(.format-preview) .row-copy{flex:1 1 140px}
 .customer-app .strip-preview-stage{--strip-stage-height:260px}
}

/* Faster entry, concise set comparison and a crop editor with persistent actions. */
.customer-app #productScreen>.lead{margin-bottom:24px}
.customer-app .minimum-notice.empty-order{display:block;background:none;padding:0;margin:10px 0 16px;color:var(--muted)}
.customer-app .minimum-notice.empty-order b{display:inline;font-size:14px;font-weight:600}
.customer-app .minimum-notice.empty-order small{display:inline;margin-left:8px;font-size:13px}
.customer-app .row-copy .set-counts{font-size:14px;color:var(--muted);margin:5px 0 10px}
.customer-app .set-preview{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:12px 0 6px}
.customer-app .set-preview figure{margin:0;min-width:54px;max-width:110px;flex:0 1 auto}
.customer-app .set-preview-stage{display:flex;align-items:flex-end;justify-content:center;height:var(--set-preview-height);padding:1px}
.customer-app .set-preview svg{display:block;flex:none;overflow:visible}
.customer-app .set-preview figcaption{font-size:13px;line-height:1.4;margin-top:7px;text-align:center;color:var(--muted)}
.customer-app .row-copy .set-more{margin-top:8px}
.customer-app .set-contents>summary{display:flex;align-items:center;justify-content:flex-start;gap:10px;list-style:none;padding:6px 0;min-height:48px;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.customer-app .set-contents>summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-3px}
.customer-app .set-contents[open]>summary::after{transform:rotate(225deg);margin-top:3px}
.customer-app .set-contents .set-composition{margin:0 0 12px}
.customer-app .set-variants{display:grid;gap:12px;margin:8px 0 12px}
.customer-app .set-variant>span{display:block;font-size:13px;color:var(--muted);margin-bottom:5px}
.customer-app .set-variant .strip-orientation{margin:0}
.customer-app #cropDialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:0;margin:auto;width:min(720px,calc(100% - 24px));height:min(780px,calc(var(--crop-visible-height,100dvh) - 24px));max-height:calc(var(--crop-visible-height,100dvh) - 24px);border-radius:10px}
.customer-app #cropDialog>.sheet-head{flex:none;margin:0;padding:16px 20px;border-bottom:1px solid var(--line)}
.customer-app #cropDialog .sheet-head h2{font-size:24px;line-height:28px;margin:0}
.customer-app .crop-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 20px 16px;scroll-padding:16px}
.customer-app .crop-body #cropCanvas{width:min(100%,38dvh,360px);height:auto;max-width:100%;margin:8px auto;border-radius:6px}
.customer-app #cropFormat{margin:12px 0}
.customer-app #cropDialog>.crop-actions{flex:none;display:grid;grid-template-columns:auto auto minmax(170px,1fr);gap:12px;margin:0;padding:16px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg)}
.customer-app #cropDialog .crop-actions .primary{min-width:0;width:100%}
@media(max-width:600px){
 .customer-app #cropDialog>.sheet-head{padding:16px 20px}
 .customer-app .crop-body{padding:0 20px 16px}
 .customer-app #cropDialog>.crop-actions{grid-template-columns:1fr 1fr;padding:16px 20px calc(16px + env(safe-area-inset-bottom));gap:8px}
 .customer-app #cropDialog .crop-actions .primary{grid-column:1/-1}
 .customer-app #cropDialog .crop-actions .secondary{font-size:13px;min-width:0;padding:10px 6px}
}

.customer-app .set-more>summary{display:flex;align-items:center;gap:8px;min-height:48px;width:fit-content;padding:7px 0;color:var(--muted);font-size:13px;line-height:1.4;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.customer-app .set-more>summary:hover{color:var(--ink,#24251f)}
.customer-app .set-more>summary:focus-visible{outline:3px solid #b74700;outline-offset:3px}

.customer-app .set-more>summary::after{content:"";flex:none;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.customer-app .set-more[open]>summary::after{transform:rotate(225deg)}

.customer-app .set-price{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-top:6px}
.customer-app .set-price .set-saving{font-size:11px}

.customer-app .category-product-art{display:block;width:100%;height:100%;overflow:visible}

.customer-app .set-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.customer-app .set-detail-button{min-height:48px;font-size:13px}
.customer-app .set-detail-button[aria-expanded="true"]{background:#e8ecdf;border-color:#879178;color:#34402c}
.customer-app .set-preview-wrap[hidden],.customer-app .set-contents[hidden]{display:none}

.customer-app .product-category[open]>summary .category-prompt{display:none}
.customer-app .delivery-sheet[open]{display:flex;flex-direction:column;overflow:hidden}
.customer-app .delivery-sheet>.sheet-head{flex:none}
.customer-app .delivery-dialog-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.customer-app .delivery-dialog-footer{flex:none;border-top:1px solid var(--line);padding-top:12px;margin-top:8px}
.customer-app .delivery-dialog-footer .primary{width:100%;min-height:48px}

.customer-app .storefront-sets[open]>summary .set-intro-closed{display:none}

/* Compact customer catalog. */
.customer-app .product-accordion{gap:8px}
.customer-app .product-category>summary{min-height:78px;padding:12px 14px;gap:12px}
.customer-app .category-symbol{width:48px;height:48px;flex-basis:48px}
.customer-app .product-category>summary b{font-size:17px;line-height:1.3;letter-spacing:-.02em}
.customer-app .product-category>summary small{display:block;font-size:13px;line-height:1.4;margin-top:4px}
.customer-app .product-category[open]>summary :is(.category-prompt,.set-intro-closed){display:block}
.customer-app .disclosure{width:30px;height:30px;flex-basis:30px;background:transparent}
.customer-app .product-category[open]>summary{background:#f5f5f0;border-radius:8px 8px 0 0}
.customer-app .product-category[open]>summary .disclosure{background:#eeede7}
.customer-app .compact-info{margin:0 14px 14px;border-top:1px solid var(--line);padding-top:8px}
.customer-app .compact-info>summary{font-size:13px;min-height:48px;display:flex;align-items:center;gap:8px;cursor:pointer;color:#55584d;list-style:none}
.customer-app .compact-info>summary::-webkit-details-marker{display:none}
.customer-app .compact-info>summary:after{content:'+';font-size:19px;margin-left:auto}
.customer-app .compact-info[open]>summary:after{content:'−'}
.customer-app .compact-info .category-description{display:block;font-size:14px;line-height:1.6;white-space:pre-line;padding:0 0 8px}
.customer-app .product-category>.compact-info{margin:0 14px;padding-top:0;border-top:0;border-bottom:1px solid var(--line)}
.customer-app .compact-selected{color:#30442c!important;font-weight:700}
.customer-app .product-row{padding-block:12px}
.customer-app .set-row{display:grid;grid-template-columns:minmax(0,1fr) 96px;column-gap:12px;row-gap:7px}
.customer-app .set-row>.row-copy{display:contents}
.customer-app .set-row>.row-copy>b{grid-column:1/-1}
.customer-app .set-row .set-price,.customer-app .set-row .set-counts{grid-column:1;margin:0}
.customer-app .set-row>.row-controls{grid-column:2;grid-row:2/4;align-self:center;margin:0;justify-self:end}
.customer-app .set-row .set-detail-actions,.customer-app .set-row .set-contents,.customer-app .set-row .set-preview-wrap,.customer-app .set-row>.row-copy>small{grid-column:1/-1}
.customer-app .set-row .set-detail-actions{margin:3px 0;gap:8px}
.customer-app .set-row .set-detail-button{padding:9px 10px;font-size:13px;background:transparent;border-color:var(--line)}
.customer-app .minimum-notice{margin-block:24px;padding:16px}
.customer-app .product-category+ .product-category{margin-top:0}

/* Readable actions and supporting text; brand artwork keeps the original orange. */
.customer-app .bot-entry-link{background:var(--action-bg);color:var(--ink);font-size:16px;min-height:56px}
.customer-app .primary{font-size:15px}
.customer-app .bottom-bar .primary{font-size:15px}
.customer-app .product-category>summary small,
.customer-app .row-copy small,
.customer-app .back-caption-editor :is(small,.caption-counter),
.customer-app .point-card small,
.customer-app .orders-list :is(p,.status),
.customer-app .legal-payment,
.customer-app .legal-footer,
.customer-app .set-preview figcaption,
.customer-app .set-variant>span,
.customer-app .set-price .set-saving,
.customer-app .minimum-notice small,
.customer-app .minimum-notice.empty-order small,
.customer-app .order-reassurance{font-size:15px;line-height:1.5}
.customer-app .set-more>summary{font-size:15px}
.customer-app .compact-info>summary{font-size:15px;color:var(--muted)}
.customer-app .format-preview{height:auto;min-height:140px;grid-template-rows:78px auto}
@media(max-width:600px){
  .customer-app .format-preview{min-height:132px;grid-template-rows:68px auto}
  .customer-app .bottom-bar small{font-size:13px}
}
@media(hover:hover){
  .customer-app .primary:not(:disabled):hover,
  .customer-app .bot-entry-link:hover,
  .customer-app .row-controls .add-product-label:not(:disabled):hover{background:var(--action-hover)}
}
.customer-app .primary:not(:disabled):active,
.customer-app .bot-entry-link:active,
.customer-app .row-controls .add-product-label:not(:disabled):active{background:var(--action-active)}

/* One compact order panel; the minimum's progress is its upper edge. */
.customer-app .bottom-order-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;flex:1}
.customer-app .bottom-order-total{min-width:0}
.customer-app .order-minimum-status{margin:0;max-width:43%;font-size:14px;line-height:1.45;text-align:right;color:var(--muted)}
.customer-app .order-minimum-status.goal-reached{color:#30442c}
.customer-app .order-minimum-status[hidden],.customer-app .order-minimum-progress[hidden]{display:none}
.customer-app.building-order .bottom-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;border-top:0;padding-top:16px}
.customer-app.building-order .bottom-order-overview{min-height:46px}
.customer-app.building-order .bottom-order-total{flex:1}
.customer-app.building-order .bottom-total-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
.customer-app.building-order .bottom-total-line small{max-width:none;font-size:13px}
.customer-app.building-order .bottom-bar .primary{width:100%;min-width:0;max-width:none;min-height:56px;padding:12px 14px;line-height:1.4}
.customer-app .order-minimum-progress{position:absolute;top:0;left:0;width:100%;height:4px;display:block;appearance:none;-webkit-appearance:none;border:0;border-radius:0;margin:0;padding:0;overflow:hidden;background:var(--line);color:#b74700;accent-color:#b74700}
.customer-app .order-minimum-progress::-webkit-progress-bar{background:var(--line)}
.customer-app .order-minimum-progress::-webkit-progress-value{background:#b74700}
.customer-app .order-minimum-progress::-moz-progress-bar{background:#b74700}
.customer-app .order-minimum-progress.goal-reached{color:#48683a;accent-color:#48683a}
.customer-app .order-minimum-progress.goal-reached::-webkit-progress-value{background:#48683a}
.customer-app .order-minimum-progress.goal-reached::-moz-progress-bar{background:#48683a}



/* Primary actions remain orange; the file picker is a quieter secondary surface. */
.customer-app #checkoutBtn.photo-action:not(:disabled),
.customer-app .row-controls .add-product-label:not(:disabled){background:var(--accent);color:var(--ink);border-color:#b74700}
.customer-app .upload-box{background:#f0f3ec;color:var(--ink);border-color:#95998a}
.customer-app .upload-box small{color:var(--muted)}
@media(hover:hover){
 .customer-app #checkoutBtn.photo-action:not(:disabled):hover,
 .customer-app .row-controls .add-product-label:not(:disabled):hover{background:#ff8b3d}
 .customer-app .upload-box:hover{background:#e5ebde}
}
.customer-app #checkoutBtn.photo-action:not(:disabled):active,
.customer-app .row-controls .add-product-label:not(:disabled):active{background:#ef6a13}
.customer-app .upload-box:active{background:#dce3d2}

/* Emphasize the set suggestion without changing its geometry or typography. */
.customer-app .basket-extras{background:#dce3d2}
.customer-app .basket-extras .secondary{background:#fff;border-color:#b74700;color:var(--ink)}

/* A clothing-tag handle opens optional additions above the fixed order bar. */
.customer-app .basket-extras-drawer{position:absolute;bottom:100%;left:0;right:0;z-index:2;border-top:1px solid #697b60}
.customer-app .basket-extras-drawer[hidden]{display:none}
.customer-app .basket-extras-drawer>summary{position:absolute;right:max(var(--app-gutter),env(safe-area-inset-right),calc((100vw - 840px)/2));bottom:100%;display:flex;align-items:center;justify-content:center;gap:12px;list-style:none;cursor:pointer;touch-action:manipulation;min-height:48px;padding:12px 16px;background:#dce3d2;color:var(--ink);border:1px solid #697b60;border-bottom:0;border-radius:5px 5px 0 0;font-size:14px;font-weight:700;line-height:1.4}
.customer-app .basket-extras-drawer>summary::-webkit-details-marker{display:none}
.customer-app .basket-extras-drawer>summary::marker{content:''}
.customer-app .basket-extras-drawer>summary::after{content:'';width:7px;height:7px;flex:none;border-top:2px solid currentColor;border-left:2px solid currentColor;transform:rotate(45deg);margin-top:4px}
.customer-app .basket-extras-drawer[open]>summary::after{transform:rotate(225deg);margin-top:-4px}
.customer-app .basket-extras-drawer .basket-extras{margin:0;border-radius:0;max-height:min(50dvh,340px);overflow-y:auto;overscroll-behavior:contain;padding-left:max(var(--app-gutter),env(safe-area-inset-left),calc((100vw - 840px)/2));padding-right:max(var(--app-gutter),env(safe-area-inset-right),calc((100vw - 840px)/2));box-shadow:0 4px 16px #24251f14}
.customer-app.building-order.has-basket-extras{padding-bottom:calc(var(--basket-footer-height,150px) + 64px)}
.customer-app .order-minimum-progress{z-index:3}

/* Applied order discounts stay visible beside the next goal. */
.customer-app .order-minimum-status{display:flex;flex-direction:column;align-items:flex-end;gap:4px;max-width:60%}
.customer-app .order-discount-applied{display:inline-block;max-width:100%;padding:2px 5px;border:1px solid #48683a;border-radius:4px;background:#eff2eb;color:#30442c;font-size:13px;font-weight:800;line-height:1.2;width:fit-content;min-height:0}
.customer-app .order-discount-applied[hidden],.customer-app .order-minimum-text[hidden]{display:none}

/* Keep the address field's focus ring inside the delivery scroll area. */
.customer-app #cityInput:focus{border-color:var(--field-line);outline:none;box-shadow:inset 0 0 0 2px var(--field-line)}
.customer-app #pointSearch .primary,.customer-app #continueDeliveryOrder{background:#ff7c1e;color:var(--ink)}

.customer-app .legal-information .legal-footer{margin:0;padding:0 0 12px;border-top:0}

@media(hover:hover){.customer-app #pointSearch .primary:hover,.customer-app #continueDeliveryOrder:hover{background:#ff8b3d}}
.customer-app #pointSearch .primary:active,.customer-app #continueDeliveryOrder:active{background:#ef6a13}

/* The progress stripe sits below the tag boundary. */
.customer-app .order-minimum-progress{top:4px}
.customer-app .photo-orientation{border:0;padding:0;margin:10px 0;display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.customer-app .photo-orientation legend{font-size:13px;margin-bottom:6px}
.customer-app .photo-orientation .secondary{flex:1;min-width:0;padding:8px 6px;font-size:12px;min-height:48px}
.customer-app .photo-orientation [aria-pressed=true]{background:#dce3d2;border-color:#697b60;font-weight:800}

/* Compact crop controls keep all three adjustments close to the preview. */
.customer-app .crop-preview{position:relative;width:min(100%,38dvh,360px);margin:8px auto}
.customer-app .crop-preview #cropCanvas{width:100%;margin:0}
.customer-app .crop-gesture-hint{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#fff;opacity:.6;filter:drop-shadow(0 1px 3px #000)}
.customer-app .crop-gesture-hint[hidden]{display:none}
.customer-app .crop-gesture-hint svg{width:68px;height:68px;overflow:visible}
.customer-app .crop-position{margin:8px 0;padding:8px 12px}
.customer-app .crop-position[open]>summary{margin-bottom:6px}
.customer-app .crop-position label{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:8px;margin:0;min-height:36px;font-size:13px;line-height:1.3}
.customer-app .crop-position input{margin:0;min-width:0;min-height:36px}

.customer-app .photo-flip-stage{position:relative;background:#eeede7;border-radius:6px}
.customer-app .photo-flip-stage .review-tile{display:block;margin:0}
.customer-app .photo-flip-stage .review-tile:disabled{opacity:1}
.customer-app .photo-back-face{position:absolute;inset:12px;display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden;border:1px solid #e0e0da}
.customer-app .photo-back-face[hidden]{display:none}
.customer-app .photo-back-face img{height:auto;max-width:90%;max-height:90%;object-fit:contain}
.customer-app .photo-back-face img[hidden],.customer-app .photo-back-status[hidden]{display:none}
.customer-app .photo-back-status{font-size:13px;line-height:1.5;text-align:center;padding:24px;color:var(--muted)}
.customer-app .personalized-photo>span,.customer-app .personalized-photo>small{display:block;font-size:13px;line-height:1.45;margin-top:8px}

.customer-app .photo-flip-stage{width:min(100%,calc(360px * var(--photo-ratio) + 24px));margin-inline:auto}
.customer-app .photo-flip-stage .review-tile canvas{max-height:none}

.customer-app .photo-back-face{padding:0;cursor:default;color:var(--ink)}
.customer-app .photo-back-face:disabled{opacity:1;cursor:default}

.customer-app .photo-side-toggle{display:none;margin:10px 0;min-height:48px}
.customer-app .personalized-photo:has(.back-caption-editor[open])>.photo-side-toggle{display:block}
.customer-app .personalized-photo:has(.back-caption-editor[open])>:is(.photo-orientation,.caption-selection){display:none}
.customer-app .personalized-photo:has(.back-caption-editor[open]) .review-tile:disabled{opacity:1;cursor:default}
.customer-app .caption-save{display:block;margin-top:16px}

.customer-app .bulk-caption-preview{margin:16px 0;max-width:480px;padding:16px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff)}
.customer-app .bulk-caption-preview img{display:block;max-width:100%;max-height:160px;width:auto;height:auto;margin:8px auto 16px;object-fit:contain}
.customer-app .bulk-caption-preview img[hidden]{display:none}
.customer-app .bulk-caption-preview figcaption{font-size:13px;line-height:1.6;color:var(--muted)}

.customer-app .back-caption-editor>.caption-text-field{margin:0 0 12px;gap:4px}
.customer-app .caption-text-field textarea{margin-top:0}
.customer-app #checkoutBtn.review-action:not(:disabled),.customer-app .caption-save:not(:disabled){background:#ff7c1e;color:var(--ink)}
@media(hover:hover){.customer-app #checkoutBtn.review-action:not(:disabled):hover,.customer-app .caption-save:not(:disabled):hover{background:#ff8b3d}}
.customer-app #checkoutBtn.review-action:not(:disabled):active,.customer-app .caption-save:not(:disabled):active{background:#ef6a13}

/* Compact receiving step: reduce whitespace while keeping touch targets readable. */
.customer-app .checkout-compact>h1{margin-bottom:8px}
.customer-app .checkout-compact>.lead{margin-bottom:24px;line-height:24px}
.customer-app .checkout-compact .form-grid{gap:16px 24px;margin:24px 0}
.customer-app .checkout-compact .form-grid>label{font-size:14px;line-height:20px}
.customer-app .checkout-compact .form-grid input:not([type=checkbox]){min-height:56px;padding:12px;margin-top:8px}
.customer-app .checkout-compact .recipient-hint{padding:10px 12px;font-size:13px;line-height:1.5}
.customer-app .checkout-compact .no-patronymic{min-height:48px;padding:4px 0;margin:0;gap:12px}
.customer-app .checkout-compact .pickup-panel{padding:16px;margin:24px 0}
.customer-app .checkout-compact .point-details{margin-bottom:8px;line-height:1.5}
.customer-app .checkout-compact .pickup-panel .quiet{margin:8px 0;font-size:14px;line-height:1.5}
.customer-app .checkout-compact .remember-checkout{margin:8px 0 0;padding:6px 0;min-height:48px;line-height:1.4}
.customer-app .checkout-compact .remember-checkout+.quiet{font-size:13px;line-height:1.5;margin:4px 0 12px}
.customer-app .checkout-compact .comment-label{margin:24px 0}
.customer-app .checkout-compact .comment-label textarea{margin-top:8px;padding:12px}
.customer-app .checkout-compact #basket h2{font-size:20px;margin:14px 0 8px}
.customer-app .checkout-compact .order-lines{gap:6px;padding-top:10px;margin:8px 0}
.customer-app .checkout-compact .order-line{padding:8px 0;gap:8px}
.customer-app .checkout-compact .promotion-control{margin:12px 0}
.customer-app .checkout-compact .summary{padding:16px;margin-top:24px}
.customer-app .checkout-compact .summary-row{margin:8px 0}
.customer-app .checkout-compact .summary-row.total{margin-top:10px;padding-top:10px;font-size:20px}
.customer-app .checkout-compact #checkoutHint{margin:10px 0;font-size:14px;line-height:1.5}
.customer-app .checkout-compact .legal-payment{margin:16px 0;font-size:14px;line-height:20px}

.customer-app .header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}
.customer-app .header-actions :is(#backStep,#ordersBack,#ordersBtn){margin:0;min-height:48px;font-size:14px;line-height:20px;padding:12px;white-space:nowrap}
.customer-app #paymentScreen .success-mark{margin:24px auto 16px}
@media(max-width:480px){
 .customer-app .topbar .brand{gap:8px;min-width:0;max-width:100%}
 .customer-app .topbar .brand img{width:32px;height:32px}
 .customer-app .topbar .brand b{font-size:16px;white-space:nowrap}
 .customer-app .topbar .brand small{font-size:12px;line-height:16px;white-space:normal;max-width:144px}
}
@media(max-width:360px){.customer-app .progress-nav button{font-size:12px;line-height:16px}}

.customer-app.payment-return #main>:not(#paymentScreen):not(#ordersScreen):not(#loadError){display:none!important}
.customer-app.payment-return .bottom-bar,.customer-app.payment-return #backStep{display:none!important}

/* Order history uses the same header and content width as the storefront. */
.customer-app.orders-page {padding-bottom:env(safe-area-inset-bottom)}
.customer-app.orders-page #main>:not(#ordersScreen),
.customer-app.orders-page :is(.bottom-bar,#backStep,#ordersBtn),
.customer-app #ordersScreen[hidden],
.customer-app #ordersNotice:empty {display:none!important}
.customer-app #ordersScreen .order-card button {min-height:44px}

.customer-app .review-groups>section+section{border-top:1px solid var(--line);padding-top:20px}

/* One product heading row, with the primary quantity action at its right edge. */
.customer-app .catalog-product-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:start}
.customer-app .product-row-head{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.customer-app .product-row-head>b{flex:1;min-width:0;font-size:16px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.customer-app .product-row-head>.row-controls{flex:0 0 auto;align-items:center;gap:6px;margin:0}
.customer-app .product-row-head .icon-button{width:48px;min-width:48px;height:48px;min-height:48px;padding:0;border-radius:6px;font-size:22px;line-height:1}
.customer-app .product-row-head .add-product-label{width:104px;min-width:104px;padding:10px 12px;font-size:14px;font-weight:800;line-height:1.4}
.customer-app .product-row-head .row-count{min-width:22px;text-align:center;font-size:15px;line-height:1.4}
.customer-app .catalog-product-row>.row-copy{grid-column:2;min-width:0}
.customer-app .catalog-product-row:not(:has(>.format-preview))>.row-copy{grid-column:1/-1}
.customer-app .catalog-product-row>.format-preview{grid-column:1;grid-row:2}
.customer-app .set-row{grid-template-columns:minmax(0,1fr)}
.customer-app .set-row>.product-row-head{grid-row:1}
@media(max-width:600px){
 .customer-app .catalog-product-row{grid-template-columns:88px minmax(0,1fr);gap:12px}
 .customer-app .catalog-product-row>.format-preview{width:88px;height:104px;padding:6px}
 .customer-app .catalog-product-row .format-dimensions{font-size:13px}
 .customer-app .product-row-head{gap:8px}
 .customer-app .product-row-head>b{font-size:15px}
}

.customer-app .cdekpay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.customer-app .cdekpay-actions > a:not([hidden]) {
  flex: 1 0 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.customer-app .cdekpay-actions > button {
  flex: 1;
}
.customer-app.yookassa-page {
  padding-bottom: 0;
}
.customer-app.yookassa-page > :is(.topbar, #main, .bottom-bar),
.customer-app #yookassaScreen[hidden] {
  display: none;
}
.customer-app #yookassaScreen {
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.customer-app .yookassa-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.customer-app #yookassaTitle {
  margin: 24px 0 12px;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.2;
}
.customer-app .yookassa-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.customer-app .yookassa-total strong {
  font-size: 22px;
  text-align: right;
}
.customer-app .yookassa-status:empty {
  display: none;
}
.customer-app .yookassa-status:not(:empty) {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
}
.customer-app .yookassa-methods:not([hidden]) {
  display: grid;
  gap: 10px;
}
.customer-app .yookassa-methods button {
  width: 100%;
  min-height: 48px;
}
.customer-app :is(.yookassa-methods button, .yookassa-continue)[hidden] {
  display: none;
}
.customer-app .yookassa-continue:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.customer-app .yookassa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.customer-app .yookassa-actions > button {
  flex: 1;
}

.customer-app #paymentResultMark[hidden]{display:none}

.customer-app .frame-next{display:grid;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;margin:12px 0}
.customer-app .frame-next p{margin:0}
.customer-app .frame-next button,.customer-app #reviewNext{justify-self:start;min-height:44px}
.customer-app .frame-next label{display:grid;gap:4px}
.customer-app :is(.frame-next,#photoNextAction,#framePhotoPicker,#reviewNext)[hidden]{display:none}
