.commerce-page {
    min-height: 100vh;
    color: var(--ink);
    background: #fff;
}

.commerce-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--page);
    min-height: 82px;
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
}

.commerce-header > a:last-child {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);
    gap: clamp(50px, 9vw, 130px);
    width: var(--page);
    margin: 0 auto;
    padding: clamp(50px, 8vw, 110px) 0;
}

.checkout-product img {
    width: min(100%, 580px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #f3f3f3;
}

.checkout-product h1,
.checkout-panel h2,
.checkout-message h1,
.status-shell h1,
.withdrawal-shell h1,
.legal-content h1 {
    margin: 16px 0 22px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.checkout-product > div {
    margin-top: 28px;
}

.checkout-product > div > p:last-child {
    max-width: 570px;
    color: #57534c;
}

.checkout-panel {
    align-self: start;
    padding: clamp(26px, 4vw, 50px);
    background: #fff;
    border: 1px solid var(--line);
}

.checkout-panel h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);
}

.notice {
    margin: 24px 0;
    padding: 16px 18px;
    background: #f5f5f5;
    border-left: 4px solid var(--ink);
}

.notice-error {
    color: #8f1d1d;
    background: #fff0ef;
    border-left-color: #b02727;
}

.field {
    display: grid;
    gap: 8px;
    margin: 22px 0;
}

.field > span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field select,
.field input,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #aaa69c;
    border-radius: 0;
    font: inherit;
}

.field textarea {
    resize: vertical;
}

.checkout-summary {
    margin: 30px 0 16px;
    border-top: 1px solid var(--line);
}

.checkout-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.checkout-summary dt,
.checkout-summary dd {
    margin: 0;
}

.checkout-total {
    font-weight: 800;
}

.delivery-note,
.secure-note {
    color: #656159;
    font-size: 0.78rem;
}

.terms-check {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
    margin: 26px 0;
    font-size: 0.85rem;
}

.terms-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ink);
}

.terms-check a,
.notice a,
.legal-content a,
.withdrawal-shell a:not(.button) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.payment-actions {
    display: grid;
    gap: 12px;
}

.payment-button {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    color: #fff;
    background: var(--ink);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: transform 160ms ease, opacity 160ms ease;
}

.payment-button:hover {
    transform: translateY(-2px);
}

.secure-note {
    margin: 16px 0 0;
    text-align: center;
}

.commerce-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: var(--page);
    margin: 0 auto;
    padding: 30px 0;
    color: #6d6a62;
    border-top: 1px solid var(--line);
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.commerce-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.status-shell,
.checkout-message {
    width: min(100% - 40px, 780px);
    margin: 0 auto;
    padding: clamp(100px, 15vw, 190px) 0;
    text-align: center;
}

.status-shell > p:not(.eyebrow, .status-icon, .order-reference) {
    max-width: 570px;
    margin-right: auto;
    margin-left: auto;
    color: #57534c;
    font-size: 1.08rem;
}

.status-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 30px;
    place-items: center;
    color: var(--ink);
    background: var(--accent);
    border-radius: 50%;
    font-size: 2rem;
}

.order-reference {
    margin: 28px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
}

.status-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 34px;
}

.withdrawal-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(390px, 0.7fr);
    gap: clamp(50px, 10vw, 150px);
    width: var(--page);
    margin: 0 auto;
    padding: clamp(70px, 10vw, 130px) 0;
}

.withdrawal-shell > section > p:not(.eyebrow, .status-icon) {
    max-width: 500px;
    color: #57534c;
}

.withdrawal-form {
    padding: clamp(24px, 4vw, 44px);
    background: #fff;
    border: 1px solid var(--line);
}

.honeypot {
    position: absolute;
    left: -10000px;
}

.legal-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 800px);
    gap: clamp(50px, 9vw, 130px);
    width: var(--page);
    margin: 0 auto;
    padding: clamp(65px, 9vw, 120px) 0;
}

.legal-nav {
    position: sticky;
    top: 30px;
    align-self: start;
}

.legal-nav nav {
    display: grid;
}

.legal-nav a {
    padding: 12px 0;
    color: #66625b;
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
}

.legal-nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 800;
}

.legal-content h1 {
    margin-bottom: 60px;
}

.legal-content section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    margin: 0 0 16px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
}

.legal-content p,
.legal-content li {
    color: #4f4c45;
}

.legal-content address {
    font-style: normal;
}

.legal-template {
    margin: 24px 0 30px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
}

@media (max-width: 800px) {
    .checkout-shell,
    .withdrawal-shell,
    .legal-shell {
        grid-template-columns: 1fr;
    }

    .checkout-shell,
    .withdrawal-shell {
        gap: 48px;
    }

    .checkout-product img {
        width: 100%;
    }

    .legal-nav {
        position: static;
    }

    .legal-nav nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
    }

    .commerce-footer,
    .status-actions {
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .commerce-header {
        min-height: 68px;
    }

    .commerce-header > a:last-child {
        max-width: 180px;
        text-align: right;
    }

    .checkout-panel,
    .withdrawal-form {
        margin-right: -16px;
        margin-left: -16px;
        border-right: 0;
        border-left: 0;
    }

    .legal-nav nav {
        grid-template-columns: 1fr;
    }
}
