/* ============================================================
   Süti-konzent banner — kompakt, mobilra optimalizált.
   Színezés: --avra-cc-accent (a banner inline style-jából).
   ============================================================ */

.avra-cc {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 99999;
    display: flex;
    justify-content: flex-start;
    pointer-events: none; /* csak a panel kattintható */
}

.avra-cc[hidden] { display: none; }

.avra-cc__panel {
    pointer-events: auto;
    width: 100%;
    max-width: 440px;
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 1.1rem 1.25rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: avra-cc-in 0.25s ease;
}

@keyframes avra-cc-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.avra-cc__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.avra-cc__text {
    margin: 0 0 1rem;
    color: #4b5563;
}

.avra-cc__link {
    color: var(--avra-cc-accent, #0066cc);
    text-decoration: underline;
}

/* --- Gombok --- */
.avra-cc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.avra-cc__btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    white-space: nowrap;
}

.avra-cc__btn--primary {
    background: var(--avra-cc-accent, #0066cc);
    color: #fff;
}
.avra-cc__btn--primary:hover { opacity: 0.9; }

.avra-cc__btn--ghost {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}
.avra-cc__btn--ghost:hover { background: #e5e7eb; }

/* --- Kategóriák (részletes nézet) --- */
.avra-cc__cat {
    padding: 0.75rem 0;
    border-top: 1px solid #f0f0f0;
}
.avra-cc__cat:first-of-type { border-top: none; }

.avra-cc__cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.avra-cc__cat-label {
    font-weight: 600;
    font-size: 0.92rem;
}

.avra-cc__cat-text {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    color: #6b7280;
}

/* --- Kapcsoló (switch) --- */
.avra-cc__switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex: 0 0 auto;
}
.avra-cc__switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.avra-cc__slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 22px;
    transition: background 0.2s;
}
.avra-cc__slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.avra-cc__switch input:checked + .avra-cc__slider {
    background: var(--avra-cc-accent, #0066cc);
}
.avra-cc__switch input:checked + .avra-cc__slider::before {
    transform: translateX(18px);
}
.avra-cc__switch input:disabled + .avra-cc__slider {
    opacity: 0.55;
    cursor: not-allowed;
}

/* --- Mobil --- */
@media (max-width: 540px) {
    .avra-cc {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }
    .avra-cc__panel {
        max-width: 100%;
        padding: 1rem 1rem 1.1rem;
    }
    .avra-cc__btn { flex: 1 1 100%; }
}

/* --- Minimalizált süti-ikon (bal alsó sarok) --- */
.avra-cc-toggle {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 99998; /* a banner alatt, de minden más felett */
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--avra-cc-accent, #0066cc);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: avra-cc-in 0.25s ease;
}

.avra-cc-toggle[hidden] { display: none; }

.avra-cc-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.avra-cc-toggle:active { transform: scale(0.97); }

.avra-cc-toggle svg {
    width: 26px;
    height: 26px;
}

@media (max-width: 540px) {
    .avra-cc-toggle {
        left: 0.75rem;
        bottom: 0.75rem;
        width: 46px;
        height: 46px;
    }
    .avra-cc-toggle svg {
        width: 23px;
        height: 23px;
    }
}