/* Cookie Consent Banner & Modal */
#bb-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c2a25;
    color: #f0eeeb;
    padding: 16px 20px;
    z-index: 10000;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
    display: none;
}

#bb-consent-banner.bb-visible {
    display: block;
}

#bb-consent-banner .bb-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#bb-consent-banner .bb-consent-text {
    flex: 1;
    min-width: 280px;
}

#bb-consent-banner .bb-consent-text a {
    color: #d4a574;
    text-decoration: underline;
}

#bb-consent-banner .bb-consent-text a:hover {
    color: #e8c09a;
}

#bb-consent-banner .bb-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

#bb-consent-banner .bb-consent-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s;
}

#bb-consent-banner .bb-btn-accept {
    background: #4a7c59;
    color: #fff;
}
#bb-consent-banner .bb-btn-accept:hover {
    background: #5a9469;
}

#bb-consent-banner .bb-btn-reject {
    background: #8b4049;
    color: #fff;
}
#bb-consent-banner .bb-btn-reject:hover {
    background: #a34d58;
}

#bb-consent-banner .bb-btn-manage {
    background: #555;
    color: #fff;
}
#bb-consent-banner .bb-btn-manage:hover {
    background: #666;
}

/* Settings Modal Overlay */
#bb-consent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

#bb-consent-modal-overlay.bb-visible {
    display: flex;
}

#bb-consent-modal {
    background: #fff;
    color: #333;
    border-radius: 8px;
    padding: 28px 32px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

#bb-consent-modal h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #2c2a25;
}

.bb-consent-category {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.bb-consent-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bb-consent-category-name {
    font-weight: 600;
    font-size: 15px;
}

.bb-consent-category-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.bb-consent-category .bb-always-on {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Toggle switch */
.bb-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.bb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bb-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.bb-toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.bb-toggle input:checked + .bb-toggle-slider {
    background-color: #4a7c59;
}

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

#bb-consent-modal .bb-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

#bb-consent-modal .bb-consent-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    transition: background-color 0.2s;
}

#bb-consent-modal .bb-btn-save {
    background: #4a7c59;
    color: #fff;
}
#bb-consent-modal .bb-btn-save:hover {
    background: #5a9469;
}

#bb-consent-modal .bb-btn-cancel {
    background: #999;
    color: #fff;
}
#bb-consent-modal .bb-btn-cancel:hover {
    background: #aaa;
}

/* Mobile responsive */
@media (max-width: 600px) {
    #bb-consent-banner {
        padding: 14px 16px;
    }

    #bb-consent-banner .bb-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    #bb-consent-banner .bb-consent-buttons {
        justify-content: center;
    }

    #bb-consent-banner .bb-consent-btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
    }

    #bb-consent-modal {
        padding: 20px;
        width: 95%;
    }
}
