/* Cart, checkout, thank-you, tracking and policy pages. Loaded after style.css. */
.page-wrap { padding-block: clamp(24px, 4vw, 56px) clamp(40px, 6vw, 96px); }
.narrow { max-width: 760px; }
.page-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 24px; }
.status { color: var(--mute); padding: 24px 0; }
.empty { padding: 40px 0; display: grid; gap: 18px; justify-items: start; font-size: 18px; }

.offers-strip { border: 1px solid var(--ink); padding: 12px 16px; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 500; }
.offers-strip b { font-family: var(--head); }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .cart-side { order: -1; } }
.cart-side .sum { position: sticky; top: 84px; border: 1px solid var(--ink); padding: 22px; }
@media (max-width: 900px) { .cart-side .sum { position: static; } }
.sum h2, .co h2 { font-size: 20px; margin-bottom: 14px; }
.sum dl { margin: 0; display: grid; gap: 10px; }
.sum dl div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--mute); }
.sum dd { margin: 0; font-weight: 500; }
.sum .off dd { color: var(--ok); }
.sum .tot { border-top: 1px solid var(--ink); padding-top: 12px; margin-top: 4px; font-size: 20px; font-weight: 700; }
.sum .tot dt { color: var(--ink); }
.free-ship { margin-top: 18px; }
.free-ship .bar { height: 4px; background: var(--stone); }
.free-ship .bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s var(--ease); }
.free-ship p { margin-top: 8px; font-size: 14px; }

.lines { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--ink); }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .im { width: 84px; aspect-ratio: 3/4; background: var(--mist); overflow: hidden; }
.line .im img { width: 100%; height: 100%; object-fit: cover; }
.line .nm { font-weight: 700; font-family: var(--head); font-size: 16px; line-height: 1.4; }
.line .opt { color: var(--mute); font-size: 14px; margin-top: 2px; }
.line .pr { margin-top: 6px; font-size: 14px; color: var(--mute); }
.line .pr s { margin-inline-end: 6px; }
.line .tt { text-align: end; font-weight: 700; }
.line .tt small { display: block; font-weight: 400; color: var(--ok); font-size: 13px; }
.line .ctl { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.step { display: inline-flex; border: 1px solid var(--line); }
.step button { width: 40px; height: 40px; background: #fff; border: 0; font-size: 20px; line-height: 1; }
.step button:disabled { opacity: .3; cursor: not-allowed; }
.step output { min-width: 38px; display: grid; place-items: center; font-weight: 500; }
.line .rm { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; color: var(--mute); font-size: 14px; min-height: 40px; }
.line.bad .im { opacity: .45; }
.line .warn { margin-top: 8px; color: var(--danger); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.line .warn button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }

.co { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.f { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); background: #fff; border-radius: 0; font-weight: 400; }
.f textarea { min-height: 76px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--ink); }
.f.bad input, .f.bad select { border-color: var(--danger); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg.col { grid-template-columns: 1fr; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 14px; border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.seg span small { font-weight: 400; color: var(--mute); }
.seg input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.hint { color: var(--mute); font-size: 14px; }
.msg { min-height: 1.4em; font-size: 15px; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }

.thanks-box { display: grid; gap: 16px; padding: 8px 0; }
.thanks-box h1 { font-size: clamp(28px, 4vw, 44px); }
.thanks-box .num { font-family: var(--body); font-weight: 700; font-size: clamp(48px, 12vw, 96px); letter-spacing: -.03em; line-height: 1; }
.thanks-box .card { border: 1px solid var(--ink); padding: 20px; display: grid; gap: 12px; }
.thanks-box .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.code-row input { flex: 1; min-width: 160px; min-height: 52px; font-size: 24px; letter-spacing: .3em; text-align: center; border: 1px solid var(--ink); }

.tl { list-style: none; padding: 0; margin: 22px 0; border-inline-start: 2px solid var(--ink); margin-inline-start: 6px; }
.tl li { position: relative; padding: 0 18px 18px 0; padding-inline: 18px 0; }
.tl li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 6px; width: 12px; height: 12px; background: var(--ink); border-radius: 50%; }
.tl li small { display: block; color: var(--mute); }
.tl li:last-child { font-weight: 700; }
.t-items { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.t-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pill { display: inline-block; background: var(--ink); color: #fff; padding: 4px 12px; font-size: 14px; font-weight: 500; }
.pill.out { background: #fff; color: var(--danger); border: 1px solid var(--danger); }

.pol-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.pol-nav a { color: var(--mute); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.pol-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.pol-sec { margin-bottom: 36px; scroll-margin-top: 84px; }
.pol-sec h2 { font-size: 24px; margin-bottom: 10px; }
.pol-sec p { max-width: 68ch; margin-bottom: 10px; white-space: pre-line; }
