:root{--checkout-ink:#343330;--checkout-muted:#77736c;--checkout-line:#e4ded3;--checkout-cream:#f5f0e7;--checkout-card:#fffdf9;--checkout-soft:#ece4d8}
.checkout-page{background:var(--checkout-cream);color:var(--checkout-ink);min-height:100vh}
.checkout-shell{width:min(1040px,calc(100% - 32px));margin:0 auto;padding:52px 0 84px}
.checkout-head{max-width:720px;margin-bottom:28px}.checkout-head h1{font-size:clamp(36px,6vw,62px);line-height:.98;margin:9px 0 16px;font-weight:600;letter-spacing:-.045em}.checkout-head p{margin:0;color:var(--checkout-muted);font-size:17px;line-height:1.6}.checkout-eyebrow{font-size:12px;letter-spacing:.16em;font-weight:700;color:#6e665c}
.checkout-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:18px;align-items:start}.checkout-card{background:var(--checkout-card);border:1px solid var(--checkout-line);border-radius:24px;padding:24px;box-shadow:0 12px 38px rgba(65,56,45,.055)}.checkout-section-title{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:700;color:#776f65;margin-bottom:20px}
.checkout-product-row{display:grid;grid-template-columns:58px 1fr auto;gap:15px;align-items:center}.checkout-product-icon{width:58px;height:58px;border-radius:18px;background:#3d3a35;color:#f7f1e8;display:grid;place-items:center;font-size:24px;font-family:Georgia,serif}.checkout-product-copy{display:flex;flex-direction:column;gap:5px}.checkout-product-copy strong{font-size:18px}.checkout-product-copy span{font-size:13px;line-height:1.45;color:var(--checkout-muted)}.checkout-price-block{text-align:right;display:flex;flex-direction:column;gap:2px}.checkout-price-block strong{font-size:20px}.checkout-price-block del{font-size:13px;color:#999188}.checkout-total{border-top:1px solid var(--checkout-line);margin-top:22px;padding-top:18px;display:flex;justify-content:space-between;align-items:center}.checkout-total strong{font-size:24px}
.checkout-form{display:flex;flex-direction:column;gap:16px}.checkout-form>label:not(.checkout-consent){display:flex;flex-direction:column;gap:7px}.checkout-form label>span:first-child{font-size:13px;font-weight:650}.checkout-form input[type=text],.checkout-form input[type=tel]{width:100%;box-sizing:border-box;border:1px solid #d9d2c7;background:#fff;border-radius:14px;padding:14px 15px;font:inherit;color:var(--checkout-ink);outline:none}.checkout-form input:focus{border-color:#81776b;box-shadow:0 0 0 3px rgba(99,88,75,.08)}.checkout-form small{font-size:12px;line-height:1.45;color:var(--checkout-muted)}.checkout-consent{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;font-size:12px;line-height:1.5;color:var(--checkout-muted)}.checkout-consent input{width:18px;height:18px;margin-top:1px;accent-color:#393632}.checkout-consent a{color:inherit;text-decoration:underline}.checkout-submit,.checkout-link-button{border:0;border-radius:14px;background:#393632;color:#fff;padding:15px 18px;font:inherit;font-weight:700;text-align:center;text-decoration:none;cursor:pointer}.checkout-submit:disabled{opacity:.5;cursor:not-allowed}.checkout-note{font-size:12px;line-height:1.5;color:var(--checkout-muted);margin:0}.checkout-alert{margin-bottom:18px;border:1px solid #d4b4aa;background:#fff5f2;color:#714a40;padding:14px 16px;border-radius:16px;font-size:14px}
.order-shell{max-width:940px}.order-success-mark{width:54px;height:54px;border-radius:50%;background:#393632;color:white;display:grid;place-items:center;font-size:26px;margin-bottom:18px}.order-head{max-width:700px}.order-grid{grid-template-columns:1.1fr .9fr}.order-item-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--checkout-line)}.order-item-row>div{display:flex;flex-direction:column;gap:4px}.order-item-row>div:last-child{text-align:right}.order-item-row span{font-size:13px;color:var(--checkout-muted)}.order-status-pill{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eee8df;font-size:13px;font-weight:700;margin-bottom:18px}.status-paid,.status-ready_for_pickup,.status-delivered{background:#e4efe5}.status-expired,.status-payment_canceled{background:#efe7e4}.order-details{margin:0 0 20px;display:flex;flex-direction:column}.order-details>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--checkout-line)}.order-details dt{color:var(--checkout-muted);font-size:13px}.order-details dd{margin:0;text-align:right;font-size:13px;font-weight:650}.order-message-card{max-width:620px;margin:50px auto}.order-message-card h1{font-size:38px;margin:8px 0 12px}.order-message-card p{color:var(--checkout-muted);line-height:1.6;margin-bottom:22px}
@media(max-width:760px){.checkout-shell{width:min(100% - 22px,1040px);padding:30px 0 60px}.checkout-grid,.order-grid{grid-template-columns:1fr}.checkout-card{border-radius:20px;padding:18px}.checkout-product-row{grid-template-columns:50px 1fr}.checkout-product-icon{width:50px;height:50px;border-radius:15px}.checkout-price-block{grid-column:2;text-align:left}.checkout-head h1{font-size:40px}.order-item-row{gap:10px}.order-details>div{gap:10px}}

/* v14.9D legal acceptance */
.checkout-legal-note{font-size:12px;line-height:1.55;color:#77706a;margin-top:-2px}.checkout-legal-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.checkout-legal-links{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:4px}.checkout-legal-links a{font-size:12px;color:#6e675f;text-decoration:underline;text-underline-offset:2px}

/* Velira v15.0A — YooKassa */
.checkout-pay-form{margin-top:12px}.checkout-payment-provider{margin-top:10px;text-align:center;color:var(--checkout-muted);font-size:12px}.checkout-payment-note{margin:0 0 12px;padding:11px 12px;border-radius:12px;background:#f3eee6;color:#625d56;font-size:13px;line-height:1.45}.checkout-payment-error{background:#f4e7e3;color:#814d42}.status-refund{background:#eee5df}

/* Velira v15.0B — payment lifecycle, refunds and course fulfillment */
.order-success-mark.status-payment_canceled,.order-success-mark.status-expired{background:#8b7d73}.order-success-mark.status-refund{background:#76685f}.course-access-card{grid-column:1/-1}.course-access-card h2{margin:0 0 10px;font-size:24px}.course-access-card p{margin:0;color:var(--checkout-muted);font-size:14px;line-height:1.65}.course-access-card p+p{margin-top:10px}.course-access-card a{color:inherit;text-underline-offset:2px}.course-access-help{font-size:13px!important}.checkout-payment-note strong{color:var(--checkout-ink)}
@media(max-width:760px){.course-access-card{grid-column:auto}.course-access-card h2{font-size:21px}}

/* v15.1C — physical cart checkout */
.physical-checkout-grid{grid-template-columns:1.02fr .98fr}.physical-checkout-line{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--checkout-line)}.physical-checkout-line>div{display:flex;flex-direction:column;gap:4px}.physical-checkout-line>div:last-child{text-align:right;white-space:nowrap}.physical-checkout-line span{font-size:12px;color:var(--checkout-muted)}.physical-delivery-card{display:flex;justify-content:space-between;gap:18px;margin-top:18px;padding:16px;border-radius:16px;background:#f5f0e8}.physical-delivery-card>div{display:flex;flex-direction:column;gap:5px}.physical-delivery-card span,.physical-delivery-card small{font-size:12px;color:var(--checkout-muted);line-height:1.45}.physical-delivery-card b{font-size:20px;white-space:nowrap}.physical-change-delivery{display:inline-block;margin-top:10px;font-size:12px;color:var(--checkout-muted);text-decoration:underline;text-underline-offset:3px}.physical-totals{margin-top:20px}.physical-totals>div,.order-price-lines>div{display:flex;justify-content:space-between;gap:18px;padding:7px 0}.physical-totals span,.order-price-lines span{color:var(--checkout-muted);font-size:13px}.physical-totals .grand{border-top:1px solid var(--checkout-line);margin-top:8px;padding-top:16px;align-items:baseline}.physical-totals .grand strong{font-size:26px}.checkout-subtitle{margin-top:2px;font-size:13px;font-weight:700}.checkout-address-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.checkout-address-grid label{display:flex;flex-direction:column;gap:7px}.checkout-address-grid input{width:100%;box-sizing:border-box;border:1px solid #d9d2c7;background:#fff;border-radius:14px;padding:14px 15px;font:inherit;color:var(--checkout-ink);outline:none}.physical-order-delivery-card{grid-column:1/-1}.physical-order-delivery{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.physical-order-delivery>div{display:flex;flex-direction:column;gap:5px}.physical-order-delivery>div:last-child{text-align:right;white-space:nowrap}.physical-order-delivery span,.physical-order-delivery small{color:var(--checkout-muted);font-size:13px;line-height:1.45}.order-price-lines{padding-top:12px}.order-price-lines+ .checkout-total{margin-top:8px}
@media(max-width:760px){.physical-checkout-grid{grid-template-columns:1fr}.checkout-address-grid{grid-template-columns:1fr}.physical-order-delivery-card{grid-column:auto}.physical-order-delivery{flex-direction:column}.physical-order-delivery>div:last-child{text-align:left}}

/* v15.1D.1 — public CDEK tracking after payment */
.cdek-track-card{margin-top:16px;border:1px solid #d8e4d8;background:#f2f7f1;border-radius:18px;padding:16px;display:flex;justify-content:space-between;gap:18px;align-items:center}.cdek-track-copy{display:flex;flex-direction:column;gap:5px}.cdek-track-copy>span{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#647461}.cdek-track-copy strong{font-size:20px;color:var(--checkout-ink)}.cdek-track-copy small{font-size:12px;line-height:1.45;color:var(--checkout-muted)}.cdek-track-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.cdek-track-primary{padding:12px 14px;font-size:13px;white-space:nowrap}.cdek-track-copy-button{border:1px solid #d5cec3;background:#fff;color:var(--checkout-ink);border-radius:14px;padding:11px 13px;font:inherit;font-size:13px;font-weight:650;cursor:pointer;white-space:nowrap}
@media(max-width:760px){.cdek-track-card{flex-direction:column;align-items:stretch}.cdek-track-actions{justify-content:stretch}.cdek-track-actions>*{flex:1;text-align:center}.cdek-track-copy strong{font-size:18px}}


/* v15.2A — live CDEK status */
.cdek-live-status{margin:14px 0;padding:14px 16px;border:1px solid rgba(68,64,58,.14);border-radius:16px;background:rgba(246,244,238,.75);display:flex;flex-direction:column;gap:4px}.cdek-live-status span,.cdek-live-status small{color:#89847b;font-size:13px}.cdek-live-status strong{font-size:17px;color:#3f3c37}.cdek-status-history{margin-top:12px;border-top:1px solid rgba(68,64,58,.12);padding-top:12px}.cdek-status-history summary{cursor:pointer;font-weight:600;color:#555047}.cdek-status-history div{padding-top:8px}.cdek-status-history p{display:flex;justify-content:space-between;gap:12px;margin:0;padding:8px 0;border-bottom:1px solid rgba(68,64,58,.08);font-size:13px}.cdek-status-history p span{white-space:nowrap;color:#918b82}

/* v16.0B.2 — recipient name split for CDEK */
.checkout-recipient-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}.checkout-recipient-fields label{display:flex;flex-direction:column;gap:7px}.checkout-recipient-fields label>span{font-size:13px;font-weight:650}.checkout-recipient-fields label>span em{font-style:normal;font-weight:500;color:var(--checkout-muted)}.checkout-recipient-fields input{width:100%;box-sizing:border-box;border:1px solid #d9d2c7;background:#fff;border-radius:14px;padding:14px 15px;font:inherit;color:var(--checkout-ink);outline:none}.checkout-recipient-fields input:focus{border-color:#81776b;box-shadow:0 0 0 3px rgba(99,88,75,.08)}.checkout-patronymic{grid-column:1/-1}.checkout-recipient-hint{grid-column:1/-1;margin-top:-2px}.checkout-recipient-fields input:invalid:not(:placeholder-shown){border-color:#c49a8f}
@media(max-width:560px){.checkout-recipient-fields{grid-template-columns:1fr}.checkout-patronymic,.checkout-recipient-hint{grid-column:auto}}

/* v16.0C.2 — promo total */
.physical-totals .physical-promo-total{color:#41623b}.physical-totals .physical-promo-total b{color:#41623b}


/* v16.0C.3 — promocode control inside checkout */
.checkout-promo-box{display:grid;gap:8px;margin:2px 0 4px;padding:14px;border:1px solid var(--checkout-line);border-radius:16px;background:#f8f4ed}.checkout-promo-title{font-size:13px;font-weight:750}.checkout-promo-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.checkout-promo-row input{width:100%;box-sizing:border-box;min-width:0;border:1px solid #d9d2c7;background:#fff;border-radius:14px;padding:13px 14px;font:inherit;color:var(--checkout-ink);outline:none;text-transform:uppercase}.checkout-promo-row input:focus{border-color:#81776b;box-shadow:0 0 0 3px rgba(99,88,75,.08)}.checkout-promo-row button{border:0;border-radius:14px;background:#4d4a45;color:#fff;padding:0 16px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}.checkout-promo-message{border-radius:12px;padding:9px 11px;font-size:12px;font-weight:700;line-height:1.4}.checkout-promo-message.success{background:#eaf3e7;color:#41623b}.checkout-promo-message.error{background:#f5e9e5;color:#875144}.checkout-promo-applied{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;padding-top:2px;color:#41623b;font-size:13px}.checkout-promo-applied strong{margin-left:auto}.checkout-promo-applied button{border:0;background:transparent;padding:0;color:#716a61;text-decoration:underline;font:inherit;font-size:12px;cursor:pointer}
@media(max-width:430px){.checkout-promo-row{grid-template-columns:1fr}.checkout-promo-row button{height:46px}.checkout-promo-applied strong{margin-left:0}.checkout-promo-applied button{margin-left:auto}}
