.ng-ad-gate[hidden] {
    display: none !important;
}

body.ng-ad-gate-open {
    overflow: hidden;
}

.ng-ad-gate {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.72);
}

.ng-ad-gate__panel {
    width: 100%;
    height: var(--ng-ad-modal-height, 320px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 36px rgba(0, 0, 0, 0.24);
    display: grid;
    grid-template-rows: minmax(80px, 1fr) auto;
}

.ng-ad-gate__ad-slot {
    position: relative;
    width: 100%;
    min-height: 80px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #f7f7f7;
}

.ng-ad-gate__ad-label {
    color: #777777;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ng-ad-gate__controls {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
    text-align: center;
    background: #ffffff;
}

.ng-ad-gate__countdown {
    margin: 0;
    color: var(--ng-accent);
    font-size: clamp(30px, 8vw, 52px);
    font-weight: 800;
    line-height: 1;
}

.ng-ad-gate__status {
    margin: 8px 0 12px;
    color: #555555;
    font-size: 14px;
}

@media (min-width: 768px) {
    .ng-ad-gate__controls {
        padding-left: 28px;
        padding-right: 28px;
    }
}


.ng-ad-gate__ad-slot > iframe,
.ng-ad-gate__ad-slot > img,
.ng-ad-gate__ad-slot video {
    max-width: 100%;
    max-height: 100%;
}

.ng-ad-gate__ad-slot iframe {
    border: 0;
}
