/* The order preview shares the storefront's typography, photos and color palette. */
.shopping { min-height: 100vh; display: flex; flex-direction: column; }
.shopping .masthead, .shopping .footer { flex: none; }
.shopping .footer { margin-top: auto; border-top: 1px solid var(--line); }
.shopping .cart-button { border-color: #83916f; }
.buying { padding-block: 26px 56px; }
.buying[hidden], .buying section[hidden] { display: none; }
.buying-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.back-link, .edit-cart { font-size: 14px; }
.back-link { color: #c5cbbe; }
.back-link:hover, .edit-cart:hover { text-decoration: underline; text-underline-offset: 3px; }
.progress { display: flex; align-items: center; padding: 0; margin: 0; list-style: none; gap: 13px; font: 13px/1.1 var(--mono); color: #9da496; }
.progress li { display: flex; align-items: center; gap: 7px; }
.progress li + li::before { content: ""; height: 1px; width: clamp(14px,2.4vw,36px); background: #454c3f; margin-right: 5px; }
.progress b { border: 1px solid #485041; padding: 3px 4px; font-weight: 400; font-size: 11px; }
.progress [aria-current="step"] { color: var(--lime); }
.progress [aria-current="step"] b { background: var(--lime); color: #182010; border-color: var(--lime); }
.buy-title { margin: 27px 0 29px; font: 700 clamp(46px,4.6vw,67px)/1 var(--display); letter-spacing: -.055em; }
.buy-title:focus { outline: none; }
.buy-title span { color: var(--lime); }
.buy-grid { display: grid; grid-template-columns: minmax(0,1.58fr) minmax(0,1fr); align-items: start; gap: clamp(22px,2.4vw,36px); }
.buy-grid > * { min-width: 0; }
.box { border: 1px solid var(--line); background: var(--panel); border-radius: 5px; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.box h2, .receipt h2 { font-size: clamp(23px,2vw,29px); line-height: 1.15; letter-spacing: -.04em; }
.box-head small { font: 14px/1.2 var(--mono); white-space: nowrap; color: var(--lime); }
.basket-products { padding: clamp(18px,2.1vw,30px); padding-bottom: 4px; }
.basket-products .box-head { padding-bottom: 18px; }
.basket-row { display: grid; grid-template-columns: 90px minmax(105px,1fr) max-content minmax(65px,max-content); align-items: center; gap: clamp(10px,1.3vw,20px); padding-block: 17px; border-top: 1px solid var(--line); }
.thumb { width: 100%; aspect-ratio: 1.08; position: relative; overflow: hidden; border-radius: 3px; background: radial-gradient(ellipse at 42% 23%,#ffffff45,transparent 70%), var(--swatch,#bac5a8); }
.thumb.triple { --swatch: #c3b699; }
.thumb.refill { --swatch: #adbbb6; }
.item-info { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.item-info strong { font: 700 clamp(18px,1.45vw,22px)/1.16 var(--display); letter-spacing: -.025em; }
.item-info small { color: var(--muted); font: 12px/1.4 var(--mono); }
.item-info .remove { border: none; background: none; color: #bcc1b5; font-size: 12px; line-height: 1.4; padding: 3px 0; text-decoration: underline; text-underline-offset: 3px; }
.item-info .remove:hover { color: var(--lime); }
.qty { display: inline-flex; align-items: center; justify-content: space-between; min-height: 33px; border: 1px solid #525b48; border-radius: 3px; font: 14px/1 var(--mono); }
.qty button { background: transparent; color: var(--lime); border: none; width: 30px; min-height: 34px; font: 20px/1 var(--mono); }
.qty button:hover { background: #303729; }
.qty span, .qty output { min-width: 20px; text-align: center; }
.item-sum { text-align: right; white-space: nowrap; font: 700 22px/1.1 var(--display); }
.empty { padding-block: 16px 27px; color: var(--muted); }
.reuse-note { display: flex; align-items: center; gap: 15px; padding: 20px 4px; color: #ccd1c5; }
.reuse-note > :first-child { color: var(--lime); font: 26px/1 var(--sans); }
.reuse-note strong { font-size: 15px; color: var(--text); }
.reuse-note p { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.receipt { --ink: #1b2216; position: relative; padding: clamp(21px,2.3vw,34px); padding-bottom: 28px; color: var(--ink); background: #e5e9db; border-top: 4px solid var(--lime); border-radius: 4px 4px 0 0; }
.receipt::after { content: ""; position: absolute; top: calc(100% - 1px); inset-inline: 0; height: 7px; background: linear-gradient(135deg,#e5e9db 25%,transparent 25%) -6px 0/12px 12px repeat-x,linear-gradient(225deg,#e5e9db 25%,transparent 25%) -6px 0/12px 12px repeat-x; }
.receipt-head { padding-bottom: 18px; border-bottom: 1px dashed #929d87; }
.receipt-total { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding-block: 20px 14px; }
.receipt-total span { font-size: 15px; }
.receipt-total strong { white-space: nowrap; font: 700 clamp(34px,3vw,44px)/1.05 var(--display); letter-spacing: -.06em; }
.cost-row, .mini-row { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; font-size: 15px; line-height: 1.45; }
.cost-row > :last-child { font: 13px/1.4 var(--mono); color: #46513a; white-space: nowrap; }
.mini-row strong { white-space: nowrap; }
.buy-action { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 22px; min-height: 48px; padding: 11px 16px; background: #1e2a14; color: var(--text); border: 0; border-radius: 3px; font-weight: 650; font-size: 15px; }
.buy-action span[aria-hidden] { color: var(--lime); font: 22px/1 Arial,sans-serif; }
.buy-action:enabled:hover { background: #334428; }
.buy-action:disabled { background: #58624f; opacity: .7; cursor: default; }
.receipt :focus-visible { outline-color: #37591a; }
.receipt-note { display: block; font-size: 13px; line-height: 1.4; color: #4a5441; margin-top: 12px; }
.address-panel { padding: clamp(18px,2.1vw,30px); }
.fields { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.fields .wide { grid-column: 1 / -1; }
.fields label { display: flex; flex-direction: column; gap: 5px; color: #e2e6da; font-size: 14px; }
.fields input { min-width: 0; width: 100%; height: 42px; padding-inline: 12px; background: #11140f; color: var(--text); border: 1px solid #49513f; border-radius: 3px; font: 16px var(--sans); }
.fields input::placeholder { color: #99a08f; }
.fields input:focus-visible { border-color: var(--lime); outline: 1px solid var(--lime); outline-offset: 1px; }
.payment-panel { margin-top: 15px; padding: 18px clamp(18px,2.1vw,30px); display: flex; align-items: center; gap: 16px; }
.payment-panel h2 { font-size: 21px; }
.payment-panel p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.pay-mark { display: inline-flex; align-items: center; flex: none; gap: 6px; border: 1px solid #46553b; border-radius: 3px; background: #20271b; padding: 7px 10px; color: var(--text); font: 700 18px/1.1 var(--display); }
.pay-mark::before { content: ""; display: inline-block; height: 6px; width: 6px; background: var(--lime); }
[data-order-items] { padding-block: 16px; }
.mini-row + .mini-row { margin-top: 8px; }
#widok-zamowienia .cost-row { padding-bottom: 16px; border-bottom: 1px dashed #929d87; }
#widok-zamowienia .receipt-total { padding-bottom: 0; }
.edit-cart { display: inline-block; text-decoration: underline; text-underline-offset: 3px; margin-top: 15px; }
#payu-preview { padding: 27px; }
#payu-preview h2 { font-size: 30px; }
#payu-preview p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
#payu-preview [data-dismiss] { border-radius: 3px; border: 0; padding: 10px 15px; margin-top: 21px; background: var(--lime); color: #182010; font-weight: 650; }
@media (min-width: 721px) and (max-width: 1040px) {
  .buy-grid { grid-template-columns: minmax(0,1.35fr) minmax(265px,1fr); gap: 16px; }
  .basket-row { grid-template-columns: 68px minmax(0,1fr) max-content; }
  .thumb { grid-row: span 2; }
  .item-info { grid-column: 2; grid-row: 1 / span 2; }
  .qty, .item-sum { grid-column: 3; }
  .item-sum { align-self: start; }
}
@media (max-width: 720px) {
  .buying { padding-block: 16px 34px; }
  .buying-top { flex-wrap: wrap; gap: 12px 16px; }
  .buying-top .back-link { font-size: 13px; }
  .progress { gap: 5px; font-size: 11px; }
  .progress li { gap: 4px; }
  .progress li + li::before { width: 8px; margin-right: 1px; }
  .progress b { font-size: 10px; padding: 2px 3px; }
  .buy-title { font-size: clamp(41px,10.5vw,56px); margin-block: 21px 19px; }
  .buy-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .basket-products { padding: 17px 14px 1px; }
  .basket-products .box-head { padding-bottom: 13px; }
  .basket-row { grid-template-columns: 63px minmax(0,1fr) max-content; grid-template-areas: "thumb info sum" "thumb quantity quantity"; gap: 7px 10px; padding-block: 13px; }
  .basket-row .thumb { grid-area: thumb; }
  .item-info { grid-area: info; gap: 3px; }
  .item-info strong { font-size: 17px; }
  .item-info small { font-size: 11px; }
  .qty { grid-area: quantity; justify-self: start; }
  .item-sum { grid-area: sum; align-self: start; font-size: 18px; }
  .reuse-note { padding: 15px 2px 0; gap: 11px; }
  .reuse-note p { font-size: 13px; }
  .receipt { padding: 18px 20px 20px; }
  .receipt-head { padding-bottom: 13px; }
  .receipt-total { padding-block: 15px 10px; }
  .buy-action { margin-top: 17px; }
  .fields { gap: 12px; }
  .fields label { font-size: 13px; }
  .payment-panel { gap: 12px; padding-block: 14px; }
}
@media (max-width: 465px) {
  .fields label:first-child, .fields label:nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 365px) {
  .basket-row { grid-template-columns: 49px minmax(0,1fr) max-content; }
  .item-info strong { font-size: 16px; }
  .fields { grid-template-columns: 1fr; }
}


body[data-step="confirmation"] .buying-top { display: none; }
.confirmation-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #b6bdad; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.confirmation-context > span { font-size: 15px; }
.confirmation-context small { font: 12px/1.3 var(--mono); letter-spacing: .04em; }
.confirmation-grid { margin-top: clamp(24px, 3.2vw, 46px); display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-template-areas: "hero receipt" "home receipt"; gap: 20px clamp(22px, 3vw, 46px); align-items: start; }
.confirmation-hero { grid-area: hero; min-width: 0; position: relative; isolation: isolate; overflow: hidden; border: 1px solid #3c4934; border-radius: 5px; background: #10160e; }
.confirmation-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 70% 62%, #49632d38, transparent 70%), linear-gradient(90deg, #71836212 1px, transparent 1px), linear-gradient(0deg, #71836212 1px, transparent 1px); background-size: auto, 34px 34px, 34px 34px; }
.confirmation-art { position: absolute; z-index: -1; right: -2%; bottom: 8%; width: 49%; height: 85%; background: url("media/apple-scan.png") center / cover no-repeat; mix-blend-mode: lighten; mask-image: linear-gradient(90deg, transparent, #000 21%, #000 94%, transparent); }
.confirmation-copy { padding: clamp(22px,3vw,43px); }
.payment-result { display: flex; align-items: center; gap: 10px; color: var(--lime); font: 650 14px/1.3 var(--sans); }
.result-check { position: relative; height: 25px; width: 25px; flex: none; background: var(--lime); border-radius: 50%; }
.result-check::before { content: ""; position: absolute; width: 11px; height: 6px; top: 8px; left: 7px; border-left: 2px solid #1c3013; border-bottom: 2px solid #1c3013; transform: rotate(-45deg); }
#confirmation-title { font-size: clamp(49px,5vw,76px); line-height: .96; margin: 28px 0 24px; }
#confirmation-title:focus { outline: none; }
.confirmation-next { max-width: 29ch; color: #d3d9ca; font-size: 17px; line-height: 1.5; }
.confirmation-receipt { grid-area: receipt; }
.order-reference { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; column-gap: 12px; row-gap: 3px; margin-top: 21px; font-size: 14px; }
.order-reference strong { font: 700 15px/1.25 var(--mono); letter-spacing: .04em; }
.confirmed-items { padding-block: 20px; }
.confirmation-receipt .cost-row + .cost-row { margin-top: 7px; }
.confirmation-receipt .receipt-total { margin-top: 18px; padding: 18px 0 0; border-top: 1px dashed #929d87; }
.confirmation-home { grid-area: home; display: inline-flex; align-items: center; justify-content: space-between; justify-self: start; gap: 30px; min-height: 45px; padding: 9px 16px; color: #eef4e1; border: 1px solid #75896a; border-radius: 3px; background: #1c2419; font-size: 15px; font-weight: 600; }
.confirmation-home span { color: var(--lime); font: 21px/1 var(--mono); }
.confirmation-home:hover { border-color: var(--lime); }
.payu-preview-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
#payu-preview [data-simulate-return] { background: var(--lime); color: #182010; }
#payu-preview [data-simulate-return] span { color: inherit; }
#payu-preview [data-dismiss] { background: transparent; color: #d3d9cb; margin-top: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
@media (min-width: 721px) and (max-width: 1050px) {
  .confirmation-grid { grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr); }
  .confirmation-art { width: 39%; height: 65%; bottom: 18%; opacity: .8; }
  .confirmation-next { max-width: 24ch; }
}
@media (max-width: 720px) {
  .confirmation-context { padding-bottom: 12px; }
  .confirmation-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "hero" "receipt" "home"; gap: 21px; margin-top: 18px; }
  .confirmation-copy { padding: 21px; }
  .confirmation-art { right: -1%; bottom: 7%; width: 40%; height: 70%; }
  #confirmation-title { margin: 20px 0 16px; font-size: clamp(38px, 9.5vw, 57px); }
  .confirmation-next { max-width: 24ch; font-size: 15px; }
  .payment-result { gap: 8px; font-size: 13px; }
  .result-check { height: 23px; width: 23px; }
  .result-check::before { top: 7px; left: 6px; }
  .order-reference { margin-top: 13px; }
  .confirmed-items { padding-block: 15px; }
  .confirmation-home { justify-self: stretch; }
}
@media (max-width: 359px) {
  .confirmation-art { width: 29%; height: 45%; bottom: 17%; }
  .confirmation-copy { padding-inline: 16px; }
}

body:is([data-step="failed"], [data-step="cancelled"]) .buying-top { display: none; }
#widok-ponowienia {
  --state-color: #ffac92;
  --state-ink: #351e18;
  --state-edge: #655046;
  --state-wash: #231b17;
}
body[data-step="cancelled"] #widok-ponowienia {
  --state-color: #c1d5e5;
  --state-ink: #18262e;
  --state-edge: #465761;
  --state-wash: #172027;
}
.retry-grid { grid-template-areas: "hero receipt"; }
.retry-hero { background: linear-gradient(115deg, var(--state-wash), #121711 90%); border-color: var(--state-edge); }
.retry-hero::before { background: repeating-linear-gradient(90deg, transparent 0 33px, #c0c5ad0a 33px 34px), repeating-linear-gradient(0deg, transparent 0 33px, #c0c5ad0a 33px 34px); }
.retry-art { width: 46%; height: 65%; bottom: auto; top: 11%; filter: saturate(.34); opacity: .76; mask-image: linear-gradient(90deg, transparent, #000 29%); }
.retry-copy { position: relative; }
.retry-icon { position: relative; display: block; width: 32px; height: 32px; border: 1.5px solid var(--state-color); border-radius: 6px; background: var(--state-ink); color: var(--state-color); }
.retry-icon::before, .retry-icon::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); background: currentColor; border-radius: 2px; }
.retry-icon::before { top: 6px; width: 3px; height: 11px; }
.retry-icon::after { top: 20px; width: 3px; height: 3px; }
body[data-step="cancelled"] .retry-icon { border-radius: 50%; }
body[data-step="cancelled"] .retry-icon::before { width: 13px; height: 2px; top: 14px; }
body[data-step="cancelled"] .retry-icon::after { display: none; }
#retry-title { font-size: clamp(47px,4.7vw,72px); line-height: .96; margin: 20px 0; }
#retry-title:focus { outline: none; }
#retry-title em { color: var(--state-color); }
.retry-description { max-width: min(60%, 37ch); color: #d3d9ca; font-size: 16px; }
.retry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 21px; margin-top: 24px; }
.retry-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 9px 18px; border: none; border-radius: 3px; font-size: 15px; font-weight: 700; background: var(--lime); color: #182312; }
.retry-primary span { font: 22px/1 var(--sans); }
.retry-primary:hover { background: #d3ff8f; }
.retry-actions a { display: inline-flex; align-items: center; min-height: 42px; font-size: 14px; color: #e5e9dd; text-decoration: underline; text-underline-offset: 3px; }
.retry-summary-status { margin-top: 20px; display: flex; justify-content: space-between; gap: 3px 12px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.retry-summary-status strong { font-weight: 600; }
#payu-preview .payu-preview-actions { gap: 8px; margin-top: 20px; }
#payu-preview [data-simulate-return] { margin: 0; border: 1px solid #536447; background: #252e20; color: var(--text); }
#payu-preview [data-simulate-return="paid"] span { color: var(--lime); }
#payu-preview [data-simulate-return="failed"] span { color: #ffac92; }
#payu-preview [data-simulate-return="cancelled"] span { color: #c1d5e5; }
#payu-preview [data-simulate-return]:hover { background: #36432e; }
@media (min-width: 721px) and (max-width: 1050px) {
  .retry-art { width: 40%; height: 48%; top: 16%; }
  .retry-description { max-width: 77%; }
}
@media (max-width: 720px) {
  .retry-grid { grid-template-areas: "hero" "receipt"; }
  .retry-art { width: 42%; max-width: 240px; height: 48%; top: 7%; }
  .retry-icon { width: 30px; height: 30px; }
  #retry-title { font-size: clamp(40px,10.5vw,56px); margin: 17px 0; }
  .retry-description { max-width: 31ch; font-size: 15px; }
  .retry-actions { margin-top: 18px; }
  .retry-summary-status { margin-top: 13px; }
}
@media (max-width: 460px) {
  .retry-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .retry-actions a { align-self: center; min-height: 37px; }
  .retry-art { top: 6%; height: 40%; }
}

