.bsb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.bsb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bsb-in { color: #15803d; }
.bsb-in .bsb-dot { background: #22c55e; }

.bsb-low { color: #b45309; }
.bsb-low .bsb-dot { background: #f59e0b; }

.bsb-out { color: #dc2626; }
.bsb-out .bsb-dot { background: #dc2626; }

.bsb-backorder { color: #2563eb; }
.bsb-backorder .bsb-dot { background: #2563eb; }

/* ========================================
   INQUIRY BUTTON
======================================== */
.bsb-inquiry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 20px;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #003450;
    background: #eab308;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.bsb-inquiry-btn:hover {
    background: #facc15;
}

.bsb-inquiry-btn:active {
    transform: scale(0.98);
}

.bsb-inquiry-btn svg {
    flex-shrink: 0;
}

/* ========================================
   OVERLAY
======================================== */
.bsb-inquiry-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bsb-inquiry-overlay.is-active {
    display: flex;
}

/* ========================================
   POPUP
======================================== */
.bsb-inquiry-popup {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Close */
.bsb-inquiry-popup .bsb-inquiry-close {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent !important;
    border: none !important;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    z-index: 1;
    transition: color 0.15s;
    line-height: 1;
    display: flex;
    box-shadow: none !important;
}

.bsb-inquiry-popup .bsb-inquiry-close:hover {
    background: transparent !important;
    color: #1f2937;
}

/* ========================================
   HEADER
======================================== */
.bsb-popup-header {
    padding: 28px 28px 20px;
    text-align: center;
}

.bsb-popup-icon {
    width: 48px;
    height: 48px;
    background: #f0f7ff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.bsb-inquiry-popup h3 {
    margin: 0 0 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    background: none;
    padding: 0;
    border-radius: 0;
}

.bsb-popup-subtitle {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #9ca3af;
}

/* ========================================
   PRODUCT CARD (inside popup)
======================================== */
.bsb-popup-product {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 28px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.bsb-popup-product-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.bsb-popup-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bsb-popup-product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.bsb-popup-product-sku {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #9ca3af;
}

/* ========================================
   FORM
======================================== */
.bsb-inquiry-form {
    padding: 20px 28px 28px;
}

.bsb-form-row {
    display: flex;
    gap: 12px;
}

.bsb-field {
    margin-bottom: 14px;
    flex: 1;
}

.bsb-field label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.bsb-req {
    color: #dc2626;
}

.bsb-inquiry-popup .bsb-field input,
.bsb-inquiry-popup .bsb-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #1f2937;
}

.bsb-field input::placeholder,
.bsb-field textarea::placeholder {
    color: #d1d5db;
}

.bsb-field.bsb-field-half input {
    border-radius: 4px;
    font-size: 13px;
    padding: 8px;
}

.bsb-field.bsb-field-half input:hover,
.bsb-field.bsb-field-half input:focus {
    border-color: #003450 !important;
    outline: none !important;
}

.bsb-inquiry-popup .bsb-field input:hover,
.bsb-inquiry-popup .bsb-field textarea:hover {
    border-color: #003450 !important;
    outline: none !important;
}

.bsb-inquiry-popup .bsb-field input:focus,
.bsb-inquiry-popup .bsb-field textarea:focus {
    border-color: #003450 !important;
    box-shadow: 0 0 0 3px rgba(0, 52, 80, 0.08);
    outline: none !important;
}

.bsb-inquiry-popup .bsb-field textarea {
    resize: vertical;
    min-height: 120px;
    font-size: 13px !important;
    line-height: 1.3;
}

/* RODO checkbox */
.bsb-rodo {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}

.bsb-rodo input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #003450;
    cursor: pointer;
}

.bsb-rodo label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    line-height: 1.4;
    color: #6b7280;
    cursor: pointer;
}

.bsb-rodo label a {
    color: #003450;
    text-decoration: underline;
}

/* Submit */
.bsb-inquiry-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #003450;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-top: 6px;
}

.bsb-inquiry-submit:hover {
    background: #004a6e;
}

.bsb-inquiry-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bsb-inquiry-submit svg {
    flex-shrink: 0;
}

/* Status */
.bsb-inquiry-status {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    margin: 12px 0 0;
}

/* ========================================
   RESPONSIVE
======================================== */
@media screen and (max-width: 540px) {
    .bsb-form-row {
        flex-direction: column;
        gap: 0;
    }

    .bsb-popup-header {
        padding: 24px 20px 16px;
    }

    .bsb-popup-product {
        margin: 0 20px;
    }

    .bsb-inquiry-form {
        padding: 16px 20px 24px;
    }

    .bsb-inquiry-popup h3 {
        font-size: 18px;
    }
}
