/* Apexbit GDPR Cookie Consent Banner & Modal */
.apexbit-cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99990;
    background: #111827;
    color: #f9fafb;
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    padding: 18px 22px;
    max-width: 1100px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}
.apexbit-cc-banner.is-visible {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.apexbit-cc-text {
    flex: 1 1 460px;
    min-width: 240px;
}
.apexbit-cc-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
}
.apexbit-cc-desc {
    margin: 0;
    color: #d1d5db;
    font-size: 13px;
}
.apexbit-cc-desc a {
    color: #fbbf24;
    text-decoration: underline;
}
.apexbit-cc-desc a:hover {
    color: #fcd34d;
}
.apexbit-cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.apexbit-cc-btn {
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.apexbit-cc-btn-accept {
    background: #f59e0b;
    color: #111827;
    border-color: #f59e0b;
}
.apexbit-cc-btn-accept:hover {
    background: #d97706;
    border-color: #d97706;
    color: #111827;
}
.apexbit-cc-btn-reject {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}
.apexbit-cc-btn-reject:hover {
    background: #4b5563;
    color: #ffffff;
}
.apexbit-cc-btn-prefs {
    background: transparent;
    color: #e5e7eb;
    border-color: #6b7280;
}
.apexbit-cc-btn-prefs:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Floating Cookie Re-open Button */
.apexbit-cc-fab {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 99980;
    background: #111827;
    color: #f9fafb;
    border: 1px solid #374151;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 6px;
}
.apexbit-cc-fab.is-visible {
    display: inline-flex;
}
.apexbit-cc-fab:hover {
    background: #1f2937;
    border-color: #f59e0b;
}

/* Modal Backdrop & Dialog */
.apexbit-cc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.65);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.apexbit-cc-modal-backdrop.is-visible {
    display: flex;
}
.apexbit-cc-modal {
    background: #ffffff;
    color: #111827;
    width: 100%;
    max-width: 540px;
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.apexbit-cc-modal-header {
    background: #111827;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.apexbit-cc-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}
.apexbit-cc-modal-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.apexbit-cc-modal-close:hover {
    color: #ffffff;
}
.apexbit-cc-modal-body {
    padding: 18px 20px;
    max-height: 65vh;
    overflow-y: auto;
}
.apexbit-cc-cat {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #f9fafb;
}
.apexbit-cc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.apexbit-cc-cat-title {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}
.apexbit-cc-cat-desc {
    margin: 0;
    font-size: 12.5px;
    color: #4b5563;
    line-height: 1.45;
}
.apexbit-cc-badge-always {
    font-size: 11px;
    font-weight: 700;
    color: #065f46;
    background: #d1fae5;
    padding: 3px 8px;
    border-radius: 999px;
}
.apexbit-cc-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.apexbit-cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.apexbit-cc-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #d1d5db;
    transition: 0.2s;
    border-radius: 24px;
}
.apexbit-cc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.2s;
    border-radius: 50%;
}
.apexbit-cc-switch input:checked + .apexbit-cc-slider {
    background-color: #f59e0b;
}
.apexbit-cc-switch input:checked + .apexbit-cc-slider:before {
    transform: translateX(18px);
}
.apexbit-cc-modal-footer {
    padding: 14px 20px;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.apexbit-cc-modal-footer .apexbit-cc-btn-prefs {
    color: #111827;
    border-color: #9ca3af;
    background: #ffffff;
}
.apexbit-cc-modal-footer .apexbit-cc-btn-prefs:hover {
    background: #e5e7eb;
}
@media (max-width: 640px) {
    .apexbit-cc-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px 16px;
    }
    .apexbit-cc-actions {
        width: 100%;
    }
    .apexbit-cc-actions .apexbit-cc-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
