.auth-page,
.account-page,
.checkout-page {
    padding: 36px 24px 80px;
    background: var(--cream, #f8f4ef);
}

.auth-page__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: calc(100dvh - var(--header-height) - 80px);
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.auth-page__visual {
    position: relative;
    min-height: 520px;
}

.auth-page__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-page__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}

.auth-page__copy {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 36px;
    color: #fff;
}

.auth-page__copy h1 {
    margin-top: 10px;
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.auth-page__copy h1 em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
}

.auth-page__form-wrap,
.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-page__form-wrap {
    padding: 48px;
}

.auth-card__eyebrow,
.account-sidebar__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #888;
}

.auth-card h2,
.account-main__head h1,
.account-sidebar__head h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.1;
    color: #1a1a1a;
}

.auth-card h2 em,
.account-main__head h1 em,
.account-sidebar__head h2 em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--brand-red, #910000);
}

.auth-card__subtitle {
    margin: 10px 0 24px;
    font-family: 'Josefin Sans', sans-serif;
    color: #666;
}

.auth-card__switch {
    margin-top: 18px;
    font-family: 'Josefin Sans', sans-serif;
    color: #666;
}

.auth-card__switch a {
    color: var(--brand-red, #910000);
    font-weight: 600;
}

.auth-card__links {
    display: flex;
    gap: 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
}

.auth-card__links a {
    color: var(--brand-red, #910000);
    font-weight: 600;
}

.account-page__inner,
.checkout-page__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

.checkout-page__inner {
    display: block;
}

.account-sidebar,
.account-main,
.account-card,
.auth-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

.account-sidebar {
    padding: 28px 22px;
    align-self: start;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.account-sidebar__head {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0ebe4;
}

.account-sidebar__nav {
    display: grid;
    gap: 4px;
}

.account-sidebar__nav a,
.account-sidebar__nav button {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: left;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 15px;
    color: #444;
    transition: background 0.2s ease, color 0.2s ease;
}

.account-sidebar__nav a:hover,
.account-sidebar__nav a.is-active,
.account-sidebar__nav button:hover {
    background: rgba(145, 0, 0, 0.06);
    color: var(--brand-red, #910000);
}

.account-main {
    padding: 32px;
}

.account-main__head {
    margin-bottom: 24px;
}

.account-main__head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.account-form {
    display: grid;
    gap: 12px;
}

.account-form--card,
.account-card {
    padding: 24px;
}

.account-form label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #555;
}

.account-form input,
.account-form textarea,
.account-form select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 15px;
}

.account-form textarea {
    padding: 12px 14px;
    min-height: 110px;
    resize: vertical;
}

.account-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.account-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Josefin Sans', sans-serif;
    color: #555;
}

.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--brand-red, #910000);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-btn--ghost {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.account-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
}

.account-alert--success {
    background: #edf8f0;
    color: #1f6b39;
}

.account-alert--error {
    background: #fdeeee;
    color: #9d1f1f;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.account-stat {
    padding: 18px;
    border-radius: 16px;
    background: #faf7f2;
}

.account-stat span {
    display: block;
    margin-bottom: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #777;
}

.account-stat strong {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    color: #1a1a1a;
}

.account-grid,
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkout-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
}

.account-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.account-card__head h3,
.account-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
}

.account-card__head a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: var(--brand-red, #910000);
}

.account-order-row,
.orders-list__item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1ece6;
}

.account-order-row strong,
.orders-list__item strong {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
}

.account-order-row span,
.orders-list__item span {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #777;
}

.account-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(145, 0, 0, 0.08);
    color: var(--brand-red, #910000);
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.address-card {
    position: relative;
    padding: 22px;
    border-radius: 18px;
    background: #faf7f2;
}

.address-card.is-default {
    border: 1px solid rgba(145, 0, 0, 0.18);
}

.address-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-red, #910000);
}

.address-card h3 {
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif;
}

.address-card p {
    margin-bottom: 4px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #555;
}

