@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --account-ink: #243848;
    --account-muted: #5d6d77;
    --account-line: #dcd4c6;
    --account-line-soft: rgba(28, 62, 107, 0.10);
    --account-panel: #fffdfa;
    --account-panel-strong: #ffffff;
    --account-cream: #f6f1e8;
    --account-sage: #edf6e6;
    --account-sage-strong: #d6ebc8;
    --account-blue-soft: #eaf1fb;
    --account-blue: #1c3e6b;
    --account-blue-deep: #153055;
    --account-shadow: 0 24px 60px rgba(36, 56, 72, 0.10);
    --account-radius-xl: 28px;
    --account-radius-lg: 22px;
    --account-radius-md: 16px;
}

body[data-page^="account-"] {
    background:
        radial-gradient(circle at top left, rgba(215, 234, 214, 0.72), transparent 34%),
        radial-gradient(circle at top right, rgba(28, 62, 107, 0.08), transparent 28%),
        linear-gradient(180deg, #fcfaf6 0%, #f7f1e7 100%);
}

.account-shell {
    padding: 140px 0 72px;
}

.account-frame {
    width: min(1120px, 92vw);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.account-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(28, 62, 107, 0.96), rgba(16, 47, 85, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    border-radius: var(--account-radius-xl);
    box-shadow: var(--account-shadow);
    color: #f6fbff;
    padding: 34px;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.8fr);
}

.account-hero::before,
.account-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.account-hero::before {
    width: 240px;
    height: 240px;
    right: -70px;
    top: -90px;
    background: rgba(214, 235, 200, 0.18);
}

.account-hero::after {
    width: 180px;
    height: 180px;
    left: 42%;
    bottom: -110px;
    background: rgba(255, 255, 255, 0.08);
}

.account-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
    color: #dcefd2;
    margin-bottom: 12px;
}

.account-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: 0.65;
}

.account-hero h1,
.account-auth-intro h1 {
    text-align: left;
}

.account-hero h1 {
    font-size: clamp(3.2rem, 5.6vw, 4.8rem);
    line-height: 0.9;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: none;
    transform: none;
}

.account-order-title {
    font-family: Alice, Georgia, serif;
}

.account-shell h2,
.account-shell h3,
.account-auth-layout h2,
.account-auth-layout h3 {
    text-align: left;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: none;
    transform: none;
}

.account-subtitle {
    color: rgba(246, 251, 255, 0.84);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 58ch;
}

.account-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.account-chip,
.account-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    line-height: 1;
}

