/* Dropdown under the MyEAC Accounts button in the topbar.
 *
 * The theme's own dropdown rules are scoped to .main-menu .main-menu-list,
 * so the topbar button cannot borrow them. These match that look -- same
 * shadow, item padding and hover -- without touching the vendored
 * style.css.
 */

.account-menu {
    position: relative;
    display: flex;
}

/* The toggle is a <button>, since it opens a menu rather than going
 * anywhere. .btn-primary carries the theme's styling; these two lines are
 * what an <a> was getting from the theme and a <button> is not.
 */
.account-menu-toggle {
    flex-shrink: 0;
    white-space: nowrap;
}

.account-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 260px;
    margin: 0;
    padding: 0;
    background-color: #fff;
    box-shadow: 0px 10px 30px 0px rgb(0 0 0 / 10%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
    z-index: 999;
    text-align: left;
}

.account-menu.is-open .account-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu-list > li > a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--thm-border);
    background-color: #fff;
    color: var(--thm-gray);
    font-size: 15px;
    font-weight: 600;
}

.account-menu-list > li:last-child > a {
    border-bottom: 0;
}

.account-menu-list > li > a:hover,
.account-menu-list > li > a:focus-visible {
    background-color: var(--thm-primary);
    color: #fff;
}

/* The optional line under a portal's label. */
.account-menu-list > li > a span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.75;
}

.account-menu-empty {
    padding: 14px 20px;
    color: var(--thm-gray);
    font-size: 14px;
}

/* The caret, turned over while the panel is open. */
.account-menu-toggle i {
    margin-left: 8px;
    font-size: 13px;
    transition: transform 300ms ease;
}

.account-menu.is-open .account-menu-toggle i {
    transform: rotate(180deg);
}

/* The same portals inside the mobile drawer.
 *
 * .topbar-one-button is hidden below 1199px by the theme, so on phones and
 * tablets this section is the only way to reach them. The drawer is dark,
 * hence the white text and faint dividers, matching .mobile-nav-container.
 */

.mobile-nav-portals {
    margin-top: 25px;
}

.mobile-nav-portals h4 {
    margin-bottom: 0;
    color: var(--thm-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mobile-nav-portals ul {
    margin-bottom: 0;
}

.mobile-nav-portals li {
    line-height: 45px;
    border-top: 1px solid rgba(var(--thm-border-rgb), 0.17);
}

.mobile-nav-portals li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: 600;
}

.mobile-nav-portals li > a i {
    font-size: 12px;
    opacity: 0.6;
}