.address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.address-card__actions a,
.address-card__actions button {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-empty,
.checkout-empty {
    padding: 28px 0;
    font-family: 'Josefin Sans', sans-serif;
    color: #666;
}

.checkout-addresses {
    display: grid;
    gap: 12px;
}

.checkout-address {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-address:has(input:checked) {
    border-color: var(--brand-red, #910000);
    box-shadow: 0 0 0 3px rgba(145, 0, 0, 0.08);
}

.checkout-address strong,
.checkout-item strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
}

.checkout-address p,
.checkout-item span {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #666;
}

.checkout-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1ece6;
}

.checkout-item img {
    width: 72px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}

.checkout-item__customization,
.cart-item-customization {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(145, 0, 0, 0.05);
}

.checkout-item__customization strong,
.cart-item-customization strong {
    margin-bottom: 6px;
    color: var(--brand-red, #910000);
}

.checkout-item__customization span,
.cart-item-customization span {
    margin-bottom: 3px;
}

.checkout-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1ece6;
}

.checkout-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
}

.checkout-summary__row--total strong {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
}

.checkout-note {
    margin: 12px 0 18px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    color: #888;
}

.account-divider {
    border: 0;
    border-top: 1px solid #f1ece6;
    margin: 8px 0;
}

.confirmation-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
}

.confirmation-card__icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(145, 0, 0, 0.1);
    color: var(--brand-red, #910000);
    font-size: 28px;
    font-weight: 700;
}

.confirmation-meta,
.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.confirmation-meta div {
    min-width: 120px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #faf7f2;
}

.confirmation-meta span {
    display: block;
    margin-bottom: 6px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    color: #888;
}

.confirmation-meta strong {
    font-family: 'Syne', sans-serif;
}

.header-panel__links form button {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: left;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 15px;
    color: #333;
}

