.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}
.cookie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.cookie-content-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 550px;
    padding: 25px;
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 90vh;
    overflow-y: auto;
}
.cookie-content-box h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}
.cookie-content-box p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}
.privacy-policy-link {
    font-size: 0.85em;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
}
.privacy-policy-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}
.privacy-policy-link a:hover {
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}
.cookie-actions button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-grow: 1;
    max-width: 180px;
}
.btn-accept-all {
    background-color: #007bff;
    color: #ffffff;
}
.btn-accept-all:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.btn-reject-all {
    background-color: #dc3545;
    color: #ffffff;
}
.btn-reject-all:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}
.btn-customize, .btn-back {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}
.btn-customize:hover, .btn-back:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}
.btn-save-preferences {
    background-color: #28a745;
    color: #ffffff;
}
.btn-save-preferences:hover {
    background-color: #218838;
    transform: translateY(-2px);
}
.cookie-settings-panel h2 {
    margin-bottom: 20px;
}
.cookie-category {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.cookie-category:last-of-type {
    margin-bottom: 0;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.category-header h3 {
    font-size: 1.1em;
    color: #333;
    margin: 0;
}
.cookie-category p {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 25px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
}
input:checked + .slider {
    background-color: #28a745;
}
input:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}
input:checked + .slider:before {
    transform: translateX(20px);
}
.slider.round {
    border-radius: 25px;
}
.slider.round:before {
    border-radius: 50%;
}
input:disabled + .slider {
    background-color: #a0a0a0;
    cursor: not-allowed;
}
input:disabled + .slider:before {
    background-color: #e0e0e0;
}
@media (max-width: 768px) {
    .cookie-content-box {
        width: 95%;
        padding: 20px;
    }
    .cookie-content-box h2 {
        font-size: 1.5em;
    }
    .cookie-content-box p {
        font-size: 0.9em;
    }
    .cookie-actions button {
        flex-basis: 100%;
        max-width: none;
    }
}
@media (max-width: 480px) {
    .cookie-content-box {
        border-radius: 8px;
        padding: 15px;
    }
    .cookie-content-box h2 {
        font-size: 1.3em;
    }
    .cookie-actions button {
        padding: 10px 15px;
        font-size: 0.95em;
    }
    .cookie-category {
        padding: 12px;
    }
    .category-header h3 {
        font-size: 1em;
    }
    .cookie-category p {
        font-size: 0.8em;
    }
}