.simple-stage {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) clamp(24px, 3.6vw, 48px) clamp(44px, 6vw, 90px);
}

.simple-panel {
    padding: clamp(32px, 4vw, 56px);
    border: 1px solid var(--soft-line);
    background:
        radial-gradient(circle at 92% 8%, rgba(107, 20, 41, 0.06), transparent 36%),
        linear-gradient(145deg, rgba(255, 253, 248, 0.95), rgba(251, 247, 239, 0.74));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 28px 90px rgba(33, 22, 21, 0.08);
}

.simple-panel::before {
    content: "";
    width: 44px;
    height: 1px;
    margin-bottom: 18px;
    background: var(--wine);
}

.simple-panel h1 {
    max-width: 13ch;
    min-height: auto;
}

.simple-panel .section-copy {
    min-height: auto;
    max-width: 52ch;
}

.simple-panel .hero-actions {
    margin-top: 24px;
}

.account-panel h1 {
    max-width: 11ch;
}

.account-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.account-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-form input,
.account-form textarea,
.account-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--soft-line);
    padding: 0 14px;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.82);
    caret-color: var(--wine);
    font: inherit;
    outline: 0;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.account-form select {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--wine) 50%),
        linear-gradient(135deg, var(--wine) 50%, transparent 50%);
    background-position:
        calc(100% - 21px) 50%,
        calc(100% - 15px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.account-form textarea {
    min-height: 92px;
    padding-block: 12px;
    resize: vertical;
}

.account-form input:hover,
.account-form textarea:hover,
.account-form select:hover {
    border-color: rgba(107, 20, 41, 0.28);
}

.account-form input:focus,
.account-form textarea:focus,
.account-form select:focus {
    border-color: rgba(107, 20, 41, 0.58);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(107, 20, 41, 0.08);
}

.account-form input:-webkit-autofill,
.account-form input:-webkit-autofill:hover,
.account-form input:-webkit-autofill:focus {
    border-color: rgba(107, 20, 41, 0.38);
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0 1000px #fff8f1 inset, 0 0 0 3px rgba(107, 20, 41, 0.08);
    transition: background-color 9999s ease-out 0s;
}

.account-form .primary-action:disabled {
    border-color: rgba(107, 20, 41, 0.42);
    color: rgba(255, 253, 248, 0.92);
    background: rgba(107, 20, 41, 0.62);
    box-shadow: none;
}

.account-form small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.account-form--compact {
    max-width: 220px;
}

/* Checkout form specifically uses lighter label weight than the rest of .account-form
   (account/login/signup keep the original bold labels - this is scoped to checkout only). */
.checkout-form label {
    font-weight: 500;
}

.checkout-urgency-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    margin-bottom: 18px;
    padding: 10px 16px;
    border: 1px solid rgba(107, 20, 41, 0.16);
    background: rgba(255, 241, 233, 0.55);
    color: var(--wine);
    font-size: 12px;
    font-weight: 700;
}

.checkout-timer strong {
    font-variant-numeric: tabular-nums;
}

.payment-method-card {
    margin-top: 6px;
    padding: 16px;
    border: 1px solid var(--soft-line);
    background: rgba(255, 253, 248, 0.7);
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(52, 116, 65, 0.3);
    background: rgba(52, 116, 65, 0.06);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.payment-method-check {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2f6b3d;
    color: #fff;
    font-size: 11px;
}

.payment-method-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.checkout-free-delivery {
    margin: 14px 0 0;
    color: #2f6b3d;
    font-size: 13px;
    font-weight: 700;
}

.pincode-check-status {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

.pincode-check-status[hidden] {
    display: none;
}

.pincode-check-status[data-state="ok"] {
    color: #2f6b3d;
}

.pincode-check-status[data-state="unavailable"] {
    color: #b3261e;
}

.pincode-check-status[data-state="checking"] {
    color: var(--muted);
}

.checkout-support-card {
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid var(--soft-line);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.7);
}

.checkout-support-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.checkout-support-card p:first-child {
    margin-top: 0;
}

.checkout-support-card strong {
    color: var(--ink);
}

.checkout-app-cta {
    padding: clamp(22px, 4vw, 32px);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(182, 145, 75, 0.16), rgba(107, 20, 41, 0.08));
    border: 1px solid rgba(182, 145, 75, 0.3);
    text-align: center;
}

