* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
  
    max-width: calc(100vw - 500px); /* leaves ~500px on the right for the chatbot */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,.15);
    z-index: 9998;
    padding: 12px 20px;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-text h3 {
    margin-bottom: 4px;
    color: #111827;
}

.cookie-text p {
    color: #000000;
    line-height: 1.8;
    font-size: 16px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    border: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13px;
    transition: .2s;
}

.btn-primary {
    background: #005f7a;
    color: white;
}

.btn-primary:hover {
    background: #007FA3;
}

.btn-secondary {
    background: #ef4444;
    color: white;
}

.btn-secondary:hover {
    background: #dc2626;
}

.btn-outline {
    background: white;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f3f4f6;
}

/* Modal */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.cookie-modal-overlay.active {
    display: flex;
}

.cookie-modal {
    background: white;
    width: 90%;
    max-width: 700px;
    border-radius: 18px;
    overflow: hidden;
}

.cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.close-btn {
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

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

.cookie-category h4 {
    margin-bottom: 5px;
}

.cookie-category p {
    color: #000000;
    font-size: 16px;
}

/* Toggle Switch */
.switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 50px;
    transition: .3s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}

input:checked + .slider {
    background: #007FA3;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .cookie-banner {
        left: 20px;
        right: 20px;
        width: auto;
        max-width: none;
    }

    .cookie-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        flex: 1;
    }

    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}