/**
 * Demo toolbar (rendered by the demo plugin, above the site header) — mobile layout.
 *
 * The toolbar markup belongs to the demo plugin and cannot be changed from here,
 * so the mobile version is built by hiding the parts that do not fit and showing
 * a single "Open Skadate.com" link that the plugin's event handler injects into
 * the left side of the toolbar. Desktop is left untouched.
 *
 * 500px is the theme's mobile breakpoint (same one the burger menu uses).
 */

/* Injected by TWENTYYEARSLIGHTTHEME_CLASS_EventHandler; only used on mobile. */
.ty_demo_toolbar_skadate {
    display: none;
}

@media (max-width: 500px) {
    .ow_demo_toolbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 6px 10px;
        box-sizing: border-box;
    }

    .ow_demo_toolbar .ow_demo_toolbar_left,
    .ow_demo_toolbar .ow_demo_toolbar_right {
        display: flex;
        align-items: center;
        float: none;
        margin: 0;
        padding: 0;
        width: auto;
    }

    .ow_demo_toolbar .ow_demo_toolbar_right {
        margin-left: auto;
    }

    /* Left: keep only the injected Skadate.com link. */
    .ow_demo_toolbar .ow_demo_toolbar_home,
    .ow_demo_toolbar .ow_demo_toolbar_trial_request {
        display: none !important;
    }

    .ow_demo_toolbar .ty_demo_toolbar_skadate {
        display: inline-block;
        white-space: nowrap;
        text-decoration: none;
    }

    /* Right: keep only the theme switcher. */
    .ow_demo_toolbar .ow_demo_toolbar_login,
    .ow_demo_toolbar .ow_demo_toolbar_txt {
        display: none !important;
    }

    .ow_demo_toolbar .ow_demo_toolbar_select {
        display: block;
        float: none;
        margin: 0;
    }

    .ow_demo_toolbar .ow_demo_toolbar_select select {
        max-width: 180px;
    }
}

