/* Alap beállítások */
#cookie-banner,
#cookie-settings {
    font-family: 'Barlow Semi Condensed', '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: 450px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(37, 60, 78, 0.15);
    color: rgb(37, 60, 78);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(37, 60, 78, 0.25), 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    animation: fadeInModal 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInModal {
    from { 
        opacity: 0; 
        transform: translate(-50%, -45%) scale(0.95); 
        backdrop-filter: blur(0px);
    }
    to   { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
        backdrop-filter: blur(15px);
    }
}

#cookie-banner {
    display: var(--cookie-banner-display, none); /* CSS változóval vezérelt megjelenítés */
}

#cookie-settings {
    display: none;
}

/* Banner szöveg stílus */
#cookie-banner p,
#cookie-settings p {
    color: rgb(37, 60, 78);
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
}

/* Gombok tároló */
.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Gombok alap stílus */
.cookie-buttons button, #saveSettings {
    background: #6B46C1;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8em 1.8em;
    cursor: pointer;
    box-shadow: 0 4px 15px #E9D8FD;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

/* Testreszabás gomb */
#customize {
    background: transparent;
    color: #6B46C1;
    border: 2px solid #6B46C1;
    box-shadow: 0 4px 15px #E9D8FD;
}

/* Hover effekt */
.cookie-buttons button:hover, #saveSettings:hover {
    background: #9F7AEA;
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #E9D8FD;
}

#customize:hover {
    background: #9F7AEA;
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px E9D8FD;
}

/* Kategóriák egyesével */
.cookie-category {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin: 0.8em 0;
    font-size: 1rem;
    color: rgb(37, 60, 78);
    justify-content: flex-start;
    width: 100%;
}

/* Checkbox mérete */
.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6B46C1;
    cursor: pointer;
}

.cookie-category label {
    cursor: pointer;
    font-weight: 500;
}

/* Mentés gomb */
#saveSettings {
    width: 100%;
    margin-top: 1.5em;
    padding: 1em 2em;
    font-size: 1.05rem;
}

/* Cookie Overlay (kattintás blokkolása, ha nincs consent) */
#cookie-overlay {
    display: var(--cookie-overlay-display, none); /* CSS változóval vezérelt megjelenítés */
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(37, 60, 78, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Mobil optimalizálás */
@media (max-width: 600px) {
    #cookie-banner, #cookie-settings {
        min-width: 0;
        width: 95vw;
        max-width: 95vw;
        padding: 2rem 1.5rem;
        font-size: 0.95rem;
        /* margin: 0 2.5vw; */
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .cookie-buttons button, #saveSettings {
        width: 100%;
        padding: 0.9em 1.5em;
    }
}
