/* ==========================================================================
   Conversión a B2B - Estilos Modernos y Pulidos para WooCommerce
   ========================================================================== */

.b2b-pricing-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    font-family: inherit;
}

.b2b-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.35;
}

.b2b-price-retail {
    font-size: 0.95em;
    color: #64748b;
}

.b2b-price-retail .b2b-price-label {
    font-weight: 500;
    color: #64748b;
}

.b2b-price-retail .b2b-price-amount {
    font-weight: 700;
    color: #1e293b;
}

.b2b-price-wholesale {
    font-size: 1.15em;
    color: #0f766e;
    border-top: 1px solid #f1f5f9;
    padding-top: 4px;
}

.b2b-price-wholesale .b2b-price-label {
    font-weight: 700;
    color: #115e59;
}

.b2b-price-wholesale .b2b-highlight-wholesale {
    font-weight: 800;
    color: #0f766e;
}

.b2b-price-wholesale.b2b-no-discount .b2b-price-amount {
    color: #64748b;
    font-weight: 500;
}

/* Precios en Carrito (Tachados Inteligentes) */
.b2b-cart-item-price-block {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.b2b-cart-ws-del,
.b2b-cart-reg-del {
    font-size: 0.88em;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.b2b-cart-reg-normal {
    font-size: 1.05em;
    font-weight: 700;
    color: #0f172a;
}

.b2b-cart-reg-ins {
    font-size: 1em;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
}

.b2b-cart-ws-ins {
    font-size: 1.05em;
    font-weight: 800;
    color: #0f766e;
    text-decoration: none;
}

/* Micro-texto IVA Incluido */
.b2b-vat-notice,
.b2b-vat-total-notice {
    margin-top: 3px;
}

.b2b-vat-notice-blocks {
    margin-top: 4px;
    text-align: right;
    width: 100%;
}

.b2b-vat-table-row th,
.b2b-vat-table-row td {
    padding-top: 2px !important;
    padding-bottom: 8px !important;
    border-top: none !important;
}

.b2b-vat-micro,
.b2b-vat-text {
    font-size: 0.75em !important;
    color: #94a3b8 !important;
    font-weight: normal !important;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Avisos y Barras de Progreso B2B (Diseño Moderno & Elegante)
   ========================================================================== */
.b2b-progress-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 16px 0 24px 0;
    width: 100%;
}

/* Aviso cuando NO califica (Progreso en curso) */
.b2b-notice-progress {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid #334155 !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.25) !important;
    color: #f8fafc !important;
}

.b2b-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95em;
    gap: 12px;
}

.b2b-progress-msg {
    color: #f1f5f9;
    font-weight: 500;
}

.b2b-progress-msg strong {
    color: #38bdf8;
    font-weight: 700;
}

.b2b-progress-percent {
    font-weight: 800;
    color: #38bdf8;
    font-size: 0.95em;
    background: rgba(56, 189, 248, 0.15);
    padding: 2px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    white-space: nowrap;
}

.b2b-progress-bar-bg {
    background: #334155;
    border-radius: 9999px;
    height: 9px;
    overflow: hidden;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.b2b-progress-bar-fill {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
    border-radius: 9999px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
    will-change: width;
}

/* Aviso cuando SÍ califica (Éxito Mayorista) */
.b2b-notice-qualified {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%) !important;
    border: 1px solid #059669 !important;
    color: #ecfdf5 !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 14px -2px rgba(6, 78, 59, 0.3) !important;
}

.b2b-notice-icon {
    font-size: 1.6em;
    line-height: 1;
}

.b2b-notice-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.b2b-notice-title {
    font-size: 1.02em;
    font-weight: 700;
    color: #ffffff;
}

.b2b-notice-sub {
    font-size: 0.9em;
    color: #a7f3d0;
}

.b2b-notice-sub strong {
    color: #ffffff;
}

/* ==========================================================================
   Caja de Estado en Totales de Carrito y Checkout
   ========================================================================== */
.b2b-totals-status-box-container {
    width: 100%;
    margin: 12px 0 16px 0;
}

.b2b-totals-status-box {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9em;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.b2b-totals-under-threshold {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.b2b-totals-under-threshold .b2b-status-badge {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.76em;
    color: #64748b;
    letter-spacing: 0.05em;
}

.b2b-totals-under-threshold .b2b-status-text strong {
    color: #0f172a;
}

.b2b-totals-qualified {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.b2b-totals-qualified .b2b-status-badge {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.76em;
    color: #047857;
    letter-spacing: 0.05em;
}

.b2b-totals-qualified .b2b-status-text strong {
    color: #064e3b;
}

/* Fila de Ahorro en Resumen de Carrito */
.b2b-wholesale-savings-row th,
.b2b-wholesale-savings-row td {
    background: #f0fdf4 !important;
    color: #15803d !important;
    font-weight: 600 !important;
}