.account-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.account-chip--action {
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.account-chip--action:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.account-chip--panel {
    width: 100%;
    justify-content: flex-start;
}

.account-chip--pending {
    background: #f8ebc7;
    color: #8a6111;
    border: 1px solid rgba(138, 97, 17, 0.24);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.account-chip--pending:hover {
    transform: translateY(-1px);
    background: #f5e3b1;
    color: #724f0f;
    box-shadow: 0 8px 20px rgba(138, 97, 17, 0.14);
}

.account-badge {
    background: var(--account-cream);
    color: var(--account-ink);
    border: 1px solid rgba(36, 56, 72, 0.08);
}

.account-badge--success {
    background: #deefd1;
    color: #2c5a17;
}

.account-badge--warning {
    background: #f8ebc7;
    color: #8a6111;
}

.account-badge--danger {
    background: #f5d9d5;
    color: #8a3426;
}

.account-badge--neutral {
    background: var(--account-blue-soft);
    color: var(--account-blue);
}

.account-badge--count {
    background: var(--account-blue-soft);
    color: var(--account-blue);
}

.account-hero-panel {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #d5eac9, #f3f0e4);
    color: var(--account-blue-deep);
    font-family: Alice, Georgia, serif;
    font-size: 1.8rem;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-identity strong {
    display: block;
    font-size: 1.08rem;
    margin-bottom: 4px;
}

.account-identity p,
.account-hero-panel p {
    color: rgba(246, 251, 255, 0.82);
    line-height: 1.6;
}

.account-hero-actions,
.account-action-row,
.account-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.account-hero-actions--meta {
    margin-top: 14px;
}

.account-action-row--stacked {
    display: grid;
    gap: 10px;
}

.account-button,
.account-btn {
    appearance: none;
    border: none;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
    cursor: pointer;
    background: var(--account-blue-soft);
    color: var(--account-blue);
}

.account-button:hover,
.account-btn:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.account-tracking-actions {
    display: grid;
    gap: 10px;
}

.account-tracking-actions:not(.account-tracking-actions--inline) {
    min-width: min(100%, 340px);
}

.account-tracking-actions:not(.account-tracking-actions--inline) > .account-button,
.account-tracking-actions:not(.account-tracking-actions--inline) > .account-button-copy {
    min-width: min(100%, 340px);
}

.account-tracking-actions--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.account-tracking-actions--inline > .account-button,
.account-tracking-actions--inline > .account-button-copy {
    flex: 0 1 auto;
    min-width: 0;
}

.account-button-copy {
    position: relative;
    justify-content: center;
    padding-right: 52px;
    gap: 14px;
}

.account-button-copy__label {
    overflow-wrap: anywhere;
    width: 100%;
    text-align: center;
}

.account-button-copy__icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.account-button-copy__icon span {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
}

.account-button-copy__icon span:first-child {
    top: 4px;
    left: 4px;
    opacity: 0.7;
}

.account-button-copy__icon span:last-child {
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.18);
}

.account-button-primary,
.account-btn--primary {
    background: var(--account-sage-strong);
    color: #20361e;
    box-shadow: 0 10px 24px rgba(214, 235, 200, 0.28);
}

.account-button-secondary,
.account-btn--secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.account-button-danger,
.account-btn--danger {
    background: #b34a3a;
    color: #fff8f5;
}

.account-card {
    background: var(--account-panel);
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: var(--account-radius-lg);
    box-shadow: 0 12px 34px rgba(44, 56, 65, 0.07);
    padding: 28px;
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.account-card-header h2 {
    margin-bottom: 6px;
    color: var(--account-blue-deep);
    font-size: clamp(1.5rem, 2vw, 1.85rem);
}

.account-card-header p,
.account-card > p,
.account-muted {
    color: var(--account-muted);
    line-height: 1.75;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
}

.account-accordion {
    background: var(--account-panel);
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: var(--account-radius-lg);
    box-shadow: 0 12px 34px rgba(44, 56, 65, 0.07);
    overflow: hidden;
}

.account-accordion + .account-accordion {
    margin-top: 24px;
}

.account-accordion-summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 232, 0.86));
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.account-accordion-summary::-webkit-details-marker {
    display: none;
}

.account-accordion-summary:hover {
    background: linear-gradient(180deg, rgba(245, 238, 226, 0.98), rgba(236, 228, 215, 0.96));
}

.account-accordion-summary h2 {
    margin-bottom: 6px;
    color: var(--account-blue-deep);
    font-size: clamp(1.5rem, 2vw, 1.85rem);
}

.account-accordion-summary p {
    color: var(--account-muted);
    line-height: 1.7;
}

.account-accordion-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.account-accordion-caret {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--account-blue-soft);
    color: var(--account-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.18s ease, background 0.18s ease;
}

.account-accordion-caret::before {
    content: "\2193";
}

.account-accordion[open] .account-accordion-caret {
    transform: rotate(180deg);
    background: #d6ebc8;
}

.account-accordion[open] .account-accordion-caret::before {
    content: "\2191";
}

.account-accordion-body {
    padding: 0 28px 28px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.account-stats--single {
    grid-template-columns: minmax(260px, 380px);
}

.account-stat {
    background: var(--account-panel-strong);
    border: 1px solid var(--account-line-soft);
    border-radius: 18px;
    padding: 18px;
}

.account-stat--panel {
    display: grid;
    gap: 10px;
}

.account-stat--link {
    text-decoration: none;
    display: grid;
    gap: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.account-stat--link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(21, 48, 85, 0.12);
    border-color: rgba(214, 235, 200, 0.7);
    background: #ffffff;
}

.account-stat--soft {
    background: var(--account-blue-soft);
}

.account-stat--soft:hover {
    background: #f4f8fe;
}

.account-stat--soft .account-badge {
    background: rgba(28, 62, 107, 0.84);
    color: #f8fbff;
    border-color: rgba(21, 48, 85, 0.14);
}

.account-stat small {
    display: block;
    color: var(--account-muted);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.account-stat strong {
    color: var(--account-blue-deep);
    font-size: 1.4rem;
}

.account-stat-note {
    color: var(--account-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.account-stat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.account-stat-actions > .account-button:first-child {
    width: min(100%, 340px);
}

.account-stat-actions .account-tracking-actions > a.account-button,
.account-stat-actions .account-tracking-actions > .account-button-copy {
    border: 1px solid rgba(28, 62, 107, 0.72);
    box-shadow: inset 0 0 0 1px rgba(28, 62, 107, 0.08);
}

.account-copy-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 14px);
    background: rgba(21, 48, 85, 0.96);
    color: #f8fbff;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(21, 48, 85, 0.24);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    text-align: center;
    max-width: min(92vw, 560px);
}

.account-copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.account-form {
    display: grid;
    gap: 16px;
}

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

.account-address-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(140px, 0.6fr) minmax(180px, 1fr);
    gap: 14px;
    align-items: start;
}

.account-field,
.account-form label {
    display: grid;
    gap: 8px;
    color: var(--account-ink);
    font-weight: 600;
}

.account-form input,
.account-form textarea,
.account-form select,
.account-field input,
.account-field textarea {
    width: 100%;
    border: 1px solid var(--account-line);
    background: #fffdfa;
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--account-ink);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.account-form input:focus,
.account-form textarea:focus,
.account-form select:focus,
.account-field input:focus,
.account-field textarea:focus {
    outline: none;
    border-color: rgba(28, 62, 107, 0.34);
    box-shadow: 0 0 0 4px rgba(28, 62, 107, 0.10);
    background: #ffffff;
}

.account-form input[disabled] {
    background: #f4efe6;
    color: #78838a;
}

.account-form textarea {
    min-height: 140px;
    resize: vertical;
}

.account-phone-stack {
    display: grid;
    gap: 14px;
}

.account-field--compound {
    align-items: start;
}

.account-phone-grid {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.account-code-picker {
    position: relative;
    min-width: 0;
}

.account-code-picker-display {
    width: 100%;
    min-height: 52px;
    padding: 14px 14px;
    border: 1px solid var(--account-line);
    border-radius: 16px;
    background: #fffdfa;
    color: var(--account-ink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.account-code-picker select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.account-phone-input {
    min-width: 0;
}

.account-phone-input input {
    width: 100%;
}

.account-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.account-city-select {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--account-line);
    background: #fffdfa;
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--account-ink);
    font: inherit;
}

.account-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-height: 52px;
    line-height: 1.2;
    padding-right: 44px;
    background-color: #fffdfa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23556570' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 9px;
}

.account-select::-ms-expand {
    display: none;
}

.account-city-help {
    min-height: 1.2em;
}

.account-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--account-muted);
    font-weight: 500;
}

