/*
 * Mover Portal Demo — verification state switcher styling.
 * Pairs with demo-state.js. See that file for why the demo needs states at all.
 */

/*
 * Only ever *hides*. Blocks that should be visible keep whatever display the
 * theme gave them, so a `d-flex` row or a grid child is never flattened into a
 * block by being state-dependent.
 */
[data-demo-state="locked"] [data-demo-only]:not([data-demo-only~="locked"]),
[data-demo-state="progress"] [data-demo-only]:not([data-demo-only~="progress"]),
[data-demo-state="verified"] [data-demo-only]:not([data-demo-only~="verified"]) {
    display: none !important;
}

.demo-switcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 999px;
    background: #12224f;
    box-shadow: 0 6px 22px rgba(10, 20, 80, 0.28);
    font-family: inherit;
}

.demo-switcher__label {
    padding: 0 6px 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.demo-switcher__btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 6px 13px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.demo-switcher__btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.demo-switcher__btn[aria-pressed="true"] {
    background: #fff;
    color: #12224f;
}

/* The chat bubble sits bottom-right too — lift the switcher clear of it. */
@media (min-width: 992px) {
    .demo-switcher {
        bottom: 18px;
        right: 96px;
    }
}

@media (max-width: 575px) {
    .demo-switcher {
        right: 12px;
        left: 12px;
        bottom: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
}
