/* ==========================================================================
   Webmaster Plus — Global responsive + mobile footer + PWA safe areas
   ========================================================================== */

/* AOS async/defer race: keep Elementor widgets visible until .aos-animate is applied */
.elementor [data-aos]:not(.aos-animate),
.elementor [data-aos^="fade"]:not(.aos-animate),
.elementor [data-aos^="zoom"]:not(.aos-animate),
.elementor [data-aos^="slide"]:not(.aos-animate) {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

:root {
    --wm-bp-sm: 640px;
    --wm-bp-md: 768px;
    --wm-bp-lg: 992px;
    --wm-bp-xl: 1200px;
    --wm-safe-top: env(safe-area-inset-top, 0px);
    --wm-safe-bottom: env(safe-area-inset-bottom, 0px);
    --wm-safe-left: env(safe-area-inset-left, 0px);
    --wm-safe-right: env(safe-area-inset-right, 0px);
    --wm-touch-min: 44px;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    padding-left: var(--wm-safe-left);
    padding-right: var(--wm-safe-right);
    max-width: 100%;
}

/* Admin bar — sticky header offset only (WP handles html margin-top) */
@media screen and (min-width: 783px) {
    body.admin-bar .site-header {
        top: 32px;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

body.admin-bar .site-header,
body.admin-bar .app {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.app {
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 100%;
    justify-content: flex-start !important;
}

img,
video,
svg,
iframe {
    max-width: 100%;
    height: auto;
}

/* ── Page shells — tablet ── */
@media (max-width: 1199.98px) {
    :root {
        --wm-gutter: clamp(16px, 2.4vw, 28px);
    }
}

@media (max-width: 767.98px) {
    :root {
        --wm-gutter: 16px;
        --wm-container: 100%;
    }

    .site-header .webmaster-header-cta,
    .site-header .wm-plus-header .webmaster-header-cta {
        display: none !important;
    }
}

/* ── Touch-friendly controls ── */
@media (max-width: 991.98px) {
    .site-header a,
    .site-header button,
    .site-footer a,
    .site-footer button,
    .wm-plus-home a.btn,
    .wm-sl-page .wm-sl-btn,
    .wm-wd-page .wm-wd-btn {
        min-height: var(--wm-touch-min);
    }
}

/* ==========================================================================
   Mobile + tablet header (wm-plus-header)
   ========================================================================== */

@media (max-width: 991.98px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 400;
        padding-top: var(--wm-safe-top);
        background: #fff;
        box-shadow: 0 1px 0 rgba(85, 70, 201, 0.1);
    }

    .site-header .wm-plus-header__bar,
    .site-header .wm-plus-header__bar.e-con {
        padding: 0 !important;
    }

    /* Menu RIGHT · logo CENTER · call LEFT (RTL) */
    .site-header .wm-plus-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-header-mobile-call {
        position: absolute;
        inset-inline-end: 10px;
        top: calc(var(--wm-safe-top, 0px) + 28px);
        transform: translateY(-50%);
        z-index: 410;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 12px;
        background: var(--wm-brand-pill, #eeebfc);
        border: 1px solid rgba(85, 70, 201, 0.14);
        color: var(--wm-brand-primary, #5546c9);
        text-decoration: none;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .site-header .wm-header-mobile-call__label {
        display: none;
    }

    .site-header .wm-header-mobile-call__icon {
        font-size: 1.1rem;
        line-height: 1;
    }

    .site-header .wm-header-mobile-call:active {
        background: rgba(85, 70, 201, 0.12) !important;
    }

    .site-header .wm-plus-header__login,
    .site-header .wm-plus-header__cta {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header .wm-plus-header__menu-pill,
    .site-header .wm-arz-header__menu-pill,
    .site-header .wm-plus-header__menu-pill.elementor-hidden-mobile,
    .site-header .wm-plus-header__menu-pill.elementor-hidden-phone,
    .site-header .wm-plus-header__menu-pill.elementor-hidden-tablet,
    .site-header .wm-arz-header__menu-pill.elementor-hidden-mobile,
    .site-header .wm-arz-header__menu-pill.elementor-hidden-phone,
    .site-header .wm-arz-header__menu-pill.elementor-hidden-tablet {
        display: block !important;
        visibility: visible !important;
        width: 44px !important;
        max-width: 44px !important;
        min-width: 44px !important;
        overflow: visible !important;
    }

    .site-header .wm-plus-header__menu-pill .elementor-widget-pluskitnavmenu,
    .site-header .wm-plus-header__menu-pill .elementor-widget-wmplus-pluskitnavmenu,
    .site-header .wm-arz-header__menu-pill .elementor-widget-pluskitnavmenu,
    .site-header .wm-arz-header__menu-pill .elementor-widget-wmplus-pluskitnavmenu,
    .site-header .wm-plus-header__menu-pill .elementor-widget-container,
    .site-header .wm-arz-header__menu-pill .elementor-widget-container {
        width: 44px !important;
        min-width: 44px !important;
        overflow: visible !important;
    }

    .site-header .wm-plus-header__menu-pill .wm-header-menu-toggle-wrap,
    .site-header .wm-arz-header__menu-pill .wm-header-menu-toggle-wrap {
        display: flex !important;
        visibility: visible !important;
        width: 44px !important;
        min-width: 44px !important;
        margin: 0 !important;
    }

    .site-header .wm-plus-header__menu-pill .btn-nav,
    .site-header .wm-arz-header__menu-pill .btn-nav,
    .site-header .wm-plus-header__menu-pill .wm-header-menu-toggle,
    .site-header .wm-arz-header__menu-pill .wm-header-menu-toggle {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header .wm-plus-header__menu-pill .btn-nav__svg,
    .site-header .wm-arz-header__menu-pill .btn-nav__svg {
        display: block;
        width: 22px;
        height: 22px;
    }

    .site-header .wm-plus-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-plus-header__logo img {
        max-height: 38px;
        width: auto;
        margin-inline: auto;
    }

    .site-header .wm-plus-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-plus-header__menu-pill > .e-con-inner {
        justify-content: center !important;
        padding: 0 !important;
        width: 44px !important;
    }

    .site-header .wm-plus-header__menu-pill .d-flex {
        margin: 0 !important;
        justify-content: center !important;
        width: 44px;
    }

    .site-header .wm-plus-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-plus-header__menu-pill .btn-nav.me-3 {
        margin: 0 !important;
    }

    .site-header .wm-plus-header__menu-pill .btn-nav i {
        font-size: 1.25rem;
        color: inherit;
    }

    /* Mobile drawer — brand styling */
    .nav-responsive-content {
        width: min(320px, 88vw) !important;
        max-width: 88vw;
        padding-top: calc(16px + var(--wm-safe-top)) !important;
        padding-bottom: calc(16px + var(--wm-safe-bottom)) !important;
        box-shadow: -12px 0 40px rgba(55, 43, 125, 0.18);
    }

    .nav-responsive-content .titr {
        color: var(--wm-brand-primary, #5546c9) !important;
        font-weight: 700;
        font-size: 1rem;
    }

    .nav-responsive-content ul li a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 16px !important;
        border-radius: 12px;
        color: var(--wm-brand-ink, #1e242b) !important;
        font-size: 0.92rem;
        font-weight: 600;
    }

    .nav-responsive-content ul li a:hover,
    .nav-responsive-content ul li a:focus-visible {
        background: rgba(85, 70, 201, 0.08);
        color: var(--wm-brand-primary, #5546c9) !important;
    }

    .nav-responsive-content ul li:not(:last-child) {
        margin-bottom: 4px;
    }

    .nav-responsive-content ul li ul li a {
        font-size: 0.86rem;
        font-weight: 500;
        padding-inline-start: 28px !important;
    }

    .nav-responsive-content ul li.has-child.opened > ul,
    .nav-responsive-content ul li.has-child.open > ul {
        visibility: visible;
        opacity: 1;
    }

    .nav-responsive-content ul li.has-child.opened > a,
    .nav-responsive-content ul li.has-child.open > a {
        color: var(--wm-brand-primary, #5546c9) !important;
        background: rgba(85, 70, 201, 0.06);
    }

    .nav-responsive-close {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
    }

    .nav-responsive.opened,
    .nav-responsive.open {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-responsive.opened .nav-responsive-content,
    .nav-responsive.open .nav-responsive-content {
        right: 0 !important;
    }
}

html.wm-nav-open .wm-mobile-bar {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

html.wm-nav-open body {
    overflow: hidden;
}

/* ==========================================================================
   Mobile footer — hidden (bottom bar + drawer cover nav)
   ========================================================================== */

@media (max-width: 767.98px) {
    html,
    body {
        min-height: 100dvh;
    }

    .app {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
    }

    .site-main {
        flex: 1 1 auto;
        width: 100%;
    }

    .site-footer {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .site-header .wm-header-mobile-call {
        display: none !important;
    }

    .site-header .wm-header-menu-toggle,
    .site-header .wm-header-menu-toggle-wrap {
        display: none !important;
    }
}

/* Legacy accordion rules kept for tablet preview / editor */
@media (max-width: 767.98px) {
    .site-footer.wm-footer-force-show {
        display: block !important;
    }
}

@media (max-width: 767.98px) and (min-width: 0px) {
    .site-footer:not(.wm-footer-force-show) .wm-plus-footer__shell {
        margin-top: 0;
    }
}

/* ---- archived mobile footer accordion (tablet/editor only) ---- */
@media (max-width: 767.98px) {
    .site-footer.wm-footer-force-show {
        padding-bottom: var(--wm-safe-bottom);
    }

    .site-footer.wm-footer-force-show .wm-plus-footer__shell {
        margin-top: 16px;
        border-radius: 18px 18px 0 0;
    }

    .site-footer .wm-plus-footer__grid > .e-con-inner {
        display: flex !important;
        flex-direction: column;
        gap: 0 !important;
        padding: 12px 18px 8px;
    }

    .site-footer .wm-plus-footer__col.e-con,
    .site-footer .wm-plus-footer__col {
        --padding-top: 0px !important;
        --padding-bottom: 0px !important;
        --min-height: 0px !important;
        min-height: 0 !important;
        padding-block: 0 !important;
        margin-block: 0 !important;
        width: 100% !important;
    }

    .site-footer .wm-plus-footer__col .elementor-widget {
        margin-bottom: 0 !important;
    }

    /* About — logo + social (centered, neat icon row) */
    .site-footer .wm-plus-footer__col--about {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        order: 0;
        padding: 14px 6px 16px !important;
        margin: 0 0 6px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center !important;
    }

    .site-footer .wm-plus-footer__col--about .elementor-widget-image {
        flex: 0 0 auto;
        width: auto !important;
        max-width: 100%;
    }

    .site-footer .wm-plus-footer__col--about .elementor-widget-image .elementor-widget-container {
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .site-footer .wm-plus-footer__col--about .elementor-widget-image img {
        max-width: 84px;
        max-height: 34px;
        margin-inline: auto !important;
        display: block;
    }

    .site-footer .wm-plus-footer__col--about .elementor-widget-text-editor {
        display: none !important;
    }

    .site-footer .wm-plus-footer__col--about .elementor-widget-social-icons {
        flex: 0 0 auto;
        width: 100% !important;
        max-width: 100%;
    }

    .site-footer .wm-plus-footer__col--about .elementor-widget-social-icons .elementor-widget-container {
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-footer .wm-plus-footer__col--about .elementor-social-icons-wrapper {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: auto;
        max-width: 100%;
        margin: 0 auto !important;
        padding: 2px 4px 0 !important;
    }

    .site-footer .wm-plus-footer__col--about .elementor-grid-item {
        display: inline-flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-footer .wm-plus-footer__col--about .elementor-social-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 14px !important;
        line-height: 1 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .site-footer .wm-plus-footer__col--about .elementor-social-icon i,
    .site-footer .wm-plus-footer__col--about .elementor-social-icon svg {
        width: 16px !important;
        height: 16px !important;
        font-size: 16px !important;
        fill: currentColor;
    }

    /* Contact — bottom bar has CTA */
    .site-footer .wm-plus-footer__col--contact {
        display: none !important;
    }

    /* Accordion panels */
    .site-footer .wm-footer-mobile-panel {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-inline: 2px;
    }

    .site-footer .wm-footer-mobile-panel .elementor-widget-heading {
        margin: 0 !important;
        padding: 0 2px !important;
    }

    .site-footer .wm-footer-mobile-panel .elementor-heading-title {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 !important;
        padding: 13px 8px 13px 6px !important;
        min-height: 44px;
        box-sizing: border-box;
        font-size: 0.84rem !important;
        line-height: 1.35 !important;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        text-align: start !important;
        position: relative;
    }

    /* Chevron on ::before — avoid clash with heading underline ::after */
    .site-footer .wm-footer-mobile-panel .elementor-heading-title::before {
        content: "";
        order: 2;
        flex-shrink: 0;
        width: 7px;
        height: 7px;
        margin-inline-start: auto;
        border-inline-end: 2px solid rgba(255, 255, 255, 0.65);
        border-bottom: 2px solid rgba(255, 255, 255, 0.65);
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    .site-footer .wm-footer-mobile-panel .elementor-heading-title::after {
        display: none !important;
        content: none !important;
    }

    .site-footer .wm-footer-mobile-panel.is-open .elementor-heading-title::before {
        transform: rotate(-135deg);
    }

    .site-footer .wm-footer-mobile-panel .wm-footer-mobile__body {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.22s ease, opacity 0.18s ease;
        padding: 0;
        margin: 0;
    }

    .site-footer .wm-footer-mobile-panel.is-open .wm-footer-mobile__body {
        max-height: 240px;
        opacity: 1;
        padding: 4px 8px 14px 6px;
    }

    .site-footer .wm-footer-mobile-panel .footer-dental-nav {
        text-align: start !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 2px !important;
    }

    .site-footer .wm-footer-mobile-panel .footer-dental-nav li:not(:last-child) {
        margin-bottom: 8px !important;
    }

    .site-footer .wm-footer-mobile-panel .footer-dental-nav a {
        display: block;
        padding: 4px 4px 4px 2px;
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .site-footer .wm-plus-footer__bottom > .e-con-inner {
        padding: 10px 18px calc(10px + var(--wm-safe-bottom)) !important;
    }

    .site-footer .wm-plus-footer__bottom .elementor-heading-title {
        font-size: 0.65rem !important;
        line-height: 1.45 !important;
        margin: 0 !important;
    }
}

html.wm-footer-mobile-mode .site-footer .wm-plus-footer__heading .elementor-heading-title,
html.wm-footer-mobile-mode .site-footer .wm-plus-footer__col:not(.wm-plus-footer__col--about) > .elementor-widget-heading .elementor-heading-title {
    text-align: start !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.wm-footer-mobile-mode .site-footer .wm-plus-footer__heading .elementor-heading-title::after,
html.wm-footer-mobile-mode .site-footer .wm-plus-footer__col:not(.wm-plus-footer__col--about) > .elementor-widget-heading .elementor-heading-title::after {
    display: none !important;
    content: none !important;
}

/* Tablet — 2-column link area */
@media (min-width: 768px) and (max-width: 991.98px) {
    .site-footer .wm-plus-footer__grid.e-con,
    .site-footer .wm-plus-footer__grid > .e-con-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px clamp(36px, 4.5vw, 56px) !important;
    }

    .site-footer .wm-plus-footer__col--about,
    .site-footer .wm-plus-footer__col--contact {
        grid-column: 1 / -1;
    }
}

/* PWA standalone — extra header/footer safe space */
@media (display-mode: standalone) {
    body {
        padding-top: var(--wm-safe-top);
    }

    .site-header {
        top: var(--wm-safe-top);
    }

    .site-footer {
        padding-bottom: calc(8px + var(--wm-safe-bottom));
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .site-footer .wm-footer-mobile-panel .wm-footer-mobile__body,
    .site-footer .wm-footer-mobile-panel .elementor-heading-title::before {
        transition: none;
    }
}

/* Override site-header mobile centering when accordion is active */
html.wm-footer-mobile-mode .site-footer .wm-plus-footer__heading .elementor-heading-title,
html.wm-footer-mobile-mode .site-footer .wm-plus-footer__col:not(.wm-plus-footer__col--about) > .elementor-widget-heading .elementor-heading-title {
    text-align: start !important;
}

html.wm-footer-mobile-mode .site-footer .footer-dental-nav {
    text-align: start !important;
}

html.wm-footer-mobile-mode .site-footer .wm-plus-footer__contact-item .elementor-icon-box-wrapper,
html.wm-footer-mobile-mode .site-footer .wm-plus-footer__col--contact .elementor-widget-icon-box .elementor-icon-box-wrapper {
    justify-content: flex-start !important;
    text-align: start !important;
}

/* Footer link spacing — beat legacy main.min.css (4px) */
.site-footer ul.footer-dental-nav > li:not(:last-child) {
    margin-bottom: 18px !important;
}

.site-footer ul.footer-dental-nav > li {
    display: block;
}

.site-footer ul.footer-dental-nav > li > a {
    display: block;
    padding-block: 3px;
    line-height: 1.75 !important;
}

/* ==========================================================================
   Mobile bottom navigation bar
   ========================================================================== */

.wm-mobile-bar {
    display: none;
}

@media (max-width: 767.98px) {
    .wm-mobile-bar {
        position: fixed;
        left: var(--wm-safe-left);
        right: var(--wm-safe-right);
        bottom: 0;
        z-index: 500;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 6px 8px calc(6px + var(--wm-safe-bottom));
        background: #ffffff;
        border-top: 1px solid rgba(85, 70, 201, 0.14);
        box-shadow: 0 -4px 24px rgba(55, 43, 125, 0.1);
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    body {
        padding-bottom: calc(64px + var(--wm-safe-bottom));
    }

    .site-footer .wm-plus-footer__bottom > .e-con-inner {
        padding-bottom: calc(18px + var(--wm-safe-bottom)) !important;
    }

    .wm-mobile-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: var(--wm-touch-min);
        padding: 4px 2px;
        color: var(--wm-brand-muted, #6b6578);
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 600;
        line-height: 1.2;
        border-radius: 12px;
        transition: color 0.2s ease, background 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .wm-mobile-bar__item:hover,
    .wm-mobile-bar__item:focus-visible {
        color: var(--wm-brand-primary, #5546c9);
        background: rgba(85, 70, 201, 0.06);
    }

    .wm-mobile-bar__item.is-active {
        color: var(--wm-brand-primary, #5546c9);
        background: rgba(85, 70, 201, 0.1);
    }

    .wm-mobile-bar__item--cta {
        color: var(--wm-brand-primary, #5546c9);
    }

    .wm-mobile-bar__item--cta.is-active {
        background: rgba(85, 70, 201, 0.12);
    }

    .wm-mobile-bar__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        font-size: 1.15rem;
        line-height: 1;
        color: inherit;
    }

    .wm-mobile-bar__label {
        white-space: nowrap;
    }
}

@media (display-mode: standalone) and (max-width: 767.98px) {
    .wm-mobile-bar {
        background: #f7f6fe;
    }
}

/* ==========================================================================
   PWA — install banner, toast, offline
   ========================================================================== */

.wm-pwa-install-banner {
    position: fixed;
    left: var(--wm-safe-left);
    right: var(--wm-safe-right);
    bottom: calc(76px + var(--wm-safe-bottom));
    z-index: 600;
    padding: 0 12px;
}

.wm-pwa-install-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(85, 70, 201, 0.14);
    box-shadow: 0 12px 36px rgba(55, 43, 125, 0.16);
}

.wm-pwa-install-banner__text {
    margin: 0;
    flex: 1 1 180px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--wm-brand-ink, #1e242b);
}

.wm-pwa-install-banner__actions {
    display: flex;
    gap: 8px;
}

.wm-pwa-install-banner__btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(85, 70, 201, 0.18);
    background: #fff;
    color: var(--wm-brand-primary, #5546c9);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.wm-pwa-install-banner__btn--primary {
    background: var(--wm-brand-primary, #5546c9);
    border-color: var(--wm-brand-primary, #5546c9);
    color: #fff;
}

.wm-pwa-toast {
    position: fixed;
    top: calc(12px + var(--wm-safe-top));
    left: 50%;
    transform: translate(-50%, -120%);
    z-index: 700;
    max-width: min(92vw, 360px);
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(30, 36, 43, 0.92);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    pointer-events: none;
}

.wm-pwa-toast--update {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    padding: 10px 12px 10px 14px;
    text-align: start;
    pointer-events: auto;
}

.wm-pwa-toast__text {
    flex: 1 1 auto;
}

.wm-pwa-toast__action {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 6px 14px;
    background: var(--wm-brand-primary, #5546c9);
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.wm-pwa-toast__close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.wm-pwa-toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

html.wm-is-offline .site-header::after {
    content: "آفلاین";
    position: absolute;
    inset-inline-start: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 999px;
    background: #fea80d;
    color: #1e242b;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.6;
    z-index: 5;
}

@media (min-width: 768px) {
    .wm-pwa-install-banner {
        bottom: 16px;
        max-width: 420px;
        margin-inline: auto;
    }

    .wm-mobile-bar {
        display: none !important;
    }
}