.checkout-app-cta h2 {
    margin: 6px 0 10px;
    color: var(--wine);
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
}

.checkout-app-cta p {
    max-width: 48ch;
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.checkout-app-cta .primary-action {
    display: inline-flex;
}

/* Order confirmation - a clean, minimal single column. Deliberately not a bordered/boxed
   card like the rest of checkout: it sits directly on the page background, using generous
   spacing and short hairline dividers instead of panels to separate sections. */
.confirm-stage {
    width: min(100%, 640px);
}

.confirm-page {
    padding: clamp(32px, 6vw, 64px) 0 clamp(56px, 8vw, 96px);
    text-align: center;
}

.confirm-mark {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1px solid rgba(107, 20, 41, 0.28);
    border-radius: 50%;
    color: var(--wine);
    animation: confirm-mark-in 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.confirm-mark svg {
    width: 22px;
    height: 22px;
}

.confirm-kicker {
    margin: 0 0 10px;
    color: var(--wine);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.confirm-page h1 {
    max-width: 22ch;
    margin: 0 auto;
    color: var(--wine);
    font-family: var(--font-display);
    font-size: clamp(32px, 4.6vw, 46px);
    font-weight: 600;
    line-height: 1.14;
}

.confirm-lede {
    max-width: 44ch;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.confirm-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.confirm-divider {
    width: 44px;
    height: 1px;
    margin: 34px auto;
    background: var(--wine);
    opacity: 0.5;
}

.confirm-order-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
}

.confirm-order-row div {
    display: grid;
    gap: 6px;
}

.confirm-order-row span {
    color: rgba(107, 20, 41, 0.6);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.confirm-order-row strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.confirm-items {
    max-width: 420px;
    margin: 8px auto 0;
    text-align: left;
}

.confirm-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    color: var(--muted);
    font-size: 14px;
}

.confirm-item + .confirm-item {
    border-top: 1px solid var(--soft-line);
}

.confirm-item strong {
    color: var(--ink);
    font-weight: 600;
}

.confirm-item--total {
    margin-top: 4px;
    border-top: 1px solid var(--soft-line) !important;
    color: var(--ink);
    font-weight: 700;
}

.confirm-item--total strong {
    font-family: var(--font-display);
    font-size: 18px;
}

.confirm-free-delivery {
    margin: 18px 0 0;
    color: #2f6b3d;
    font-size: 13px;
    font-weight: 700;
}

.confirm-support {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}

.confirm-support strong {
    color: var(--ink);
}

@keyframes confirm-mark-in {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 560px) {
    .confirm-order-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
    }
}

.exit-intent-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(33, 22, 21, 0.4);
}

.exit-intent-overlay[hidden] {
    display: none;
}

.account-notice,
.account-error {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(107, 20, 41, 0.16);
    color: var(--wine);
    background: rgba(255, 241, 233, 0.72);
    font-size: 13px;
    line-height: 1.55;
}

.account-error p {
    margin: 0;
}

.account-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 22px;
    border: 1px solid rgba(107, 20, 41, 0.1);
    background: rgba(107, 20, 41, 0.1);
}

.account-summary div {
    min-width: 0;
    padding: 16px;
    background: rgba(255, 253, 248, 0.78);
}

