/* 
==============================
Cookie Consent Styles
==============================
*/

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cookie-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.cookie-content p {
    margin-bottom: 15px;
    color: var(--grey-color);
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-btn.primary {
    background-color: var(--primary-color);
    color: #fff;
}

.cookie-btn.primary:hover {
    background-color: var(--primary-dark);
}

.cookie-btn.secondary {
    background-color: var(--light-grey);
    color: var(--dark-color);
}

.cookie-btn.secondary:hover {
    background-color: var(--border-color);
}

.cookie-settings-panel {
    display: none;
    padding: 0 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.cookie-settings-panel h4 {
    margin: 15px 0;
    color: var(--dark-color);
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-grey);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option h5 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.cookie-option p {
    margin-bottom: 0;
    color: var(--grey-color);
    font-size: 0.9rem;
    max-width: 80%;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-grey);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

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

input:disabled + .slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-option p {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .toggle {
        margin-top: 5px;
    }
}

@media (max-width: 576px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
