#privacy-consent-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100% - 40px);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-content {
    padding: 25px;
}

#privacy-consent-popup h2 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

#privacy-consent-popup h3 {
    font-size: 1.1em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 5px;
}

#privacy-consent-popup p {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.cookie-actions, .cookie-settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

#privacy-consent-popup button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-grow: 1;
    min-width: 120px;
}

#privacy-consent-popup button.accept-all-btn,
#privacy-consent-popup button.save-preferences-btn {
    background-color: #007bff;
    color: #fff;
}

#privacy-consent-popup button.accept-all-btn:hover,
#privacy-consent-popup button.save-preferences-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

#privacy-consent-popup button.manage-settings-btn,
#privacy-consent-popup button.back-to-intro-btn {
    background-color: #e9ecef;
    color: #333;
}

#privacy-consent-popup button.manage-settings-btn:hover,
#privacy-consent-popup button.back-to-intro-btn:hover {
    background-color: #d6d9dc;
    transform: translateY(-1px);
}

.cookie-category {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.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 {
    margin-bottom: 0;
}

.always-active-label {
    font-size: 0.8em;
    color: #6c757d;
    background-color: #e2e6ea;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 600;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.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: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #007bff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #007bff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

.privacy-overview-text {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #privacy-consent-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: unset;
    }
    .cookie-banner-content {
        padding: 15px;
    }
    #privacy-consent-popup h2 {
        font-size: 1.3em;
    }
    #privacy-consent-popup h3 {
        font-size: 1em;
    }
    #privacy-consent-popup p {
        font-size: 0.85em;
    }
    .cookie-actions, .cookie-settings-actions {
        flex-direction: column;
    }
    #privacy-consent-popup button {
        width: 100%;
        min-width: unset;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    #privacy-consent-popup {
        width: 350px;
        right: 15px;
        bottom: 15px;
    }
}