/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    color: white;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-consent.active {
    display: block;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content h3 {
    color: white;
    margin: 0;
}

.cookie-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.cookie-button.primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.cookie-button.primary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.cookie-button.secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-button.tertiary {
    background-color: transparent;
    color: var(--secondary-light);
    text-decoration: underline;
    padding: 0.5rem;
}

.cookie-button.tertiary:hover {
    color: var(--secondary-color);
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.cookie-settings-panel.active {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background-color: white;
    border-radius: var(--border-radius-md);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.cookie-settings-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.cookie-settings-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-light);
}

.cookie-option-header h4 {
    margin: 0 0 0.25rem;
    color: var(--primary-dark);
}

.cookie-option-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

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

.cookie-switch input:checked + label {
    background-color: var(--primary-color);
}

.cookie-switch input:checked + label:before {
    transform: translateX(26px);
}

.cookie-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .cookie-option-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-switch {
        margin-top: 0.5rem;
    }
}
