/* Alap beállítások */
#cookie-banner,
#cookie-settings {
    font-family: 'Poppins', 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: linear-gradient(120deg, #eafcff 0%, #b6e6f7 100%);
    color: #1761a0;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(30, 144, 255, 0.13);
    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;
    opacity: 0;
    animation: fadeInModal 0.4s cubic-bezier(.4,2,.6,1) forwards;
}

@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: linear-gradient(90deg, #ffb347 0%, #ff4f81 100%);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 0.8em 2em;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 79, 129, 0.08);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    outline: none;
}

/* Testreszabás gomb */
#customize {
    background: #fff;
    color: #1761a0;
    border: 2px solid #1761a0;
}

/* Hover effekt */
.cookie-buttons button:hover, #saveSettings:hover {
    background: #eafcff;
    color: #1761a0;
    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: #1761a0;
    justify-content: flex-start;
}

/* Checkbox mérete */
.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff4f81;
    cursor: pointer;
}

/* Mentés gomb */
#saveSettings {
    width: 100%;
    margin-top: 1.2em;
}

/* Cookie Overlay (háttér sötétítés, modal mögött) */
#cookie-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(30, 97, 160, 0.25);
    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;
        border-radius: 14px;
    }
    .cookie-buttons {
        flex-direction: column;
        gap: 0.7rem;
    }
    .cookie-buttons button, #saveSettings {
        padding: 0.7em 0.7em;
        font-size: 0.98rem;
    }
}

@media (max-width: 400px) {
    #cookie-banner, #cookie-settings {
        padding: 0.7rem 0.1rem 0.7rem 0.1rem;
        font-size: 0.92rem;
        border-radius: 8px;
    }
}
