@font-face {
    font-family: 'Roboto Condensed ExtraBold';
    src: url('../../../Fonts/roboto-condensed-v27-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

html:has(.model-callout) {
    scroll-padding-top: 90px;
}

.model-callout {
    --callout-gap: 24px;
    position: fixed;
    z-index: 100;
    right: max(var(--callout-gap), env(safe-area-inset-right));
    bottom: max(var(--callout-gap), env(safe-area-inset-bottom));
    box-sizing: border-box;
    width: min(290px, calc(100% - 2 * var(--callout-gap)));
    max-height: calc(100dvh - 2 * var(--callout-gap));
    overflow: auto;
    overflow-wrap: anywhere;
    padding: 22px;
    color: var(--bs-secondary);
    background: var(--bs-white);
    box-shadow: 0 4px 24px #0002;
}

@media (prefers-reduced-motion: no-preference) {
    .model-callout:not([hidden]) {
        animation: model-callout-fade-in 300ms ease-out;
    }
}

@keyframes model-callout-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.model-callout h2 {
    margin: 0;
    padding-right: 16px;
    color: inherit;
    font: 800 30px/1.05 'Roboto Condensed ExtraBold', 'Roboto Condensed', Arial, sans-serif;
    text-transform: none;
}

.model-callout img {
    display: block;
    width: 78%;
    height: auto;
    margin-top: 20px;
}

.model-callout .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    margin-top: 20px;
    padding: 8px 13px;
    font-weight: 400;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}

.model-callout-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
}

.model-callout :focus-visible {
    outline: 2px solid var(--bs-secondary);
    outline-offset: -2px;
}

@media (max-width: 960px) {
    .model-callout {
        --callout-gap: 12px;
        bottom: calc(var(--prefooter-height, 0px) + max(var(--callout-gap), env(safe-area-inset-bottom)));
        max-height: calc(100dvh - var(--prefooter-height, 0px) - 2 * var(--callout-gap));
        width: min(350px, calc(100% - 2 * var(--callout-gap)));
        padding: 16px;
    }

    .model-callout-intro {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-right: 20px;
    }

    .model-callout h2 {
        padding: 0;
        font-size: 24px;
    }

    .model-callout img {
        width: 28%;
        margin: 0;
    }
}
