/* Padrão reutilizável de ajuda contextual em vídeo do portal CepCerto. */
.layout-video-help {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #EDF5FC;
    color: #0752A6;
    font: 700 11px/1 var(--fonte2, 'Inter', Arial, sans-serif);
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 160ms ease;
}

.layout-video-help:hover,
.layout-video-help:focus-visible {
    border-color: transparent;
    background: #EDF5FC;
    color: #0752A6;
    opacity: .84;
    outline: none;
    transform: none;
}

.layout-video-help__icon {
    display: grid;
    width: 25px;
    height: 20px;
    flex: 0 0 25px;
    place-items: center;
}

.layout-video-help__icon img {
    display: block;
    width: 25px;
    height: 20px;
    opacity: .82;
}

.layout-video-modal[hidden] {
    display: none;
}

.layout-video-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.layout-video-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(8, 15, 28, 0.76);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.layout-video-modal__dialog {
    position: relative;
    width: min(860px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.layout-video-modal__dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 39px;
    padding: 3px 8px 3px 12px;
}

.layout-video-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.layout-video-modal__title img {
    display: block;
    width: 69px;
    height: 18px;
    flex: 0 0 69px;
    object-fit: contain;
}

.layout-video-modal__dialog header button {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #F1F3F5;
    color: #334155;
    cursor: pointer;
    font-size: 13px;
}

.layout-video-modal__frame {
    aspect-ratio: 16 / 9;
    background: #000000;
}

.layout-video-modal__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

body.layout-video-is-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .layout-video-help {
        font-size: 10px;
    }

    .layout-video-modal {
        padding: 10px;
    }

}