.account-form label.account-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    font-weight: 500;
    color: var(--account-muted);
}

.account-checkbox input {
    width: auto;
    margin: 0;
    accent-color: var(--account-blue);
    flex: 0 0 auto;
}

.account-checkbox span {
    line-height: 1.2;
}

.account-link {
    color: var(--account-blue);
    font-weight: 600;
}

.account-link:hover {
    color: var(--account-blue-deep);
}

.account-alert {
    border-radius: 18px;
    padding: 16px 18px;
    line-height: 1.7;
    border: 1px solid transparent;
}

.account-alert--success {
    background: #e8f5db;
    border-color: #d6ebc8;
    color: #2c5a17;
}

.account-alert--error {
    background: #f7e5e1;
    border-color: #e8c9c4;
    color: #8a3426;
}

.account-inline-errors p + p {
    margin-top: 4px;
}

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

.account-order-card {
    background: linear-gradient(180deg, #fffdfa, #fffaf2);
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 20px;
    padding: 20px;
    display: grid;
    gap: 16px;
}

.account-order-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.account-order-head h3 {
    font-size: 1.45rem;
    margin-bottom: 6px;
    color: var(--account-blue-deep);
    font-family: Roboto, "Segoe UI", sans-serif;
}

.account-order-copy p,
.account-order-mini {
    color: var(--account-muted);
    line-height: 1.65;
}

.account-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-empty {
    padding: 26px;
    background: linear-gradient(180deg, rgba(214, 235, 200, 0.28), rgba(214, 235, 200, 0.08));
    border-radius: 20px;
    border: 1px dashed rgba(28, 62, 107, 0.16);
    color: var(--account-muted);
}

.account-danger {
    background: linear-gradient(180deg, #fff9f8, #fdf1ef);
    border-color: rgba(179, 74, 58, 0.18);
}

.account-pill-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--account-blue-soft);
    color: var(--account-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-auth-intro .account-pill-note--checkout-return {
    justify-content: center;
    text-align: center;
    color: var(--account-blue-deep);
}

.account-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
}

.account-detail-grid > .account-accordion {
    align-self: start;
}

.account-detail-stack .account-card-header h2,
.account-accordion--detail .account-accordion-summary h2 {
    font-size: clamp(1.32rem, 1.7vw, 1.55rem);
}

.account-lines {
    display: grid;
    gap: 16px;
}

.account-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: #fffdfa;
    border-radius: 18px;
    border: 1px solid rgba(36, 56, 72, 0.08);
}

.account-line-media {
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: var(--account-cream);
    display: grid;
    place-items: center;
    color: var(--account-muted);
    font-size: 0.86rem;
    text-align: center;
}

.account-line-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-line-copy h3 {
    font-size: 1.28rem;
    margin-bottom: 6px;
    color: var(--account-blue-deep);
    font-family: Roboto, "Segoe UI", sans-serif;
}

.account-line-copy p {
    color: var(--account-muted);
    line-height: 1.65;
}

.account-line-price {
    text-align: right;
}

.account-line-price small {
    display: block;
    color: var(--account-muted);
    margin-bottom: 6px;
}

.account-line-price strong {
    font-size: 1.1rem;
    color: var(--account-blue-deep);
}

.account-detail-stack {
    display: grid;
    gap: 24px;
    align-content: start;
}

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

.account-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(36, 56, 72, 0.08);
    color: var(--account-muted);
}

.account-summary-row strong {
    color: var(--account-blue-deep);
    text-align: right;
}

