/**********************************************
 * Unified Language Switcher CSS
 **********************************************/

/* ---------- FRONT-END (Desktop & Mobile) ---------- */

.language-switcher-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100%;
}

/* Main dropdown styling for front-end */
.language-switcher.custom-dropdown {
    position: relative;
    display: flex;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(98, 98, 98);
    letter-spacing: -0.24px;
    border: 1px solid rgb(98, 98, 98);
    border-radius: 20px;
    padding: 5px 10px;
    box-sizing: border-box;
    text-align: left;
    min-height: 36px;
}

.language-switcher .dropdown-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    padding: 0px 4px;
}

.language-switcher .dropdown-display:after {
    content: "\e826"; /* bb-icons chevron */
    font-family: bb-icons;
    font-weight: 400;
    font-style: normal;
    color: rgb(98, 98, 98);
    position: relative; 
    margin-left: 8px; 
    font-size: 20px;
    -webkit-font-smoothing: antialiased;
}

.language-switcher .dropdown-options {
    display: none;
    position: absolute;
    left: -20px;
    top: calc(100% + 5px);
    background: #fff;
    padding: 10px;
    z-index: 1000;
    min-width: 145px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 3px 8px, rgba(0, 0, 0, 0.12) 0px 6px 24px;
    box-sizing: border-box;
}

.language-switcher .dropdown-options a {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    text-decoration: none;
    color: rgb(98, 98, 98);
    cursor: pointer;
    font-weight: 500;
    letter-spacing: -0.24px;
}

.language-switcher .dropdown-options a::before {
    content: "✔";
    color: grey;
    font-size: 12px;
    margin-right: 8px;
    visibility: hidden; 
}

.language-switcher .dropdown-options a.current-language::before {
    visibility: visible; /* Show check mark for current language */
}

.language-switcher .dropdown-options a:hover {
    background: #f0f0f0;
    border-radius: 5px;
}

/* Hover logic to ensure dropdown stays open on front-end */
.language-switcher-wrapper:hover .dropdown-options {
    display: block;
}

/* ---------- LOGIN & REGISTRATION ---------- */

/* The top-right absolute positioning */
.custom-language-switcher-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    line-height: 20px;
}

/* Make the position responsive for login/registration */
@media (max-width: 992px) {
    .custom-language-switcher-wrapper {
        top: 520px;
    }
    .bp_register {
        padding-top: 65px;
    }
}
@media (max-width: 601px) {
    .login .custom-language-switcher-wrapper {
        top: 540px;
    }
    div#login {
        padding-top: 70px !important;
    }
}
@media (max-width: 470px) {
    .login .custom-language-switcher-wrapper {
        top: 570px;
    }
    div#login {
        padding-top: 80px !important;
    }
}
@media (max-width: 432px) {
    .login .custom-language-switcher-wrapper {
        top: 630px;
        right: 15px;
    }
    .registration .custom-language-switcher-wrapper {
        top: 600px;
        right: 15px;
    }
    div#login {
        padding-top: 80px !important;
    }
}
@media (max-width: 388px) {
    .login .custom-language-switcher-wrapper {
        top: 650px;
        right: 15px;
    }
    .registration .custom-language-switcher-wrapper {
        top: 630px;
        right: 15px;
    }
    div#login {
        padding-top: 80px !important;
    }
}
@media (max-width: 334px) {
    .custom-language-switcher-wrapper {
        top: 710px;
        right: 15px;
    }
    div#login {
        padding-top: 80px !important;
    }
}

/* Dropdown styling for login/register—very similar, just reusing same classes */
.custom-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(98, 98, 98);
    letter-spacing: -0.24px;
    border: 1px solid rgb(98, 98, 98);
    border-radius: 20px;
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: left;
    min-height: 36px;
}

.custom-dropdown .dropdown-display {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    cursor: pointer;
    position: relative;
    padding: 0px 4px;
}
.custom-dropdown .dropdown-display a.language-link {
    color: rgb(98, 98, 98) !important;
}

/* Use ::after or :after for the chevron on login/register as well */
.custom-dropdown .dropdown-display::after {
    content: "\e826"; /* bb-icons chevron down */
    font-family: bb-icons;
    font-weight: 400;
    font-size: 20px;
    color: rgb(98, 98, 98);
    margin-left: 8px;
    position: relative;
    top: 0;
    -webkit-font-smoothing: antialiased;
}

.custom-dropdown .dropdown-options {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: -15px;
    background-color: #fff;
    padding: 10px;
    z-index: 1000;
    border-radius: 10px;
    min-width: 145px;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 3px 8px, rgba(0, 0, 0, 0.12) 0px 6px 24px;
    box-sizing: border-box;
}

.custom-dropdown .dropdown-options a {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    color: rgb(98, 98, 98) !important;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -0.24px;
}

.custom-dropdown .dropdown-options a::before {
    content: "✔";
    margin-right: 8px;
    visibility: hidden;
    color: grey;
}

.custom-dropdown .dropdown-options a.current-language::before {
    visibility: visible;
}

.custom-dropdown .dropdown-options a:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

/* Hover effect for login/register switcher */
.custom-language-switcher-wrapper:hover .dropdown-options {
    display: block;
}


/* In case of error on a registration link: cancel the shaking (which moves the language switcher) and restore a readable link color */
.login form.shake {
    animation: none;
    animation-iteration-count: 3;
    transform: none;
}

.login #login_error a {
    color: #2271b1 !important;
}

/* Make sure Sign-up title doesn't go over the language switcher if not much vertical height */
.bp_register.type-bp_register header.entry-header {
    margin-top: 80px;
}

/* Space out the text for agreeing to the privacy policy */
.bp-checkbox-wrap label.option-label {
    line-height: 1.5em;
}


/* ---------- BUTTON STYLING copied from paradigm21.css ---------- */

/* Sign-up + Login - Button Style */
input#signup_submit, input#wp-submit {
    border-radius: 40px !important;
    border: 2px solid var(--bb-primary-button-background-regular) !important;
}
/* Sign-up + Login - Button Hover */
input#signup_submit:hover, input#wp-submit:hover
{
    background-color: var(--bb-primary-button-background-hover) !important;
    color: var(--bb-primary-button-text-hover) !important;
    border-color: var(--bb-primary-button-background-hover) !important;
    border: 2px solid var(--bb-primary-button-background-regular) !important;
    background-image: none !important;
}

/* Adding style to mobile menu, centering the text of sign-in button vertically */
@media (max-width: 799px) {
    a.button.small.signup {
        height: 30px;
        line-height: 30px;
    }
}


/* ---------- LOGIN EXPIRED PAGE ---------- */

/* Remove the split screen and keep only the login side */ 

@media (max-width: 388px) {
    /* Hide the top part */
    .interim-login .login-split {
        display: none !important;
    }
    /* Move the language switche back to the top */ 
    .interim-login.login .custom-language-switcher-wrapper {
        top: 10px !important;
        right: 25px;
    }
    /* Hide the create an account option */
    .interim-login .login-heading>span {
        display: none;
    }
}
