
/* =========================================================
   HIGH5 USER ACCOUNT
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400,0,0');

.h5ua-user-account {
    position: relative;
    width: auto;
    color: #111827;
    font-family: inherit;
}


/* =========================================================
   ACCOUNT TRIGGER
========================================================= */

.h5ua-account-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    min-height: 44px !important;
    padding: 0 16px !important;

    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;

    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease !important;
}

.h5ua-account-trigger:hover {
    background: #f8fafc !important;
    border-color: #bfc5cc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06) !important;
}

.h5ua-account-trigger:focus {
    outline: none !important;
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, .12) !important;
}

.h5ua-user-name {
    white-space: nowrap;
}

.h5ua-dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    color: #6b7280;

    transition: transform .2s ease;
}


/* =========================================================
   DROPDOWN
========================================================= */

.h5ua-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 99999;

    width: 300px;
    padding: 10px;

    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .10) !important;

    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.h5ua-user-account.h5ua-open .h5ua-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================================
   DROPDOWN HEADER
========================================================= */

.h5ua-dropdown-header {
    padding: 14px 14px 15px;
}

.h5ua-dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.h5ua-dropdown-name {
    margin: 0;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;

    color: #111827;
}

.h5ua-dropdown-email {
    margin: 0;

    font-size: 12px;
    line-height: 1.4;

    color: #6b7280;

    word-break: break-word;
}


/* =========================================================
   DIVIDER
========================================================= */

.h5ua-dropdown-divider {
    height: 1px;

    margin: 4px 6px;

    background: #f0f0f0;
}


/* =========================================================
   DROPDOWN ITEMS
========================================================= */

.h5ua-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    width: 100% !important;
    min-height: 44px !important;

    padding: 11px 12px !important;
    margin: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;

    color: #374151 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;

    text-align: left !important;
    text-decoration: none !important;

    cursor: pointer !important;

    box-shadow: none !important;

    box-sizing: border-box !important;

    transition:
        background .18s ease,
        color .18s ease !important;
}

.h5ua-dropdown-item:hover {
    background: #f8fafc !important;
    color: #111827 !important;
}

.h5ua-dropdown-item:focus {
    outline: none !important;
    background: #f1f5f9 !important;
    color: #111827 !important;
}

.h5ua-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    background: #eff6ff;

    color: #2271b1;

    font-size: 15px;
    line-height: 1;
}


/* =========================================================
   LOGOUT
========================================================= */

.h5ua-dropdown-item.h5ua-logout {
    color: #374151 !important;
}

.h5ua-dropdown-item.h5ua-logout:hover {
    background: #f8fafc !important;
    color: #111827 !important;
}


/* =========================================================
   PROFILE MODAL
========================================================= */

.h5ua-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;

    box-sizing: border-box;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.h5ua-modal.h5ua-modal-open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MODAL OVERLAY
========================================================= */

.h5ua-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(17, 24, 39, .45);
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.h5ua-modal-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 500px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 20px 45px rgba(0, 0, 0, .15);

    overflow: hidden;

    box-sizing: border-box;

    transform: translateY(-8px);
    transition: transform .2s ease;
}

.h5ua-modal.h5ua-modal-open .h5ua-modal-content {
    transform: translateY(0);
}


/* =========================================================
   MODAL HEADER
========================================================= */

.h5ua-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 24px;

    border-bottom: 1px solid #f0f0f0;
}

.h5ua-modal-header h3 {
    margin: 0;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;

    color: #111827;
}

.h5ua-modal-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 36px !important;
    height: 36px !important;

    padding: 0 !important;
    margin: 0 !important;

    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 9px !important;

    color: #6b7280 !important;

    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer !important;

    box-shadow: none !important;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease !important;
}