.header-panel__links form button:hover {
    background: rgba(145, 0, 0, 0.06);
    color: var(--brand-red, #910000);
}

.product-sizes__error {
    margin-top: 10px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: var(--brand-red, #910000);
}

.product-sizes.has-error .product-sizes__options label span {
    border-color: rgba(145, 0, 0, 0.35);
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #888;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.checkout-step span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3efe9;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.checkout-step.is-active {
    color: #1a1a1a;
    border: 1px solid rgba(145, 0, 0, 0.18);
}

.checkout-step.is-active span,
.checkout-step.is-done span {
    background: var(--brand-red, #910000);
    color: #fff;
}

.checkout-step.is-done {
    color: #1a1a1a;
}

.checkout-step-note {
    margin-bottom: 14px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #666;
}

.checkout-wizard__layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
}

.checkout-wizard__sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 24px;
}

.checkout-panel[hidden] {
    display: none !important;
}

.checkout-panel h3 {
    margin-bottom: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 20px;
}

.checkout-panel__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.checkout-auth-alert {
    margin-bottom: 16px;
}

.checkout-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.checkout-auth-tabs__btn {
    min-height: 46px;
    border-radius: 999px;
    background: #f3efe9;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
}

.checkout-auth-tabs__btn.is-active {
    background: var(--brand-red, #910000);
    color: #fff;
}

.checkout-auth-panel[hidden] {
    display: none !important;
}

.checkout-confirm-address {
    margin: 16px 0;
    padding: 16px;
    border-radius: 14px;
    background: #faf7f2;
}

.checkout-confirm-address h4 {
    margin-bottom: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.checkout-confirm-address p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #555;
}

.checkout-panel textarea {
    width: 100%;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: 'Josefin Sans', sans-serif;
    resize: vertical;
}

.checkout-panel label[for="order-notes"] {
    display: block;
    margin-top: 16px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #555;
}

.checkout-logged-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 22px;
}

.checkout-logged-banner p {
    font-family: 'Josefin Sans', sans-serif;
    color: #555;
}

.checkout-new-address {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f1ece6;
}

.checkout-add-address-btn {
    width: 100%;
    margin-top: 14px;
}

.checkout-new-address[hidden] {
    display: none !important;
}

.checkout-new-address__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.checkout-new-address__head h4 {
    margin-bottom: 0;
}

.checkout-new-address__cancel {
    border: 0;
    background: transparent;
    color: var(--brand-red, #910000);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.checkout-new-address h4 {
    margin-bottom: 14px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
}

.account-card.is-locked {
    opacity: 0.72;
    pointer-events: none;
}

.cart-page,
.checkout-page {
    padding: 28px 24px 80px;
    background: var(--cream, #f8f4ef);
}

.cart-page__inner,
.checkout-page__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.cart-page__layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
}

.cart-page__summary {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.cart-page-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid #f1ece6;
}

.cart-page-item__media img {
    width: 96px;
    height: 118px;
    border-radius: 14px;
    object-fit: cover;
}

.cart-page-item__info a strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
}

.cart-page-item__info span {
    display: block;
    margin-bottom: 4px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #666;
}

.cart-page-item__total {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    color: var(--brand-red, #910000);
}

.account-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 960px) {
    .checkout-steps,
    .checkout-auth-grid,
    .cart-page__layout,
    .checkout-wizard__layout {
        grid-template-columns: 1fr;
    }

    .checkout-wizard__sidebar {
        position: static;
    }

    .checkout-logged-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 960px) {
    .auth-page__grid,
    .account-page__inner,
    .account-grid,
    .checkout-layout,
    .address-grid,
    .account-stats {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .auth-page__visual {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .auth-page,
    .account-page,
    .checkout-page {
        padding: 20px 16px 60px;
    }

    .auth-page__form-wrap,
    .account-main {
        padding: 24px 20px;
    }

    .account-form__row,
    .account-order-row,
    .orders-list__item {
        grid-template-columns: 1fr;
    }
}

.checkout-payment {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1ece6;
}

.checkout-payment h4 {
    margin-bottom: 14px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
}

.checkout-payment__options {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.checkout-payment__option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.checkout-payment__option:has(input:checked) {
    border-color: rgba(145, 0, 0, 0.35);
    background: #faf7f2;
}

.checkout-payment__option input {
    margin-top: 4px;
}

.checkout-payment__option strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
}

.checkout-payment__option span {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.checkout-payment__panel {
    margin-bottom: 8px;
}

.checkout-payment__panel[hidden] {
    display: none !important;
}

.checkout-qr {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    background: #faf7f2;
}

.checkout-qr__image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.checkout-qr__placeholder {
    width: 180px;
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed rgba(145, 0, 0, 0.25);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.checkout-qr__meta p {
    margin-bottom: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    color: #555;
}

.checkout-qr__form {
    margin-top: 0;
}

@media (max-width: 720px) {
    .checkout-qr {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

.checkout-coupon {
    margin: 18px 0;
    padding-top: 18px;
    border-top: 1px solid #f1ece6;
}

.checkout-coupon label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.checkout-coupon__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.checkout-coupon__row input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: 'Josefin Sans', sans-serif;
}

.checkout-coupon__row .account-btn {
    margin: 0;
    padding: 12px 16px;
    white-space: nowrap;
}

.checkout-coupon__message {
    margin-top: 10px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
}

.checkout-coupon__message.is-success {
    color: #1f7a45;
}

.checkout-coupon__message.is-error {
    color: var(--brand-red, #910000);
}

.checkout-coupon__list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.checkout-coupon__chip {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(145, 0, 0, 0.14);
    border-radius: 14px;
    background: #faf7f2;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.checkout-coupon__chip:hover {
    border-color: rgba(145, 0, 0, 0.35);
    background: #fff;
}

.checkout-coupon__chip strong {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--brand-red, #910000);
}

.checkout-coupon__chip span {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    color: #666;
}

/* Coupon celebration */
.coupon-celebration {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 24px;
}

.coupon-celebration__flash {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: radial-gradient(ellipse at center bottom, rgba(255, 210, 74, 0.45) 0%, rgba(145, 0, 0, 0.18) 35%, transparent 72%);
    opacity: 0;
    transform: scaleY(0.4);
    transform-origin: bottom center;
}

.coupon-celebration.is-visible .coupon-celebration__flash {
    animation: coupon-flash 0.7s ease-out forwards;
}

.coupon-celebration__particles {
    position: absolute;
    left: 50%;
    bottom: 72px;
    width: 0;
    height: 0;
    pointer-events: none;
}

.coupon-celebration__particle {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--size);
    height: var(--size);
    border-radius: var(--shape);
    background: var(--color);
    opacity: 0;
    box-shadow: 0 0 8px rgba(255, 210, 74, 0.35);
}

.coupon-celebration.is-visible .coupon-celebration__particle {
    animation: coupon-confetti-burst var(--dur) cubic-bezier(0.2, 0.7, 0.3, 1) var(--delay) forwards;
}

.coupon-celebration__spark {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(to top, #ffd24a, #fff 40%, transparent);
    transform-origin: center bottom;
    opacity: 0;
}

.coupon-celebration.is-visible .coupon-celebration__spark {
    animation: coupon-spark-burst 0.65s ease-out var(--delay) forwards;
}

.coupon-celebration__toast {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    width: min(100%, 520px);
    padding: 18px 18px 18px 20px;
    border: 1px solid rgba(255, 210, 74, 0.45);
    border-radius: 22px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1212 48%, #910000 100%);
    color: #fff;
    box-shadow:
        0 24px 60px rgba(145, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    pointer-events: auto;
    transform: translateY(130%);
    opacity: 0;
}

.coupon-celebration.is-visible .coupon-celebration__toast {
    animation: coupon-toast-in 0.75s cubic-bezier(0.22, 1.12, 0.36, 1) forwards;
}

.coupon-celebration.is-leaving .coupon-celebration__toast {
    animation: coupon-toast-out 0.45s ease-in forwards;
}

.coupon-celebration__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
}

.coupon-celebration__icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 210, 74, 0.55);
    animation: coupon-ring-pulse 1.2s ease-out infinite;
}

.coupon-celebration__icon-emoji {
    position: relative;
    font-size: 30px;
    animation: coupon-emoji-pop 0.6s cubic-bezier(0.22, 1.4, 0.36, 1) 0.15s both;
}

.coupon-celebration__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.coupon-celebration__copy strong {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.coupon-celebration__copy p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.coupon-celebration__copy em {
    font-style: normal;
    font-weight: 700;
    color: #ffd24a;
}

.coupon-celebration__code {
    display: inline-block;
    padding: 2px 8px;
    border: 1px dashed rgba(255, 210, 74, 0.6);
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ffd24a;
}

.coupon-celebration__tag {
    display: inline-block;
    margin-top: 2px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}

.coupon-celebration__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.coupon-celebration__close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 210, 74, 0.5);
}

@keyframes coupon-toast-in {
    0% {
        transform: translateY(130%) scale(0.92);
        opacity: 0;
    }
    65% {
        transform: translateY(-10px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes coupon-toast-out {
    to {
        transform: translateY(120%) scale(0.95);
        opacity: 0;
    }
}

@keyframes coupon-confetti-burst {
    0% {
        transform: translate(0, 20px) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(0.2);
        opacity: 0;
    }
}

@keyframes coupon-spark-burst {
    0% {
        transform: rotate(var(--angle)) scaleY(0);
        opacity: 0;
    }
    30% {
        transform: rotate(var(--angle)) scaleY(1.2);
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle)) scaleY(0.1);
        opacity: 0;
    }
}

@keyframes coupon-flash {
    0% {
        opacity: 0;
        transform: scaleY(0.3);
    }
    25% {
        opacity: 1;
        transform: scaleY(1);
    }
    100% {
        opacity: 0;
        transform: scaleY(1.2);
    }
}

@keyframes coupon-ring-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.25);
        opacity: 0;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

@keyframes coupon-emoji-pop {
    0% {
        transform: scale(0) rotate(-20deg);
    }
    70% {
        transform: scale(1.2) rotate(8deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@media (max-width: 560px) {
    .coupon-celebration {
        padding-inline: 12px;
        padding-bottom: 16px;
    }

    .coupon-celebration__toast {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .coupon-celebration__close {
        grid-column: 2;
        justify-self: end;
        margin-top: -4px;
    }

    .coupon-celebration__copy strong {
        font-size: 14px;
    }
}

/* Customer order details */
.order-detail__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.order-invoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    margin: 0;
}

.order-invoice-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-coupon-saving {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px dashed rgba(145, 0, 0, 0.28);
    border-radius: 14px;
    background: rgba(145, 0, 0, 0.045);
}

.order-coupon-saving__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-red, #910000);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.order-coupon-saving > div:nth-child(2) {
    display: grid;
    gap: 2px;
}

.order-coupon-saving span {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    color: #777;
}

.order-coupon-saving strong {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--brand-red, #910000);
}

.order-coupon-saving__amount {
    letter-spacing: 0 !important;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .order-detail__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .order-invoice-btn {
        width: 100%;
        justify-content: center;
    }
}
