/* ============================================================
   newdgrie / default — _62_account_mobile_menu.css   (v2 / editorial)
   ============================================================
   Mobile-only collapsible dropdown menu for the account area.

   Visual language mirrors the Phase 7b desktop sidebar:
     • Active link  = soft stone bg + gold left bar (no boxed
                      black border)
     • Hover        = light cream wash
     • Pill trigger = single bottom line (editorial),
                      no full-frame border
     • Sign out     = muted red, small caps, sits below a hairline

   Injected at runtime by `account-mobile-menu.js`.
   On desktop (≥769px) the entire wrap is hidden; the existing
   sidebar takes over.
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   Wrapper — visible only on mobile.
   ───────────────────────────────────────────────────────────── */
.dg-mobile-acct {
    display: none;
    margin: 0 0 36px;
    font-family: var(--dg-font-sans, Helvetica, Arial, sans-serif);
    color: var(--dg-ink, #1a1a1a);
    position: relative;
}


/* ─────────────────────────────────────────────────────────────
   TRIGGER — editorial: hairline on top + bottom, no side borders.
   ───────────────────────────────────────────────────────────── */
.dg-mobile-acct__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 18px 22px 20px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--dg-line, #e8e6e0);
    border-bottom: 1px solid var(--dg-line, #e8e6e0);
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 0;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 200ms ease;
}

.dg-mobile-acct__trigger:hover,
.dg-mobile-acct__trigger:focus-visible {
    border-top-color: var(--dg-ink, #1a1a1a);
    border-bottom-color: var(--dg-ink, #1a1a1a);
    outline: none;
}

.dg-mobile-acct.is-open .dg-mobile-acct__trigger {
    border-top-color: var(--dg-ink, #1a1a1a);
    border-bottom-color: transparent;
}

.dg-mobile-acct__trigger-l {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dg-mobile-acct__eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dg-faint, #999);
    font-weight: 500;
    line-height: 1.2;
}

.dg-mobile-acct__current {
    font-family: var(--dg-font-serif, Georgia, serif);
    font-size: 19px;
    font-weight: 400;
    color: var(--dg-ink, #1a1a1a);
    line-height: 1.2;
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dg-mobile-acct__chev {
    font-size: 14px;
    color: var(--dg-muted, #6b6b6b);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), color 200ms ease;
    flex-shrink: 0;
    margin-left: 16px;
    line-height: 1;
}

.dg-mobile-acct.is-open .dg-mobile-acct__chev {
    transform: rotate(180deg);
    color: var(--dg-ink, #1a1a1a);
}


/* ─────────────────────────────────────────────────────────────
   MENU — collapsible link list.
   No background fill — clean editorial column with hairlines.
   ───────────────────────────────────────────────────────────── */
.dg-mobile-acct__menu {
    display: none;
    background: transparent;
    border-bottom: 1px solid var(--dg-line, #e8e6e0);
    animation: dgMobileAcctSlide 220ms ease-out;
    overflow: hidden;
}

.dg-mobile-acct.is-open .dg-mobile-acct__menu {
    display: block;
}

@keyframes dgMobileAcctSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dg-mobile-acct__inner {
    padding: 8px 0 12px;
}


/* ─────────────────────────────────────────────────────────────
   LINKS — editorial type with gold left-bar on active.
   ───────────────────────────────────────────────────────────── */
.dg-mobile-acct__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--dg-ink-soft, #4a4a4a);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.4;
    background: transparent;
    border: 0;
    transition: background-color 180ms ease, color 180ms ease;
}

.dg-mobile-acct__link-label {
    flex: 1 1 auto;
    min-width: 0;
}

.dg-mobile-acct__link-meta {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--dg-faint, #999);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.dg-mobile-acct__link.is-on .dg-mobile-acct__link-meta {
    color: var(--dg-muted, #6b6b6b);
}

.dg-mobile-acct__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background-color 200ms ease;
}

.dg-mobile-acct__link:hover,
.dg-mobile-acct__link:focus {
    background: var(--dg-cream, #fafaf7);
    color: var(--dg-ink, #1a1a1a);
    text-decoration: none;
    outline: none;
}

.dg-mobile-acct__link:hover::before,
.dg-mobile-acct__link:focus::before {
    background: var(--dg-line, #e8e6e0);
}

/* Active state — matches desktop sidebar treatment:
   warm stone background + gold left bar.
   No padding shift — text stays aligned with siblings. */
.dg-mobile-acct__link.is-on {
    background: var(--dg-stone, #f1efe9);
    color: var(--dg-ink, #1a1a1a);
    font-weight: 500;
}

.dg-mobile-acct__link.is-on::before {
    background: var(--dg-gold, #8b6f47);
    width: 3px;
}

.dg-mobile-acct__link.is-on:hover {
    background: var(--dg-stone, #f1efe9);
}


/* ─────────────────────────────────────────────────────────────
   LOGOUT — discreet, separated by a hairline.
   No caps, no red shout — just a quiet exit.
   ───────────────────────────────────────────────────────────── */
.dg-mobile-acct__sep {
    height: 1px;
    background: var(--dg-line, #e8e6e0);
    margin: 12px 20px 8px;
}

.dg-mobile-acct__link--logout {
    color: var(--dg-muted, #6b6b6b);
    font-size: 13px;
    letter-spacing: 0.06em;
    font-weight: 400;
    padding: 12px 20px;
}

.dg-mobile-acct__link--logout:hover {
    color: var(--dg-error, #a04545);
    background: var(--dg-cream, #fafaf7);
}

.dg-mobile-acct__link--logout:hover::before {
    background: var(--dg-error, #a04545);
    opacity: 0.4;
}


/* ─────────────────────────────────────────────────────────────
   ACTIVATION — show pill whenever the desktop sidebar collapses.

   Phase 7b's account sidebar (Dgrie_Acct) collapses at ≤1023px,
   matching the site's "lg" breakpoint (header switches at 1024px
   too — search left of hamburger, etc). The dropdown pill must
   appear in the same range, otherwise 769-1023px shows neither
   sidebar nor pill — a "dead zone".

   So: show pill from 1023px down. Hide above 1024.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {

    .dg-mobile-acct {
        display: block;
    }

    /* Hide the original sidebar(s) — the JS-injected pill
       replaces them. */
    .dg-acct__sidebar,
    .page__sidebar,
    .dg-acct-nav,
    .dg-account-nav,
    .block-account,
    .block-account-navigation,
    .my-account .block-account-navigation {
        display: none !important;
    }

    /* Force the account grid to single column. */
    .dg-acct {
        grid-template-columns: 1fr !important;
        display: block !important;
    }

    .page--2col .page__container {
        grid-template-columns: 1fr !important;
    }
}
/* ═══════════════════════════════════════════════════════════════════════
   DG-clone-source-hide — global, ALL viewports (not just ≤1023px)
   ─────────────────────────────────────────────────────────────────────
   .dg-acct-nav[data-dg-acct-nav-source] is rendered by
   navigation_links.phtml on standalone pages (Compare, Wishlist)
   that use page/full-width.phtml — NOT page/account.phtml.
   Those pages DO NOT load _60_account.css (which has its own
   hide rule), so the raw <nav> list leaks visible at page bottom
   on desktop.

   The block exists ONLY as a clone source for
   account-mobile-menu.js — JS reads links from `display:none`
   elements just fine, so we hide it everywhere unconditionally.

   Note: the rule inside the `@media (max-width: 1023px)` block
   above is now redundant for the [data-dg-acct-nav-source]
   variant, but kept harmlessly (covers other .dg-acct-nav uses).
   ═══════════════════════════════════════════════════════════════════════ */
.dg-acct-nav[data-dg-acct-nav-source] {
    display: none !important;
}