/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 9998 !important;
    font-family: 'Poppins', sans-serif;
    margin: 0 !important;
    padding: 1.5rem;
    isolation: isolate;
    transform-origin: center bottom;
}

.cookie-text {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-text .material-icons {
    font-size: 2rem;
    color: var(--color-primary);
}

.cookie-message h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-message p {
    color: var(--color-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-message a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #0a2845;
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--color-secondary);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    color: var(--color-primary);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.cookie-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-option h4 {
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
}

.cookie-option p {
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-modal .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.cookie-modal .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.cookie-modal .slider.round {
    border-radius: 24px;
}

.cookie-modal .slider.round:before {
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--color-primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        border-radius: 12px 12px 0 0;
        width: 100%;
    }

    .cookie-content {
        padding: 1rem;
    }

    .cookie-text {
        flex-direction: column;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}