.h5ua-modal-close:hover {
    background: #f1f5f9 !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}


/* =========================================================
   MODAL BODY
========================================================= */

.h5ua-modal-body {
    padding: 24px;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.h5ua-form-field {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin-bottom: 18px;
}

.h5ua-form-field label {
    font-size: 12px;
    line-height: 1.4;

    font-weight: 700;

    color: #6b7280;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.h5ua-form-field input {
    width: 100%;

    height: 44px;

    padding: 0 13px;

    background: #ffffff !important;

    border: 1px solid #d1d5db !important;
    border-radius: 9px !important;

    color: #111827 !important;

    font-family: inherit !important;
    font-size: 14px !important;

    outline: none !important;

    box-sizing: border-box !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease !important;
}

.h5ua-form-field input:hover {
    border-color: #bfc5cc !important;
}

.h5ua-form-field input:focus {
    border-color: #2271b1 !important;

    box-shadow:
        0 0 0 3px rgba(34, 113, 177, .10) !important;
}


/* =========================================================
   PROFILE MESSAGE
========================================================= */

.h5ua-profile-message {
    min-height: 20px;

    margin: 4px 0 16px;

    font-size: 13px;
    line-height: 1.5;

    color: #6b7280;
}


/* =========================================================
   SAVE BUTTON
========================================================= */

.h5ua-save-profile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 44px !important;

    padding: 0 20px !important;

    background: #2271b1 !important;
    border: 0 !important;
    border-radius: 9px !important;

    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    cursor: pointer !important;

    box-shadow: none !important;

    transition:
        background .2s ease,
        opacity .2s ease !important;
}

.h5ua-save-profile:hover {
    background: #1d639b !important;
}

.h5ua-save-profile:disabled {
    opacity: .65 !important;
    cursor: not-allowed !important;
}

/* ==========================================================================
   Update Password Button
   ========================================================================== */

.h5ua-save-password {
    width: 100% !important;
    display: block !important;

    margin-top: 8px !important;
    padding: 13px 18px !important;

    border: 1px solid #2271b1 !important;
    border-radius: 9px !important;

    background: #2271b1 !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;

    cursor: pointer !important;

    box-shadow: none !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease !important;
}

.h5ua-save-password:hover {
    background: #1b5f91 !important;
    border-color: #1b5f91 !important;
    color: #ffffff !important;
}

.h5ua-save-password:focus {
    outline: none !important;
    color: #ffffff !important;

    box-shadow:
        0 0 0 3px rgba(34, 113, 177, 0.15) !important;
}

.h5ua-save-password:active {
    transform: translateY(1px) !important;
}

.h5ua-save-password:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 700px) {

    .h5ua-dropdown {
        width: 280px;
    }

    .h5ua-modal {
        padding: 16px;
    }

    .h5ua-modal-content {
        max-width: 100%;
        border-radius: 16px;
    }

    .h5ua-modal-header {
        padding: 20px;
    }

    .h5ua-modal-body {
        padding: 20px;
    }

}

/* ==========================================================================
   Password Visibility Toggle
   ========================================================================== */

/* ==========================================================================
   Password Visibility Toggle
   ========================================================================== */

.h5ua-password-input-wrapper {
    position: relative !important;
    width: 100% !important;
}

.h5ua-password-input-wrapper input {
    width: 100% !important;
    padding-right: 48px !important;
}

.h5ua-password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 32px !important;
    height: 32px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #6b7280 !important;

    cursor: pointer !important;

    transform: translateY(-50%) !important;

    box-shadow: none !important;
}

.h5ua-password-toggle .material-symbols-outlined {
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 20;
}

.h5ua-password-toggle:hover {
    background: transparent !important;
    color: #2271b1 !important;
}

.h5ua-password-toggle:focus {
    outline: none !important;
    background: transparent !important;
    color: #2271b1 !important;
    box-shadow: none !important;
}

.h5ua-password-toggle:active {
    background: transparent !important;
    transform: translateY(-50%) !important;
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .h5ua-dropdown {
        right: -10px;
        width: calc(100vw - 32px);
        max-width: 320px;
    }

    .h5ua-account-trigger {
        min-height: 42px !important;
        padding: 0 13px !important;
    }

    .h5ua-user-name {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

}