
/* PRAWNIKOM PRO — GLOBALNE MENU UZYTKOWNIKA */

html body .site-header,
html body .site-header .topbar {
    overflow: visible !important;
}

html body .site-header .top-actions {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    min-width: 0;
    height: auto !important;
    overflow: visible !important;
}

/* PRZYCISK KONTA */

html body .site-header .account-trigger {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 48px !important;
    padding: 8px 14px !important;
    background: #ffffff08 !important;
    border: 1px solid #c6a46a !important;
    border-radius: 0 !important;
    color: #fff !important;
    text-align: left;
}

.site-header .account-trigger > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.site-header .account-trigger b {
    color: #fff !important;
    font-size: 13px;
    line-height: 1.3;
}

.site-header .account-trigger small {
    display: block;
    color: #aebdd0 !important;
    font-size: 10px;
    line-height: 1.3;
}

.site-header .account-trigger > i {
    color: #c6a46a;
    font-style: normal;
    margin-left: 8px;
}

.site-header .account-trigger .avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: #c6a46a;
    color: #142641;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0;
}

/* MENU — NIE MOZE ROZPYCHAC HEADERA */

html body .site-header
.account-popover[data-account-menu] {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;

    width: 360px !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 70vh;
    margin: 0 !important;
    padding: 0 !important;

    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #d7e0eb !important;
    border-top: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    box-shadow: 0 16px 45px #0e192c30 !important;

    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 30000 !important;
}

/* STAN ZAMKNIETY I OTWARTY */

html body .site-header
.account-popover[data-account-menu][hidden] {
    display: none !important;
}

html body .site-header
.account-popover[data-account-menu]:not([hidden]) {
    display: block !important;
}

.site-header .account-popover * {
    box-sizing: border-box;
}

/* PROFIL UZYTKOWNIKA */

html body .site-header .account-popover > header {
    position: static !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 20px 16px !important;
    margin: 0 !important;
    background: #f3f6fa !important;
    color: #142641 !important;
    border-bottom: 1px solid #d7e0eb;
    box-shadow: none !important;
}

.site-header .account-popover > header::before,
.site-header .account-popover > header::after {
    content: none !important;
}

.site-header .account-popover > header .avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: #142641;
    color: #c6a46a;
    font-size: 20px;
    font-weight: 700;
}

.site-header .account-popover > header b {
    display: block;
    color: #142641 !important;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.site-header .account-popover > header small {
    display: block;
    margin-top: 4px;
    color: #64748b !important;
    font-size: 11px;
}

.site-header .account-online {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    background: #e8f4ec;
    color: #237044 !important;
    font-size: 10px;
    white-space: nowrap;
}

.site-header .account-online i {
    width: 7px;
    height: 7px;
    background: #23834c;
    border-radius: 50%;
}

/* POZYCJE MENU */

html body .site-header .account-popover > nav {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 4px;
    width: 100% !important;
    padding: 10px !important;
    margin: 0 !important;
    background: white !important;
}

html body .site-header .account-popover nav > a {
    display: grid !important;
    grid-template-columns: 36px minmax(0,1fr) 16px;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    min-height: 62px;
    padding: 10px !important;
    margin: 0 !important;
    background: white !important;
    color: #142641 !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    text-decoration: none !important;
}

.site-header .account-popover nav > a > span:first-child {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #f4efe5;
    color: #96702d !important;
    font-size: 20px;
}

.site-header .account-popover nav > a > div {
    min-width: 0;
}

.site-header .account-popover nav > a b {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #142641 !important;
}

.site-header .account-popover nav > a small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #64748b !important;
}

.site-header .account-popover nav > a > span:last-child {
    color: #96702d !important;
    font-size: 16px;
}

html body .site-header .account-popover nav > a:hover {
    background: #f3f6fa !important;
    border-color: #d7e0eb !important;
    border-left-color: #c6a46a !important;
}

/* STOPKA MENU */

html body .site-header .account-popover > footer {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
    width: 100% !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    background: #f3f6fa !important;
    border-top: 1px solid #d7e0eb;
}

.site-header .account-popover > footer > a {
    display: block;
    padding: 8px;
    text-align: center;
    color: #142641 !important;
    font-size: 12px;
}

html body .site-header
.account-popover [data-auth-logout] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 44px !important;
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
    border-radius: 0 !important;
    font-size: 13px;
    font-weight: 600;
}

html body .site-header
.account-popover [data-auth-logout]:hover {
    background: #9b2532 !important;
    border-color: #9b2532 !important;
}

/* IKONY */

.site-header .account-popover svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* DOSTEPNOSC */

.site-header .account-popover :is(a,button):focus-visible {
    outline: 2px solid #96702d !important;
    outline-offset: -2px;
}

/* TELEFON */

@media(max-width:768px) {

    html body .site-header
    .account-popover[data-account-menu] {
        width: min(360px, calc(100vw - 24px)) !important;
        max-height: 65vh;
    }

    .site-header .account-trigger > span:nth-child(2) {
        display: none !important;
    }

    html body .site-header .account-trigger {
        padding: 6px !important;
        gap: 4px;
    }

    .site-header .account-trigger > i {
        margin-left: 0;
    }
}

