/* Checkout (pages/checkout, checkout-return). Light by default, with the
   site's dark theme under html[data-theme="dark"]. */
.co {
    --co-bg: #f6f7f9; --co-card: #fff; --co-ink: #0f172a; --co-body: #475569; --co-mute: #94a3b8;
    --co-line: #e2e8f0; --co-field: #f8fafc; --co-grad: linear-gradient(125deg, #f99d4e, #e93b6e);
    padding: 160px 0 90px;
    background: var(--co-bg);
    font-family: Outfit, system-ui, sans-serif;
    color: var(--co-body);
}
html[data-theme="dark"] .co {
    --co-bg: #070a12; --co-card: #111624; --co-ink: #f2f4f8; --co-body: #b4bccb; --co-mute: #8a93a6;
    --co-line: rgba(255, 255, 255, .1); --co-field: #171d2e;
}
.co__wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.co__wrap--narrow { max-width: 680px; }
.co__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--co-body); font-weight: 600; font-size: 15px; text-decoration: none; }
.co__back:hover { color: #e93b6e; }
.co__test { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px; background: rgba(249, 157, 78, .14); color: #c2410c; font-size: 13px; font-weight: 600; }
html[data-theme="dark"] .co__test { color: #ffb37a; }

.co__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }

/* the order */
.co__summary { position: sticky; top: 120px; padding: 30px; border-radius: 24px; background: var(--co-ink); color: rgba(255, 255, 255, .78); }
html[data-theme="dark"] .co__summary { background: linear-gradient(160deg, #1b1530, #111624 70%); border: 1px solid var(--co-line); }
.co__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #ffb37a; }
.co__plan { margin: 10px 0 8px; color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; }
.co__blurb { margin: 0 0 20px; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.55; }
.co__cycle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.co__cycle a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 10px; color: rgba(255, 255, 255, .7); font-weight: 600; font-size: 14px; text-decoration: none; }
.co__cycle a em { font-style: normal; font-size: 11px; color: #8ff0c4; }
.co__cycle a.is-on { background: var(--co-grad); color: #fff; }
.co__cycle a.is-on em { color: #fff; }
.co__price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 4px; }
.co__price b { color: #fff; font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.co__price span { color: rgba(255, 255, 255, .6); font-size: 14px; }
.co__fine { margin: 0 0 20px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.co__features { list-style: none; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.co__features li { display: flex; gap: 10px; margin: 0 0 10px; color: rgba(255, 255, 255, .88); font-size: 14.5px; }
.co__features i { margin-top: 4px; color: #8ff0c4; font-size: 12px; }
.co__secure { margin: 0; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .68); }
.co__secure i { color: #8ff0c4; margin-right: 4px; }
.co__secure b { color: #fff; }

/* your details */
.co__form-wrap { padding: 32px; border-radius: 24px; background: var(--co-card); border: 1px solid var(--co-line); box-shadow: 0 20px 50px -24px rgba(15, 23, 42, .25); }
.co__h2 { margin: 0 0 6px; color: var(--co-ink); font-size: 26px; font-weight: 800; }
.co__lead { margin: 0 0 22px; font-size: 15px; color: var(--co-body); }
.co__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co__field { display: block; min-width: 0; }
.co__field--wide { grid-column: 1 / -1; }
.co__field > span { display: block; margin-bottom: 6px; color: var(--co-ink); font-size: 13px; font-weight: 600; }
.co__field i { color: #e93b6e; font-style: normal; }
.co__field em { color: var(--co-mute); font-style: normal; font-weight: 500; }
.co .co__field input, .co .co__field textarea {
    width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid var(--co-line); border-radius: 12px;
    background: var(--co-field); color: var(--co-ink); font: 400 15.5px/1.4 Outfit, system-ui, sans-serif; box-shadow: none; outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.co .co__field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.co .co__field input:focus, .co .co__field textarea:focus { border-color: #e93b6e; box-shadow: 0 0 0 3px rgba(233, 59, 110, .15); }
.co__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--co-body); cursor: pointer; }
.co__agree input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: #e93b6e; }
.co__agree b { color: var(--co-ink); }
.co__pay {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border: 0; border-radius: 999px;
    background: var(--co-grad); color: #fff; font: 700 16px/1 Outfit, system-ui, sans-serif; cursor: pointer; text-decoration: none;
    box-shadow: 0 14px 32px -12px rgba(233, 59, 110, .65); transition: transform .2s ease, box-shadow .2s ease;
}
.co__pay:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(233, 59, 110, .75); }
.co__cards { margin: 0; text-align: center; font-size: 28px; color: var(--co-mute); letter-spacing: 6px; }
.co__notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(32, 201, 151, .12); color: #0f7a5c; font-size: 14px; }
html[data-theme="dark"] .co__notice { color: #8ff0c4; }
.co__errors { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(233, 59, 110, .1); border: 1px solid rgba(233, 59, 110, .3); color: #be123c; font-size: 14px; }
html[data-theme="dark"] .co__errors { color: #ff9db8; }
.co__errors p { margin: 0; color: inherit; font-size: 14px; }
.co__errors p + p { margin-top: 4px; }

/* result */
.co--done { min-height: 70vh; }
.co__result { padding: 40px 34px; border-radius: 26px; background: var(--co-card); border: 1px solid var(--co-line); text-align: center; box-shadow: 0 20px 50px -24px rgba(15, 23, 42, .25); }
.co__result h1 { margin: 16px 0 10px; color: var(--co-ink); font-size: 30px; font-weight: 800; line-height: 1.2; }
.co__result > p { margin: 0 auto 24px; max-width: 48ch; font-size: 16px; color: var(--co-body); }
.co__result b { color: var(--co-ink); }
.co__tick { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, #20c997, #0ea5e9); color: #fff; font-size: 28px; box-shadow: 0 14px 34px -10px rgba(32, 201, 151, .6); }
.co__tick--bad { background: linear-gradient(135deg, #e93b6e, #f99d4e); box-shadow: 0 14px 34px -10px rgba(233, 59, 110, .6); }
.co__tick--wait { background: var(--co-field); color: #e93b6e; box-shadow: none; border: 1px solid var(--co-line); }
.co__spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(233, 59, 110, .2); border-top-color: #e93b6e; animation: coSpin .8s linear infinite; }
@keyframes coSpin { to { transform: rotate(360deg); } }
.co__receipt { display: grid; gap: 0; margin: 0 0 26px; padding: 6px 18px; border-radius: 16px; background: var(--co-field); text-align: left; }
.co__receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--co-line); }
.co__receipt div:last-child { border-bottom: 0; }
.co__receipt dt { color: var(--co-mute); font-weight: 500; font-size: 14px; }
.co__receipt dd { margin: 0; color: var(--co-ink); font-weight: 600; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.co__actions { display: grid; gap: 10px; }
.co__ghost { display: inline-flex; align-items: center; justify-content: center; height: 50px; border-radius: 999px; border: 1px solid var(--co-line); color: var(--co-ink); font-weight: 600; text-decoration: none; }
.co__ghost:hover { border-color: #e93b6e; color: #e93b6e; }

@media (max-width: 900px) {
    .co { padding: 120px 0 60px; }
    .co__grid { grid-template-columns: 1fr; }
    .co__summary { position: static; }
}
@media (max-width: 560px) {
    .co__form-wrap, .co__summary { padding: 22px 18px; border-radius: 20px; }
    .co__form { grid-template-columns: 1fr; }
    .co__plan { font-size: 28px; }
    .co__price b { font-size: 38px; }
    .co .co__field input { font-size: 16px; }
    .co__result { padding: 30px 20px; }
    .co__result h1 { font-size: 24px; }
}