.account-auth-layout {
    width: min(820px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-auth-layout--single {
    width: min(620px, 92vw);
    grid-template-columns: minmax(0, 1fr);
}

.account-auth-intro {
    background:
        radial-gradient(circle at top left, rgba(214, 235, 200, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(22, 52, 93, 0.96), rgba(17, 41, 72, 0.98));
    color: #f7fbff;
    position: relative;
    overflow: hidden;
}

.account-auth-intro::before,
.account-auth-intro::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.account-auth-intro::before {
    top: -86px;
    right: -58px;
    width: 210px;
    height: 210px;
    background: rgba(214, 235, 200, 0.18);
}

.account-auth-intro::after {
    right: 28%;
    bottom: -102px;
    width: 170px;
    height: 170px;
    background: rgba(255, 255, 255, 0.08);
}

.account-auth-intro h1,
.account-auth-intro h2 {
    color: #ffffff;
    text-shadow: none;
    transform: none;
}

.account-auth-intro p,
.account-auth-intro li {
    color: rgba(247, 251, 255, 0.82);
    line-height: 1.8;
}

.account-auth-intro ul {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.account-auth-intro li {
    position: relative;
    padding-left: 24px;
}

.account-auth-intro li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d6ebc8;
}

.account-auth-grid {
    display: grid;
    gap: 24px;
}

.account-auth-card {
    background: rgba(255, 253, 250, 0.96);
}

.account-auth-accordion {
    padding: 0;
    overflow: hidden;
}

.account-auth-summary {
    margin: 0;
    padding: 24px;
    cursor: pointer;
    list-style: none;
    transition: background 180ms ease;
}

.account-auth-summary::-webkit-details-marker {
    display: none;
}

.account-auth-summary:hover {
    background: rgba(28, 62, 107, 0.05);
}

.account-auth-accordion[open] .account-auth-summary {
    border-bottom: 1px solid var(--account-line-soft);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.account-auth-accordion[open] .account-accordion-caret {
    transform: rotate(180deg);
}

.account-auth-accordion > .account-google-button,
.account-auth-accordion > .account-auth-divider,
.account-auth-accordion > .account-form {
    margin-right: 24px;
    margin-left: 24px;
}

.account-auth-accordion > .account-google-button {
    width: calc(100% - 48px);
    margin-top: 24px;
}

.account-auth-accordion > .account-form {
    margin-bottom: 24px;
}

.account-auth-divider {
    position: relative;
    text-align: center;
    margin: 18px 0;
    color: var(--account-muted);
    font-size: 0.92rem;
}

.account-auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--account-line);
}

.account-google-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(36, 56, 72, 0.10);
    background: linear-gradient(180deg, #ffffff, #f8f4ed);
    color: var(--account-ink);
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 24px rgba(36, 56, 72, 0.08);
}

.account-google-button:hover {
    color: var(--account-blue-deep);
}

.account-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

@media (max-width: 960px) {
    .account-hero,
    .account-grid,
    .account-detail-grid,
    .account-auth-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-line {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .account-line-price {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .account-shell {
        padding: 118px 0 54px;
    }

    body[data-page="account-login"] .account-shell {
        padding: 70px 0 52px;
    }

    .account-frame,
    .account-auth-layout,
    .account-auth-layout--single {
        width: min(94vw, 100%);
    }

    .account-hero,
    .account-card {
        padding: 22px;
        border-radius: 22px;
    }

    .account-card.account-auth-accordion {
        padding: 0;
    }

    .account-auth-summary {
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }

    .account-auth-accordion > .account-google-button,
    .account-auth-accordion > .account-auth-divider,
    .account-auth-accordion > .account-form {
        margin-right: 20px;
        margin-left: 20px;
    }

    .account-auth-accordion > .account-google-button {
        width: calc(100% - 40px);
        margin-top: 20px;
    }

    .account-auth-accordion > .account-form {
        margin-bottom: 20px;
    }

    .account-stats,
    .account-form-grid,
    .account-address-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-phone-grid {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .account-order-head,
    .account-card-header,
    .account-accordion-summary,
    .account-hero-actions,
    .account-action-row,
    .account-inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-tracking-actions--inline {
        display: grid;
    }

    .account-line {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-line-media {
        width: min(180px, 100%);
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

body[data-page="checkout"],
body[data-page="order-show"],
body[data-page="payment-success"],
body[data-page="payment-cancel"] {
    background:
        radial-gradient(circle at top left, rgba(215, 234, 214, 0.72), transparent 34%),
        radial-gradient(circle at top right, rgba(28, 62, 107, 0.08), transparent 28%),
        linear-gradient(180deg, #fcfaf6 0%, #f7f1e7 100%);
}

.checkout-shell {
    padding: 140px 0 72px;
}

.checkout-frame {
    width: min(1120px, 92vw);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.checkout-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(28, 62, 107, 0.96), rgba(16, 47, 85, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    border-radius: var(--account-radius-xl);
    box-shadow: var(--account-shadow);
    color: #f6fbff;
    padding: 34px;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.checkout-hero::before,
.checkout-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.checkout-hero::before {
    width: 240px;
    height: 240px;
    right: -70px;
    top: -90px;
    background: rgba(214, 235, 200, 0.18);
}

.checkout-hero::after {
    width: 180px;
    height: 180px;
    left: 45%;
    bottom: -110px;
    background: rgba(255, 255, 255, 0.08);
}

.checkout-hero h1,
.checkout-card h2,
.checkout-card h3,
.checkout-result-card h2 {
    text-align: left;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: none;
    transform: none;
}

.checkout-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 0.95;
    margin-bottom: 12px;
    color: #ffffff;
}

.checkout-subtitle {
    color: rgba(246, 251, 255, 0.84);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 60ch;
}

.checkout-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.checkout-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.92rem;
    line-height: 1;
}

.checkout-side-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.checkout-side-card p {
    color: rgba(246, 251, 255, 0.84);
    line-height: 1.7;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 24px;
}

.checkout-card {
    background: var(--account-panel);
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: var(--account-radius-lg);
    box-shadow: 0 12px 34px rgba(44, 56, 65, 0.07);
    padding: 28px;
}

.checkout-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkout-card-header h2 {
    margin-bottom: 6px;
    color: var(--account-blue-deep);
    font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.checkout-card-header p,
.checkout-card > p,
.checkout-muted {
    color: var(--account-muted);
    line-height: 1.75;
}

.checkout-summary-list {
    display: grid;
    gap: 14px;
}

.checkout-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 16px 18px;
    background: linear-gradient(180deg, #fffdfa, #fffaf2);
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 18px;
}

.checkout-summary-item strong,
.checkout-summary-item h3 {
    color: var(--account-blue-deep);
}

.checkout-summary-item h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.checkout-summary-item p {
    color: var(--account-muted);
    line-height: 1.65;
}

.checkout-summary-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    color: var(--account-blue-deep);
}

.checkout-total-box {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f6f1e8;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--account-blue-deep);
}

.checkout-total-box strong {
    font-size: 1.25rem;
}

.checkout-form {
    display: grid;
    gap: 16px;
}

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

.checkout-address-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(140px, 0.6fr) minmax(180px, 1fr);
    gap: 14px;
    align-items: start;
}

.checkout-field {
    display: grid;
    gap: 8px;
    color: var(--account-ink);
    font-weight: 600;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
    width: 100%;
    border: 1px solid var(--account-line);
    background: #fffdfa;
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--account-ink);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus {
    outline: none;
    border-color: rgba(28, 62, 107, 0.34);
    box-shadow: 0 0 0 4px rgba(28, 62, 107, 0.10);
    background: #ffffff;
}

.checkout-field input[disabled] {
    background: #f4efe6;
    color: #78838a;
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.checkout-link {
    color: var(--account-blue);
    font-weight: 600;
}

.checkout-link:hover {
    color: var(--account-blue-deep);
}

.checkout-result-card {
    width: min(760px, 92vw);
    margin: 0 auto;
    background: var(--account-panel);
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: var(--account-radius-xl);
    box-shadow: 0 18px 42px rgba(44, 56, 65, 0.08);
    padding: 34px;
    display: grid;
    gap: 18px;
}

.checkout-result-card h1 {
    text-align: left;
    margin-bottom: 4px;
    text-shadow: none;
    transform: none;
}

.checkout-result-card p {
    color: var(--account-muted);
    line-height: 1.75;
}

.checkout-result-card .account-inline-actions {
    margin-top: 8px;
}

.checkout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 60;
}

.checkout-modal {
    width: min(520px, 100%);
    background: var(--account-panel);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(36, 56, 72, 0.08);
}

.checkout-modal h2 {
    margin-bottom: 12px;
    font-size: 1.55rem;
    color: var(--account-blue-deep);
}

.checkout-modal p {
    margin-bottom: 18px;
    color: var(--account-muted);
    line-height: 1.75;
}

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

@media (max-width: 960px) {
    .checkout-hero,
    .checkout-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .checkout-shell {
        padding: 118px 0 54px;
    }

    .checkout-frame,
    .checkout-result-card {
        width: min(94vw, 100%);
    }

    .checkout-hero,
    .checkout-card,
    .checkout-result-card,
    .checkout-modal {
        padding: 22px;
        border-radius: 22px;
    }

    .checkout-form-grid,
    .checkout-summary-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-total-box,
    .checkout-actions,
    .checkout-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-summary-price {
        text-align: left;
    }
}

body[data-page="checkout"] .checkout-shell,
body[data-page="order-show"] .checkout-shell,
body[data-page="payment-success"] .checkout-shell,
body[data-page="payment-cancel"] .checkout-shell {
    padding: 132px 0 68px;
}

.checkout-stage {
    width: min(1100px, 92vw);
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.checkout-top {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 246, 239, 0.96));
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(44, 56, 65, 0.08);
    padding: 26px 30px 30px;
}

.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #edf1f5;
    color: #556570;
    font-size: 0.92rem;
    font-weight: 600;
}

.checkout-step--active {
    background: #dcefd2;
    color: #234320;
}

.checkout-step--upcoming {
    background: #eaf1fb;
    color: #1c3e6b;
}

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

.checkout-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
    color: #72818a;
    margin-bottom: 10px;
}

.checkout-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

body[data-page="checkout"] h1,
body[data-page="order-show"] h1,
body[data-page="payment-success"] h1,
body[data-page="payment-cancel"] h1,
body[data-page="checkout"] h2,
body[data-page="order-show"] h2,
body[data-page="payment-success"] h2,
body[data-page="payment-cancel"] h2,
body[data-page="checkout"] h3,
body[data-page="order-show"] h3,
body[data-page="payment-success"] h3,
body[data-page="payment-cancel"] h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    text-shadow: none;
    transform: none;
    text-align: left;
    line-height: 1.1;
}

.checkout-top h1,
.checkout-status-card h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #16345d;
    margin-bottom: 12px;
}

.checkout-lead {
    color: #52616b;
    line-height: 1.8;
    max-width: 62ch;
}

.checkout-inline-auth {
    margin-top: 16px;
    color: #52616b;
    line-height: 1.7;
}

.checkout-inline-auth--flush {
    margin-top: 0;
}

.checkout-inline-auth a {
    color: #1c3e6b;
    font-weight: 700;
}

.checkout-trust-box {
    background: #fffdfa;
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 22px;
    padding: 18px 20px;
    display: grid;
    gap: 12px;
}

.checkout-trust-box h2 {
    font-size: 1.22rem;
    color: #16345d;
}

.checkout-trust-box ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.checkout-trust-box li {
    position: relative;
    padding-left: 18px;
    color: #556570;
    line-height: 1.6;
}

.checkout-trust-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64b300;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 24px;
    align-items: start;
}

.checkout-panel {
    background: #fffdfa;
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(44, 56, 65, 0.07);
    padding: 26px;
}

.checkout-panel--summary {
    position: sticky;
    top: 112px;
}

.checkout-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.checkout-panel-header h2 {
    font-size: 1.35rem;
    color: #16345d;
    margin-bottom: 6px;
}

.checkout-panel-header p,
.checkout-panel p,
.checkout-note {
    color: #556570;
    line-height: 1.75;
}

.checkout-summary-stack {
    display: grid;
    gap: 12px;
}

.checkout-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdfa, #fffaf2);
    border: 1px solid rgba(36, 56, 72, 0.08);
}

