/* Checkout. */

.checkout-pro {
    background: #F4F0EA;
    min-height: 100vh;
    padding: 1.75rem 0 4rem;
}
.checkout-pro__wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}
.checkout-pro__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b6560;
    text-decoration: none;
    margin-bottom: 1.75rem;
}
.checkout-pro__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .checkout-pro__grid {
        grid-template-columns: minmax(0, 1fr) minmax(28rem, 34rem);
        gap: 2.5rem;
    }
}
.checkout-pro__head h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.04em;
    margin: 0;
}
.checkout-pro__kicker {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #722EA8;
    margin: 0 0 0.5rem;
}
.checkout-pro__lede {
    color: #6b6560;
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
}
.checkout-pro__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a847c;
    counter-reset: step;
}
.checkout-pro__steps li {
    counter-increment: step;
}
.checkout-pro__steps li::before {
    content: counter(step, decimal-leading-zero) " ";
    color: #722EA8;
    font-weight: 700;
}
.checkout-pro__form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.25rem;
}
.checkout-pro__card {
    background: transparent;
    border: 1px solid #e8e2d8;
    border-radius: 0;
    padding: 1.5rem 1.6rem 1.65rem;
    box-shadow: none;
}
.checkout-pro__card h2 {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 1.15rem;
}
.checkout-pro__card label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #5c574f;
    margin-bottom: 0.35rem;
}
.checkout-pro__card label span {
    color: #9a948c;
    font-weight: 400;
}
.checkout-pro__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.checkout-pro__row--3 {
    grid-template-columns: 1fr 2fr;
}
.checkout-pro__span2 { grid-column: auto; }
.checkout-pro input[type="text"],
.checkout-pro input[type="email"],
.checkout-pro input[type="tel"],
.checkout-pro select {
    width: 100%;
    border: 1px solid #e5e0d6;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    background: #fff;
    font-size: 0.95rem;
}
.checkout-pro input:focus,
.checkout-pro select:focus {
    outline: none;
    border-color: #722EA8;
    box-shadow: 0 0 0 3px rgba(114, 46, 168, 0.15);
}
.checkout-pro__help {
    font-size: 12px;
    color: #8a847c;
    margin: 0.75rem 0 0;
    line-height: 1.45;
}
.checkout-pro__error {
    color: #b42318;
    font-size: 13px;
    margin: 0.4rem 0 0;
}
.checkout-pro__addons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.85rem;
}
@media (min-width: 640px) {
    .checkout-pro__addons { grid-template-columns: repeat(3, 1fr); }
}
.checkout-pro__addon {
    border: 1px solid #ece6dc;
    background: #fbfaf7;
    border-radius: 0.9rem;
    padding: 0.85rem 0.9rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.checkout-pro__addon span { font-size: 13px; color: #121014; }
.checkout-pro__addon strong { font-size: 12px; color: #722EA8; }
.checkout-pro__addon:hover { border-color: #722EA8; background: #faf7fd; }
.checkout-pro__extra-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.checkout-pro__extra-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px solid #ece7df;
    border-radius: 0.8rem;
    padding: 0.75rem 0.9rem;
}
.checkout-pro__extra-list small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a948c;
    margin-top: 0.2rem;
}
.checkout-pro__extra-list button {
    border: 0;
    background: transparent;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a948c;
    cursor: pointer;
}
.checkout-pro__ship {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.checkout-pro__ship label {
    margin-bottom: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}
.checkout-pro__ship-card {
    border: 1px solid #e8e2d8;
    border-radius: 0.85rem;
    padding: 0.95rem 1rem 0.95rem 2.75rem;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    cursor: pointer;
}
.checkout-pro__ship-card::before {
    content: "";
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid #d6d0c6;
    border-radius: 50%;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #f4f0ea;
}
.checkout-pro__ship input:checked + .checkout-pro__ship-card {
    border-color: #121014;
    box-shadow: 0 0 0 1px #121014;
}
.checkout-pro__ship input:checked + .checkout-pro__ship-card::before {
    border-color: #121014;
    background: #121014;
    box-shadow: inset 0 0 0 3px #fff;
}
.checkout-pro__ship-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.checkout-pro__card label span.checkout-pro__ship-place {
    font-weight: 650;
    font-size: 15px;
    color: #121014;
}
.checkout-pro__card label span.checkout-pro__ship-carrier {
    font-size: 13px;
    font-weight: 400;
    color: #6b6560;
}
.checkout-pro__ship-price {
    font-size: 15px;
    font-weight: 650;
    color: #121014;
    white-space: nowrap;
}
.checkout-pro__ship-sum {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    color: #121014;
}
.checkout-pro__ship-sum strong {
    font-weight: 650;
}
.checkout-pro__pay {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.85rem;
}
.checkout-pro__pay-card {
    border: 1px solid #e8e2d8;
    border-radius: 1rem;
    padding: 1rem 1.1rem 1rem 2.8rem;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.checkout-pro__pay-card::before {
    content: "";
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid #d6d0c6;
    border-radius: 50%;
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    background: #f4f0ea;
}
.checkout-pro__pay input:checked + .checkout-pro__pay-card {
    border-color: #722EA8;
    box-shadow: 0 0 0 2px rgba(114, 46, 168, 0.22);
    background: rgba(114, 46, 168, 0.06);
}
.checkout-pro__pay input:checked + .checkout-pro__pay-card::before {
    border-color: #722EA8;
    background: #722EA8;
    box-shadow: inset 0 0 0 3px #fff;
}
.checkout-pro__pay-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}
.checkout-pro__pay-title {
    font-weight: 600;
    margin-top: 0.15rem;
}
.checkout-pro__brands {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}
.checkout-pro__brands img {
    height: 22px;
    width: auto;
    display: block;
    border-radius: 3px;
}
.checkout-pro__pay-card .checkout-pro__redirect {
    margin: 0.65rem 0 0;
    padding: 0.7rem 0.8rem;
    background: #f4f1eb;
    border-radius: 0.65rem;
    font-size: 13px;
    line-height: 1.45;
    color: #5c564f;
    text-align: center;
}
.checkout-pro__pay-card p {
    font-size: 12px;
    color: #6b6560;
    margin: 0.35rem 0 0;
}
.checkout-pro__pay-amt {
    text-align: right;
    flex-shrink: 0;
}
.checkout-pro__pay-amt strong {
    display: block;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}
.checkout-pro__pay-amt span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a948c;
    margin-top: 0.25rem;
}
.checkout-pro__warn {
    color: #92400e;
}
.checkout-pro__submit {
    width: 100%;
    background: #121014;
    color: #fff;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: 0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}
a.checkout-pro__submit {
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.checkout-pro__submit:hover { background: #722EA8; color: #fff; }
.checkout-pro__trust {
    text-align: center;
    font-size: 11px;
    color: #8a847c;
    margin: 0.85rem 0 0;
}
.checkout-pro__policies {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a847c;
    margin: 0.65rem 0 0;
}
.checkout-pro__policies a { color: inherit; text-decoration: none; }
.checkout-pro__policies a:hover { color: #722EA8; }
.checkout-pro__receipt {
    background: #efeae2;
    color: #121014;
    border-radius: 0;
    border-top: 3px solid #722EA8;
    padding: 1.6rem;
}
.checkout-pro__aside {
    position: sticky;
    top: 5.5rem;
}
.checkout-pro__receipt h2 {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e0d9ce;
}
.checkout-pro__lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.checkout-pro__line {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.checkout-pro__thumb {
    width: 3rem;
    height: 3.5rem;
    background: rgba(0,0,0,0.06);
    overflow: hidden;
    border-radius: 0;
    flex-shrink: 0;
}
.checkout-pro__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.checkout-pro__line-copy {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
}
.checkout-pro__line-copy small {
    display: block;
    color: #a8a29a;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}
.checkout-pro__line-price {
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
}
.checkout-pro__totals {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-top: 1px solid #e0d9ce;
    padding-top: 1rem;
    font-size: 13px;
}
.checkout-pro__totals div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.checkout-pro__due {
    margin-top: 0.35rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e0d9ce;
    font-size: 1.02rem;
}
.checkout-pro__due strong {
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: #121014;
}
.checkout-pro__totals span:first-child { color: #8a847c; }
.checkout-pro__receipt-note {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a847c;
    margin: 1.1rem 0 0;
    line-height: 1.45;
}
.checkout-pro__paypair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e0d9ce;
}
.checkout-pro__paypair > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}
.checkout-pro__paypair span {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a847c;
}
.checkout-pro__paypair strong {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}
.money-pair {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
}
.money-pair strong {
    font-size: 1.05rem;
}
.money-pair span {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #8a847c;
}
.checkout-pro__line-copy small {
    color: #8a847c;
}
.checkout-pro__totals .bag-pro__due {
    font-size: 1.05rem;
    font-weight: 650;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* ── Accordion checkout (Shopify-style) ─────────────────────────────── */
.co .co__grid { gap: 2rem; }
@media (min-width: 1024px) {
    .co .co__grid { grid-template-columns: minmax(0, 1fr) minmax(22rem, 26rem); gap: 3rem; }
    .co .co__aside { position: sticky; top: 5.5rem; }
}
.co__errors:empty, .co__errors.validation-summary-valid { display: none; }
.co__errors ul { margin: .75rem 0 0; padding: .65rem .9rem; list-style: none; background: #FFF1EE; border-left: 3px solid #FF3B1F; }
.co__form { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; border: 1px solid rgba(18, 16, 20, .14); background: #fff; }

.co-step + .co-step { border-top: 1px solid rgba(18, 16, 20, .1); }
.co-step__head {
    width: 100%; display: flex; align-items: center; gap: .85rem;
    padding: 1.05rem 1.25rem; background: transparent; border: 0; cursor: pointer; text-align: left; color: #121014;
}
.co-step__head:hover { background: #faf8f5; }
.co-step__num {
    flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #121014; border-radius: 50%; font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace;
}
.co-step.is-open .co-step__num { background: #121014; color: #fff; }
.co-step__title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.co-step__summary {
    flex: 1; min-width: 0; text-align: right; font-size: 12px; color: #6b6560;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-step.is-open .co-step__summary { visibility: hidden; }
.co-step__chev { flex: none; transition: transform .2s ease; color: #6b6560; }
.co-step.is-open .co-step__chev { transform: rotate(180deg); }
.co-step__body { display: none; padding: 0 1.25rem 1.35rem; }
.co-step.is-open .co-step__body { display: block; }
.co-step__body label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #4a4540; margin-bottom: .35rem; }
.co-step__body label span { font-weight: 400; color: #8a847c; }

/* Pickup vs delivery */
.co-mode { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.co-mode__opt { margin: 0 !important; cursor: pointer; }
.co-mode__card {
    display: flex; align-items: center; gap: .75rem; padding: .95rem 1rem; height: 100%;
    border: 1px solid rgba(18, 16, 20, .2); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.co-mode__card .bi { font-size: 1.35rem; color: #6b6560; }
.co-mode__copy { display: flex; flex-direction: column; }
.co-mode__copy strong { font-size: 14px; color: #121014; }
.co-step__body .co-mode__copy small { font-size: 12px; color: #6b6560; font-weight: 400; }
.co-mode input:checked + .co-mode__card { border-color: #722EA8; box-shadow: inset 0 0 0 1px #722EA8; background: #faf7fd; }
.co-mode input:checked + .co-mode__card .bi { color: #722EA8; }
.co-mode input:focus-visible + .co-mode__card { outline: 2px solid #722EA8; outline-offset: 2px; }
.co-pickup-note { margin-top: .75rem; }
.co-points { border: 0; margin: 1rem 0 0; padding: 0; }
.co-points[hidden] { display: none; }
.co-points legend { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #4a4540; margin-bottom: .45rem; padding: 0; }
.co-points .co-point { margin: 0 !important; cursor: pointer; display: block; }
.co-points .co-point + .co-point .co-point__card { border-top: 0; }
.co-point__card { display: flex; align-items: flex-start; gap: .85rem; padding: .9rem 1rem; border: 1px solid rgba(18, 16, 20, .2); background: #fff; }
.co-point__card::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1px solid rgba(18, 16, 20, .35); background: #fff; }
.co-point input:checked + .co-point__card { background: #faf7fd; }
.co-point input:checked + .co-point__card::before { border: 6px solid #722EA8; }
.co-point input:focus-visible + .co-point__card { outline: 2px solid #722EA8; outline-offset: -2px; }
.co-point__copy { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.co-point__copy strong { font-size: 14px; color: #121014; }
.co-step__body .co-point__copy small { font-size: 12px; color: #6b6560; font-weight: 400; line-height: 1.4; margin-top: .15rem; }
.co-point__price { font-size: 13px; color: #121014; white-space: nowrap; }
.co-pickup-note .bi { color: #25D366; }

/* Shipping rates: one bordered list, price on the right */
.co-rates { border: 1px solid rgba(18, 16, 20, .2); }
.co-rate { margin: 0 !important; cursor: pointer; }
.co-rate[hidden] { display: none !important; }
.co-rate + .co-rate:not([hidden]) { border-top: 1px solid rgba(18, 16, 20, .12); }
.co-rate__card { display: flex; align-items: center; gap: .85rem; padding: .95rem 1rem; }
.co-rate__card::before {
    content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid rgba(18, 16, 20, .35); background: #fff;
}
.co-rate input:checked + .co-rate__card { background: #faf7fd; }
.co-rate input:checked + .co-rate__card::before { border: 6px solid #722EA8; }
.co-rate input:focus-visible + .co-rate__card { outline: 2px solid #722EA8; outline-offset: -2px; }
.co-rate__copy { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.co-rate__copy strong { font-size: 14px; color: #121014; }
.co-step__body .co-rate__copy small { font-size: 12px; color: #6b6560; font-weight: 400; }
.co-rate__price { font-size: 14px; white-space: nowrap; color: #121014; }
.co-rates__note { margin-top: .6rem; }

.co .checkout-pro__bar { margin-top: 1.25rem; }

/* Order summary card lives in order-summary.css (shared with the confirmation page). */
.co__aside { background: transparent; }
.co-sumtoggle { display: none; }
@media (max-width: 1023px) {
    .co .co__grid { display: flex; flex-direction: column; }
    .co .co__aside { order: -1; position: static; }
    .co-sumtoggle {
        display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
        padding: .95rem 1rem; background: #EDE7DE; border: 0; border-top: 3px solid #722EA8;
        font-size: 13px; color: #722EA8; cursor: pointer;
    }
    .co-sumtoggle strong { color: #121014; font-size: 16px; }
    .co__aside .co-summary, .co__aside .co-board { display: none; }
    .co__aside.is-open .co-summary { display: block; border-top: 0; }
    .co-step__head { padding: 1rem; }
    .co-step__body { padding: 0 1rem 1.2rem; }
}
@media (max-width: 420px) {
    .co-mode { grid-template-columns: 1fr; }
}