.account-summary span {
    color: rgba(107, 20, 41, 0.7);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-summary strong {
    display: block;
    margin-top: 8px;
    color: var(--wine);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.account-orders {
    margin-top: 28px;
}

.account-orders-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.account-orders-head .detail-kicker {
    margin: 0;
}

.account-orders-head .secondary-action {
    min-height: 38px;
    padding-inline: 18px;
    text-decoration: none;
}

.account-orders-list {
    display: grid;
    gap: 12px;
}

.account-order-card,
.account-orders-empty {
    border: 1px solid rgba(107, 20, 41, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    background: rgba(255, 253, 248, 0.72);
}

.account-order-card span,
.account-orders-empty span,
.account-track-code {
    color: rgba(107, 20, 41, 0.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-order-card strong {
    display: block;
    margin-top: 6px;
    color: var(--wine);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.account-order-card p,
.account-orders-empty p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.account-order-card form {
    margin: 0;
}

.account-order-card button {
    min-height: 38px;
    white-space: nowrap;
}

.account-track-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--wine);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-track-code {
    display: inline-block;
    margin-top: 10px;
}

.account-track-status {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.account-track-refresh {
    display: inline-block;
    margin: 4px 0 0 10px;
}

.account-track-refresh-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--wine);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: underline;
    cursor: pointer;
}

.checkout-stage {
    width: min(100%, 1120px);
}

.checkout-confirmation-panel {
    display: grid;
    gap: 26px;
}

.checkout-panel h1 {
    max-width: 22ch;
    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 1.12;
}

.checkout-confirmation-panel::before {
    display: none;
}

.checkout-confirmation-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid rgba(255, 253, 248, 0.28);
    color: var(--white);
    background:
        radial-gradient(circle at 88% 92%, rgba(182, 145, 75, 0.4), transparent 55%),
        linear-gradient(135deg, rgba(107, 20, 41, 0.98), rgba(111, 35, 73, 0.92) 50%, rgba(36, 12, 26, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 28px 70px rgba(107, 20, 41, 0.2);
}

.checkout-confirmation-hero::after {
    content: "";
    position: absolute;
    top: -18%;
    right: -8%;
    width: 42%;
    height: 136%;
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.18), rgba(182, 145, 75, 0.1));
    transform: skewX(-14deg);
    pointer-events: none;
}

.checkout-confirmation-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 253, 248, 0.34);
    border-radius: 50%;
    color: var(--wine);
    background: var(--white);
    box-shadow: 0 16px 36px rgba(33, 22, 21, 0.2);
}

.checkout-confirmation-mark svg {
    width: 26px;
    height: 26px;
}

.checkout-confirmation-hero .detail-kicker,
.checkout-confirmation-hero h1,
.checkout-confirmation-hero .section-copy,
.checkout-confirmation-summary {
    position: relative;
    z-index: 1;
}

.checkout-confirmation-hero .detail-kicker {
    margin-top: 24px;
    color: rgba(255, 253, 248, 0.82);
}

.checkout-confirmation-hero h1 {
    max-width: none;
    margin: 8px 0 0;
    color: var(--white);
    font-size: clamp(62px, 10vw, 104px);
    line-height: 0.86;
}

.checkout-confirmation-hero .section-copy {
    max-width: 56ch;
    margin-top: 18px;
    color: rgba(255, 253, 248, 0.82);
    font-size: 16px;
    line-height: 1.7;
}

.checkout-confirmation-hero .section-copy strong {
    color: var(--white);
    overflow-wrap: anywhere;
}

.checkout-confirmation-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
    gap: 1px;
    width: min(100%, 760px);
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 253, 248, 0.2);
    background: rgba(255, 253, 248, 0.16);
}

.checkout-confirmation-summary div {
    min-width: 0;
    padding: 16px 18px;
    background: rgba(255, 253, 248, 0.08);
}

