/* ==========================================================================
   CUSTOMER DASHBOARD — [lwala_customer_dashboard]
   Calm, standard layout: slim header · sidebar · cards. Monochrome brand.
   ========================================================================== */
.ld {
    --ld-ink: #111111;
    --ld-muted: #6B6B6B;
    --ld-line: #E8E8E8;
    --ld-soft: #F7F7F7;
    --ld-radius: 16px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 24px 90px;
    color: var(--ld-ink);
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
}
.ld *, .ld *::before, .ld *::after { box-sizing: border-box; }
.ld h1, .ld h2 { font-family: 'Cormorant', Garamond, serif; font-weight: 700; color: var(--ld-ink); margin: 0; }
.ld p { margin: 0; color: inherit; }
.ld a { color: inherit; }
.ld .ld-icon { flex: 0 0 auto; }
.ld-muted { color: var(--ld-muted); font-size: 13px; font-weight: 400; font-family: 'Lato', sans-serif; }
.ld-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ld-muted);
}

/* Header */
.ld-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--ld-line);
}
.ld-head__who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ld-avatar {
    width: 52px; height: 52px; flex: 0 0 52px;
    border-radius: 50%;
    background: var(--ld-ink); color: #FFFFFF;
    display: grid; place-items: center;
    font-family: 'Cormorant', Garamond, serif; font-size: 24px; font-weight: 700;
}
.ld-head__title { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }

