/* 
* LneoIncum - Úklidové služby
* Stylový soubor pro cookie lištu a nastavení
*/

/* ===== COOKIE LIŠTA ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
    z-index: 1000;
    display: none;
}

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

.cookie-content h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
}

.cookie-content p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    display: none;
}

.cookie-modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    margin-bottom: var(--spacing-md);
    padding-right: 30px;
}

.cookie-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.cookie-options {
    margin-bottom: var(--spacing-lg);
}

.cookie-option {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--bg-light);
}

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

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.cookie-option-header h4 {
    margin-bottom: 0;
}

.cookie-option p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.cookie-modal-buttons {
    text-align: center;
}

/* ===== SWITCH ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.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: var(--transition-fast);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-fast);
}

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

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

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

.slider.round {
    border-radius: 34px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}
