/* PrimeViking checkout. Mobile first, two columns from 1000px. */
:root {
  --brand: #cf531f;
  --brand-dark: #a8411a;
  --brand-tint: #fdf3ed;
  --ink: #000;
  --text: #1a1a1a;
  --muted: #707070;
  --line: #dedede;
  --aside: #f5f5f5;
  --err: #dd1d1d;
  --r: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.35; color: var(--text); background: #fff; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
a { color: inherit; }
p { margin: 0; }
h2, h3 { margin: 0; }
[hidden] { display: none !important; }

/* header */
.co-header { border-bottom: 1px solid var(--line); background: #fff; }
.co-header__inner { position: relative; max-width: 1220px; margin: 0 auto; padding: 16px 20px 12px; display: flex; justify-content: center; }
.co-header__brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.co-logo { font-family: 'Alfa Slab One', Georgia, serif; font-size: 24px; letter-spacing: .02em; color: #2b170c; text-decoration: none; line-height: 1; }
.co-logo span { color: var(--brand); }
.co-logo img { display: block; height: 44px; width: auto; }
.co-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px 2px 3px; border-radius: 3px; }
.co-badge__faces { display: flex; }
.co-badge__faces img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; border: 1px solid #fff; margin-right: -5px; }
.co-badge__faces img:last-child { margin-right: 0; }
.co-perks { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; font-size: 9px; font-weight: 600; color: #222; }
.co-perks li { display: inline-flex; align-items: center; gap: 3px; }
.co-perks svg { font-size: 11px; }
.co-cart { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 24px; display: flex; }

/* mobile summary toggle */
.m-summary-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 14px; background: var(--aside); border-bottom: 1px solid var(--line); }
.m-summary-bar__label { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 14px; }
.m-summary-bar__label svg { font-size: 16px; transition: transform .2s; }
.m-summary-bar[aria-expanded="true"] .m-summary-bar__label svg { transform: rotate(180deg); }
.m-summary-bar b { font-size: 18px; font-weight: 600; color: var(--ink); }
.m-summary { background: var(--aside); border-bottom: 1px solid var(--line); padding: 18px 14px 20px; }

/* layout */
.co-wrap { display: block; }
.co-main { padding: 18px 14px 30px; }
.co-form { max-width: 520px; margin: 0 auto; }
.co-aside { display: none; }

/* reserve banner */
.reserve { display: flex; gap: 10px; align-items: flex-start; background: #fff4f4; border: 1px solid #f7cfcf; border-radius: 10px; padding: 14px 16px; color: #5c0000; font-weight: 600; font-size: 14px; }
.reserve svg { color: var(--err); font-size: 18px; margin-top: 0; }

/* express */
.express { margin-top: 22px; }
.express__title { text-align: center; color: var(--muted); font-size: 14px; }
.express__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.express__box { margin-top: 12px; min-height: 48px; }
.xbtn { height: 48px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 3px; transition: filter .15s; }
.xbtn:hover { filter: brightness(.95); }
.xbtn--paypal { background: #ffc439; }
.pp-logo { width: 78px; height: 24px; }
.xbtn--gpay { background: #000; color: #fff; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.g-logo { font-size: 21px; }
.or { display: flex; align-items: center; gap: 14px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* blocks */
.block { margin-top: 24px; }
.block__title { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.block__sub { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.block__note { color: var(--muted); margin: -10px 0 14px; }

/* floating-label fields */
.field { position: relative; margin-top: 12px; }
.block__title + .field, .block__sub + .field { margin-top: 0; }
.field input, .field select { width: 100%; height: 49px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: inherit; font-size: 14px; color: var(--ink); padding: 14px 12px; outline: none; transition: border-color .15s, box-shadow .15s, padding .15s; -webkit-appearance: none; appearance: none; }
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.field label { position: absolute; left: 13px; top: 15px; color: var(--muted); font-size: 14px; pointer-events: none; transition: top .15s, font-size .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 46px); }
.field input:not(:placeholder-shown), .field input:focus, .field input:-webkit-autofill { padding: 21px 12px 6px; }
.field input:not(:placeholder-shown) + label, .field input:focus + label, .field input:-webkit-autofill + label, .field label.is-up { top: 7px; font-size: 12px; }
.field select { padding: 21px 34px 6px 12px; cursor: pointer; }
.field__icon { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #555; font-size: 18px; display: flex; pointer-events: none; }
.field__icon--help { pointer-events: auto; cursor: help; color: #707070; }
.field--select .field__icon { font-size: 16px; }
.field.is-error input, .field.is-error select { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.err { color: var(--err); font-size: 12px; margin-top: 5px; display: none; }
.err.is-on { display: block; }
.field input:-webkit-autofill { animation: autofill-start .01s; }
@keyframes autofill-start { from { opacity: 1; } to { opacity: 1; } }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.lbl-long { display: none; }
.row2 .field:not(:has(.field__icon)) label { max-width: calc(100% - 24px); }
.row3 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }

/* address extras: rendered (so browser autofill can reach them) but collapsed until revealed */
.addr-more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .25s; }
.addr-more.is-open { max-height: 400px; opacity: 1; overflow: visible; }

/* address suggestions */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 6px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); overflow: hidden; }
.suggest li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; cursor: pointer; font-size: 14px; }
.suggest li svg { font-size: 17px; color: #707070; margin-top: 1px; }
.suggest li small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.suggest li.is-active, .suggest li:hover { background: #f4f4f4; }
.suggest li.suggest__manual { color: var(--brand); border-top: 1px solid #eee; }
.suggest__foot { font-size: 10.5px; color: #999; padding: 6px 14px 8px; text-align: right; cursor: default !important; }

/* checkboxes */
.check { display: flex; align-items: center; gap: 10px; margin-top: 12px; cursor: pointer; font-size: 14px; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 18px; height: 18px; border: 1px solid #c4c4c4; border-radius: 5px; background: #fff; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 12px; flex: none; transition: background .15s, border-color .15s; }
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand); color: #fff; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }

/* shipping methods */
.radio-group { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.radio { display: flex; align-items: center; gap: 12px; padding: 16px 14px; cursor: pointer; border-bottom: 1px solid var(--line); transition: background .15s; position: relative; }
.radio:last-child { border-bottom: 0; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #c4c4c4; background: #fff; flex: none; transition: border .15s; }
.radio input:checked ~ .radio__dot { border: 6px solid var(--brand); }
.radio.is-checked { background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); border-radius: 0; }
.radio-group .radio.is-checked:first-child { border-radius: var(--r) var(--r) 0 0; }
.radio-group .radio.is-checked:last-child { border-radius: 0 0 var(--r) var(--r); }
.radio__text { flex: 1; display: flex; flex-direction: column; }
.radio__text small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.radio__price { font-weight: 600; }

/* payment box */
.pay-box { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pay-box__head { display: flex; align-items: center; justify-content: space-between; padding: 14px; background: var(--brand-tint); border: 1px solid var(--brand); border-radius: var(--r) var(--r) 0 0; margin: -1px -1px 0; }
.pay-box__head b { font-weight: 600; font-size: 14px; }
.cards { display: flex; align-items: center; gap: 4px; }
.card-ico { display: block; width: 38px; height: 24px; }
.pay-box__body { background: var(--aside); padding: 2px 14px 16px; }
.pay-box__body > .field:first-child { margin-top: 14px; }
.check--box { margin-top: 16px; }
.billing { margin-top: 20px; }

/* Stripe card fields: Stripe's iframe sits where the input was, our label floats the same way */
.stripe-box { height: 49px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 15px 40px 14px 12px; transition: border-color .15s, box-shadow .15s, padding .15s; }
.stripe-box + label { top: 15px; }
.field.is-up .stripe-box { padding: 22px 40px 5px 12px; }
.field.is-up .stripe-box + label { top: 7px; font-size: 12px; }
.field.is-focus .stripe-box { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.field.is-error .stripe-box { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.sub-terms { margin-top: 18px; font-size: 12.5px; color: #555; line-height: 1.5; }
.sub-terms a { color: var(--brand); }

/* mobile pay summary */
.m-pay-summary { margin-top: 28px; }
.discount-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.discount-pill svg { font-size: 15px; }
.discount-inline { margin-top: 12px; }
.m-total { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 16px; text-align: left; }
.m-total img { width: 40px; height: 40px; object-fit: contain; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; padding: 2px; }
.m-total__label { flex: 1; display: flex; flex-direction: column; }
.m-total__label b { font-size: 18px; font-weight: 600; color: var(--ink); }
.m-total__label small { color: var(--muted); font-size: 14px; }
.m-total__amount { display: flex; align-items: center; gap: 6px; }
.m-total__amount small { font-size: 11px; color: var(--muted); background: #f1f1f1; padding: 2px 5px; border-radius: 4px; }
.m-total__amount b { font-size: 19px; font-weight: 600; color: var(--ink); }

/* pay button */
.form-alert { margin-top: 16px; background: #fff4f4; border: 1px solid #f7cfcf; color: #5c0000; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.pay-btn { position: relative; width: 100%; height: 52px; margin-top: 16px; border-radius: var(--r); background: var(--brand); color: #fff; font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.pay-btn:hover { background: var(--brand-dark); }
.pay-btn .spin { display: none; font-size: 22px; animation: spin .8s linear infinite; }
.pay-btn.is-busy span { visibility: hidden; }
.pay-btn.is-busy .spin { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

/* trust list */
.trust { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.trust li { display: flex; gap: 16px; align-items: flex-start; }
.trust li > svg { font-size: 44px; color: var(--brand); }
.trust b { font-size: 14px; font-weight: 600; color: var(--ink); }
.trust p { font-size: 13px; color: #555; margin-top: 2px; }
.m-trust .trust { margin-top: 24px; }

/* policies */
.policies { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.policies a { color: var(--brand); font-size: 14px; text-underline-offset: 3px; }

/* order summary */
.line-item { display: flex; align-items: center; gap: 14px; }
.line-item__img { position: relative; width: 64px; height: 64px; flex: none; background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; }
.line-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.line-item__qty { position: absolute; top: -8px; right: -8px; min-width: 21px; height: 21px; border-radius: 99px; background: #000; color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.line-item__text { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.line-item__text small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.line-item__price { font-size: 14px; display: flex; flex-direction: column; align-items: flex-end; }
.line-item__price s { font-size: 12px; color: var(--muted); }
.discount { display: flex; gap: 10px; margin-top: 20px; }
.discount .field { flex: 1; margin-top: 0; }
.discount__apply { border: 1px solid var(--line); border-radius: var(--r); background: #f1f1f1; color: #707070; font-weight: 600; padding: 0 16px; height: 49px; }
.discount__apply.is-ready { background: var(--brand); border-color: var(--brand); color: #fff; }
.discount-inline .discount { margin-top: 0; }
.discount__apply.is-busy { opacity: .6; pointer-events: none; }
.code-chips { margin-top: 10px; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; background: #ebebeb; border-radius: 6px; padding: 5px 6px 5px 9px; font-size: 13px; font-weight: 600; color: #333; }
.code-chip svg { font-size: 14px; color: #707070; }
.code-chip button { display: inline-flex; padding: 2px; color: #707070; font-size: 16px; line-height: 1; }
.code-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; }
.code-tag svg { font-size: 13px; }
.costs { margin: 22px 0 0; display: grid; gap: 9px; }
.costs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.costs dt { display: inline-flex; align-items: center; gap: 5px; }
.costs dt svg { color: #707070; font-size: 15px; cursor: help; }
.costs dd { margin: 0; text-align: right; }
.costs .muted { color: #707070; }
.costs__total { margin-top: 8px; }
.costs__total dt { font-size: 18px; font-weight: 600; color: var(--ink); }
.costs__total dd { display: flex; align-items: baseline; gap: 8px; }
.costs__total small { font-size: 12px; color: var(--muted); }
.costs__total b { font-size: 19px; font-weight: 600; color: var(--ink); }
.sub-note { margin-top: 10px; font-size: 12.5px; color: #555; display: flex; gap: 6px; }
.sub-note svg { color: var(--brand); font-size: 15px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #222; color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .25s; z-index: 40; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 600px) {
  .row3 { grid-template-columns: 1fr 1fr 1fr; }
  .lbl-long { display: inline; }
  .lbl-short { display: none; }
}

@media (min-width: 1000px) {
  .co-header__inner { padding: 20px 20px 16px; }
  .co-logo { font-size: 30px; }
  .co-logo img { height: 52px; }
  .co-badge { font-size: 11px; }
  .co-perks { font-size: 10px; }
  .co-cart { right: max(20px, calc(50% - 530px)); }
  .m-summary-bar, .m-summary, .m-pay-summary, .m-trust { display: none !important; }
  .co-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 130px); }
  .co-main { padding: 40px 38px 40px 20px; display: flex; justify-content: flex-end; }
  .co-form { width: 100%; max-width: 500px; margin: 0; }
  .co-aside { display: block; background: var(--aside); border-left: 1px solid var(--line); }
  .co-aside__inner { position: sticky; top: 0; max-width: 440px; padding: 40px 20px 40px 40px; }
  .pay-btn { margin-top: 40px; }
  .form-alert + .pay-btn { margin-top: 16px; }
}