/* Buttons */
.ld .ld-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    border-radius: 50px;
    border: 1px solid var(--ld-ink);
    font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
    line-height: 1.2;
    font-family: 'Lato', sans-serif;
}
.ld .ld-btn--dark { background: var(--ld-ink); color: #FFFFFF; }
.ld .ld-btn--dark:hover { background: #333333; border-color: #333333; }
.ld .ld-btn--ghost { background: transparent; color: var(--ld-ink); }
.ld .ld-btn--ghost:hover { background: var(--ld-ink); color: #FFFFFF; }
.ld .ld-btn--sm { padding: 8px 14px; font-size: 12px; }
.ld .ld-link { font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Layout */
.ld-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.ld-main { min-width: 0; display: grid; gap: 20px; }

/* Sidebar */
.ld-nav { position: sticky; top: 24px; display: grid; gap: 14px; }
.ld-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ld .ld-nav__link, .ld .ld-nav__logout {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px; font-weight: 700;
    color: #444444;
    transition: background-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.ld .ld-nav__link:hover { background: var(--ld-soft); color: var(--ld-ink); }
.ld .ld-nav__link.is-active { background: var(--ld-ink); color: #FFFFFF; }
.ld .ld-nav__logout { color: var(--ld-muted); border-top: 1px solid var(--ld-line); border-radius: 0; padding-top: 16px; }
.ld .ld-nav__logout:hover { color: var(--ld-ink); }

/* Panels & cards */
.ld-panel { display: grid; gap: 20px; }
.ld-panel[hidden] { display: none; }
.ld-card {
    background: #FFFFFF;
    border: 1px solid var(--ld-line);
    border-radius: var(--ld-radius);
    padding: 24px;
}
.ld-card--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ld-card h2 { font-size: 22px; line-height: 1.2; }
.ld-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ld-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }

/* Stats */
.ld-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ld-stat { border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: 18px 20px; display: grid; gap: 6px; background: #FFFFFF; }
.ld-stat__label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ld-muted); }
.ld-stat__value { font-family: 'Cormorant', Garamond, serif; font-size: 34px; font-weight: 700; line-height: 1; }
.ld-stat__value small { font-size: 18px; color: var(--ld-muted); margin-left: 2px; }
.ld-bar { display: block; height: 6px; border-radius: 6px; background: #EFEFEF; overflow: hidden; }
.ld-bar__fill { display: block; height: 100%; background: var(--ld-ink); border-radius: 6px; transition: width .4s ease; }

/* Verse */
.ld-verse { margin: 0; padding: 22px 24px; border-radius: var(--ld-radius); background: var(--ld-soft); border-left: 3px solid var(--ld-ink); }
.ld-verse blockquote { margin: 8px 0 6px; padding: 0; border: 0; font-family: 'Cormorant', Garamond, serif; font-style: italic; font-size: 21px; line-height: 1.4; color: var(--ld-ink); }
.ld-verse figcaption { font-size: 13px; color: var(--ld-muted); }

/* Tables */
.ld-table-wrap { overflow-x: auto; }
.ld-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ld-table th { text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ld-muted); font-weight: 700; padding: 0 12px 10px 0; border-bottom: 1px solid var(--ld-line); }
.ld-table td { padding: 13px 12px 13px 0; border-bottom: 1px solid #F1F1F1; white-space: nowrap; }
.ld-table tr:last-child td { border-bottom: 0; }
.ld-table__action { text-align: right; }
.ld-table__action a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ld-status { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 700; background: #F1F1F1; color: #444444; }
.ld-status--completed { background: #E8F3EA; color: #2E6B3A; }
.ld-status--processing { background: #111111; color: #FFFFFF; }
.ld-status--on-hold, .ld-status--pending { background: #FFF4E0; color: #8A5A00; }
.ld-status--cancelled, .ld-status--failed, .ld-status--refunded { background: #FBEAEA; color: #9A2B2B; }

.ld-empty { display: grid; justify-items: start; gap: 14px; padding: 8px 0; color: var(--ld-muted); }

/* Next step */
.ld-chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 50px; background: var(--ld-soft); border: 1px solid var(--ld-line); margin-bottom: 10px; }
.ld-next { font-family: 'Cormorant', Garamond, serif; font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 16px !important; }

/* Journey */
.ld-phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ld-phase { border: 1px solid var(--ld-line); border-radius: 14px; padding: 18px; }
.ld-phase__head { display: flex; justify-content: space-between; align-items: baseline; }
.ld .ld-phase__name { font-family: 'Cormorant', Garamond, serif; font-size: 22px; font-weight: 700; letter-spacing: 2px; text-decoration: none; }
.ld-phase__title { font-size: 13px; color: var(--ld-muted); margin: 2px 0 12px !important; }
.ld-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ld-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px; margin: 0 -8px; border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 1.45; }
.ld-check:hover { background: var(--ld-soft); }
.ld-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: #111111; flex: 0 0 auto; }
.ld-check input:checked + span { color: var(--ld-muted); text-decoration: line-through; text-decoration-color: #BBBBBB; }
.ld .ld-textarea { width: 100%; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--ld-line); border-radius: 12px; font: inherit; resize: vertical; background: #FFFFFF; }
.ld .ld-textarea:focus { outline: none; border-color: var(--ld-ink); }

/* Resources */
.ld-files { list-style: none; margin: 0; padding: 0; }
.ld-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #F1F1F1; }
.ld-file:first-child { border-top: 0; padding-top: 0; }
.ld-file strong { display: block; font-size: 15px; }
.ld-file__tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ld-muted); }
.ld-file.is-soon strong { color: var(--ld-muted); }
.ld-soon { font-size: 12px; font-weight: 700; color: var(--ld-muted); border: 1px dashed #CFCFCF; border-radius: 50px; padding: 6px 12px; white-space: nowrap; }

/* Account form */
.ld-form { display: grid; gap: 16px; max-width: 720px; }
.ld-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ld-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.ld .ld-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--ld-line); border-radius: 10px; font: inherit; font-weight: 400; background: #FFFFFF; }
.ld .ld-form input:focus { outline: none; border-color: var(--ld-ink); }
.ld-form__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ld-form__msg { font-size: 13px; }
.ld-form__msg.is-error { color: #9A2B2B; }
.ld-form__msg.is-ok { color: #2E6B3A; }

/* WooCommerce content inside the shell (view order, addresses…) */
.ld .ld-back { display: inline-block; font-size: 13px; font-weight: 700; margin-bottom: 18px; text-decoration: none; }
.ld-card--wc .woocommerce-MyAccount-content { width: 100%; float: none; }
.ld-card--wc table.shop_table { border-radius: 12px; }

/* Signed-out view */
.ld--auth { padding-top: 56px; }
.ld-auth { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.ld-auth__title { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 8px 0 12px !important; }
.ld-auth__intro p { color: var(--ld-muted); max-width: 380px; }
.ld-auth__forms .u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ld-auth__forms .u-column1, .ld-auth__forms .u-column2 { width: auto !important; float: none !important; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: 24px; }
.ld-auth__forms h2 { font-size: 24px; margin-bottom: 12px; }
.ld-auth__forms .woocommerce-form-row input.input-text { width: 100%; padding: 12px 14px; border: 1px solid var(--ld-line); border-radius: 10px; }
.ld-auth__forms .woocommerce-button { border-radius: 50px !important; background: var(--ld-ink) !important; color: #FFFFFF !important; padding: 11px 24px !important; }

/* Responsive */
@media (max-width: 1024px) {
    .ld-grid-2, .ld-phases { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .ld { padding: 24px 16px 70px; }
    .ld-body { grid-template-columns: 1fr; gap: 20px; }
    .ld-nav { position: static; }
    .ld-nav__list { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; padding-bottom: 2px; }
    .ld-nav__list::-webkit-scrollbar { display: none; }
    .ld .ld-nav__link { padding: 9px 14px; border: 1px solid var(--ld-line); border-radius: 50px; }
    .ld .ld-nav__logout { display: none; }
    .ld-head { flex-wrap: wrap; }
    .ld-auth, .ld-auth__forms .u-columns { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
    .ld-stats { grid-template-columns: 1fr 1fr; }
    .ld-stats .ld-stat:last-child { grid-column: 1 / -1; }
    .ld-form__row { grid-template-columns: 1fr; }
    .ld-card { padding: 18px; }
    .ld-file { flex-direction: column; align-items: flex-start; }
}

/* WooCommerce clearfix pseudo-elements would become grid cells */
.ld-auth__forms .u-columns::before,
.ld-auth__forms .u-columns::after { display: none !important; content: none !important; }