.checkout-summary-row h3 {
    font-size: 1.1rem;
    color: #16345d;
    margin-bottom: 4px;
}

.checkout-summary-row p {
    color: #556570;
    line-height: 1.6;
}

.checkout-summary-amount {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    color: #16345d;
}

.checkout-total {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f4ecdf;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #16345d;
}

.checkout-total strong {
    font-size: 1.22rem;
}

.checkout-summary-caption {
    margin-top: 14px;
    color: #70808a;
    font-size: 0.92rem;
    line-height: 1.65;
}

.checkout-panel .checkout-form {
    display: grid;
    gap: 16px;
}

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

.checkout-panel .checkout-field {
    display: grid;
    gap: 8px;
    color: #243848;
    font-weight: 600;
}

.checkout-panel .checkout-field input,
.checkout-panel .checkout-field textarea,
.checkout-panel .checkout-field select {
    width: 100%;
    border: 1px solid #dcd4c6;
    background: #fffdfa;
    border-radius: 16px;
    padding: 14px 16px;
    color: #243848;
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkout-panel .checkout-field input:focus,
.checkout-panel .checkout-field textarea:focus,
.checkout-panel .checkout-field select:focus {
    outline: none;
    border-color: rgba(28, 62, 107, 0.34);
    box-shadow: 0 0 0 4px rgba(28, 62, 107, 0.10);
    background: #ffffff;
}

.checkout-panel .checkout-field input[disabled] {
    background: #f4efe6;
    color: #78838a;
}

.checkout-submit-note {
    color: #6a7982;
    font-size: 0.92rem;
    line-height: 1.65;
}

.checkout-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.checkout-back-link {
    color: #1c3e6b;
    font-weight: 700;
}

.checkout-back-link:hover {
    color: #153055;
}

.checkout-status-card {
    width: min(760px, 92vw);
    margin: 0 auto;
    background: #fffdfa;
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(44, 56, 65, 0.08);
    padding: 34px;
    display: grid;
    gap: 16px;
}

.checkout-status-card p {
    color: #556570;
    line-height: 1.75;
}

.checkout-status-card .account-inline-actions {
    margin-top: 8px;
}

@media (max-width: 960px) {
    .checkout-top-grid,
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-panel--summary {
        position: static;
    }
}

@media (max-width: 640px) {
    body[data-page="checkout"] .checkout-shell,
    body[data-page="order-show"] .checkout-shell,
    body[data-page="payment-success"] .checkout-shell,
    body[data-page="payment-cancel"] .checkout-shell {
        padding: 116px 0 54px;
    }

    .checkout-stage,
    .checkout-status-card {
        width: min(94vw, 100%);
    }

    .checkout-top,
    .checkout-panel,
    .checkout-status-card,
    .checkout-modal {
        padding: 22px;
        border-radius: 22px;
    }

    .checkout-panel .checkout-form-grid,
    .checkout-summary-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-total,
    .checkout-form-actions,
    .checkout-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-summary-amount {
        text-align: left;
    }

}

/* Conversion-focused checkout refresh */
body[data-page="checkout"],
body[data-page="order-show"],
body[data-page="payment-success"],
body[data-page="payment-cancel"] {
    background:
        radial-gradient(circle at top right, rgba(140, 169, 93, 0.10), transparent 32%),
        linear-gradient(180deg, #fbf7f0 0%, #f3ecdf 100%);
}

body[data-page="checkout"] .checkout-shell,
body[data-page="order-show"] .checkout-shell,
body[data-page="payment-success"] .checkout-shell,
body[data-page="payment-cancel"] .checkout-shell {
    padding: 128px 0 68px;
}

.checkout-stage--conversion {
    width: min(1120px, 92vw);
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.checkout-flowbar {
    display: grid;
    gap: 18px;
    padding: 28px 32px;
    background: rgba(255, 252, 247, 0.92);
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(45, 39, 31, 0.06);
}

.checkout-flowbar-copy {
    display: grid;
    gap: 10px;
    max-width: 72ch;
}

.checkout-flowbar h1,
.checkout-status-card h1,
.checkout-panel h2,
.checkout-panel h3,
.checkout-modal h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    text-align: left;
    text-shadow: none;
    transform: none;
}

.checkout-flowbar h1,
.checkout-status-card h1 {
    font-size: clamp(2.1rem, 3vw, 3rem);
    line-height: 1;
    color: #14314e;
    margin-bottom: 0;
}

.checkout-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7a6652;
    margin-bottom: 0;
}

.checkout-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.checkout-lead,
.checkout-inline-auth,
.checkout-panel p,
.checkout-summary-caption,
.checkout-status-card p,
.checkout-modal p {
    color: #5f6c73;
    line-height: 1.7;
}

.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    background: #ebe4d9;
    color: #6f6557;
}

