/* =========================================================
   AVRILA UNIVERSAL AUTH HEADER
========================================================= */

.avrila-auth-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 8px;
}


/* Login */

.avrila-login-wrapper {
    display: block;
}

.avrila-login-link {
    color: #1a3830;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s ease;
}

.avrila-login-link:hover {
    color: #2d6b55;
}


/* Profile */

.avrila-profile-wrapper {
    position: relative;
    display: none;
}


/* Circle */

.avrila-profile-button {
    width: 42px;
    height: 42px;

    padding: 0;

    border-radius: 50%;
    overflow: hidden;

    border: 2px solid #8fc47a;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.avrila-profile-button:hover {
    transform: scale(1.05);

    box-shadow:
        0 5px 18px rgba(20, 48, 39, 0.15);
}


.avrila-profile-button img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* Dropdown */

.avrila-profile-dropdown {

    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 250px;

    background: #2d6b55;

    border: 1px solid #dce7e1;

    box-shadow:
        0 15px 40px rgba(20, 48, 39, 0.18);

    padding: 8px;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 99999;
}


.avrila-profile-dropdown.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


/* User information */

.avrila-profile-info {
    padding: 13px;
}

.avrila-profile-name {

    color: #ffffff;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 21px;

    font-weight: 600;

    margin-bottom: 3px;

}

.avrila-profile-email {

    color: rgba(255,255,255,0.72);

    font-size: 11px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* Divider */

.avrila-profile-divider {

    height: 1px;

    background: rgba(255,255,255,0.18);

    margin: 3px 0 8px;

}


/* Links */

.avrila-profile-link,
.avrila-logout-button {

    width: 100%;

    display: block;

    padding: 11px 13px;

    border: none;

    background: transparent;

    text-align: left;

    text-decoration: none;

    color: #ffffff;

    font-family: "Inter", sans-serif;

    font-size: 12px;

    cursor: pointer;

    box-sizing: border-box;

    transition: 0.2s ease;

}


.avrila-profile-link:hover {

    background: #f2f7f4;

    color: #1a3830;

}


.avrila-logout-button:hover {

    background: #fbf1ef;

    color: #9b5148;

}


/* Mobile */

@media (max-width: 700px) {

    .avrila-profile-dropdown {

        right: -5px;

        width: 225px;

    }

}