/* OR Mobile Cookie Bar 1.1.3: available before JavaScript and while consent is open. */
.or-mobile-cookie-bar { display: none; }

@media (max-width: 768px) {
    /* The shared strip replaces the legacy mobile contact controls. */
    body.or-mobile-cookie-present #header .cont_btn,
    body.or-mobile-cookie-present #chat_btn { display: none !important; }

    .or-mobile-cookie-bar {
        position: fixed;
        z-index: 10000;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        box-sizing: border-box;
        height: calc(44px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #152a42;
        color: #fff;
        font-family: inherit;
    }

    .or-mobile-cookie-contact {
        position: absolute;
        top: 0;
        right: 0;
        bottom: env(safe-area-inset-bottom, 0px);
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 0 72px;
        color: #fff;
        font-family: inherit;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
    }

    .or-mobile-cookie-contact:hover, .or-mobile-cookie-contact:focus { color: #fff; text-decoration: none; }

    button.or-mobile-cookie-settings, .or-mobile-language > summary {
        position: absolute;
        top: 0;
        right: 4px;
        bottom: env(safe-area-inset-bottom, 0px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        box-sizing: border-box;
        width: 64px;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #bcc8d2;
        font-family: inherit;
        font-size: 10px;
        font-weight: 400;
        line-height: 1;
        text-transform: none;
        cursor: pointer;
        appearance: none;
    }

    button.or-mobile-cookie-settings:hover, button.or-mobile-cookie-settings:focus,
    .or-mobile-language > summary:hover, .or-mobile-language > summary:focus {
        background: transparent;
        color: #fff;
        box-shadow: none;
    }

    .or-mobile-cookie-bar svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .or-mobile-language { position: static; }
    .or-mobile-language > summary { left: 4px; right: auto; list-style: none; }
    .or-mobile-language > summary::-webkit-details-marker { display: none; }
    .or-mobile-language-arrow { font-size: 12px; }
    .or-mobile-language[open] .or-mobile-language-arrow { transform: rotate(180deg); }
    .or-mobile-cookie-bar:has(.or-mobile-language[open]) { z-index: 100001; }

    .or-mobile-language > nav {
        position: absolute;
        left: 8px;
        bottom: calc(100% + 8px);
        display: grid;
        width: 176px;
        padding: 4px;
        border: 1px solid #526174;
        border-radius: 6px;
        background: #152a42;
        box-shadow: 0 3px 14px #0003;
    }

    .or-mobile-language > nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        box-sizing: border-box;
        padding: 8px 12px;
        border-radius: 3px;
        color: #fff;
        font: inherit;
        font-size: 14px;
        line-height: 1.25;
        text-decoration: none;
    }

    .or-mobile-language > nav a:hover, .or-mobile-language > nav a[aria-current] { background: #ffffff18; }
    .or-mobile-language > nav a[aria-current] { font-weight: 700; }
    .or-mobile-cookie-bar a:focus-visible, .or-mobile-cookie-bar button:focus-visible,
    .or-mobile-language > summary:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

    /* Keep both the cookie dialog and the persistent strip visible on narrow screens. */
    body.or-mobile-cookie-present .cmplz-cookiebanner {
        bottom: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(100vh - 56px - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 56px - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
    }
}