.checkout-step--active {
    background: #d9e8c8;
    color: #27431e;
}

.checkout-step--upcoming {
    background: #edf2f7;
    color: #244266;
}

.checkout-assurance-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.checkout-assurance {
    background: rgba(255, 252, 247, 0.86);
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 18px;
    padding: 18px 20px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.checkout-assurance-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-assurance strong {
    color: #14314e;
    font-size: 0.98rem;
}

.checkout-assurance-copy {
    color: #5f6c73;
    line-height: 1.6;
    font-size: 0.94rem;
}

.checkout-assurance span {
    color: #5f6c73;
    line-height: 1.6;
    font-size: 0.94rem;
}

.checkout-assurance-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: rgba(20, 49, 78, 0.08);
    color: #14314e;
    font-size: 1rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 22px;
    align-items: start;
}

.checkout-panel {
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(45, 39, 31, 0.06);
    padding: 28px;
}

.checkout-panel--summary {
    position: sticky;
    top: 112px;
    background:
        linear-gradient(180deg, rgba(244, 236, 223, 0.92), rgba(255, 252, 247, 0.98));
}

.checkout-panel-header {
    margin-bottom: 18px;
}

.checkout-panel-header--stacked {
    display: block;
}

.checkout-panel-kicker {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7a6652;
    margin-bottom: 8px;
}

