.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 340px;
    background: #fff;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 10px;
}

.cookie-content {
    padding: 16px;
}

.cookie-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
}

.cookie-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.accept {
    background: #d71920;
    color: #fff;
}

.reject {
    background: #ddd;
}

.settings {
    background: #f5f5f5;
}

/* 🔴 MODAL */
.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
}

.modal-box {
    background: #fff;
    padding: 20px;
    max-width: 400px;
    margin: 100px auto;
    border-radius: 10px;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
    .cookie-popup {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 10px;
    }
}

/* MODAL */
.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
}

.modal-box {
    background: #fff;
    max-width: 420px;
    margin: 80px auto;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* TEXT */
.modal-box h3 {
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* ITEM */
.cookie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cookie-item p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #777;
}

/* SWITCH */
.switch {
    position: relative;
    width: 46px;
    height: 24px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background: #ccc;
    border-radius: 50px;
    inset: 0;
    transition: .3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}

input:checked + .slider {
    background: #d71920;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* BUTTONS */
.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.save {
    background: #444;
    color: #fff;
}

.accept {
    background: #d71920;
    color: #fff;
}

.reject {
    background: #ddd;
}

/* MOBILE */
@media (max-width: 768px) {
    .modal-box {
        width: calc(100% - 20px);
        margin: 40px auto;
    }
}

/* 🔴 HER ZAMAN BODY ALTINDA OLMALI */
.cookie-popup {
    position: fixed !important;
    z-index: 999999;
}

/* DESKTOP */
@media (min-width: 768px) {
    .cookie-popup {
        bottom: 20px;
        left: 20px;
        width: 340px;
    }
}

/* 📱 MOBILE → ORTADA + BLUR */
@media (max-width: 767px) {

    body.cookie-open {
        overflow: hidden;
    }

    body.cookie-open::before {
        content: "";
        position: fixed;
        inset: 0;
        backdrop-filter: blur(6px);
        background: rgba(0,0,0,0.3);
        z-index: 99998;
    }

    .cookie-popup {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 30px);
        bottom: auto;
    }
}

/* OVERLAY */
#cookieOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 99998;
    display: none;
}

/* POPUP */
.cookie-popup {
    position: fixed !important;
    z-index: 99999;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    width: 340px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* DESKTOP */
@media (min-width: 768px) {
    .cookie-popup {
        bottom: 20px;
        left: 20px;
    }
}

/* MOBILE → TAM ORTA */
@media (max-width: 767px) {
    .cookie-popup {
        top: 10% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100% - 30px);
        bottom: auto !important;
    }
}

/* LOCK SCROLL */
body.cookie-lock {
    overflow: hidden !important;
}