/* ===== Po zakupie (podprojekt F): ekran „zamówienie przyjęte”, strona płatności ===== */
.bst-wc.bst-wc--checkout:has(.bst-ty){max-width:none;padding:0;background:#fff}
.bst-ty{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:70vh;color:var(--bst-primary)}
.bst-ty__main{justify-self:end;box-sizing:border-box;width:min(100%,600px);padding:48px 48px 64px 16px}
.bst-ty__sum{box-sizing:border-box;padding:48px 16px 64px 48px;border-left:1px solid var(--bst-line);background:#fff}
.bst-ty__sum > *{max-width:470px}
.bst-ty__nr{margin:0 0 8px;color:var(--bst-text-secondary);font-size:14px}
.bst-ty__title{display:flex;align-items:center;gap:14px;margin:0 0 24px;color:inherit;font-size:30px;font-weight:400;line-height:1.2}
.bst-ty__icon{display:grid;place-items:center;flex:none;box-sizing:border-box;width:44px;height:44px;border-radius:50%;background:var(--bst-btn)}
.bst-ty:is([data-state="paid"],[data-state="on-hold"]) .bst-ty__icon::after{content:'✓';color:var(--bst-text-inverse);font-size:22px}
.bst-ty[data-state="pending"] .bst-ty__icon{border:3px solid var(--bst-line);border-top-color:var(--bst-primary);background:none;animation:bst-spin 1s linear infinite}
.bst-ty[data-state="pending"].is-late .bst-ty__icon{animation:none}
.bst-ty:is([data-state="failed"],[data-state="cancelled"]) .bst-ty__icon{background:#b3261e}
.bst-ty:is([data-state="failed"],[data-state="cancelled"]) .bst-ty__icon::after{content:'!';color:#fff;font-size:24px;font-weight:600}
.bst-ty:is([data-state="refunded"],[data-state="other"]) .bst-ty__icon{background:var(--bst-surface-alt)}
@keyframes bst-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.bst-ty[data-state="pending"] .bst-ty__icon{animation:none}}
.bst-ty__card{margin:0 0 16px;padding:20px 24px;border:1px solid rgba(22,18,17,.25);border-radius:var(--bst-radius-sm)}
.bst-ty__card h2{margin:0 0 8px;color:inherit;font-size:18px;font-weight:500}
.bst-ty__card p{margin:0;color:var(--bst-text-secondary);font-size:15px;line-height:1.6}
.bst-ty__card p + p{margin-top:12px}
.bst-ty__actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.bst-ty__details{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px 16px;margin:12px 0 0;font-size:15px}
.bst-ty__details dt{color:var(--bst-text-secondary)}
.bst-ty__details dd{margin:0}
.bst-ty__help{margin:24px 0 0;font-size:15px}
.bst-ty a:not(.button){color:inherit;text-decoration:underline;text-underline-offset:3px}
.bst-ty__ctas{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin:24px 0 0}
.bst-wc .bst-ty .button{min-height:48px;padding:12px 26px;font-size:15px}
.bst-ty__totals{width:100%;margin:24px 0 0;border-collapse:collapse}
.bst-ty__totals :is(th,td){padding:6px 0;border:0;background:none;font-size:15px;font-weight:400;text-align:left}
.bst-ty__totals td{text-align:right}
.bst-ty__totals .bst-ty__total--order_total :is(th,td){padding-top:14px;font-size:20px;font-weight:500}
.bst-ty .bst-sum-items{display:grid;gap:16px;margin:0;padding:0;list-style:none}
.bst-ty .bst-sum-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:16px}
.bst-ty .bst-sum-item__img{position:relative;display:block;width:64px;height:64px;border:1px solid var(--bst-line);border-radius:var(--bst-radius-sm);background:#fff}
.bst-ty .bst-sum-item__img img{box-sizing:border-box;width:100%;height:100%;padding:6px;object-fit:contain}
.bst-ty .bst-sum-item__qty{position:absolute;top:-9px;right:-9px;box-sizing:border-box;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--bst-primary);color:var(--bst-text-inverse);font-size:12px;font-weight:600;line-height:22px;text-align:center}
.bst-ty--none{display:block;padding:96px 16px;text-align:center}
/* pay for an order: one column in the checkout's look */
.bst-wc.bst-wc--checkout:has(form#order_review){max-width:none;padding:0;background:#fff}
.bst-wc--checkout form#order_review{box-sizing:border-box;max-width:640px;margin:0 auto;padding:48px 16px 64px;color:var(--bst-primary)}
.bst-wc--checkout form#order_review table.shop_table{width:100%;margin:0 0 24px;border:0;border-collapse:collapse}
.bst-wc--checkout form#order_review table.shop_table :is(th,td){padding:10px 0;border:0;border-bottom:1px solid var(--bst-line);background:none;text-align:left}
.bst-wc--checkout form#order_review #payment{padding:0;background:none}
.bst-wc--checkout form#order_review #payment ul.payment_methods{margin:0 0 16px;padding:0;border:1px solid rgba(22,18,17,.25);border-radius:var(--bst-radius-sm);background:#fff;list-style:none}
.bst-wc--checkout form#order_review #payment ul.payment_methods li{padding:16px}
.bst-wc--checkout form#order_review #place_order{float:none;width:100%}
@media (max-width:999px){
  .bst-ty{grid-template-columns:minmax(0,1fr)}
  .bst-ty__main{justify-self:stretch;width:auto;padding:24px 16px 32px}
  .bst-ty__sum{padding:24px 16px 48px;border-left:0;border-top:1px solid var(--bst-line)}
  .bst-ty__details{grid-template-columns:minmax(0,1fr)}
  .bst-ty__details dd{margin-bottom:8px}
}

/* timeline (progress: done / current / todo) and parcel cards */
.bst-tl{margin:24px 0;padding:0;list-style:none}
.bst-tl__step{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:0 16px;padding:0 0 28px}
.bst-tl__step::before{content:'';position:absolute;top:44px;bottom:0;left:21px;width:2px;background:var(--bst-line)}
.bst-tl__step:last-child{padding-bottom:0}
.bst-tl__step:last-child::before{content:none}
.bst-tl__step.is-done::before{background:var(--bst-primary)}
.bst-tl__dot{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;border:2px solid var(--bst-line);border-radius:50%;background:#fff}
.bst-tl__step:is(.is-done,.is-current) .bst-tl__dot{border:0;background:var(--bst-btn)}
.bst-tl__step:is(.is-done,.is-current) .bst-tl__dot::after{content:'✓';color:var(--bst-text-inverse);font-size:18px}
.bst-tl__step.is-current .bst-tl__dot{box-shadow:0 0 0 6px rgba(22,18,17,.15)}
.bst-tl__title{margin:10px 0 2px;color:var(--bst-primary);font-size:18px;font-weight:500}
.bst-tl__step.is-todo .bst-tl__title{color:var(--bst-text-secondary);font-weight:400}
.bst-tl__text{margin:0;color:var(--bst-text-secondary);font-size:14px}
.bst-tl > li > time{margin-top:12px;color:var(--bst-text-secondary);font-size:14px;white-space:nowrap}
.bst-tl__note{margin:0 0 16px;padding:12px 16px;border-radius:var(--bst-radius-sm);background:var(--bst-surface-alt)}
.bst-parcels{display:grid;gap:12px;margin:0 0 24px}
.bst-parcel{padding:20px 24px;border:1px solid rgba(22,18,17,.25);border-radius:var(--bst-radius-sm);color:var(--bst-primary)}
.bst-parcel p{margin:0}
.bst-parcel__carrier{font-size:16px;font-weight:500}
.bst-parcel .bst-parcel__number{margin:2px 0 8px;font-family:var(--bst-font-mono);font-size:14px;letter-spacing:.02em;user-select:all}
.bst-parcel__status{font-size:15px}
.bst-parcel__meta{color:var(--bst-text-secondary);font-size:14px}
.bst-parcel__history{margin:12px 0 0}
.bst-parcel__history summary{cursor:pointer;font-size:14px;font-weight:500}
.bst-parcel__history ol{margin:8px 0 0;padding:0;list-style:none}
.bst-parcel__history li{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-top:1px solid var(--bst-line);font-size:14px}
.bst-parcel__history time{color:var(--bst-text-secondary);white-space:nowrap}
.bst-parcel .bst-parcel__link{margin-top:12px;font-size:14px}
.bst-parcel__link a{color:inherit;text-decoration:underline;text-underline-offset:3px}
/* tracking page */
.bst-track{box-sizing:border-box;max-width:640px;margin:0 auto;padding:56px 16px 96px;color:var(--bst-primary)}
.bst-track__nr{margin:0 0 8px;color:var(--bst-text-secondary);font-size:14px}
.bst-track__title{margin:0 0 16px;color:inherit;font-size:36px;font-weight:350}
.bst-track__error{padding:12px 16px;border-radius:var(--bst-radius-sm);background:var(--bst-surface-alt)}
.bst-track__form label{display:block;margin:0 0 6px;font-size:14px;font-weight:500}
.bst-track__form input{box-sizing:border-box;width:100%;height:52px;padding:0 14px;border:1px solid rgba(22,18,17,.25);border-radius:var(--bst-radius-sm);background:#fff;color:var(--bst-primary);font-size:15px}
.bst-track .button{display:inline-flex;align-items:center;min-height:48px;padding:12px 26px;border:0;border-radius:var(--bst-radius-full);background:var(--bst-btn);color:var(--bst-text-inverse);font-size:15px;font-weight:500;text-decoration:none;cursor:pointer}
.bst-track__sum{margin:16px 0 0;color:var(--bst-text-secondary);font-size:14px}
.bst-account-track{margin:0 0 32px}
