.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}
.close-button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}
.close-button:hover {
    color: #333;
}
.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex-grow: 1;
    color: #555;
}
.modal-body p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.cookie-categories {
    margin-top: 1.5rem;
}
.category-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.category-header label {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
}
.category-header input[type="checkbox"] {
    position: relative;
    width: 36px;
    height: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ccc;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
}
.category-header input[type="checkbox"]:checked {
    background-color: #4CAF50; /* Green for active */
}
.category-header input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.category-header input[type="checkbox"]:checked::before {
    transform: translateX(16px);
}
.category-header .always-active {
    font-size: 0.85rem;
    color: #666;
    background-color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: normal;
}
.privacy-link {
    text-align: right;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.privacy-link a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.privacy-link a:hover {
    text-decoration: underline;
    color: #0056b3;
}
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    font-weight: 500;
}
.btn.accept-all {
    background-color: #4CAF50; /* Green */
    color: #fff;
}
.btn.accept-all:hover {
    background-color: #45a049;
}
.btn.save-preferences {
    background-color: #007bff; /* Blue */
    color: #fff;
}
.btn.save-preferences:hover {
    background-color: #0056b3;
}
.btn.reject-all {
    background-color: #f44336; /* Red */
    color: #fff;
}
.btn.reject-all:hover {
    background-color: #da190b;
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.cookie-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.9rem;
}
.cookie-banner .banner-buttons {
    display: flex;
    gap: 0.8rem;
}
.cookie-banner .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
}
.cookie-banner .banner-accept-all {
    background-color: #4CAF50;
    color: #fff;
    border: none;
}
.cookie-banner .banner-accept-all:hover {
    background-color: #45a049;
}
.cookie-banner .banner-manage-preferences {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.cookie-banner .banner-manage-preferences:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem 1.2rem;
    }
    .modal-header h3 {
        font-size: 1.3rem;
    }
    .close-button {
        font-size: 1.8rem;
    }
    .modal-footer {
        flex-direction: column;
        gap: 0.8rem;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .cookie-banner p {
        margin-bottom: 0.8rem;
    }
    .cookie-banner .banner-buttons {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner .btn {
        flex-grow: 1;
    }
}
@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 1.2rem;
    }
    .close-button {
        font-size: 1.6rem;
    }
    .modal-body p, .category-header label, .category-item p {
        font-size: 0.9rem;
    }
    .btn {
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
    }
}