/* Shared styles for the whole client-account area (loaded on every account/auth
 * page via 'page' => 'account'). Same palette/type as the site: FreightBig Pro
 * titles in brand blue (#889FC1), Hero New body in grey (#818181), cream accents,
 * square corners. */

/* ===== Layout ============================================================== */
.account-page .account-section,
.auth-page .auth-section {
    padding: 10px 100px 90px;
}
.account-page .account-grid {
    display: grid;
    grid-template-columns: 278px 1fr;
    gap: 40px;
    align-items: start;
}

/* shared eyebrow + heading */
.account-eyebrow {
    display: inline-block;
    font-size: 13px;
    line-height: 19px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #a0b1ce;
    margin-bottom: 14px;
}
.account-head {
    margin-bottom: 40px;
}
.account-title,
.auth-title {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 2px;
    color: #889FC1;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.account-intro,
.auth-intro {
    font-family: "Hero New Light";
    font-size: 15px;
    line-height: 28px;
    letter-spacing: 0.27px;
    color: #818181;
    margin: 0;
}
.account-intro strong { color: #889FC1; font-weight: 400; }

/* ===== Sidebar ============================================================= */
.account-sidebar {
    border: 1px solid #ececec;
    background: #ffffff;
}
.account-user {
    text-align: center;
    padding: 34px 20px 28px;
    border-bottom: 1px solid #ececec;
    background: #FFFBF4;
}
.account-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #889FC1;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.account-user-hello {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a0b1ce;
    margin-bottom: 4px;
}
.account-user-name {
    display: block;
    font-size: 21px;
    letter-spacing: 0.5px;
    color: #889FC1;
}
.account-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 26px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6a6a6a;
    border-left: 2px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.account-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: #b9c4d8;
    transition: color 0.2s ease;
}
.account-nav-link:hover {
    background: #f5f7fb;
    color: #889FC1;
}
.account-nav-link:hover i { color: #889FC1; }
.account-nav-link.is-active {
    background: #889FC1;
    color: #ffffff;
    border-left-color: #5f7aa6;
}
.account-nav-link.is-active i { color: #ffffff; }
.account-nav-logout {
    border-top: 1px solid #ececec;
    margin-top: 6px;
    color: #a5281b;
}
.account-nav-logout i { color: #cf8a83; }
.account-nav-logout:hover { background: #fbecea; color: #a5281b; }
.account-nav-logout:hover i { color: #a5281b; }

/* Mobile dropdown toggle — hidden on desktop where the full list is shown. */
.account-nav-toggle { display: none; }

/* ===== Status badges ====================================================== */
.status-badge {
    display: inline-block;
    font-family: "Hero New Light";
    font-size: 11px;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 12px;
    white-space: nowrap;
}
.status-done,
.status-active   { background: #e7f3ec; color: #2f7a4f; }
.status-pending  { background: #eef1f7; color: #5f7aa6; }
.status-cancelled{ background: #fbecea; color: #a5281b; }
.status-used     { background: #f0f0f0; color: #818181; }

/* ===== Dashboard cards ==================================================== */
.account-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.account-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #ececec;
    background: #ffffff;
    padding: 28px 26px;
}
.account-card-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a0b1ce;
    margin-bottom: 16px;
}
.account-card-strong {
    font-size: 22px;
    letter-spacing: 0.5px;
    color: #889FC1;
    margin-bottom: 8px;
}
.account-card-meta {
    font-family: "Hero New Light";
    font-size: 14px;
    line-height: 24px;
    color: #818181;
}
.account-card-price,
.account-card-balance {
    font-size: 26px;
    color: #4a4a4a;
    margin-top: 10px;
}
.account-card .status-badge { margin-top: 12px; }
.account-card-link {
    /*margin-top: auto;
    padding-top: 20px;*/
    font-family: "Hero New Light";
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #889FC1;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.account-card-link:hover { border-bottom-color: #889FC1; }
.account-card-empty {
    font-family: "Hero New Light";
    font-size: 14px;
    color: #818181;
    margin: 0;
}
.account-card--accent {
    background: #889FC1;
    border-color: #889FC1;
    color: #ffffff;
}
.account-card--accent .account-card-label,
.account-card--accent .account-card-meta,
.account-card--accent .account-card-balance { color: #ffffff; }
.account-card--accent .account-card-label { color: #e0e7f2; }
.account-card-link--light { color: #ffffff; }
.account-card-link--light:hover { border-bottom-color: #ffffff; }

/* ===== Content blocks ===================================================== */
.account-block { margin-bottom: 44px; }
.account-block:last-child { margin-bottom: 0; }
.account-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
}
.account-block-title {
    font-size: 24px;
    letter-spacing: 1px;
    color: #889FC1;
    margin: 0 0 22px;
}
.account-block-head .account-block-title { margin-bottom: 0; }
.account-block-link {
    font-family: "Hero New Light";
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #889FC1;
}
.account-block-link:hover { text-decoration: underline; }

/* ===== Orders table ======================================================= */
.orders-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.orders-filter-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a0b1ce;
}
.orders-filter .orders-year-select {
    width: auto;
    min-width: 130px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.orders-year-group + .orders-year-group { margin-top: 32px; }
.orders-year {
    font-size: 20px;
    color: #4a4a4a;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ececec;
    letter-spacing: 0.5px;
}
.orders-table { border: 1px solid #ececec; }
.orders-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-top: 1px solid #ececec;
    font-family: "Hero New Light";
    font-size: 14px;
    color: #818181;
}
.orders-table--full .orders-row {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 0.9fr 1fr;
}
.orders-row:first-child { border-top: none; }
.orders-row--head {
    background: #FFFBF4;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a0b1ce;
}
.orders-num { color: #889FC1; letter-spacing: 0.5px; }
.order-source {
    display: inline-block;
    align-self: flex-start;   /* mobile card layout stacks cells in a flex column — don't stretch the pill */
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.order-source--web   { background: #eef1f7; color: #5f7aa6; }   /* En ligne */
.order-source--caisse{ background: #f3eee6; color: #9c7b3f; }   /* Au spa   */
.orders-total { color: #4a4a4a; font-size: 16px; }
.orders-action a { white-space: nowrap; }

/* ===== Order detail ======================================================= */
.order-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}
.order-detail-date { font-family: "Hero New Light"; font-size: 14px; color: #818181; }
.order-item-gifts { display: block; margin-top: 5px; font-size: 12px; color: #7d4a9c; }
.order-item-gifts i { margin-right: 3px; font-size: 11px; }
/* Web gift-card line: recipient (name + e-mail) + message snapshot. */
.order-item-gift { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px 12px; background: #f4f6fa; border-left: 3px solid #889FC1; border-radius: 0 6px 6px 0; }
.order-gift-tag { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #889FC1; font-weight: 600; }
.order-gift-tag i { margin-right: 4px; }
.order-gift-line { font-size: 13px; color: #5f5f5f; }
.order-gift-msg { font-size: 13px; font-style: italic; color: #7a7a7a; }
.order-totals-row--gift span:first-child { color: #7d4a9c; }
.order-totals-row--gift i { margin-right: 4px; font-size: 11px; }
.order-detail-back { display: inline-block; margin-bottom: 22px; font-size: 13px; }

.order-items { border: 1px solid #ececec; margin-bottom: 26px; }
.order-items-row {
    display: grid;
    grid-template-columns: 2.4fr 0.6fr 1fr 1fr;
    align-items: center;
}
.order-items--simple .order-items-row { grid-template-columns: 1fr auto; }
.order-items-row {
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid #ececec;
    font-family: "Hero New Light";
    font-size: 14px;
    color: #6a6a6a;
}
.order-items-row:first-child { border-top: none; }
.order-items-row--head {
    background: #FFFBF4;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a0b1ce;
}
.order-item-name { color: #4a4a4a; }
.order-item-total { color: #4a4a4a; }

.order-totals {
    margin-left: auto;
    max-width: 340px;
    margin-bottom: 30px;
}
.order-totals-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
    font-family: "Hero New Light";
    font-size: 14px;
    color: #818181;
    border-bottom: 1px solid #f1f1f1;
}
/* The row just before the grand total: drop its border-bottom so it doesn't
   double up with the grand total's border-top (avoids a 2-line divider). */
.order-totals-row:nth-last-child(2) { border-bottom: none; }
.order-totals-row--grand {
    border-bottom: none;
    border-top: 2px solid #ececec;
    margin-top: 6px;
    padding-top: 14px;
    font-size: 17px;
    color: #4a4a4a;
}
.order-totals-row--grand span:last-child { color: #889FC1; }

/* Download-ticket button — compact, sits in the header meta row next to the
   status badge (caisse orders that carry a ticket file). */
.order-ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;          /* pousse le bouton à droite de la ligne meta */
    padding: 10px 15px;
    background: #889FC1;
    border: 1px solid #889FC1;
    color: #ffffff;
    font-family: "Hero New Light";
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.order-ticket-btn:hover { background: transparent; color: #889FC1; }
.order-ticket-btn i { font-size: 12px; }

.order-detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.order-detail-card {
    border: 1px solid #ececec;
    padding: 22px 24px;
}
.order-detail-card--full { grid-column: 1 / -1; }
.order-detail-card-label {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a0b1ce;
    margin-bottom: 12px;
}
.order-detail-address { font-style: normal; font-family: "Hero New Light"; font-size: 14px; color: #6a6a6a; line-height: 1.7; }
.order-detail-address span { display: block; }
.order-detail-card-text { font-family: "Hero New Light"; font-size: 14px; color: #6a6a6a; line-height: 1.7; margin: 0; }

@media (max-width: 700px) {
    .order-items-row--head { display: none; }
    .order-items-row { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
    .order-items-row span { display: flex; justify-content: space-between; }
    .order-items-row span[data-label]::before {
        content: attr(data-label);
        color: #a0b1ce; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
    }
    .order-totals { max-width: none; }
}

/* ===== Empty state ======================================================== */
.account-empty {
    text-align: center;
    border: 1px solid #ececec;
    padding: 80px 30px;
}
.account-empty i, .account-empty svg { font-size: 42px; color: #d3d9e5; margin-bottom: 24px; }
.account-empty p {
    font-family: "Hero New Light";
    font-size: 16px;
    color: #818181;
    margin: 0 0 30px;
}

/* ===== Forms ============================================================== */
.account-form { max-width: 880px; }
.account-fieldset {
    border: 1px solid #ececec;
    padding: 28px 30px 32px;
    margin-bottom: 28px;
}
.account-legend {
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #889FC1;
    padding: 0 10px;
    margin-left: -10px;
}
.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 26px;
}
.account-field { display: flex; flex-direction: column; }
.account-field--full { grid-column: 1 / -1; }
.account-field label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #818181;
    margin-bottom: 10px;
}
.account-input {
    font-family: "Hero New Light";
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #dfdfdf;
    background: #ffffff;
    color: #4a4a4a;
    font-size: 14px;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.2s ease;
}
.account-input:focus { border-color: #889FC1; }
select.account-input { cursor: pointer; appearance: none; background-image: none; }
.account-input[readonly] {
    background: #f6f6f4;
    color: #818181;
    cursor: not-allowed;
    border-color: #ececec;
}
.account-input[readonly]:focus { border-color: #ececec; }
/* Small muted helper text under a field / under a fieldset legend. */
.account-field-hint {
    font-family: "Hero New Light";
    font-size: 12px;
    letter-spacing: 0.3px;
    color: #a0a0a0;
    margin-top: 8px;
    line-height: 1.4;
}
.account-fieldset-note {
    font-family: "Hero New Light";
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #818181;
    margin: -6px 0 20px;
    line-height: 1.5;
}
.account-fieldset-note a { color: #889FC1; text-decoration: underline; }
.account-form-actions { margin-top: 4px; }
.account-btn {
    background: #889FC1;
    border: 1px solid #889FC1;
    color: #ffffff;
    font-size: 13px;
    padding: 22px 52px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.account-btn:hover { background: transparent; color: #889FC1; }

/* ===== Addresses ========================================================== */
.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.address-card {
    border: 1px solid #ececec;
    padding: 26px 28px;
    background: #ffffff;
}
.address-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.address-card-type {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #889FC1;
}
.address-default {
    font-family: "Hero New Light";
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2f7a4f;
    background: #e7f3ec;
    padding: 5px 10px;
}
.address-card-body {
    font-family: "Hero New Light";
    font-size: 14px;
    line-height: 26px;
    color: #818181;
    margin: 0 0 22px;
}
.address-card-body strong { color: #4a4a4a; font-weight: 400; }
.address-card-actions {
    display: flex;
    gap: 22px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
    font-family: "Hero New Light";
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.address-delete { color: #a5281b; }
.address-delete:hover { text-decoration: underline; }
.address-card--add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #c9d2e2;
    background: #FFFBF4;
    color: #889FC1;
    min-height: 180px;
    transition: background-color 0.2s ease;
}
.address-card--add:hover { background: #f2f5fa; }
.address-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #889FC1;
    margin-bottom: 14px;
    font-size: 16px;
}
.address-add-text { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

/* ----- card actions rendered as <button> (Modifier / Supprimer / Ajouter) ----- */
.address-card--add { width: 100%; cursor: pointer; font-family: inherit; text-align: center; }
.address-card-actions { align-items: center; }
.address-delete-form { margin: 0; display: inline-flex; }
.address-card-actions button.account-card-link,
.address-card-actions .address-delete,
.address-form-actions .account-card-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: "Hero New Light";
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}
.address-card-actions button.account-card-link { color: #889FC1; }
.address-card-actions .address-delete { color: #a5281b; }
.address-card-actions button.account-card-link:hover,
.address-form-actions .account-card-link:hover { text-decoration: underline; }

/* ----- add / edit address modal ----- */
.address-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 40px 20px;
    overflow-y: auto;
}
.address-modal.is-open { display: flex; align-items: flex-start; justify-content: center; }
.address-modal-overlay { position: fixed; inset: 0; background: rgba(40, 40, 40, 0.55); }
.address-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    margin: auto;
    background: #ffffff;
    padding: 32px 34px 34px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.address-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.address-modal-title { font-size: 24px; color: #4a4a4a; margin: 0; }
.address-modal-close {
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #818181;
    cursor: pointer;
    padding: 0 4px;
}
.address-modal-close:hover { color: #4a4a4a; }
body.address-modal-open { overflow: hidden; }
.address-form { max-width: none; }
.address-form-actions { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.account-optional { text-transform: none; letter-spacing: 0; color: #b0b0b0; font-size: 11px; }
.account-field label.address-default-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: 13px;
    color: #4a4a4a;
    cursor: pointer;
}
.address-default-check input { width: 16px; height: 16px; flex: none; cursor: pointer; }

/* ----- "use this address as" livraison / facturation checkboxes ----- */
.account-field-legend {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #818181;
    margin-bottom: 12px;
}
.address-types { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.address-types .address-type-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: 14px;
    color: #4a4a4a;
    cursor: pointer;
}
.address-type-check input { width: 16px; height: 16px; flex: none; cursor: pointer; }
.address-type-check input:disabled { cursor: not-allowed; }
.address-type-check input:disabled + span { color: #bdbdbd; }
.address-types-note {
    font-family: "Hero New Light";
    font-size: 12px;
    letter-spacing: 0.3px;
    color: #a0a0a0;
    margin: 10px 0 0;
    line-height: 1.4;
}
.address-types-note:empty { display: none; }
.address-complete-note {
    font-family: "Hero New Light";
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #818181;
    margin: 22px 0 0;
    line-height: 1.5;
}

/* ----- styled confirm dialog (replaces window.confirm) ----- */
.confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 20px;
}
.confirm-modal.is-open { display: flex; align-items: center; justify-content: center; }
.confirm-modal-overlay { position: fixed; inset: 0; background: rgba(40, 40, 40, 0.55); cursor: pointer; }
.confirm-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    padding: 32px 32px 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    text-align: center;
}
.confirm-modal-title { font-size: 23px; color: #4a4a4a; margin: 0 0 12px; }
.confirm-modal-msg {
    font-family: "Hero New Light";
    font-size: 14px;
    line-height: 1.55;
    color: #818181;
    margin: 0 0 26px;
}
.confirm-modal-actions { display: flex; align-items: center; justify-content: center; gap: 20px; }
.confirm-cancel {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Hero New Light";
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #818181;
}
.confirm-cancel:hover { text-decoration: underline; color: #4a4a4a; }
.confirm-ok {
    background: #a5281b;
    border: 1px solid #a5281b;
    color: #ffffff;
    cursor: pointer;
    font-family: "Hero New";
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 36px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.confirm-ok:hover { background: #8c2116; border-color: #8c2116; }
body.confirm-modal-open { overflow: hidden; }
body.account-modal-open { overflow: hidden; }

/* ===== Reviews — "Mes avis" =============================================== */
.review-todo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-todo-card {
    border: 1px solid #ececec;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.review-todo-name { font-size: 18px; color: #4a4a4a; }
.review-todo-card .account-btn { padding: 14px 28px; font-size: 12px; }

.review-list { display: flex; flex-direction: column; gap: 18px; }
.review-card { border: 1px solid #ececec; padding: 22px 24px; }
.review-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.review-stars { font-size: 13px; }  /* sizes the inline-SVG .stars (1em per star) */
.review-status {
    font-family: "Hero New Light";
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    white-space: nowrap;
}
.review-status--approved { color: #2f7a4f; background: #e7f3ec; }
.review-status--pending  { color: #8a6d1b; background: #f6efda; }
.review-status--rejected { color: #9b3b3b; background: #fbeeee; }
.review-card-service { font-size: 19px; color: #4a4a4a; margin: 0 0 6px; }
.review-card-service a { color: #4a4a4a; }
.review-card-service a:hover { color: #889FC1; }
.review-card-title { font-family: "Hero New"; font-size: 14px; color: #4a4a4a; margin: 0 0 6px; }
.review-card-comment { font-family: "Hero New Light"; font-size: 14px; line-height: 24px; color: #818181; margin: 0 0 14px; }
.review-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
    font-family: "Hero New Light";
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.review-card-date { color: #a0a0a0; }
.review-card-actions { display: flex; align-items: center; gap: 20px; }
.review-card-actions .account-card-link,
.review-card-actions .address-delete {
    background: none; border: none; padding: 0; margin: 0; cursor: pointer;
    font-family: "Hero New Light"; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1;
}
.review-card-actions .account-card-link { color: #889FC1; }
.review-card-actions .address-delete { color: #a5281b; }
.review-delete-form { display: inline-flex; margin: 0; }

/* review modal — star picker + textarea */
.review-form .account-field { margin-bottom: 18px; }
.review-for { font-family: "Hero New Light"; font-size: 14px; color: #818181; margin: 0 0 20px; }
.review-for strong { color: #4a4a4a; font-weight: 400; }
.review-note { font-family: "Hero New Light"; font-size: 12px; color: #a0a0a0; margin: 4px 0 0; }
.star-input { display: inline-flex; gap: 6px; }
.star-input .star { background: none; border: none; padding: 2px; cursor: pointer; line-height: 0; }
.star-input .star-svg { width: 30px; height: 30px; display: block; }
.star-input .star .star-svg path { fill: #d8d8d8; transition: fill 0.12s ease; }
.star-input .star.is-on .star-svg path { fill: #d9a441; }
textarea.account-input { resize: vertical; min-height: 120px; font-family: "Hero New Light"; }

/* ===== Gift cards ========================================================= */
.giftcard-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #889FC1;
    color: #ffffff;
    padding: 32px 36px;
    margin-bottom: 44px;
}
.giftcard-balance-label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e0e7f2;
    margin-bottom: 10px;
}
.giftcard-balance-value { font-size: 40px; letter-spacing: 1px; }
.giftcard-balance-icon { font-size: 44px; color: rgba(255, 255, 255, 0.5); }
.giftcard-redeem { display: flex; gap: 16px; }
.giftcard-redeem .account-input { flex: 1; }
.giftcard-redeem .account-btn { padding: 15px 34px; white-space: nowrap; }
.giftcard-list { border: 1px solid #ececec; }
.giftcard-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-top: 1px solid #ececec;
}
.giftcard-item:first-child { border-top: none; }
.giftcard-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #FFFBF4;
    color: #889FC1;
    font-size: 16px;
    flex: 0 0 auto;
}
.giftcard-item-info { flex: 1; display: flex; flex-direction: column; }
.giftcard-item-code { font-size: 17px; letter-spacing: 1px; color: #889FC1; }
.giftcard-item-validity {
    font-family: "Hero New Light";
    font-size: 13px;
    color: #818181;
    margin-top: 4px;
}
.giftcard-item-value { font-size: 18px; color: #4a4a4a; }
.giftcard-item-link { white-space: nowrap; font-size: 13px; }

/* ===== Gift card detail =================================================== */
.giftcard-detail {
    border: 1px solid #ececec;
    padding: 36px 32px;
    text-align: center;
    max-width: 520px;
}
.giftcard-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.giftcard-detail-icon { font-size: 30px; color: #d9a441; }
.giftcard-detail-balance { display: block; font-size: 46px; letter-spacing: 1px; color: #889FC1; }
.giftcard-detail-balance-label {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a0b1ce;
    margin-top: 4px;
}
.giftcard-detail-meta { margin: 28px 0 0; text-align: left; }
.giftcard-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid #f1f1f1;
    font-family: "Hero New Light";
    font-size: 14px;
}
.giftcard-detail-row dt { color: #a0b1ce; text-transform: uppercase; letter-spacing: 0.6px; font-size: 12px; }
.giftcard-detail-row dd { margin: 0; color: #4a4a4a; }
.giftcard-detail-desc {
    margin: 24px 0 0;
    font-family: "Hero New Light";
    font-size: 14px;
    color: #818181;
    line-height: 1.7;
}
/* Service cards (type=0): a list of soins instead of a balance. */
.giftcard-detail--service { max-width: 560px; text-align: left; }
.giftcard-detail-title { display: block; font-size: 20px; color: #4a4a4a; margin: 4px 0 2px; }
.giftcard-services { list-style: none; margin: 18px 0 0; padding: 0; }
.giftcard-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #f1f1f1;
    font-family: "Hero New Light";
    font-size: 15px;
    color: #4a4a4a;
}
.giftcard-service:first-child { border-top: none; }
.giftcard-service-name { flex: 1; min-width: 0; }
.giftcard-service.is-used .giftcard-service-name { color: #b0b0b0; text-decoration: line-through; }
.giftcard-service-count { flex: none; white-space: nowrap; }
.giftcard-service-qty { margin-left: 6px; color: #889FC1; font-size: 13px; }
.giftcard-item-services { font-family: "Hero New Light"; font-size: 13px; color: #818181; white-space: nowrap; }

/* ===== Favorites / wishlist =============================================== */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.favorite-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #ececec;
    background: #ffffff;
}
.favorite-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #ececec;
    color: #889FC1;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.favorite-remove:hover { background: #889FC1; color: #ffffff; }
.favorite-media { display: block; overflow: hidden; }
.favorite-media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.favorite-card:hover .favorite-media img { transform: scale(1.04); }
.favorite-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
    text-align: center;
}
.favorite-cat {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a0b1ce;
    margin-bottom: 12px;
}
.favorite-name {
    font-size: 21px;
    line-height: 28px;
    letter-spacing: 0.5px;
    color: #889FC1;
    margin: 0 0 14px;
}
.favorite-name a { color: inherit; }
.favorite-name a:hover { opacity: 0.7; }
.favorite-price {
    font-size: 18px;
    color: #4a4a4a;
    margin-bottom: 22px;
}
.favorite-btn { margin-top: auto; width: 100%; padding: 16px 20px; }
@media (max-width: 1199px) { .favorites-grid { gap: 18px; } }
@media (max-width: 991px) { .favorites-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) {
    .favorites-grid { grid-template-columns: 1fr; }
    .favorite-media img { height: 200px; }
}

/* ===== Auth (login / register) ============================================ */
.auth-section { display: flex; justify-content: center; }
.auth-card {
    width: 100%;
    max-width: 480px;
    border: 1px solid #ececec;
    background: #ffffff;
    box-shadow: 0 22px 54px rgba(20, 30, 55, 0.07);
    padding: 48px 50px 42px;
}
.auth-card--wide { max-width: 680px; }
.auth-head { text-align: center; margin-bottom: 34px; }
/* Flash banners (login errors, "reset link sent", etc.) — square, brand palette. */
.auth-alert {
    font-family: "Hero New Light";
    font-size: 13.5px;
    line-height: 20px;
    letter-spacing: 0.2px;
    padding: 13px 16px;
    margin-bottom: 22px;
    border: 1px solid;
}
.auth-alert--ok  { color: #3f6f5a; background: #eef6f1; border-color: #cfe6d9; }
.auth-alert--err { color: #9b3b3b; background: #fbeeee; border-color: #f0d2d2; }
.auth-form { max-width: none; }
/* only the stacked (login/forgot/reset) forms need this; register's fields sit in
   a grid and get their spacing from the grid gap — so target direct children only */
.auth-form > .account-field--full { margin-bottom: 18px; }
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 26px;
    font-family: "Hero New Light";
    font-size: 13px;
    color: #818181;
}
.auth-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-forgot { color: #889FC1; }
.auth-forgot:hover { text-decoration: underline; }
.auth-btn { width: 100%; }
/* Loader on the auth submit buttons (set by forms.js on submit): hide the label,
   show a white spinner on the blue button until the page navigates. */
.auth-btn.is-loading {
    position: relative;
    color: transparent !important;
    font-size: 0 !important;       /* robustly hide the label behind the spinner */
    opacity: 1 !important;
    pointer-events: none;
    cursor: default;
}
.auth-btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0 26px;
    font-family: "Hero New Light";
    font-size: 13px;
    line-height: 22px;
    color: #818181;
    cursor: pointer;
}
.auth-terms a { color: #889FC1; text-decoration: underline; }
.auth-terms input { margin-top: 4px; }
.auth-alt {
    text-align: center;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #ececec;
    font-family: "Hero New Light";
    font-size: 14px;
    color: #818181;
}
.auth-alt-link {
    color: #889FC1;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    margin-left: 8px;
}
.auth-alt-link:hover { text-decoration: underline; }

/* ===== Responsive ========================================================= */
@media (max-width: 1199px) {
    /* breadcrumbs are hidden < 1200px -> add top clearance under the header */
    .account-page .account-section,
    .auth-page .auth-section {
        padding: 210px 50px 80px;
    }
    .account-page .account-grid {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    .account-cards { gap: 18px; }
    .account-card { padding: 24px 20px; }
}
@media (max-width: 991px) {
    .account-page .account-grid { grid-template-columns: 1fr; gap: 36px; }
    .account-sidebar { position: static; }
    .account-cards { grid-template-columns: 1fr 1fr; }

    /* Account nav becomes a collapsible dropdown (collapsed by default so the
       page content stays within reach; tap the current-page bar to expand). */
    .account-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 16px;
        padding: 16px 22px;
        background: #889FC1;
        color: #ffffff;
        border: none;
        cursor: pointer;
        font-family: "Hero New Light";
        font-size: 13px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        text-align: left;
    }
    .account-nav-toggle-label {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }
    .account-nav-toggle-label > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .account-nav-toggle-label i { font-size: 15px; }
    .account-nav-caret {
        flex: 0 0 auto;
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    .account-nav.is-open .account-nav-caret { transform: rotate(180deg); }

    .account-nav ul {
        max-height: 0;
        padding: 0;
        overflow: hidden;
        border-top: 1px solid #ececec;
        transition: max-height 0.32s ease;
    }
    .account-nav.is-open ul { max-height: 600px; }
}
@media (max-width: 767px) {
    .account-page .account-section,
    .auth-page .auth-section {
        padding: 210px 25px 70px;
    }
    .account-title, .auth-title { font-size: 32px; line-height: 40px; }
    .account-cards { grid-template-columns: 1fr; }
    .account-form-grid { grid-template-columns: 1fr; }
    .address-grid { grid-template-columns: 1fr; }
    .review-todo-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 36px 26px 32px; }

    /* orders table -> stacked cards */
    .orders-row--head { display: none; }
    .orders-row,
    .orders-table--full .orders-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px 16px;
        padding: 18px 18px;
    }
    .orders-row span { display: flex; flex-direction: column; }
    .orders-row span[data-label]::before {
        content: attr(data-label);
        font-size: 10px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #a0b1ce;
        margin-bottom: 4px;
    }
    .orders-action { grid-column: 1 / -1; }
    .giftcard-redeem { flex-direction: column; }
    .giftcard-item { flex-wrap: wrap; }
}
@media (max-width: 575px) {
    .account-title, .auth-title { font-size: 27px; line-height: 34px; }
    .auth-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .giftcard-balance-value { font-size: 32px; }
}

/* ===== Minimal layout (auth pages): logo-only header, no footer =========== */
/* cream page so the white auth card clearly stands apart from the logo above */
.minimal-layout { background-color: #FFFBF4; min-height: 100vh; }
/* NB: scoped with .minimal-layout to outrank the global ".page-wrapper header"
   rules (which set position:absolute + padding:0 60px and would leak in here). */
.minimal-layout .minimal-header {
    position: static;
    width: 100%;
    text-align: center;
    padding: 40px 20px 36px;
    border: none;
    background: transparent;
}
.minimal-layout .minimal-header .minimal-logo { display: inline-block; }
.minimal-layout .minimal-header .minimal-logo img { width: 186px; height: auto; display: block; }
.auth-page.minimal-layout .auth-section { padding: 10px 25px 80px; }
@media (max-width: 767px) {
    .minimal-layout .minimal-header { padding: 26px 20px 24px; }
    .minimal-layout .minimal-header .minimal-logo img { width: 150px; }
    .auth-page.minimal-layout .auth-section { padding: 6px 18px 60px; }
}

/* ── Parrainage (tableau de bord) ─────────────────────────────────────────── */
.referral-intro { font-size: 14px; color: #6a6a6a; line-height: 1.7; margin: 0 0 16px; }
.referral-intro strong { color: #3f3f3f; }
.referral-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.referral-field { display: flex; flex-direction: column; gap: 6px; flex: 0 1 220px; }
.referral-field--grow { flex: 1 1 320px; }
.referral-field span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #a0a0a0; }
.referral-field input {
    padding: 12px 14px;
    border: 1px dashed #889FC1;
    background: #f6f8fb;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 1px;
    color: #3f3f3f;
    outline: none;
}
.referral-rewards { display: flex; flex-direction: column; gap: 8px; }
.referral-rewards-title { font-size: 11px; letter-spacing: 1.5px; color: #a0a0a0; }
.referral-reward {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border: 1px dashed #6fae8e;
    background: #f2f9f5;
    color: #4c8a6b;
    font-size: 13px;
    letter-spacing: 1px;
    align-self: flex-start;
}
.referral-reward strong { letter-spacing: 2px; }
