/**
 * Account Switcher — Frontend Styles
 * @package YDGThemeChild
 */

/* Dashboard Switcher Section */
.ylhq-switch-accounts {
    margin: 2em 0;
    padding: 1.5em;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ylhq-switch-accounts__heading {
    margin: 0 0 1em;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.ylhq-switch-accounts__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    align-items: center;
}

.ylhq-switch-accounts__buttons form {
    margin: 0;
}

/* Switch Button */
.ylhq-switch-btn {
    display: inline-block;
    padding: 0.55em 1.25em;
    font-size: 0.9em;
    font-weight: 600;
    color: #fff;
    background-color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.ylhq-switch-btn:hover,
.ylhq-switch-btn:focus {
    background-color: #135e96;
    border-color: #135e96;
    color: #fff;
}

.ylhq-switch-btn:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* =========================================================
   Switch Bar — Fixed top notice during an active switch
   ========================================================= */

.ylhq-switch-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: #d63638;
    color: #fff;
    padding: 0.5em 1.5em;
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 0.9em;
    box-sizing: border-box;
}

.ylhq-switch-bar__text {
    flex-grow: 1;
}

.ylhq-switch-bar form {
    margin: 0;
}

.ylhq-switch-bar__back-btn {
    display: inline-block;
    padding: 0.35em 1em;
    font-size: 0.9em;
    font-weight: 600;
    color: #1d2327;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ylhq-switch-bar__back-btn:hover,
.ylhq-switch-bar__back-btn:focus {
    background-color: #f0f0f1;
    border-color: #f0f0f1;
    color: #1d2327;
}

.ylhq-switch-bar__back-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
