/* ---------------------------------------
 * User avatar
 * --------------------------------------- */
.hydro-account-menu-wrapper {
    position: relative;
}

.hydro-account-circle-tooltip {
    position: absolute;

    color: var(--hydro-shades-white-bg);

    font-size: 0.875rem;
    font-weight: 400;
    line-height: 140%; /* 1.3125rem */

    top: calc(100% + .5rem);
    left: 50%;

    transform: translateX(-50%);

    border-radius: 0.5rem;

    padding: 0.375rem .5rem;

    background: var(--hydro-shades-dark-grey);

    pointer-events: none;
    opacity: 0;

    transition: opacity var(--hydro-transition-timing) ease-in-out;

    will-change: transform, opacity;
}

.hydro-account-menu {
    position: absolute;

    inset-inline-end: 0;
    top: calc(100% + .5rem);

    width: 19.375rem;

    overflow: hidden;

    border-radius: 1rem;
    background: var(--white-100, #FFF);

    /* Elevation/App/Card Shadow/Grey */
    box-shadow: -15px 22px 54px 0px rgba(96, 97, 112, 0.07), 0px 2px 8px 0px rgba(40, 41, 61, 0.08);

    pointer-events: none;
    opacity: 0;
    transform: translateY(-1.25rem);

    transition: opacity var(--hydro-transition-timing) ease-in-out, transform var(--hydro-transition-timing) ease-in-out;

    will-change: transform, opacity;
}

.hydro-account-menu-snippet {
    display: flex;

    padding: 1rem;

    border-bottom: 0.0625rem solid var(--hydro-primary-green-gray);
    background: var(--hydro-primary-forest-white);

    text-decoration: none;

    color: var(--hydro-shades-dark-grey);
}

.hydro-account-menu-snippet__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-inline-start: 1rem;
}

.hydro-account-menu-snippet__name,
.hydro-account-menu-snippet__email {
    display: block;
    white-space: nowrap;
    width: 100%;
    text-overflow: ellipsis;

    margin-block: -.05rem;
}

.hydro-account-menu-snippet__name {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 150%; /* 1.3125rem */
}

.hydro-account-menu-snippet__email {
    color: var(--hydro-shades-black-50);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 150%; /* 1.125rem */
}

.hydro-account-menu__list {
    display: flex;
    flex-direction: column;
    gap: .5rem;

    margin: 0;
    list-style-type: none;

    padding: .5rem;
}

.hydro-account-menu-item--footer {
    padding-top: .5rem;
    border-top: 0.0625rem solid var(--hydro-primary-green-gray);
}

.hydro-account-item {
    position: relative;

    display: flex;
    align-items: center;

    gap: 1rem;

    text-decoration: none;

    color: var(--hydro-shades-dark-grey);

    font-size: 0.875rem;
    font-weight: 400;
    line-height: 150%; /* 1.3125rem */

    padding: .5rem 1rem;

    transition: background-color .3s;
}

.hydro-account-item .hydro-account-item__icon {
    width: 1.5rem;
    height: 1.5rem;
}

.hydro-account-item path {
    fill: currentColor;
    transition: fill .3s;
}

.hydro-account-item .hydro-account-item__arrow {
    pointer-events: none;
    display: none;
}

.hydro-account-item--in-popup .hydro-account-item__arrow {
    display: block;
    position: absolute;
    top: 50%;
    margin-top: -0.375rem;
    inset-inline-end: 1.3rem;
    width: 0.5rem;
    height: 0.75rem;
}

.hydro-account-item:active {
    background-color: #F7F7F7;
}

.hydro-account-item:active .hydro-account-item__icon path {
    fill: var(--hydro-primary-green);
}

.hydro-account-item--in-popup {
    padding: 1rem;
    border-radius: .5rem;
    background-color: var(--primary-green);
    color: var(--white-100);
}

.hydro-account-circle {
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    width: var(--hydro-mobile-ui-height, 2.5rem);
    height: var(--hydro-mobile-ui-height, 2.5rem);

    border-radius: 50%;

    background: var(--hydro-secondary-deep-blue-500, #1F3ED0);

    color: var(--hydro-shades-white-bg, #FDFDFD);

    font-size: 1.125rem;
    font-weight: 400;

    line-height: 1.125rem;

    text-decoration: none;
    text-transform: uppercase;
}

.hydro-account-circle__label {
    margin-top: -0.0625rem;
}

.hydro-account-circle__img {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.opened .hydro-account-menu {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.opened .hydro-account-circle-tooltip {
    opacity: 0 !important;
}

@media (hover:hover) {
    .hydro-account-item:hover {
        background-color: var(--hydro-shades-light-white);
    }

    .hydro-account-item:hover .hydro-account-item__icon path,
    .hydro-account-item:hover .hydro-account-item__arrow path {
        fill: var(--hydro-primary-green);
    }

    .hydro-account-circle:hover + .hydro-account-circle-tooltip {
        opacity: 1;
    }

    .hydro-account-item--in-popup:hover {
        color: var(--white-100);
        background-color: var(--btn-secondary-background-hover);
    }

    .hydro-account-item--in-popup:hover .hydro-account-item__icon path,
    .hydro-account-item--in-popup:hover .hydro-account-item__arrow path {
        fill: var(--white-100);
    }
}

.hydro-account-item--in-popup:active {
    background-color: #0D443C;
}

.hydro-account-item--in-popup:active .hydro-account-item__icon path,
.hydro-account-item--in-popup:active .hydro-account-item__arrow path {
    fill: var(--white-100);
}

@media (min-width:1200px) {
    .hydro-account-menu {
        width: 19.5rem;
    }

    .hydro-account-menu-snippet {
        background-color: transparent;
        border-bottom-color: transparent;
    }

    .hydro-account-item .hydro-account-item__arrow {
        display: block;

        position: absolute;

        top: 50%;
        margin-top: -0.375rem;

        inset-inline-end: 1.3rem;

        width: 0.5rem;
        height: 0.75rem;
    }

    .hydro-account-item .hydro-account-item__arrow path {
        transition: fill .3s;
    }
}
