/**
 * Legacy Elementor shell classes (wm-arz-*, wm-novin-*) saved before 1.7.3.
 * Paired with wm-plus-* rules in webmaster-responsive.css and site-header.css.
 *
 * @package Webmaster
 */

/* Desktop — keep legacy header bar aliases flush with wm-plus rules */
@media (min-width: 992px) {
    .site-header .wm-arz-header__bar,
    .site-header .wm-arz-header__bar.e-con,
    .site-header .wm-novin-header__bar,
    .site-header .wm-novin-header__bar.e-con {
        margin: 0 !important;
        padding: 0 !important;
        --padding-top: 0px !important;
        --padding-block-start: 0px !important;
    }

    .site-header .wm-arz-header__bar > .e-con-inner,
    .site-header .wm-novin-header__bar > .e-con-inner {
        padding-top: 0 !important;
        padding-block-start: 0 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .site-header .wm-arz-header__bar,
    .site-header .wm-arz-header__bar.e-con {
        padding: 0 !important;
    }

    .site-header .wm-arz-header__bar > .e-con-inner {
        display: grid !important;
        grid-template-columns: 44px 1fr 44px !important;
        grid-template-rows: 56px !important;
        align-items: center !important;
        justify-items: stretch !important;
        gap: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: 56px;
        max-height: 56px;
        padding: 0 10px !important;
        box-sizing: border-box;
    }

    .site-header .wm-arz-header__login,
    .site-header .wm-arz-header__cta {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header .wm-arz-header__logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
        width: auto !important;
        max-width: min(68vw, 240px) !important;
        flex: unset !important;
        order: unset;
    }

    .site-header .wm-arz-header__logo img {
        max-height: 38px;
        width: auto;
        margin-inline: auto;
    }

    .site-header .wm-arz-header__menu-pill {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        width: 44px !important;
        max-width: 44px !important;
        flex: unset !important;
        order: unset;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    .site-header .wm-arz-header__menu-pill > .e-con-inner {
        justify-content: center !important;
        padding: 0 !important;
        width: 44px !important;
    }

    .site-header .wm-arz-header__menu-pill .d-flex {
        margin: 0 !important;
        justify-content: center !important;
        width: 44px;
    }

    .site-header .wm-arz-header__menu-pill .btn-nav {
        width: 44px;
        height: 44px;
        margin: 0 !important;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(85, 70, 201, 0.18);
        border-radius: 12px;
        background: var(--wm-brand-pill, #eeebfc);
        color: var(--wm-brand-primary, #5546c9);
        box-shadow: none;
    }

    .site-header .wm-arz-header__menu-pill .btn-nav.me-3 {
        margin: 0 !important;
    }

    .site-header .wm-arz-header__menu-pill .btn-nav i {
        font-size: 1.25rem;
        color: inherit;
    }
}

@media (max-width: 991.98px) {
    .site-header .wm-arz-header__menu-pill {
        background: transparent !important;
        border-radius: 0 !important;
        width: 44px !important;
        max-width: 44px !important;
    }

    .site-header .wm-arz-header__menu-pill > .e-con-inner {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        width: 44px !important;
    }

    .site-header .wm-arz-header__login,
    .site-header .wm-arz-header__cta {
        display: none !important;
    }
}
