/* ═══════════════════════════════════════════════════════════════
   arabstor — storefront account chip

   Split out of store.css because store/index.php's directory view (the page
   shown when no ?slug is given) calls render_store_account_nav() but has its
   own inline <style> and never links store.css. The chip therefore rendered
   as three bare underlined links, and every colour it asked for
   (--store-primary / --store-accent / --store-transition) was undefined on
   that page, which drops the whole declaration at computed-value time.

   Every custom property below now carries a literal fallback, so this file
   is self-contained and can be linked from any page regardless of which
   design tokens that page happens to define.
   ═══════════════════════════════════════════════════════════════ */

.store-account {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.store-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.07);
    color: var(--store-primary, #0f172a);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--store-transition, all 0.3s ease);
}

.store-account-link:hover {
    background: var(--store-accent, #3b82f6);
    color: #fff;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.28);
}

/* Keep the display name from pushing the navbar wide on a long full name */
.store-account-link > span {
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-account-out:hover {
    background: #ef4444;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
}

/* On narrow screens keep only the icons so the navbar never wraps */
@media (max-width: 760px) {
    .store-account-link > span {
        display: none;
    }
    .store-account-link {
        padding: 0.5rem 0.7rem;
    }
}
