﻿/* Modal Arkaplan */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    font-family: system-ui, sans-serif;
}

/* Modal İçerik */
.cookie-modal-content {
    width: 430px;
    background: #fff;
    border-radius: 14px;
    padding: 25px 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    animation: fadeIn 0.25s ease;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Başlık */
.cookie-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-header-title {
    font-size: 20px;
    font-weight: 600;
}

/* Kapatma butonu */
.cookie-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    padding: 0;
    color: #7a7a7a;
}

    .cookie-close:hover {
        color: #000;
    }

/* Açıklama */
.cookie-description {
    color: #666;
    line-height: 1.45;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Cookie Option Row */
.cookie-option {
    border-top: 1px solid #eee;
    padding: 18px 0;
}

    .cookie-option:first-of-type {
        border-top: none;
    }

.cookie-option-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.cookie-option-desc {
    color: #777;
    font-size: 13px;
    margin-left: 42px;
    margin-top: 6px;
}

/* ----------------------------- */
/* Soft Toggle (EXACT STYLE LIKE EXAMPLE) */
/* ----------------------------- */

.toggle {
    position: relative;
    width: 38px;
    height: 20px;
    appearance: none;
    outline: none;
    background: #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.25s ease;
    vertical-align: middle;
}

    .toggle:checked {
        background: #ed1c24;
    }

    .toggle::before {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        background: #fff;
        border-radius: 50%;
        top: 2px;
        left: 2px;
        transition: transform 0.25s ease;
        box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    }

    .toggle:checked::before {
        transform: translateX(18px);
    }

/* Footer buttons */
.cookie-footer-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.cookie-btn {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
}

.cookie-btn-primary {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    background: #ed1c24;
    color: white;
    cursor: pointer;
}

    .cookie-btn-primary:hover {
        opacity: 0.9;
    }
