.gn2-consentgate-wrap {
    position: relative;
}

.gn2-consentgate-disabled {
    opacity: .4;
    filter: grayscale(70%);
    pointer-events: none;
    user-select: none;
}

.gn2-consentgate-placeholder {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem;
    z-index: 5;
}

.gn2-consentgate-box {
    position: sticky;
    top: 5rem;
    max-width: 32rem;
    width: 100%;
    margin: 0;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .15);
}

.gn2-consentgate-box .gn2-consentgate-title {
    margin-top: 0;
}

.gn2-consentgate-text {
    font-size: .875rem;
    line-height: 1.45;
}

/* F023 – YouTube-Click-to-load-Platzhalter (Produktdetail-Media) */
.gn2-consentgate-youtube {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 1.5rem;
    background: #f4f4f4;
    color: #333;
}

.embed-responsive .gn2-consentgate-youtube {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Nur unter 576px (Bootstrap xs): Der 4:3-Aspect-Ratio-Hack der embed-responsive-Box
   (::before padding-top:75% + overflow:hidden) schneidet den längeren Consent-Text auf
   schmalen Viewports ab. Hier lassen wir die Platzhalter-Box mit dem Inhalt mitwachsen.
   Ab 576px bleibt die bisherige 4:3-Box; der Video-iframe nach Consent immer 4:3. */
@media (max-width: 575.98px) {
    .embed-responsive:has(> .gn2-consentgate-youtube) {
        height: auto;
    }

    .embed-responsive:has(> .gn2-consentgate-youtube)::before {
        display: none;
    }

    .embed-responsive > .gn2-consentgate-youtube {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        height: auto;
        padding: 1rem;
    }
}

.gn2-consentgate-youtube-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: .75rem;
    color: #c00;
}

.gn2-consentgate-youtube .gn2-consentgate-text {
    max-width: 32rem;
    margin: 0 0 1rem;
}
