/* Yalnız header cüzdan bileşeni. Tema/header dosyalarının mevcut kuralları korunur. */
.rs-header-wallet {
    --hw-bg: var(--store-surface, #fff);
    --hw-ink: var(--store-ink, #172033);
    --hw-muted: var(--store-muted, #55647b);
    --hw-line: var(--store-line, #dce4ee);
    --hw-accent: var(--store-accent, #0085d1);
    --hw-band: var(--store-raised, #f1f5f9);
    --hw-radius: 14px;
    box-sizing: border-box;
    flex: 0 0 auto;
    font-family: inherit;
}
.rs-header-wallet *, .rs-header-wallet *::before, .rs-header-wallet *::after { box-sizing: border-box; }
.rs-header-wallet--desktop { display: block; }
.rs-header-wallet--mobile { display: none; }
.rs-header-wallet .rs-header-wallet__link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid var(--hw-line);
    border-radius: var(--hw-radius);
    background: var(--hw-bg);
    color: var(--hw-ink);
    text-decoration: none;
    text-align: left;
    line-height: 1.2;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.rs-header-wallet .rs-header-wallet__link:hover { border-color: var(--hw-accent); box-shadow: 0 4px 14px rgb(0 0 0 / 8%); }
.rs-header-wallet .rs-header-wallet__link:focus-visible { outline: 2px solid var(--hw-accent); outline-offset: 3px; }
.rs-header-wallet .rs-header-wallet__icon {
    display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px;
    border-radius: 8px; color: var(--hw-accent); background: var(--hw-band);
}
.rs-header-wallet .rs-header-wallet__icon svg { display: block; width: 19px; height: 19px; }
.rs-header-wallet .rs-header-wallet__text { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.rs-header-wallet .rs-header-wallet__label { color: var(--hw-muted); font-size: 10px; font-weight: 500; letter-spacing: .035em; }
.rs-header-wallet .rs-header-wallet__amount { color: var(--hw-ink); font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-header-wallet .rs-header-wallet__arrow { display: block; width: 13px; height: 13px; flex: 0 0 13px; color: var(--hw-muted); }

/* Default: mevcut açık/koyu mağaza renkleriyle cam etkili mavi kart. */
.rs-header-wallet--default .rs-header-wallet__link { box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%); }
.rs-header-wallet--default .rs-header-wallet__icon { background: transparent; border: 1px solid var(--hw-line); }

/* Ahenk: doğal krem yüzey, yeşil cüzdan ve yumuşak yuvarlak hatlar. */
.rs-header-wallet--ahenk {
    --hw-bg: var(--ahk-cream, #fbf9f3); --hw-ink: var(--ahk-green, #075942);
    --hw-muted: var(--ahk-muted, #667069); --hw-line: var(--ahk-line, #e5e0d5);
    --hw-accent: var(--ahk-green, #075942); --hw-band: #edf3e5; --hw-radius: 18px;
}
.rs-header-wallet--ahenk .rs-header-wallet__icon { border-radius: 50%; background: var(--ahk-green, #075942); color: var(--ahk-lime, #a8d315); }

/* Alaz: kahve/kemik paleti ve ince alt çizgili, köşeli editoryal kart. */
.rs-header-wallet--alaz {
    --hw-bg: var(--alz-surface, #fffdf9); --hw-ink: var(--alz-accent, #4a3124);
    --hw-muted: var(--alz-text-soft, #7f7164); --hw-line: var(--alz-border, #e8dfd3);
    --hw-accent: var(--alz-accent, #4a3124); --hw-band: var(--alz-bg, #f5f1ea); --hw-radius: 0px;
}
.rs-header-wallet--alaz .rs-header-wallet__link { border-width: 0 0 2px; }
.rs-header-wallet--alaz .rs-header-wallet__icon { background: transparent; border-right: 1px solid var(--hw-line); border-radius: 0; padding-right: 7px; width: 31px; flex-basis: 31px; }
.rs-header-wallet--alaz .rs-header-wallet__label { text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }

/* AlpGear: koyu teknik yüzey, kırmızı kenar ve sarı tutar. */
.rs-header-wallet--alpgear {
    --hw-bg: var(--ag-dark-3, #20262b); --hw-ink: #fff; --hw-muted: #c8cdd2;
    --hw-line: #41494f; --hw-accent: var(--ag-red, #e42626); --hw-band: var(--ag-dark-2, #171c20); --hw-radius: 5px;
}
.rs-header-wallet--alpgear .rs-header-wallet__link { border-left: 3px solid var(--hw-accent); }
.rs-header-wallet--alpgear .rs-header-wallet__amount { color: var(--ag-yellow, #f7b500); }
.rs-header-wallet--alpgear .rs-header-wallet__icon { background: transparent; color: #fff; }

/* AutoMarket: mevcut petrol mavisi çerçeve ve ayrı ikon hücresi. */
.rs-header-wallet--automarket {
    --hw-bg: var(--am-surface, #fff); --hw-ink: var(--am-red, #0f4c5c); --hw-muted: #4d6b73; --hw-line: #d4e4e8;
    --hw-accent: var(--am-red, #0f4c5c); --hw-band: #edf5f6; --hw-radius: 8px;
}
.rs-header-wallet--automarket .rs-header-wallet__icon { border-radius: 5px; background: var(--am-red, #0f4c5c); color: #fff; }
.rs-header-wallet--automarket .rs-header-wallet__label { font-weight: 650; }

/* Barkan: lacivert ve mevcut altın vurguyla kompakt premium kart. */
.rs-header-wallet--barkan {
    --hw-bg: #0f172a; --hw-ink: var(--alz-gold-2, #f1d58a); --hw-muted: #d0d7e4;
    --hw-line: var(--alz-gold-border, #786341); --hw-accent: var(--alz-gold, #d6a84f);
    --hw-band: #19243a; --hw-radius: 4px;
}
.rs-header-wallet--barkan .rs-header-wallet__link { background: linear-gradient(115deg, #0f172a, #1c2d49); }
.rs-header-wallet--barkan .rs-header-wallet__icon { border: 1px solid var(--hw-line); border-radius: 4px; background: transparent; }
.rs-header-wallet--barkan .rs-header-wallet__label { letter-spacing: .08em; text-transform: uppercase; font-size: 9px; }

/* Tulpar: açık spor yüzeyi, turkuaz ikon ve kapsül form. */
.rs-header-wallet--tulpar {
    --hw-bg: #f2f8f8; --hw-ink: var(--tp-text, #111827); --hw-muted: #47666b;
    --hw-line: #d5e9e8; --hw-accent: #087e83; --hw-band: #d9f0ed; --hw-radius: 999px;
}
.rs-header-wallet--tulpar .rs-header-wallet__link { padding-inline: 9px 13px; }
.rs-header-wallet--tulpar .rs-header-wallet__icon { border-radius: 50%; }
.rs-header-wallet--tulpar .rs-header-wallet__amount { color: #076b70; }

/* Dar header'larda ayrı satır: mevcut logo, arama ve hesap/sepet alanlarına müdahale etmez. */
@media (max-width: 1199.98px) {
    .rs-header-wallet--desktop { display: none; }
    .rs-header-wallet--mobile { display: block; width: 100%; background: var(--hw-band); border-bottom: 1px solid var(--hw-line); }
    .rs-header-wallet--mobile .rs-header-wallet__inner { width: calc(100% - 32px); max-width: 1560px; margin-inline: auto; }
    .rs-header-wallet--mobile .rs-header-wallet__link { min-height: 40px; padding: 6px 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
    .rs-header-wallet--mobile .rs-header-wallet__link:hover { box-shadow: none; }
    .rs-header-wallet--mobile .rs-header-wallet__icon { width: 25px; height: 25px; flex-basis: 25px; }
    .rs-header-wallet--mobile .rs-header-wallet__icon svg { width: 17px; height: 17px; }
    .rs-header-wallet--mobile .rs-header-wallet__text { flex: 1 1 auto; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 12px; row-gap: 3px; }
    .rs-header-wallet--mobile .rs-header-wallet__label { font-size: 11px; }
    .rs-header-wallet--mobile .rs-header-wallet__amount { font-size: 13px; }
    .rs-header-wallet--mobile.rs-header-wallet--alpgear { background: var(--ag-dark-2, #171c20); border-bottom-color: #393f45; }
    .rs-header-wallet--mobile.rs-header-wallet--barkan { background: linear-gradient(115deg, #0f172a, #1c2d49); }
    .rs-header-wallet--mobile.rs-header-wallet--automarket { border-bottom: 2px solid var(--am-red, #0f4c5c); }
    .rs-header-wallet--mobile.rs-header-wallet--alaz { border-bottom-color: var(--hw-accent); }
}
@media (prefers-reduced-motion: reduce) { .rs-header-wallet .rs-header-wallet__link { transition: none; } }
