/* November 2025 phone controls; tablet and desktop retain the current header. */
.cis-phone-header,
.cis-phone-cta,
.cis-phone-cta-space {
    display: none;
}

@media (max-width: 767.98px) {
    .top-contact-wrapper-B {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        background: #0073ae !important;
        line-height: normal;
    }

    .top-contact-wrapper-B > .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .top-contact-wrapper-B > .container > .row {
        margin: 0;
    }

    .top-contact-wrapper-B > .container > .row > .col-md-12 {
        padding: 0;
    }

    .top-contact-wrapper-B .top-menu-elements {
        display: none !important;
    }

    .cis-phone-header {
        display: block;
        width: 100%;
        color: #fff;
        font-size: 14px;
    }

    .cis-phone-language {
        display: flex;
        justify-content: center;
        min-height: 32px;
        background: #2b90c0;
    }

    .cis-phone-language .language-switch-toggle {
        height: auto;
        min-height: 32px;
        padding: 0 14px;
        color: #fff;
        background: transparent;
        border: 0;
    }

    .cis-phone-language .language-switch-menu {
        z-index: 1001;
    }

    .cis-phone-contacts {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0 10px;
        min-height: 32px;
        padding: 0 6px;
        line-height: 32px;
    }

    .cis-phone-contacts > * {
        white-space: nowrap;
    }

    .cis-phone-contacts a {
        color: #fff;
    }

    .navbar.navbar-B {
        position: relative !important;
        top: auto !important;
        margin-top: 0 !important;
        max-height: none;
        overflow: visible;
    }

    .navbar.navbar-B .navbar-brand {
        max-width: calc(100% - 70px);
    }

    .navbar.navbar-B .logo-width {
        width: 245px;
        max-width: 100%;
        height: auto;
    }

    .cis-phone-cta-space {
        display: block;
        height: calc(67px + env(safe-area-inset-bottom, 0px));
    }

    .fixed-footer.cis-phone-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        padding: 11px 10px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(248, 248, 248, .95);
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .1);
        z-index: 1030;
    }

    .fixed-footer.cis-phone-cta > .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 150px;
        min-height: 44px;
        margin: 0;
        padding: 8px 6px;
        border-radius: 4px;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 600;
    }

    .cis-phone-cta > .btn-warning {
        background: #ff8800;
        border-color: #ff8800;
        color: #fff;
    }

    .cis-phone-cta > .btn-primary {
        background: #0073ae;
        border-color: #0073ae;
        color: #fff;
    }

    body.modal-open .cis-phone-cta,
    .cis-phone-cta[hidden] {
        display: none !important;
    }

    body.cis-phone-cta-active .back-to-top {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    /* Put the demo action before the hero's reserved foreground-image space. */
    .cis-home-phone-hero .block.banner .box {
        margin-bottom: 20px;
    }

    .cis-home-phone-hero .block.banner .buttons {
        position: relative;
        top: -24px;
        margin-bottom: 240px;
    }

    /* Tidio is mounted asynchronously; keep its entire iframe above the bar. */
    body.cis-phone-cta-active #tidio-chat-iframe {
        bottom: calc(67px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100dvh - 77px - env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 767.98px) and (max-height: 740px) {
    .cis-home-phone-hero .block.banner h1 {
        font-size: 30px;
        padding: 12px 0;
    }

    .cis-home-phone-hero .block.banner .box {
        padding: 16px;
        margin-bottom: 0;
    }
}

@media (max-width: 359.98px) {
    .cis-phone-contacts {
        font-size: 12px;
        gap: 0 8px;
    }

    .fixed-footer.cis-phone-cta {
        gap: 10px;
    }
}
