/* Alap beállítások */
#cookie-banner,
#cookie-settings {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 320px;
    max-width: 95vw;
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px 0 rgba(0,0,0,0.35);
    z-index: 10000;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.6;
    animation: fadeInModal 0.4s cubic-bezier(.4,2,.6,1);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

#cookie-banner {
    display: flex;
}

#cookie-settings {
    display: none;
}

/* Gombok tároló */
.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Gombok alap stílus */
.cookie-buttons button, #saveSettings {
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7em 1.6em;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(255,215,0,0.08);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    outline: none;
}

/* Testreszabás gomb */
#customize {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

/* Hover effekt */
.cookie-buttons button:hover, #saveSettings:hover {
    background: #fffbe6;
    color: var(--primary);
    transform: translateY(-2px) scale(1.04);
}

/* Kategóriák egyesével */
.cookie-category {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin: 0.7em 0;
    font-size: 1rem;
    color: var(--gray);
    justify-content: flex-start;
}

/* Checkbox mérete */
.cookie-category input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Mentés gomb */
#saveSettings {
    width: 100%;
    margin-top: 1.2em;
}

/* Cookie Overlay (kattintás blokkolása, ha nincs consent) */
#cookie-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 18, 42, 0.85); /* sötét overlay */
    z-index: 9998;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

/* Mobil optimalizálás */
@media (max-width: 600px) {
    #cookie-banner, #cookie-settings {
        min-width: 0;
        width: 98vw;
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        font-size: 0.98rem;
    }
    .cookie-buttons {
        flex-direction: column;
        gap: 0.7rem;
    }
}
