#bba-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#bba-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50vh;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bba-input-checkbox {
    margin-bottom: 0 !important;
}


.cart-subtotal {
   border: none !important;
}

.bbam-api-timing th {
    vertical-align: top;
}

.bbam-api-timing__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85em;
    opacity: 0.85;
}

.bbam-api-timing__total {
    font-weight: 600;
    opacity: 1;
    margin-top: 2px;
}

/* Diagnostic performance panel. It is appended to <body> so WooCommerce
 * checkout redraws cannot remove it. */
#bbam-api-performance {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    width: 300px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    line-height: 1.4;
}

.bbam-api-performance__title {
    font-weight: 700;
    margin-bottom: 7px;
}

.bbam-api-performance__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
}

.bbam-api-performance__total {
    margin-top: 5px;
    padding-top: 6px;
    border-top: 1px solid #e5e5e5;
}

.bbam-api-performance__loading {
    opacity: 0.7;
}

/* Performance panel grand total */
#bbam-api-performance .bbam-api-performance__grand-total {
    margin-top: 6px;
    padding-top: 7px;
    border-top: 2px solid #ddd;
    font-weight: 700;
}

#bbam-api-performance .bbam-api-performance__grand-total strong {
    font-size: 14px;
}
