
/* ============================================================
   TIPNIX ACCOUNT MENU
   ============================================================ */

.tn-account-menu {
    position: fixed;
    top: 18px;
    right: 32px;
    z-index: 1000;
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

.tn-account-menu summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 42px;

    padding: 7px 12px 7px 9px;

    border: 1px solid #e4e7eb;
    border-radius: 12px;

    background: #ffffff;
    color: #17191c;

    box-shadow:
        0 1px 2px rgba(16, 24, 40, .04),
        0 4px 14px rgba(16, 24, 40, .05);

    cursor: pointer;
    user-select: none;

    font-size: 14px;
    font-weight: 650;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.tn-account-menu summary::-webkit-details-marker {
    display: none;
}

.tn-account-menu summary:hover {
    border-color: #cdd2d9;
    box-shadow:
        0 2px 4px rgba(16, 24, 40, .05),
        0 8px 20px rgba(16, 24, 40, .07);
}

.tn-account-avatar {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #17191c;
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tn-account-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tn-account-chevron {
    width: 7px;
    height: 7px;

    border-right: 1.5px solid #70757d;
    border-bottom: 1.5px solid #70757d;

    transform:
        rotate(45deg)
        translateY(-2px);

    transition:
        transform .15s ease;
}

.tn-account-menu[open]
.tn-account-chevron {
    transform:
        rotate(225deg)
        translate(-1px, -1px);
}

.tn-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    width: 220px;

    padding: 7px;

    border: 1px solid #e4e7eb;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 16px 38px rgba(16, 24, 40, .13);

    overflow: hidden;
}

.tn-account-dropdown a,
.tn-account-dropdown button {
    width: 100%;
    min-height: 40px;

    display: flex;
    align-items: center;

    padding: 9px 11px;

    border: 0;
    border-radius: 9px;

    background: transparent;
    color: #26292e;

    text-decoration: none;
    text-align: left;

    font: inherit;
    font-size: 14px;
    font-weight: 560;

    cursor: pointer;

    box-shadow: none;
}

.tn-account-dropdown a:hover,
.tn-account-dropdown button:hover {
    background: #f5f6f7;
    color: #111315;
}

.tn-account-divider {
    height: 1px;
    margin: 6px 4px;
    background: #eceef1;
}

.tn-account-logout {
    margin: 0;
}

.tn-account-dropdown
.tn-account-logout-button {
    color: #b42318;
}

.tn-account-dropdown
.tn-account-logout-button:hover {
    background: #fff2f1;
    color: #9f1d14;
}


/* Platz im oberen Bereich fuer das Menue freihalten */

body {
    --tn-account-menu-space: 220px;
}


/* Smartphone */

@media (max-width: 700px) {
    .tn-account-menu {
        top: 11px;
        right: 11px;
    }

    .tn-account-menu summary {
        min-height: 40px;
        padding: 6px 9px;
    }

    .tn-account-name {
        display: none;
    }

    .tn-account-dropdown {
        width: min(
            220px,
            calc(100vw - 22px)
        );
    }
}
