/* =========================================================
   COOKIE CONSENT
   ========================================================= */

.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);
}

.cookie-box {
    width: 100%;
    max-width: 700px;

    background: #ffffff;
    color: #1f2937;

    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.20);

    padding: 25px;
}

.cookie-box h2 {
    margin: 0 0 10px;
    font-size: 21px;
}

.cookie-box p {
    margin: 0 0 18px;
    line-height: 1.5;
    font-size: 14px;
}

.cookie-options {
    margin-bottom: 20px;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 0;

    border-top: 1px solid #e5e7eb;
}

.cookie-option:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.cookie-option-text {
    padding-right: 15px;
}

.cookie-option-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.cookie-option-description {
    font-size: 13px;
    color: #6b7280;
}

/* kapcsoló */

.cookie-switch {
    position: relative;

    width: 46px;
    height: 24px;

    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;

    background: #cbd5e1;
    border-radius: 24px;

    cursor: pointer;

    transition: 0.2s;
}

.cookie-slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    background: white;
    border-radius: 50%;

    transition: 0.2s;
}

.cookie-switch input:checked + .cookie-slider {
    background: #0099ff;
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(22px);
}

/* gombok */

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 18px;

    border: none;
    border-radius: 7px;

    font-size: 14px;
    cursor: pointer;
}

.cookie-btn-primary {
    background: #0099ff;
    color: #ffffff;
}

.cookie-btn-secondary {
    background: #e9edf3;
    color: #1f2937;
}

.cookie-btn:hover {
    opacity: 0.9;
}

/* mobil */

@media (max-width: 600px) {

    .cookie-overlay {
        padding: 10px;
    }

    .cookie-box {
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}