/* 
* Segrevicar - Cookie Consent Styles
*/

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-content,
.cookie-settings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-settings {
    display: none;
}

.cookie-consent h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.cookie-consent p {
    margin-bottom: 1.5rem;
    max-width: 800px;
}

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

/* Cookie Settings */
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

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

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

.cookie-option p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--medium);
    max-width: 600px;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

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

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

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    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;
}

@media (max-width: 768px) {
    .cookie-buttons,
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
