/* ========================================================= */
/* JOLIE CAPRICIEUSE PARIS                                  */
/* FILE : frontend/css/customer.css                         */
/* VERSION : CUSTOMER PAGES V1.2                            */
/* OBJECTIF : PAGES CLIENT + PAGES LEGALES STANDARDISEES    */
/* ========================================================= */

.jcp-solid-header-page {
    background: #FFFFFF;
    color: #111111;
}

.jcp-solid-header-page .header.header-full,
.jcp-solid-header-page .header.header-hover,
.jcp-solid-header-page .header.header-compact,
.jcp-solid-header-page .header {
    color: #111111;
}

.jcp-solid-header-page .header .header-overlay,
.jcp-solid-header-page .header.header-full .header-overlay,
.jcp-solid-header-page .header.header-hover .header-overlay,
.jcp-solid-header-page .header.header-compact .header-overlay {
    background-color: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #EAE4DD;
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.04);
}

.jcp-solid-header-page .header a,
.jcp-solid-header-page .header button,
.jcp-solid-header-page .header svg,
.jcp-solid-header-page .header input {
    color: #111111;
}

.jcp-solid-header-page .header input::placeholder {
    color: rgba(17, 17, 17, 0.48);
}

.customer-page-shell {
    width: min(1680px, calc(100% - 12px));
    margin: 0 auto;
    padding: 12px 0 96px;
}

.customer-page-kicker {
    margin: 0 0 14px;
    color: #9B773B;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.customer-page-title {
    margin: 0;
    color: #111111;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: clamp(48px, 5vw, 86px);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.customer-page-intro {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(17, 17, 17, 0.66);
    font-size: 16px;
    line-height: 1.75;
}

.customer-card {
    background: #FFFCFA;
    border: 1px solid rgba(198, 160, 98, 0.20);
    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.055);
}

.customer-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    margin-top: 12px;
    align-items: start;
}

.customer-section-title {
    margin: 0 0 22px;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.customer-muted {
    color: rgba(17, 17, 17, 0.62);
}

.cart-lines {
    display: grid;
    gap: 8px;
}

.cart-line {
    display: grid;
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid rgba(198, 160, 98, 0.18);
}

.cart-line img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    background: #F8F4F1;
}

.cart-line h3 {
    margin: 0 0 8px;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: 28px;
    font-weight: 600;
}

.cart-line p {
    margin: 0;
    color: rgba(17, 17, 17, 0.64);
    font-size: 14px;
}

.cart-line-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.cart-qty-button,
.cart-remove-button {
    min-width: 34px;
    min-height: 34px;
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: #FFFFFF;
    color: #111111;
    cursor: pointer;
}