.checkout-confirmation-summary span {
    display: block;
    color: rgba(255, 253, 248, 0.7);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.checkout-confirmation-summary strong {
    display: block;
    margin-top: 8px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.checkout-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-summary {
    border: 1px solid rgba(107, 20, 41, 0.12);
    padding: clamp(20px, 3vw, 28px);
    background: rgba(255, 253, 248, 0.72);
}

.checkout-summary .secondary-action {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-decoration: none;
}

.checkout-access-panel {
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid rgba(107, 20, 41, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(255, 241, 233, 0.78));
    box-shadow: 0 24px 58px rgba(107, 20, 41, 0.08);
}

.checkout-access-copy strong {
    display: block;
    margin-top: 6px;
    color: var(--wine);
    font-family: var(--font-display);
    font-size: clamp(34px, 4.8vw, 52px);
    font-weight: 600;
    line-height: 0.95;
}

.checkout-access-copy p:last-child,
.checkout-support-note {
    max-width: 68ch;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.checkout-email-card {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(107, 20, 41, 0.12);
    background: rgba(255, 253, 248, 0.82);
}

.checkout-email-card span {
    color: rgba(107, 20, 41, 0.7);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.checkout-email-card strong {
    color: var(--wine);
    font-family: var(--font-body);
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 800;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.checkout-access-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.checkout-access-steps div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(107, 20, 41, 0.1);
    background: rgba(255, 253, 248, 0.62);
}

.checkout-access-steps span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--wine);
    font-size: 12px;
    font-weight: 800;
}

.checkout-access-steps strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.checkout-support-note {
    margin-top: 18px;
}

.checkout-summary-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.checkout-summary-item,
.checkout-summary-total {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.checkout-summary-item strong,
.checkout-summary-total strong {
    color: var(--wine);
    white-space: nowrap;
}

.checkout-summary-total {
    border-top: 1px solid rgba(107, 20, 41, 0.14);
    padding-top: 14px;
    color: var(--wine);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checkout-empty {
    margin: 18px 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.simple-stage {
    width: min(100%, 1040px);
}

.account-panel {
    border-radius: 14px;
    overflow: hidden;
}

.account-panel::before {
    display: none;
}

.account-panel > .detail-kicker {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(107, 20, 41, 0.08);
}

.account-panel h1 {
    max-width: 14ch;
    color: var(--wine);
}

.account-form {
    max-width: 620px;
}

.account-form input,
.account-form textarea {
    border-radius: 10px;
}

.account-summary {
    border-radius: 12px;
    overflow: hidden;
}

.account-orders {
    border: 1px solid rgba(107, 20, 41, 0.1);
    border-radius: 14px;
    padding: 18px;
    background: rgba(255, 253, 248, 0.62);
}

.account-order-card,
.account-orders-empty {
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(33, 22, 21, 0.04);
}

.account-order-card .secondary-action,
.account-orders-head .secondary-action,
.account-form .secondary-action,
.account-panel .secondary-action {
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.account-form .primary-action,
.account-panel .primary-action {
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

@media (max-width: 700px) {
    .simple-stage {
        padding-inline: 18px;
    }

    .account-panel {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding-inline: 18px;
    }

    .account-panel h1 {
        max-width: 7ch;
        font-size: clamp(46px, 14vw, 62px);
    }

    .account-panel .section-copy,
    .account-notice,
    .account-error {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .account-panel .section-copy {
        max-width: 31ch;
    }

    .account-form input,
    .account-form textarea {
        min-width: 0;
    }

    .account-summary {
        grid-template-columns: 1fr;
    }

    .account-orders-head,
    .account-order-card {
        align-items: stretch;
        display: grid;
    }

    .checkout-grid,
    .checkout-form-row {
        grid-template-columns: 1fr;
    }

    .checkout-panel h1 {
        font-size: clamp(26px, 7vw, 32px);
        max-width: none;
    }

    .checkout-confirmation-panel {
        gap: 18px;
    }

    .checkout-confirmation-hero {
        padding: 24px;
    }

    .checkout-confirmation-hero h1 {
        font-size: clamp(56px, 16vw, 72px);
    }

    .checkout-confirmation-summary,
    .checkout-access-steps {
        grid-template-columns: 1fr;
    }

    .checkout-access-steps div {
        padding: 12px;
    }
}
