.hgp-youtube-consent {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: #edf1e9;
    border: 1px solid rgba(46, 72, 45, 0.18);
    border-radius: 10px;
    box-sizing: border-box;
    color: #1d2b1d;
    display: flex;
    justify-content: center;
    min-height: 220px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.wp-block-embed__wrapper > .hgp-youtube-consent {
    aspect-ratio: 16 / 9;
    min-height: 220px;
    position: relative;
}

.wp-block-embed__wrapper:has(> .hgp-youtube-consent)::before {
    display: none !important;
    padding-top: 0 !important;
}

.hgp-youtube-consent__placeholder {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 680px;
    padding: clamp(18px, 4vw, 36px);
    text-align: center;
}

.hgp-youtube-consent__placeholder[hidden] {
    display: none;
}

.hgp-youtube-consent__title {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.hgp-youtube-consent__text,
.hgp-youtube-consent__status {
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 16px;
}

.hgp-youtube-consent__privacy {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.hgp-youtube-consent__button {
    background: #2e482d;
    border: 2px solid #2e482d;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    padding: 11px 20px;
}

.hgp-youtube-consent__button:hover,
.hgp-youtube-consent__button:focus-visible {
    background: #fff;
    color: #2e482d;
}

.hgp-youtube-consent__button:focus-visible {
    outline: 3px solid #c9a96a;
    outline-offset: 3px;
}

.hgp-youtube-consent__status {
    color: #8b1f1f;
    margin: 12px 0 0;
}

.hgp-youtube-consent > iframe[data-hgp-youtube-runtime] {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

@media (max-width: 480px) {
    .hgp-youtube-consent {
        min-height: 200px;
    }

    .wp-block-embed__wrapper > .hgp-youtube-consent {
        min-height: 200px;
    }

    .hgp-youtube-consent__placeholder {
        padding: 14px;
    }

    .hgp-youtube-consent__text {
        font-size: 0.82rem;
        margin-bottom: 12px;
    }

    .hgp-youtube-consent__button {
        font-size: 0.88rem;
        padding: 9px 14px;
    }
}
