/* ─── Süti-hozzájárulás sáv ──────────────────────────────────────────────────
   A site vizuális nyelvét követi: Poppins, #4CAF50 zöld, lekerekített pill
   gombok, lágy árnyék. Nem full-screen modal – az alsó sávot a látogató
   elolvashatja anélkül, hogy a tartalom eltűnne mögüle. */

/* A `hidden` attribútum a böngésző alapértelmezett `display:none` szabályával
   rejt – azt viszont BÁRMELY saját `display` deklaráció felülírja. Mivel a sáv
   flex, a kategórialista pedig grid, nélküle a `hidden` hatástalan lenne
   (a panel nyitva indulna, és a sáv sosem tűnne el). */
.cc-banner[hidden],
.cc-options[hidden],
.cc-btn[hidden] { display: none !important; }

.cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    display: flex;
    justify-content: center;
    pointer-events: none;

    opacity: 0;
    transform: translateY(16px);
    transition: opacity .28s cubic-bezier(.16,1,.3,1), transform .28s cubic-bezier(.16,1,.3,1);
}
.cc-banner.is-visible { opacity: 1; transform: translateY(0); }

/* Amíg nem látszik, a kártya se fogjon kattintást – így akkor sem lesz
   láthatatlan kattintás-elnyelő az oldal alján, ha a `hidden` beállítása
   bármiért elmaradna. */
.cc-banner:not(.is-visible) .cc-inner { pointer-events: none; }

.cc-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    padding: 22px 24px;
}

/* ─── Fejléc ─────────────────────────────────────────────────────────────── */
.cc-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}
.cc-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}
.cc-desc a {
    color: #388E3C;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-desc a:hover { color: #2E7D32; }

/* ─── Kategória-választó ─────────────────────────────────────────────────── */
.cc-options {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    display: grid;
    gap: 12px;
}
.cc-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.cc-option:hover { border-color: #cfe3cf; background: #f6faf6; }
.cc-option:focus-within { border-color: #4CAF50; }
.cc-option--locked { cursor: default; opacity: .85; }
.cc-option--locked:hover { border-color: #eee; background: #fafafa; }

.cc-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #4CAF50;
    flex-shrink: 0;
}
.cc-option-body { display: block; }
.cc-option-body strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}
.cc-option-body small {
    display: block;
    font-size: 12.5px;
    line-height: 1.55;
    color: #777;
}

/* ─── Gombok ─────────────────────────────────────────────────────────────── */
.cc-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.cc-btn {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn:focus-visible { outline: 2px solid #4CAF50; outline-offset: 2px; }

.cc-btn--primary   { background: #4CAF50; color: #fff; }
.cc-btn--primary:hover   { background: #388E3C; }

.cc-btn--secondary { background: #fff; color: #555; border-color: #ddd; }
.cc-btn--secondary:hover { border-color: #bbb; color: #333; }

.cc-btn--save      { background: #fff; color: #388E3C; border-color: #4CAF50; }
.cc-btn--save:hover      { background: #f1f8f1; }

/* A „Beállítások" másodlagos – balra tolva, hogy a döntésgombok jobbra essenek */
.cc-btn--ghost {
    background: none;
    color: #777;
    padding: 10px 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-right: auto;
}
.cc-btn--ghost:hover { color: #333; }

/* ─── Blokkolt beágyazás helye ───────────────────────────────────────────── */
.cc-embed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 260px;
    padding: 32px 24px;
    background: #f5f7f5;
    border: 1px dashed #cfd8cf;
    border-radius: 12px;
}
.cc-embed-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 12px;
}
.cc-embed-icon { font-size: 30px; line-height: 1; }
.cc-embed-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #666;
    max-width: 380px;
    margin: 0;
}
.cc-embed-allow {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 11px 26px;
    cursor: pointer;
    transition: background .2s;
}
.cc-embed-allow:hover { background: #388E3C; }
.cc-embed-allow:focus-visible { outline: 2px solid #2E7D32; outline-offset: 2px; }
.cc-embed-fallback {
    font-size: 12.5px;
    color: #777;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-embed-fallback:hover { color: #388E3C; }

/* ─── Lábléc-link ────────────────────────────────────────────────────────── */
.cc-reopen {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}
.cc-reopen:hover { text-decoration: underline; }

/* ─── Mobil ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cc-banner { left: 8px; right: 8px; bottom: 8px; }
    .cc-inner  { padding: 18px 18px 20px; max-height: 82vh; overflow-y: auto; }

    /* Egymás alatt, elsődleges gombbal elöl. Explicit `order`, mert a DOM-ban a
       „Beállítások" áll elöl (ott a bal szélre kell), itt viszont leghátulra való. */
    .cc-actions { flex-direction: column; align-items: stretch; }
    .cc-btn { width: 100%; text-align: center; }
    .cc-btn--primary   { order: 1; }
    .cc-btn--secondary { order: 2; }
    .cc-btn--save      { order: 3; }
    .cc-btn--ghost     { order: 4; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner { transition: none; }
    .cc-btn:active { transform: none; }
}
