/* Keep the professional-access notice inside the viewport at every screen size. */
body .bgd {
    z-index: 2147483646;
}
body .warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1000px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    padding-bottom: 24px;
    overflow: auto;
    overscroll-behavior: contain;
    z-index: 2147483647;
}
body .warning .head {
    padding: 18px 20px;
    font-size: 24px;
    line-height: 1.3;
}
body .warning .question {
    margin-top: 20px;
    padding: 0 20px;
    line-height: 1.4;
}
body .warning .inf {
    width: auto;
    margin: 16px 20px;
    padding: 0 8px 0 0;
    max-height: 180px;
    max-height: min(25vh, 180px);
    overscroll-behavior: contain;
}
body .warning .buttons {
    display: flex;
    gap: 12px;
    width: calc(100% - 40px);
    max-width: 340px;
    margin: 20px auto 0;
}
body .warning .buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    float: none;
    width: auto;
    min-width: 0;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 6px 12px;
    line-height: 1.2;
}
body .warning .buttons .cl {
    display: none;
}
/* Ask for professional access before showing the separate cookie choice. */
body:has(.warning[style*="display: block"]) {
    overflow: hidden;
}
body:has(.warning[style*="display: block"]) #sa-cookie-banner,
body:has(.warning[style*="display: block"]) #sa-cookie-settings {
    visibility: hidden !important;
    pointer-events: none !important;
}
@media (max-width: 480px) {
    body .warning {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding-bottom: 18px;
    }
    body .warning .head {
        padding: 16px;
        font-size: 20px;
    }
    body .warning .question {
        margin-top: 16px;
        padding: 0 16px;
        font-size: 16px;
    }
    body .warning .inf {
        margin: 16px;
        max-height: 20vh;
    }
    body .warning .buttons {
        width: calc(100% - 32px);
        margin-top: 16px;
    }
}
