/* Security check dialogs: the shape check (iframe) and Cloudflare Turnstile pre-clearance. */

.bmw-filter-challenge {
    box-sizing: border-box;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 32px 28px 24px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: #262626;
    box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
    font: inherit;
    text-align: center;
}

.bmw-filter-challenge::backdrop {
    background: rgb(15 23 32 / 55%);
    backdrop-filter: blur(4px);
}

.bmw-filter-challenge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #14ad51;
    color: #fff;
    font-size: 24px;
}

.bmw-filter-challenge h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.25;
    color: inherit;
}

.bmw-filter-challenge p {
    margin: 0 0 24px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.bmw-filter-challenge__widget {
    display: flex;
    justify-content: center;
    min-height: 65px;
    margin-bottom: 24px;
}

.bmw-filter-challenge .bmw-filter-challenge__countdown {
    margin: 0;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

@media not all and (min-width: 360px) {
    .bmw-filter-challenge { padding: 24px 16px; }
}

.bmw-shape-challenge {
    box-sizing: border-box;
    width: min(440px, calc(100vw - 24px));
    height: min(698px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
}

/* While the check is open the page behind it does not scroll: a wheel or swipe over the check
   (which is shorter than its frame or already at its end) would otherwise move the catalog. */
html:has(dialog.bmw-shape-challenge[open]) {
    overflow: hidden;
    overscroll-behavior: none;
    scrollbar-gutter: stable;
}

.bmw-shape-challenge::backdrop {
    background: rgb(15 23 32 / 55%);
    backdrop-filter: blur(4px);
}

.bmw-shape-challenge iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

