/* ------------------------------------------------------------------
 * Hozzájárulási sáv és a beágyazások helyőrzője.
 *
 * Külön fájl, nem <style> blokk: az .htaccess Content-Security-Policy
 * fejléce `style-src 'self'`, ami minden beágyazott stílust tilt.
 *
 * A színek megegyeznek a style.css :root változóival; ha azok ott
 * módosulnak, itt is átveszik az értéket.
 * ---------------------------------------------------------------- */

.consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--navy, #152F44);
    color: #F4F1EC;
    border-top: 4px solid var(--orange, #E19158);
    box-shadow: 0 -6px 28px rgba(21, 47, 68, .22);
}

.consent[hidden] { display: none; }

.consent__in {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 22px;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.consent__text {
    margin: 0;
    flex: 1 1 420px;
    font-size: 14px;
    line-height: 1.65;
}

.consent__text a { color: var(--orange, #E19158); text-decoration: underline; }

.consent__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.consent__btn {
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    padding: 11px 20px;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    background: var(--orange, #E19158);
    color: #fff;
    transition: background .15s;
}

.consent__btn:hover { background: #D07F45; }

.consent__btn--ghost {
    background: transparent;
    color: #F4F1EC;
    border-color: rgba(255, 255, 255, .38);
}

.consent__btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Beágyazás helyőrzője ---------- */

.embed-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 32px 24px;
    text-align: center;
    background: #EFEAE3;
    border: 1px dashed #CFC5B8;
    border-radius: 12px;
}

.embed-gate__in { max-width: 460px; }

.embed-gate__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #152F44);
}

.embed-gate__text {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #5C574F;
}

.embed-gate__addr {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy, #152F44);
}

/* Betöltés után az iframe kitölti a helyőrző dobozát. */
[data-consent-loaded] { border: 0; padding: 0; background: none; min-height: 0; }
[data-consent-loaded] iframe { display: block; width: 100%; min-height: 420px; border: 0; }

/* ---------- Lábléc link a döntés visszavonásához ---------- */

.consent-reopen { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.consent-reopen:hover { text-decoration: underline; }

@media (max-width: 680px) {
    .consent__in { padding: 16px 16px 18px; gap: 14px; }
    .consent__text { flex: 1 1 100%; font-size: 13px; }
    .consent__actions { width: 100%; }
    .consent__btn { flex: 1 1 auto; }
    .embed-gate { min-height: 260px; padding: 26px 18px; }
}