.checkout-panel h2 {
    font-size: 1.48rem;
    line-height: 1.1;
    color: #14314e;
    margin-bottom: 6px;
}

.checkout-block + .checkout-block {
    margin-top: 18px;
}

.checkout-block {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: #fffdf9;
    border: 1px solid rgba(36, 56, 72, 0.08);
}

.checkout-block-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.checkout-block-index {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #14314e;
    color: #fffdf9;
    font-size: 0.92rem;
    font-weight: 700;
}

.checkout-block h2 {
    font-size: 1.28rem;
    margin-bottom: 4px;
}

.checkout-delivery-choice {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(20, 49, 78, 0.10);
    border-radius: 16px;
    background: rgba(234, 241, 251, 0.42);
}

.checkout-delivery-choice p {
    margin: 0;
    color: #14314e;
    font-weight: 700;
    line-height: 1.55;
}

.checkout-relay-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #465863;
    font-weight: 600;
    line-height: 1.45;
}

.checkout-relay-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #14314e;
}

.checkout-form {
    display: grid;
    gap: 18px;
}

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

.checkout-phone-stack {
    display: grid;
    gap: 14px;
}

.checkout-field--compound {
    align-items: start;
}

.checkout-phone-grid {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.checkout-phone-input {
    min-width: 0;
}

.checkout-phone-input input {
    width: 100%;
}

.checkout-code-picker {
    position: relative;
    min-width: 0;
}

.checkout-code-picker-display {
    width: 100%;
    min-height: 52px;
    padding: 14px 14px;
    border: 1px solid #d7cfbf;
    border-radius: 16px;
    background: #fffdfa;
    color: #243848;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.checkout-code-picker select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.checkout-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkout-field small {
    font-size: 0.82rem;
    color: #73828a;
    font-weight: 500;
}

.checkout-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-height: 52px;
    line-height: 1.2;
    padding-right: 44px;
    background-color: #fffdfa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23556570' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 9px;
}

.checkout-select::-ms-expand {
    display: none;
}

.checkout-city-select {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #d7cfbf;
    background: #fffdfa;
    border-radius: 14px;
    padding: 12px 14px;
    color: #243848;
    font: inherit;
}

.checkout-city-help {
    min-height: 1.2em;
}

.checkout-autocomplete { position: relative; min-width: 0; }
.checkout-address-suggestions[hidden] { display: none; }
.checkout-address-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 5px;
    list-style: none;
    border: 1px solid #d7cfbf;
    border-radius: 12px;
    background: #fffdfa;
    box-shadow: 0 8px 24px rgba(20, 49, 78, .14);
    color: #243848;
    font-size: .9rem;
    font-weight: 400;
}
.checkout-address-suggestions > li {
    padding: 10px 11px;
    border-radius: 7px;
    cursor: pointer;
    overflow-wrap: anywhere;
    line-height: 1.4;
}
.checkout-address-suggestions > li:hover,
.checkout-address-suggestions > li[aria-selected="true"] { background: #eee9df; }

.checkout-field {
    display: grid;
    gap: 8px;
    color: #243848;
    font-weight: 600;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
    width: 100%;
    border: 1px solid #d7cfbf;
    background: #fffdfa;
    border-radius: 16px;
    padding: 14px 16px;
    color: #243848;
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus {
    outline: none;
    border-color: rgba(20, 49, 78, 0.34);
    box-shadow: 0 0 0 4px rgba(20, 49, 78, 0.10);
    background: #ffffff;
}

.checkout-field input[disabled] {
    background: #f4efe6;
    color: #78838a;
}

.checkout-inline-auth a,
.checkout-back-link {
    color: #14314e;
    font-weight: 700;
}

.checkout-decision-box {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f4ecdf, #fbf7f0);
    border: 1px solid rgba(36, 56, 72, 0.08);
}

.checkout-decision-box h3 {
    font-size: 1.16rem;
    color: #14314e;
    margin-bottom: 6px;
}

.checkout-submit-note {
    font-size: 0.94rem;
}

.checkout-form-actions,
.checkout-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.checkout-delivery-estimate {
    display: block;
    width: 100%;
    text-align: center;
    color: #14314e;
    font-size: 1rem;
    line-height: 1.4;
}

.checkout-action-stack {
    display: grid;
}

.checkout-button {
    appearance: none;
    border: none;
    text-decoration: none;
    min-height: 50px;
    padding: 13px 20px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.checkout-button:hover {
    transform: translateY(-1px);
}

.checkout-button--primary {
    background: #14314e;
    color: #fffdf9;
    box-shadow: 0 14px 26px rgba(20, 49, 78, 0.16);
}

.checkout-button--primary:hover {
    background: #102a42;
    color: #fffdf9;
}

.checkout-button--secondary {
    background: #efe6d8;
    color: #14314e;
    border: 1px solid rgba(20, 49, 78, 0.08);
}

.checkout-button--secondary:hover {
    background: #e9ddcc;
    color: #102a42;
}

.checkout-summary-stack {
    display: grid;
    gap: 12px;
}

.checkout-summary-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(36, 56, 72, 0.08);
    background: rgba(255, 253, 249, 0.68);
    border-radius: 18px;
}

.checkout-summary-row:last-child {
    border-bottom: 0;
}

.checkout-summary-media {
    width: 74px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #f4ecdf;
    display: grid;
    place-items: center;
    color: #7a6652;
    font-size: 0.78rem;
    text-align: center;
}

.checkout-summary-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-summary-copy h3 {
    font-size: 1.06rem;
    color: #14314e;
    margin-bottom: 4px;
}

.checkout-summary-copy p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #5f6c73;
}

.checkout-qty-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ede5d8;
    color: #14314e;
    font-size: 0.82rem;
    font-weight: 700;
}

