/* Phosvolt store: checkout and order status. Loaded after site.css and built
   from its tokens (--surface, --line, --cobalt ...), so it looks like the site. */
.s-preview { margin: 0; padding: 9px 20px; text-align: center; font-size: 14px; background: #fff4d6; color: #6b4b00; }
.s-preview a { color: inherit; font-weight: 600; }
.s-head .in { padding-block: 28px 30px; }
.s-fine { font-size: 13.5px; color: var(--ink-2); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- checkout: form left, summary right ---- */
.s-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; padding-bottom: 88px; }
.s-co-form { gap: 22px; }
.s-co-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.s-co-form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 22px; }
.s-co-form legend { float: left; width: 100%; font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -.015em; padding: 0; margin: 0; }   /* float: a plain block, not drawn into the fieldset's border */
.row3 { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 14px; }
.s-field.bad input, .s-field.bad select { border-color: #c4302b; background: #fff6f5; }
.s-field-err { color: #b3261e; font-size: 13px; font-weight: 400; }
.s-gst { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.s-gst summary { cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--deep); }
.s-gst[open] summary { margin-bottom: 12px; }
.s-pay { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; background: var(--bg); }
.s-pay p:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 15px; }
.s-pay p:first-child span { color: var(--ink-2); font-size: 14px; }
.s-co-error { border: 1px solid #f1c4c0; background: #fff6f5; color: #8c1d18; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.s-pay-btn { width: 100%; padding: 17px 22px; font-size: 16.5px; }
.s-co-policies { font-size: 13px; color: var(--ink-2); text-align: center; }
.s-co-empty { background: var(--tint); border-radius: 12px; padding: 14px 16px; font-weight: 500; }

.s-co-summary { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 16px; }
.s-co-summary h2 { font-size: 1.2rem; }
.s-co-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.s-co-lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.s-line-img { position: relative; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: block; }
.s-line-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: block; }
.s-line-img i { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink-2); color: #fff; font: 600 12px/22px var(--f-body); text-align: center; font-style: normal; }
.s-line-name { display: grid; gap: 6px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.s-line-name a { text-decoration: none; } .s-line-name a:hover { text-decoration: underline; }
.s-stepper { display: flex; align-items: center; gap: 4px; font-weight: 400; }
.s-stepper button:not(.s-line-rm) { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 500 16px/1 var(--f-body); color: var(--ink); cursor: pointer; padding: 0; }
.s-stepper button[disabled] { opacity: .4; cursor: not-allowed; }
.s-stepper output { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.s-line-rm { border: 0; background: none; color: var(--ink-2); font: 400 13px var(--f-body); text-decoration: underline; cursor: pointer; margin-left: 8px; padding: 0; }
.s-co-totals { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; }
.s-co-totals div { display: flex; justify-content: space-between; gap: 12px; }
.s-co-totals dt { color: var(--ink-2); } .s-co-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.s-co-total { padding-top: 10px; border-top: 1px solid var(--line); align-items: baseline; }
.s-co-total dt { color: var(--ink); font-weight: 600; } .s-co-total dt small { color: var(--ink-2); font-weight: 400; font-size: 13px; }
.s-co-total dd { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.s-assure { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.s-assure li { padding-left: 22px; position: relative; }
.s-assure li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* ---- order status ---- */
.s-order { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-bottom: 88px; }
.s-order-main { display: grid; gap: 18px; }
.s-order-head { display: flex; gap: 16px; align-items: center; }
.s-order-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.s-check { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.s-check svg { width: 28px; height: 28px; }
.s-check-wait { background: var(--tint); }
.s-check-wait i { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--cobalt); border-right-color: transparent; animation: s-spin 1s linear infinite; }
@keyframes s-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .s-check-wait i { animation: none; } }
.s-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; }
.s-box h2 { font-size: 1.25rem; }
.s-box > p { color: var(--ink-2); }
.s-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.s-steps li { display: grid; gap: 8px; }
.s-steps span { height: 5px; border-radius: 3px; background: var(--line); }
.s-steps .done span, .s-steps .now span { background: var(--cobalt); }
.s-steps .now { color: var(--ink); font-weight: 600; }
.s-track { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.s-track p { display: grid; gap: 2px; } .s-track span { font-size: 13px; color: var(--ink-2); }
.s-details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; font-size: 15px; }
.s-details h3 { font-size: 13px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.s-order-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.s-co-summary-static { top: 92px; }

@media (max-width: 960px) {
  .s-checkout, .s-order { grid-template-columns: minmax(0, 1fr); }
  .s-checkout .s-co-summary { position: static; order: -1; }
  .s-order .s-co-summary { position: static; }
}
@media (max-width: 620px) {
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 .s-field:last-child { grid-column: 1 / -1; }
  .s-checkout .row2 { grid-template-columns: 1fr; }
  .s-details { grid-template-columns: 1fr; }
  .s-co-form { padding: 20px; }
  .s-steps { font-size: 12px; }
}

/* payment choice, discount code, delivery date */
.s-pay-opt { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.s-pay-opt input { margin-top: 3px; accent-color: var(--cobalt); }
.s-pay-opt > span { display: grid; gap: 3px; }
.s-pay-opt > span > span { color: var(--ink-2); font-size: 14px; }
.s-pay-opt:has(input:checked) { border-color: var(--cobalt); background: var(--tint); }
.s-code { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.s-code span { display: flex; gap: 8px; }
.s-code input { flex: 1; min-width: 0; font: 400 15px var(--f-body); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.s-code .btn { padding: 10px 14px; }
.s-code-msg { font-weight: 500; font-size: 13.5px; } .s-code-msg.ok { color: var(--ok); } .s-code-msg.bad { color: #b3261e; }
.s-eta { background: var(--tint); color: var(--deep); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
/* reviews on the order page */
.s-review { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.s-review .s-field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.s-review input, .s-review textarea { font: 400 15px/1.4 var(--f-body); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); width: 100%; }
.s-review .btn { justify-self: start; }
.s-stars { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.s-stars legend { font-size: 14px; font-weight: 500; margin-bottom: 4px; float: left; width: 100%; }
.s-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.s-stars label { font-size: 30px; line-height: 1; color: #d5d9e2; cursor: pointer; }
.s-stars input:checked ~ label, .s-stars label:hover, .s-stars label:hover ~ label { color: #f5a524; }
.s-stars input:focus-visible + label { outline: 2px solid var(--cobalt); border-radius: 4px; }
.s-track-page { max-width: 560px; padding-bottom: 88px; }
