.evm-account-controls {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 4px;

    flex: 0 0 auto;
}

.evm-pm-button {
    width: 36px;
    height: 40px;

    padding: 0;

    position: relative;

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

    border-radius: 9px;

    color: #17211c;

    text-decoration: none;
}

.evm-pm-button:hover {
    background: #eaf7f1;
    color: #16a66a;
}

.evm-pm-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.evm-pm-badge {
    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    position: absolute;

    top: -3px;
    right: -5px;

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

    border: 2px solid #ffffff;
    border-radius: 999px;

    background: #e5484d;
    color: #ffffff;

    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.evm-pm-badge[hidden] {
    display: none !important;
}

.evm-account-profile {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #17211c;

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

    text-decoration: none;

    white-space: nowrap;
}

.evm-account-profile:hover {
    color: #16a66a;
}

.evm-account-avatar {
    width: 36px;
    height: 36px;

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

    border-radius: 50%;

    background: #eaf7f1;
    color: #16a66a;

    font-weight: 800;
}

@media (max-width: 620px) {

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

    .evm-account-controls {
        gap: 2px;
    }
}


/* =========================================================
   EVMOTION account dropdown
   Matches forum/phpBB account menu
   ========================================================= */

.evm-account-menu {
    position: relative;
}

button.evm-account-profile {
    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    font-family: inherit;

    cursor: pointer;
}

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

    z-index: 1000;

    min-width: 202px;
    padding: 5px;

    border: 1px solid #b9b9b9;
    border-radius: 5px;

    background: #fff;

    box-shadow: 1px 3px 5px rgba(0, 0, 0, .20);
}

.evm-account-dropdown[hidden] {
    display: none !important;
}

.evm-account-dropdown a {
    min-height: 30px;

    padding: 5px;

    display: flex;
    align-items: center;

    gap: 7px;

    color: #078d58;

    font-size: 14px;
    line-height: 20px;
    font-weight: 400;

    text-decoration: none;

    white-space: nowrap;
}

.evm-account-dropdown a:hover {
    color: #16a66a;
    text-decoration: underline;
}

.evm-account-dropdown-icon {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

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

    color: #078d58;
}

.evm-account-dropdown-icon svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.evm-account-dropdown-separator {
    height: 0;

    margin: 2px 0;

    border-top: 1px solid #dcdcdc;
}

.evm-account-dropdown .evm-account-dropdown-logout,
.evm-account-dropdown .evm-account-dropdown-logout:hover {
    color: #078d58;
}


/* Final visual alignment with phpBB account dropdown */

.evm-account-dropdown {
    top: calc(100% + 9px);

    min-width: 202px;

    padding: 5px;

    overflow: visible;
}

.evm-account-dropdown::before,
.evm-account-dropdown::after {
    content: "";

    position: absolute;
    right: 12px;

    width: 0;
    height: 0;

    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.evm-account-dropdown::before {
    top: -9px;

    border-bottom: 8px solid #b9b9b9;
}

.evm-account-dropdown::after {
    top: -8px;

    border-bottom: 8px solid #fff;
}

.evm-account-dropdown a {
    min-height: 30px;

    font-size: 16px;
    line-height: 20px;
}

.evm-account-dropdown a + a {
    border-top: 1px dotted #dcdcdc;
}

.evm-account-dropdown-separator {
    margin: 0;

    border-top: 1px solid #dcdcdc;
}