.cart-remove-button {
    padding: 0 2px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.cart-line-total {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.cart-summary {
    position: sticky;
    top: 132px;
    padding: 28px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    font-size: 14px;
}

.cart-summary-total {
    font-size: 20px;
    font-weight: 800;
}

.jcp-primary-button,
.jcp-secondary-button {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    border: 1px solid #111111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.jcp-primary-button {
    background: #111111;
    color: #FFFFFF;
}

.jcp-secondary-button {
    background: transparent;
    color: #111111;
}

.customer-form {
    display: grid;
    gap: 18px;
    margin-top: 48px;
    padding: 32px;
}

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

.customer-form label {
    display: grid;
    gap: 8px;
    color: rgba(17, 17, 17, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.customer-form input,
.customer-form select,
.customer-form textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: #FFFFFF;
    padding: 0 14px;
    color: #111111;
    font: inherit;
}

.customer-form textarea {
    min-height: 120px;
    padding-top: 14px;
    resize: vertical;
}

/* ========================================================= */
/* CUSTOMER ACCOUNT — DASHBOARD V2                           */
/* ========================================================= */

.customer-account-intro {
    padding: 118px 0 0;
}

.customer-account-intro .customer-page-title {
    font-size: clamp(52px, 4vw, 72px);
}

.customer-account-welcome {
    margin: 14px 0 0;
    color: rgba(17, 17, 17, 0.58);
    font-size: 15px;
    line-height: 1.7;
}

.customer-dashboard-v2 {
    margin-top: 58px;
    padding: 0;
}

.customer-dashboard-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.customer-v2-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    padding: 34px 36px 32px;
    background:
        linear-gradient(
            120deg,
            rgba(245, 237, 231, 0.58) 0%,
            rgba(255, 252, 250, 0.96) 54%,
            #FFFFFF 100%
        );
    border: 1px solid rgba(155, 119, 59, 0.14);
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.035);
}

.customer-v2-kicker {
    margin: 0 0 12px;
    color: #9B773B;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.customer-v2-title,
.customer-v2-club-title {
    margin: 0;
    color: #111111;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: clamp(34px, 2.8vw, 48px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.customer-v2-identity {
    margin-top: 30px;
}

.customer-v2-name {
    display: block;
    color: #111111;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.customer-v2-email {
    display: block;
    margin-top: 5px;
    color: rgba(17, 17, 17, 0.56);
    font-size: 13px;
}

.customer-v2-description {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(17, 17, 17, 0.60);
    font-size: 14px;
    line-height: 1.7;
}

.customer-v2-links-copy {
    margin-top: 14px;
    color: rgba(17, 17, 17, 0.54);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.customer-v2-order-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.customer-v2-order-summary > div {
    min-height: 88px;
    padding: 16px 18px;
    background: #FAF8F6;
    border: 1px solid rgba(17, 17, 17, 0.06);
}

.customer-v2-order-summary span {
    display: block;
    margin-bottom: 10px;
    color: rgba(17, 17, 17, 0.44);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.customer-v2-order-summary strong {
    display: block;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
}

.customer-v2-action {
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 18px;
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: transparent;
    color: #111111;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.customer-v2-action:hover,
.customer-v2-action:focus-visible {
    background: #111111;
    border-color: #111111;
    color: #FFFFFF;
    outline: none;
}

.customer-v2-action span:last-child {
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
}

.customer-v2-club {
    margin-top: 22px;
    padding: 38px 40px 34px;
    background:
        linear-gradient(
            120deg,
            rgba(245, 237, 231, 0.82) 0%,
            rgba(255, 252, 250, 0.98) 54%,
            #FFFFFF 100%
        );
    border: 1px solid rgba(155, 119, 59, 0.18);
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.04);
}

.customer-v2-club-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.customer-v2-club-tier {
    min-width: 160px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.customer-v2-club-tier span {
    display: block;
    margin-bottom: 6px;
    color: rgba(17, 17, 17, 0.44);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.customer-v2-club-tier strong {
    display: block;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
}

.customer-v2-club-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
    align-items: end;
    margin-top: 36px;
}

.customer-v2-points strong {
    display: block;
    color: #111111;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: clamp(64px, 6vw, 94px);
    font-weight: 500;
    line-height: 0.82;
    letter-spacing: -0.055em;
}

.customer-v2-points span {
    display: block;
    margin-top: 12px;
    color: #9B773B;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.customer-v2-progress-wrap {
    min-width: 0;
}

.customer-v2-progress-head,
.customer-v2-progress-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.customer-v2-progress-head {
    margin-bottom: 10px;
    color: rgba(17, 17, 17, 0.52);
    font-size: 10px;
}

.customer-v2-progress-head strong {
    color: #111111;
    font-weight: 700;
}

.customer-v2-progress-track {
    position: relative;
    height: 5px;
    overflow: hidden;
    background: rgba(17, 17, 17, 0.10);
}

.customer-v2-progress-value {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: #9B773B;
}

.customer-v2-progress-scale {
    margin-top: 8px;
    color: rgba(17, 17, 17, 0.42);
    font-size: 9px;
}

.customer-v2-progress-copy {
    margin: 14px 0 0;
    color: rgba(17, 17, 17, 0.56);
    font-size: 12px;
    line-height: 1.6;
}

.customer-v2-club-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
    align-items: center;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(17, 17, 17, 0.10);
}

.customer-v2-club-footer > span {
    color: rgba(17, 17, 17, 0.56);
    font-size: 11px;
    font-weight: 600;
}

.customer-v2-action--club {
    margin-top: 0;
}

/* ========================================================= */
/* CUSTOMER ACCOUNT V2 — RESPONSIVE                          */
/* ========================================================= */

@media screen and (max-width: 980px) {
    .customer-dashboard-v2-grid {
        grid-template-columns: 1fr;
    }

    .customer-v2-club-body {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 30px;
    }

    .customer-v2-club-footer {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 640px) {
    .customer-account-intro {
        padding-top: 92px;
    }

    .customer-account-intro .customer-page-title {
        font-size: 48px;
    }

    .customer-dashboard-v2 {
        margin-top: 42px;
    }

    .customer-v2-card {
        min-height: 0;
        padding: 28px 22px 24px;
    }

    .customer-v2-order-summary {
        grid-template-columns: 1fr;
    }

    .customer-v2-club {
        padding: 28px 22px 24px;
    }

    .customer-v2-club-head {
        flex-direction: column;
    }

    .customer-v2-club-tier {
        width: 100%;
        min-width: 0;
    }

    .customer-v2-club-body {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .customer-v2-points strong {
        font-size: 72px;
    }
}


/* ========================================================= */
/* LEGAL PAGES TYPOGRAPHY                                    */
/* ========================================================= */

.legal-section {
    margin-bottom: 58px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section-heading {
    margin-bottom: 42px;
}

.legal-section .customer-section-title {
    margin-bottom: 20px;
}

.legal-section .customer-muted {
    margin-bottom: 12px;
    line-height: 1.85;
}

.legal-section .customer-muted:last-child {
    margin-bottom: 0;
}

/* ========================================================= */
/* RESPONSIVE                                                */
/* ========================================================= */

@media screen and (max-width: 1180px) {
    .customer-grid-2 {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: relative;
        top: auto;
    }
}

@media screen and (max-width: 760px) {
    .customer-account-intro {
        padding-top: 92px;
    }

    .customer-dashboard-panel-index {
        display: none;
    }
}

@media screen and (max-width: 640px) {
    .customer-page-shell {
        width: calc(100% - 34px);
        padding-top: 34px;
        padding-bottom: 72px;
    }

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

    .cart-line img {
        width: 96px;
        height: 96px;
    }

    .cart-line-total {
        grid-column: 1 / -1;
    }

    .customer-form-grid {
        grid-template-columns: 1fr;
    }

    .legal-section {
        margin-bottom: 46px;
    }

    .legal-section .customer-section-title {
        font-size: 32px;
        margin-bottom: 18px;
    }

    .legal-section .customer-muted {
        line-height: 1.75;
    }
}

/* ========================================================= */
/* JOLIE CAPRICIEUSE PARIS                                  */
/* CUSTOMER ACCOUNT — COMPACT REMASTER                      */
/* ========================================================= */

.jcp-solid-header-page {
    --customer-compact-width: 980px;
    --customer-compact-border: rgba(17, 17, 17, 0.10);
    --customer-compact-muted: rgba(17, 17, 17, 0.58);
    --customer-compact-gold: #9B773B;
    --customer-compact-soft: #FAF8F6;
    --customer-account-header-space: 285px;
}

.customer-account-view[hidden],
.customer-dashboard-v2[hidden],
.customer-account-intro[hidden] {
    display: none !important;
}

.customer-account-view--compact {
    width: min(var(--customer-compact-width), 100%);
    margin: 0 auto;
    padding: var(--customer-account-header-space) 0 54px;
    box-sizing: border-box;
}

.customer-compact-header {
    margin-bottom: 18px;
}

.customer-account-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111111;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.customer-account-back span:first-child {
    font-size: 18px;
    font-weight: 400;
    transition: transform 160ms ease;
}

.customer-account-back:hover span:first-child,
.customer-account-back:focus-visible span:first-child {
    transform: translateX(-3px);
}

.customer-compact-header .customer-v2-kicker {
    margin-bottom: 8px;
}

.customer-compact-header h1 {
    margin: 0;
    font-family: "MontSerrat", serif;
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.customer-compact-header > p:last-child {
    max-width: 620px;
    margin: 13px 0 0;
    color: var(--customer-compact-muted);
    font-size: 14px;
    line-height: 1.6;
}

.customer-compact-panel {
    background: #FFFFFF;
    border-top: 1px solid var(--customer-compact-border);
    border-bottom: 1px solid var(--customer-compact-border);
}

.customer-compact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 26px 2px;
    border-bottom: 1px solid var(--customer-compact-border);
}

.customer-compact-row-copy {
    min-width: 0;
}

.customer-compact-label {
    display: block;
    margin-bottom: 7px;
    color: var(--customer-compact-gold);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.customer-compact-primary {
    display: block;
    color: #111111;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.05;
}

.customer-compact-secondary,
.customer-compact-meta {
    display: block;
    margin-top: 5px;
    color: var(--customer-compact-muted);
    font-size: 13px;
    line-height: 1.5;
}

.customer-compact-meta {
    font-size: 12px;
}

.customer-compact-action {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: #111111;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.customer-compact-action span:last-child {
    font-size: 16px;
    font-weight: 400;
}

.customer-compact-row--preferences {
    grid-template-columns: minmax(0, 1fr) 260px;
}

.customer-preference-toggles {
    display: grid;
    gap: 4px;
}

.customer-preference-toggle {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111111;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.customer-preference-indicator {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: #292929;
    border: 1px solid rgba(17, 17, 17, 0.18);
    box-shadow: inset 0 0 0 3px #FFFFFF;
    transition: background-color 140ms ease, border-color 140ms ease;
}

.customer-preference-toggle[aria-pressed="true"] .customer-preference-indicator {
    background: #2F7D50;
    border-color: #2F7D50;
}

.customer-preference-toggle.is-saving {
    opacity: 0.55;
    pointer-events: none;
}

.customer-preference-feedback {
    grid-column: 1 / -1;
    min-height: 16px;
    margin: -10px 0 0;
    color: var(--customer-compact-muted);
    font-size: 11px;
}

.customer-compact-details {
    border-bottom: 1px solid var(--customer-compact-border);
}

.customer-compact-details > summary {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 26px 2px;
    cursor: pointer;
}

.customer-compact-details > summary::-webkit-details-marker {
    display: none;
}

.customer-compact-details-action {
    color: #111111;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-security-details {
    padding: 0 0 26px;
}

.customer-security-email-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    background: var(--customer-compact-soft);
    font-size: 12px;
}

.customer-security-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.customer-security-actions button,
.customer-compact-links button {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: #FFFFFF;
    color: #111111;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.customer-security-actions button.is-danger {
    color: #9E2828;
    border-color: rgba(158, 40, 40, 0.25);
}

.customer-orders-panel,
.customer-loyalty-panel {
    border-top: 1px solid var(--customer-compact-border);
}

.customer-orders-group {
    padding: 24px 0;
    border-bottom: 1px solid var(--customer-compact-border);
}

.customer-orders-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.customer-orders-group-head .customer-compact-label {
    margin: 0;
}

.customer-orders-group-head strong {
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: 25px;
    font-weight: 500;
}

.customer-orders-list {
    display: grid;
}

.customer-orders-list:empty::before {
    content: "Aucune commande à afficher.";
    display: block;
    padding: 18px 0 4px;
    color: var(--customer-compact-muted);
    font-size: 13px;
}

.customer-order-compact-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto auto;
    gap: 24px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(17, 17, 17, 0.07);
}

.customer-order-compact-card:first-child {
    border-top: 0;
}

.customer-order-compact-number {
    display: block;
    font-weight: 700;
}

.customer-order-compact-date,
.customer-order-compact-status {
    color: var(--customer-compact-muted);
    font-size: 12px;
}

.customer-order-compact-status {
    color: #111111;
    font-weight: 700;
}

.customer-loyalty-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 28px 0 22px;
}

.customer-loyalty-summary strong {
    display: block;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: 38px;
    font-weight: 500;
}

.customer-loyalty-progress {
    padding: 22px 0;
    border-top: 1px solid var(--customer-compact-border);
}

.customer-loyalty-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    color: var(--customer-compact-muted);
    font-size: 11px;
}

.customer-loyalty-progress p {
    margin: 12px 0 0;
    color: var(--customer-compact-muted);
    font-size: 12px;
}

.customer-compact-links {
    display: grid;
    border-top: 1px solid var(--customer-compact-border);
}

.customer-compact-links button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-width: 0 0 1px;
    border-color: var(--customer-compact-border);
    padding: 0;
    background: transparent;
    text-align: left;
}

@media screen and (max-width: 1180px) {
    .jcp-solid-header-page {
        --customer-account-header-space: 230px;
    }
}

@media screen and (max-width: 760px) {
    .jcp-solid-header-page {
        --customer-account-header-space: 102px;
    }

    .customer-account-view--compact {
        width: 100%;
        padding-top: var(--customer-account-header-space);
        padding-bottom: 34px;
    }

    .customer-compact-header {
        margin-bottom: 10px;
    }

    .customer-account-back {
        margin-bottom: 22px;
    }

    .customer-compact-header h1 {
        font-size: 42px;
    }

    .customer-compact-header > p:last-child {
        font-size: 13px;
    }

    .customer-compact-row,
    .customer-compact-row--preferences,
    .customer-compact-details > summary {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 0;
    }

    .customer-compact-primary {
        font-size: 25px;
    }

    .customer-compact-action,
    .customer-compact-details-action {
        justify-self: start;
    }

    .customer-preference-toggles {
        width: 100%;
    }

    .customer-preference-toggle {
        min-height: 38px;
    }

    .customer-preference-feedback {
        margin: 0;
    }

    .customer-security-email-line {
        display: grid;
        gap: 5px;
    }

    .customer-security-actions {
        grid-template-columns: 1fr;
    }

    .customer-orders-group-head {
        display: block;
    }

    .customer-orders-group-head strong {
        display: block;
        margin-top: 5px;
    }

    .customer-order-compact-card {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 15px 0;
    }

    .customer-loyalty-summary {
        gap: 16px;
    }
}

@media screen and (max-width: 480px) {
    .customer-loyalty-summary {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================================= */
/* CUSTOMER CORE — INLINE EDITORS V1                         */
/* ========================================================= */

.customer-inline-editor,
.customer-address-manager {
    margin: 0;
    padding: 22px 0 26px;
    border-bottom: 1px solid var(--customer-compact-border, rgba(17,17,17,.10));
}

.customer-inline-editor[hidden],
.customer-address-manager[hidden],
.customer-address-form[hidden] {
    display: none !important;
}

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

.customer-inline-grid label,
.customer-checkbox-line {
    display: grid;
    gap: 7px;
}

.customer-inline-grid label > span,
.customer-checkbox-line > span {
    color: rgba(17, 17, 17, 0.62);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.customer-inline-grid input,
.customer-inline-grid select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: #FFFFFF;
    color: #111111;
    font: 500 13px/1.2 "Inter", sans-serif;
}

.customer-inline-grid input:focus,
.customer-inline-grid select:focus {
    outline: 1px solid #A77B32;
    outline-offset: 1px;
    border-color: #A77B32;
}

.customer-inline-span-2 {
    grid-column: 1 / -1;
}

.customer-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.customer-inline-actions button,
.customer-address-manager-head button,
.customer-address-add,
.customer-address-item-actions button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: #FFFFFF;
    color: #111111;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.customer-inline-actions button.is-primary {
    background: #111111;
    border-color: #111111;
    color: #FFFFFF;
}

.customer-inline-actions button:disabled,
.customer-address-item-actions button:disabled,
.customer-preference-toggle:disabled {
    opacity: .55;
    cursor: wait;
}

.customer-inline-feedback,
.customer-preference-feedback {
    min-height: 18px;
    margin: 10px 0 0;
    color: rgba(17,17,17,.58);
    font-size: 11px;
}

.customer-inline-feedback[data-state="success"],
.customer-preference-feedback[data-state="success"] {
    color: #237346;
}

.customer-inline-feedback[data-state="error"],
.customer-preference-feedback[data-state="error"] {
    color: #A12222;
}

.customer-address-manager {
    padding-top: 18px;
}

.customer-address-manager-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.customer-address-manager-head strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: 27px;
    font-weight: 500;
}

.customer-address-list {
    display: grid;
}

.customer-address-empty {
    margin: 0;
    padding: 18px 0;
    color: rgba(17,17,17,.58);
    font-size: 13px;
}

.customer-address-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(17,17,17,.08);
}

.customer-address-item-copy,
.customer-address-item-head {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    align-items: center;
}

.customer-address-item-copy {
    flex-direction: column;
    align-items: flex-start;
}

.customer-address-item-copy > span {
    color: rgba(17,17,17,.62);
    font-size: 12px;
}

.customer-address-badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    background: #E8F6EE;
    color: #237346 !important;
    font-size: 9px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.customer-address-item-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.customer-address-item-actions button.is-danger {
    color: #A12222;
    border-color: rgba(161,34,34,.22);
}

.customer-address-add {
    width: 100%;
    margin-top: 10px;
    text-align: left;
}

.customer-checkbox-line {
    grid-template-columns: auto 1fr;
    align-items: center;
    margin-top: 14px;
}

.customer-checkbox-line input {
    width: 16px;
    height: 16px;
}

@media screen and (max-width: 760px) {
    .customer-inline-grid {
        grid-template-columns: 1fr;
    }

    .customer-inline-span-2 {
        grid-column: auto;
    }

    .customer-inline-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .customer-inline-actions button {
        width: 100%;
    }

    .customer-address-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .customer-address-item-actions {
        justify-content: flex-start;
    }

    .customer-address-manager-head {
        align-items: flex-start;
    }
}


/* ========================================================= */
/* CUSTOMER ORDERS — DETAIL V1                              */
/* ========================================================= */

.customer-order-compact-card {
    cursor: pointer;
    transition: opacity 150ms ease;
}

.customer-order-compact-card:hover,
.customer-order-compact-card:focus-visible {
    opacity: .68;
    outline: none;
}

.customer-order-compact-total {
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.customer-order-compact-arrow {
    color: var(--customer-compact-muted);
    font-size: 14px;
}

.customer-order-detail-panel {
    border-top: 1px solid var(--customer-compact-border);
}

.customer-order-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 26px 0;
    border-bottom: 1px solid var(--customer-compact-border);
}

.customer-order-detail-summary strong {
    display: block;
    margin-top: 6px;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: 27px;
    font-weight: 500;
}

.customer-order-detail-section {
    padding: 26px 0;
    border-bottom: 1px solid var(--customer-compact-border);
}

.customer-order-detail-heading {
    margin-bottom: 16px;
}

.customer-order-detail-heading .customer-compact-label {
    margin-bottom: 5px;
}

.customer-order-detail-heading strong {
    display: block;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: 25px;
    font-weight: 500;
}

.customer-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}

.customer-order-detail-items {
    display: grid;
}

.customer-order-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    border-top: 1px solid rgba(17,17,17,.07);
}

.customer-order-detail-item:first-child {
    border-top: 0;
}

.customer-order-detail-item > div {
    display: grid;
    gap: 3px;
}

.customer-order-detail-item span {
    color: var(--customer-compact-muted);
    font-size: 12px;
}

.customer-order-detail-lines {
    display: grid;
    gap: 10px;
}

.customer-order-detail-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.customer-order-detail-line span {
    color: var(--customer-compact-muted);
}

.customer-order-detail-line.is-total {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(17,17,17,.08);
}

.customer-order-detail-track {
    display: inline-flex;
    margin-top: 8px;
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
}

.customer-order-detail-address {
    display: grid;
    gap: 4px;
    color: #111111;
    font-size: 13px;
    line-height: 1.5;
}

.customer-order-detail-documents {
    display: grid;
}

.customer-order-detail-documents a,
.customer-order-detail-documents > span {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid rgba(17,17,17,.07);
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.customer-order-detail-empty {
    margin: 0;
    color: var(--customer-compact-muted);
    font-size: 13px;
}

@media screen and (max-width: 760px) {
    .customer-order-detail-summary,
    .customer-order-detail-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .customer-order-detail-summary {
        gap: 14px;
    }

    .customer-order-detail-item {
        align-items: flex-start;
    }
}
