/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--pozadi-tmave);
    border-top: 1px solid var(--okraj-barva);
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-svetly);
    font-family: var(--font-zakladni);
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--mezera-normalni);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 992px) {
    .cookie-banner {
        padding: 20px 0;
    }

    .cookie-banner-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .cookie-text {
        flex: 1;
        margin-right: var(--mezera-extra-velka);
    }
}

.cookie-text p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--text-sedivy);
}

.cookie-text a {
    color: var(--primarni-barva);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: var(--bila);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cookie-buttons .tlacitko {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.85rem;
    height: auto;
    min-height: 0;
}

#cookie-btn-settings {
    background: transparent;
    border: none;
    padding: 4px 8px;
    color: var(--text-sedivy);
    text-decoration: underline;
    font-size: 0.75rem;
}

#cookie-btn-settings:hover {
    color: var(--bila);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--mezera-normalni);
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background-color: var(--pozadi-tmave);
    border: 1px solid var(--okraj-barva);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: var(--mezera-velka);
    border-bottom: 1px solid var(--okraj-barva);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--bila);
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-sedivy);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.cookie-close-btn:hover {
    color: var(--primarni-barva);
}

.cookie-modal-body {
    padding: var(--mezera-velka);
    overflow-y: auto;
}

.cookie-option {
    margin-bottom: var(--mezera-velka);
    padding-bottom: var(--mezera-velka);
    border-bottom: 1px solid var(--okraj-barva);
}

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

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

.cookie-option-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--bila);
}

.cookie-option-desc {
    font-size: 0.9rem;
    color: var(--text-sedivy);
    margin: 0;
    line-height: 1.5;
}

.cookie-modal-footer {
    padding: var(--mezera-velka);
    border-top: 1px solid var(--okraj-barva);
    text-align: right;
}

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

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--okraj-barva);
    transition: .4s;
}

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

input:checked + .cookie-slider {
    background-color: var(--primarni-barva);
}

input:focus + .cookie-slider {
    box-shadow: 0 0 1px var(--primarni-barva);
}

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

input:disabled + .cookie-slider {
    background-color: #555;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Round sliders */
.cookie-slider.round {
    border-radius: 34px;
}

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

/* Light mode overrides if needed */
.svetly-motiv .cookie-banner {
    background-color: var(--bila);
    border-top: 1px solid var(--okraj-barva);
    color: var(--text-svetly);
}

.svetly-motiv .cookie-text h3 {
    color: var(--text-svetly);
}

.svetly-motiv .cookie-modal-content {
    background-color: var(--bila);
}

.svetly-motiv .cookie-modal-header h2,
.svetly-motiv .cookie-option-title {
    color: var(--text-svetly);
}
