﻿/* Legacy Desktop header — personal account (matches Angular desktop header.component) */
.header-wrapper .top-bar {
    flex-wrap: nowrap;
}

.header-wrapper .wt-header-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.wt-personal-account-root.account-btn {
    position: relative;
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: #3974b2;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    direction: rtl;
}

.wt-personal-account-root.is-visible {
    display: inline-flex;
}

.wt-personal-account-root .account-btn__label-placeholder {
    display: inline-block;
    min-width: 3rem;
}

.wt-personal-account-root .account-btn__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.wt-personal-account-root .account-btn__chevron {
    width: 1rem;
    height: 1rem;
    flex: none;
}

.wt-personal-account-root .account-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 9999px;
    background: #fff;
    color: #3974b2;
}

.wt-personal-account-root .account-btn__user {
    width: 1rem;
    height: 1rem;
}

.wt-personal-account-root .account-lang {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-start: 0;
    z-index: 250;
    gap: 0.25rem;
    min-width: 14rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #19283f;
    box-shadow: 0 0.5rem 1.5rem rgba(25, 40, 63, 0.16);
    text-align: start;
}

.wt-personal-account-root .account-lang.is-open {
    display: grid;
}

.wt-personal-account-root .account-lang button {
    border: 0;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #19283f;
    cursor: pointer;
    text-align: start;
    font: inherit;
}

.wt-personal-account-root .account-lang button.is-active {
    background: #e7eef6;
    font-weight: 700;
}

.wt-personal-account-root .account-lang button.account-lang__sign-out {
    color: #dc2626;
}

.wt-personal-account-root .account-lang__title {
    padding: 0.25rem 0.5rem 0;
    margin: 0;
    font-size: 0.75rem;
    color: #667b95;
}

.wt-personal-account-root .account-lang__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #19283f;
    text-decoration: none;
}

.wt-personal-account-root .account-lang__item:hover {
    background: #e7eef6;
}

.wt-personal-account-root .account-lang__item svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    color: #3974b2;
}

.wt-personal-account-root .account-lang__rule {
    height: 1px;
    margin: 0.25rem 0.5rem;
    background: #e4ebf3;
}

.wt-personal-account-root .account-lang__lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wt-personal-account-root .account-lang__flag {
    width: 1.125rem;
    height: 0.75rem;
    flex: none;
    overflow: hidden;
    border-radius: 0.125rem;
    box-shadow: 0 0 0 1px rgba(25, 40, 63, 0.18);
}

@media (max-width: 1280px) {
    .wt-personal-account-root.account-btn {
        margin-inline: auto 0.75rem;
        font-size: 0.875rem;
    }
}
