/* This callout is placed in containers of very different widths — a full-width modal body in
   the staff preview, a one-third `.col-lg-4` column on the public course page. What squeezes
   it is therefore the CONTAINER, not the screen: a viewport media query leaves the row
   unwrapped inside a 336px column on a 1920px monitor. So the row wraps intrinsically here,
   and the cramped treatment below is driven by the callout's own inline size. */
.video-fallback-callout {
    container-type: inline-size;
    container-name: video-fallback;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #5f259f;
    border-left-width: 6px;
    border-radius: 0.5rem;
    background: #f7f1ff;
    color: #212529;
    text-align: left;
}

.video-fallback-callout__icon {
    display: inline-flex;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #5f259f;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.video-fallback-callout__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.video-fallback-callout__title,
.video-fallback-callout__description {
    display: block;
}

.video-fallback-callout__title {
    margin-bottom: 0.15rem;
    font-weight: 700;
}

.video-fallback-callout__description {
    color: #4b4453;
    font-size: 0.9rem;
}

.video-fallback-callout__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 2px solid #5f259f;
    border-radius: 0.4rem;
    background: #5f259f;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.video-fallback-callout__button:hover {
    border-color: #42176f;
    background: #42176f;
    color: #fff;
    text-decoration: none;
}

.video-fallback-callout__button:focus {
    outline: 3px solid rgba(95, 37, 159, 0.35);
    outline-offset: 2px;
    color: #fff;
}

/* Cramped: the action drops onto its own line, so give it the full width of the callout
   rather than leaving a short button stranded under the copy. Keyed to the callout's own
   width, so a narrow column on a wide screen gets the same treatment a phone does. */
@container video-fallback (max-width: 30rem) {
    .video-fallback-callout {
        align-items: flex-start;
    }

    .video-fallback-callout__button {
        width: 100%;
    }
}

/* Fallback for engines without container queries: a phone viewport is always cramped. */
@media (max-width: 575.98px) {
    .video-fallback-callout {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .video-fallback-callout__button {
        width: 100%;
    }
}