.checkout-summary-amount {
    white-space: nowrap;
    font-size: 0.96rem;
    font-weight: 700;
    color: #14314e;
}

.checkout-total {
    margin-top: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #14314e;
    color: #fffdf9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.checkout-total strong {
    font-size: 1.3rem;
}

.checkout-total--top {
    margin-top: 0;
    margin-bottom: 14px;
}

.checkout-coupon-box {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid rgba(20, 49, 78, 0.10);
    border-radius: 18px;
    background: rgba(234, 241, 251, 0.46);
}

.checkout-coupon-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.checkout-coupon-head strong {
    color: #14314e;
}

.checkout-coupon-head span {
    color: #5d6d77;
    font-size: 0.92rem;
}

.checkout-coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.checkout-coupon-row input {
    min-width: 0;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(20, 49, 78, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #14314e;
    text-transform: uppercase;
}

.checkout-coupon-feedback {
    min-height: 20px;
    margin-top: 10px;
    color: #70808a;
    font-size: 0.92rem;
}

.checkout-coupon-feedback.is-success {
    color: #255c2f;
}

.checkout-coupon-feedback.is-error {
    color: #9b3e2d;
}

.checkout-total-breakdown {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.checkout-total-breakdown__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #70808a;
    font-size: 0.94rem;
}

.checkout-total-breakdown__row strong {
    color: #14314e;
}

.checkout-total-breakdown__row.is-hidden {
    display: none;
}

.checkout-summary-caption {
    margin-top: 12px;
    font-size: 0.92rem;
}

.checkout-summary-support {
    margin-top: 18px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.84);
    border: 1px solid rgba(36, 56, 72, 0.08);
    display: grid;
    gap: 6px;
}

.checkout-summary-support strong {
    color: #14314e;
}

.checkout-top-grid--order {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 20px;
}

.checkout-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.checkout-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f1e8da;
    border: 1px solid rgba(36, 56, 72, 0.08);
    color: #14314e;
    font-size: 0.88rem;
    font-weight: 700;
}

.checkout-trust-box {
    background: #fffdf9;
    border: 1px solid rgba(36, 56, 72, 0.08);
    border-radius: 18px;
    padding: 18px;
}

.checkout-trust-box h2 {
    font-size: 1.14rem;
    margin-bottom: 10px;
}

.checkout-trust-box ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.checkout-trust-box li {
    position: relative;
    padding-left: 16px;
    color: #5f6c73;
    line-height: 1.55;
}

.checkout-trust-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8cab5d;
}

.checkout-status-card {
    width: min(760px, 92vw);
    margin: 0 auto;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid rgba(36, 56, 72, 0.08);
    box-shadow: 0 18px 36px rgba(45, 39, 31, 0.07);
    display: grid;
    gap: 16px;
}

.checkout-status-card--success {
    background:
        linear-gradient(180deg, rgba(232, 242, 224, 0.9), rgba(255, 252, 247, 0.98));
}

.checkout-status-card--cancel {
    background:
        linear-gradient(180deg, rgba(247, 236, 224, 0.9), rgba(255, 252, 247, 0.98));
}

.checkout-status-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-status-points span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(36, 56, 72, 0.08);
    color: #14314e;
    font-weight: 600;
    font-size: 0.9rem;
}

.checkout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 28, 38, 0.46);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 60;
}

.checkout-modal {
    width: min(520px, 100%);
    background: rgba(255, 252, 247, 0.98);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 70px rgba(18, 28, 38, 0.22);
    border: 1px solid rgba(36, 56, 72, 0.08);
}

.checkout-modal h2 {
    font-size: 1.45rem;
    color: #14314e;
    margin-bottom: 12px;
}

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

@media (max-width: 960px) {
    .checkout-assurance-strip,
    .checkout-top-grid--order,
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-panel--summary {
        position: static;
    }
}

@media (max-width: 640px) {
    body[data-page="checkout"] .checkout-shell,
    body[data-page="order-show"] .checkout-shell,
    body[data-page="payment-success"] .checkout-shell,
    body[data-page="payment-cancel"] .checkout-shell {
        padding: 70px 0 52px;
    }

    .checkout-stage--conversion,
    .checkout-status-card {
        width: min(94vw, 100%);
    }

    .checkout-flowbar,
    .checkout-panel,
    .checkout-status-card,
    .checkout-modal,
    .checkout-block,
    .checkout-decision-box {
        padding: 22px;
        border-radius: 22px;
    }

    .checkout-form-grid,
    .checkout-address-grid,
    .checkout-summary-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-phone-grid {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .checkout-total,
    .checkout-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-coupon-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-summary-media {
        width: 86px;
    }

    .checkout-summary-amount {
        text-align: left;
    }

    .checkout-assurance-strip {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 18px 20px;
        border: 1px solid rgba(36, 56, 72, 0.08);
        border-radius: 18px;
        background: rgba(255, 252, 247, 0.86);
    }

    .checkout-assurance {
        padding: 0;
        gap: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .checkout-assurance + .checkout-assurance {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(36, 56, 72, 0.08);
    }

    .checkout-assurance-copy {
        display: none;
    }
}
