.cookie-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    /* Ensure the modal is above the cookie banner */

    /* Flexbox középre igazítás */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cookie-modal p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Gombok közötti távolság */
}

.cookie-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background-color: #007bff;
    color: #fff;
    transition: background-color 0.3s ease;
}

.cookie-buttons button:hover {
    background-color: #0056b3;
}


#customize-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1100;
}

#customize_modal .customize-modal-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.modal-buttons button {
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background-color: #007bff;
    color: #fff;
    transition: background-color 0.3s ease;
}

.modal-buttons button:hover {
    background-color: #0056b3;
    /* Sötétebb zöld hover */
    color: #fff;
    /* Szöveg színe fehér marad */
    transition: background-color 0.3s ease;
    /* Simább átmenet */
}



/* Switch alapstílus */
.switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
}

/* Rejtett alapértelmezett checkbox */
.switch input[type="checkbox"] {
    display: none;
}

/* Slider stílus */
.slider {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Kör a kapcsolón belül */
.slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

/* Bekapcsolt állapot */
input[type="checkbox"]:checked+.slider {
    background-color: #007bff;
}

input[type="checkbox"]:checked+.slider::before {
    transform: translateX(20px);
}

/* Disabled állapot */
input[type="checkbox"]:disabled+.slider {
    background-color: #ccc;
    cursor: not-allowed;
}

input[type="checkbox"]:disabled+.slider::before {
    background-color: #999;
}



@media (max-width: 768px) {

    .cookie-modal p {
        font-size: 10px;
        /* Kisebb szöveg a cookie modalban */
    }

    .cookie-buttons {
        gap: 1px;
        /* Kisebb távolság a gombok között */
    }
    .cookie-buttons button {
        font-size: 10px; /* Csökkentett szövegméret a gombokon */
    }

    .slider {
        width: 30px;
        /* Kisebb slider szélesség */
        height: 15px;
        /* Kisebb slider magasság */
    }

    .slider::before {
        width: 12px;
        /* Kisebb kör szélesség */
        height: 12px;
        /* Kisebb kör magasság */
        top: 1.5px;
        /* Igazítás */
        left: 1.5px;
        /* Igazítás */
        transition: transform 0.3s ease;
    }

    .switch {
        font-size: 10px;
        /* Kisebb szövegméret a slider mellett */
    }

    #customize-modal {
        width: 70%; /* Tovább csökkentett szélesség */
        padding: 8px; /* Csökkentett padding */
        max-height: 80%; /* Csökkentett maximális magasság */
        overflow-y: auto; /* Görgetés engedélyezése, ha a tartalom túl nagy */
    }
    #customize_modal .customize-modal-content {
        gap: 4px; /* Tovább csökkentett távolság az elemek között */
    }

    .modal-buttons button {
        font-size: 9px; /* Tovább csökkentett gomb szövegméret */
        padding: 5px 8px; /* Tovább csökkentett padding */
    }
}