/* Cookie Consent Banner Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--primary-color, #A8D5BA);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color, #A8D5BA);
    font-size: 1.1rem;
}

.cookie-consent-text p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: var(--primary-color, #A8D5BA);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: var(--primary-color, #A8D5BA);
    color: #fff;
}

.cookie-consent-btn-accept:hover {
    background: var(--secondary-color, #7CB342);
    transform: translateY(-2px);
}

.cookie-consent-btn-reject {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.cookie-consent-btn-reject:hover {
    background: #e9e9e9;
}

.cookie-consent-btn-settings {
    background: transparent;
    color: var(--primary-color, #A8D5BA);
    border: 1px solid var(--primary-color, #A8D5BA);
}

.cookie-consent-btn-settings:hover {
    background: var(--primary-color, #A8D5BA);
    color: #fff;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    overflow-y: auto;
    padding: 2rem;
}

.cookie-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background: #fff;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-settings-header {
    margin-bottom: 1.5rem;
}

.cookie-settings-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color, #A8D5BA);
}

.cookie-settings-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color, #A8D5BA);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-category-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.cookie-category-header .toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-category-header .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-category-header .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-category-header .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-category-header input:checked + .slider {
    background-color: var(--primary-color, #d4a574);
}

.cookie-category-header input:checked + .slider:before {
    transform: translateX(24px);
}

.cookie-category-header input:disabled + .slider {
    background-color: var(--primary-color, #d4a574);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.cookie-settings-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.cookie-settings-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-settings-btn-save {
    background: var(--primary-color, #A8D5BA);
    color: #fff;
}

.cookie-settings-btn-save:hover {
    background: var(--secondary-color, #7CB342);
}

.cookie-settings-btn-cancel {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.cookie-settings-btn-cancel:hover {
    background: #e9e9e9;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1.2rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-text h3 {
        font-size: 1rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-settings-content {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 85vh;
    }

    .cookie-settings-header h2 {
        font-size: 1.3rem;
    }

    .cookie-category {
        padding: 0.8rem;
    }

    .cookie-category-header h3 {
        font-size: 0.95rem;
    }

    .cookie-category p {
        font-size: 0.85rem;
    }

    .cookie-settings-buttons {
        flex-direction: column;
    }

    .cookie-settings-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 1rem;
    }

    .cookie-consent-text h3 {
        font-size: 0.95rem;
    }

    .cookie-consent-text p {
        font-size: 0.85rem;
    }

    .cookie-consent-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .cookie-settings-content {
        padding: 1rem;
        margin: 0.5rem;
    }
}
