/* Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
}

#cookie-banner.show {
    display: flex;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    flex: 1;
    padding-right: 20px;
}

.cookie-title {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #333;
}

.cookie-text {
    font-size: 0.9em;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .cookie-buttons {
        margin-top: 0;
    }
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: #78288C;
    color: white;
}

.cookie-btn.accept:hover {
    background: #5a1d6a;
}

.cookie-btn.reject {
    background: #f0f0f0;
    color: #333;
}

.cookie-btn.reject:hover {
    background: #e0e0e0;
}

.cookie-btn.settings {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    text-decoration: underline;
}

.cookie-btn.settings:hover {
    border-color: #999;
    color: #333;
}

/* Cookie Settings Modal */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

#cookie-modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    font-family: 'Lato', sans-serif;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #78288C;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.cookie-option:last-child {
    border-bottom: none;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.option-title {
    font-weight: 600;
    font-size: 1.1em;
}

.option-desc {
    font-size: 0.9em;
    color: #666;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    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: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.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: #78288C;
}

input:focus+.slider {
    box-shadow: 0 0 1px #78288C;
}

input:checked+.slider:before {
    transform: translateX(16px);
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}