/* ==========================================================================
   WC B2B Revendedores — Frontend Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sección de campos extra en el formulario de registro
   -------------------------------------------------------------------------- */
.wcb2b-fields {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e8ecf0;
}

.wcb2b-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #8a94a6;
    margin: 0 0 20px !important;
}

.wcb2b-fields .woocommerce-form-row {
    margin-bottom: 14px;
}

.wcb2b-fields input[type="text"],
.wcb2b-fields input[type="tel"],
.wcb2b-fields select {
    border-radius: 6px !important;
    border: 1.5px solid #dde2ea !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wcb2b-fields input:focus,
.wcb2b-fields select:focus {
    border-color: #1a237e !important;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.08) !important;
    outline: none !important;
}

/* Estado de validación del CUIT */
.wcb2b-fields input.wcb2b-valid {
    border-color: #16a34a !important;
}

.wcb2b-fields input.wcb2b-invalid {
    border-color: #dc2626 !important;
}

.wcb2b-cuit-feedback {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.wcb2b-cuit-feedback.valid  { color: #16a34a; }
.wcb2b-cuit-feedback.invalid { color: #dc2626; }

/* --------------------------------------------------------------------------
   Aviso de login en la página de Mi Cuenta
   -------------------------------------------------------------------------- */
.wcb2b-login-notice {
    background: #f0f4ff;
    border-left: 4px solid #1a237e;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
}

.wcb2b-login-notice a {
    color: #1a237e;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Aviso de cuenta pendiente
   -------------------------------------------------------------------------- */
.wcb2b-notice {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.wcb2b-notice--pending {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* --------------------------------------------------------------------------
   Mensaje de precio oculto
   -------------------------------------------------------------------------- */
.wcb2b-price-hidden {
    font-size: 13px;
    color: #8a94a6;
    font-style: italic;
    display: block;
    margin: 4px 0;
}

/* --------------------------------------------------------------------------
   CTA en página de producto (reemplaza el botón de carrito)
   -------------------------------------------------------------------------- */
.wcb2b-product-cta {
    background: #f8fafc;
    border: 1.5px dashed #dde2ea;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.wcb2b-product-cta a {
    color: #1a237e;
    font-weight: 600;
}

.wcb2b-pending-msg {
    margin: 0;
    color: #92400e;
}

/* --------------------------------------------------------------------------
   CTA link en listado de productos
   -------------------------------------------------------------------------- */
.wcb2b-cta-link {
    display: inline-block;
    font-size: 12px;
    color: #1a237e !important;
    border: 1.5px solid #1a237e;
    border-radius: 4px;
    padding: 5px 10px;
    text-decoration: none !important;
    margin-top: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.wcb2b-cta-link:hover {
    background: #1a237e;
    color: #fff !important;
}

/* ==========================================================================
   Mi Cuenta — Header B2B
   ========================================================================== */

.wcb2b-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #f8fafc;
    border: 1.5px solid #e8ecf0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.wcb2b-account-header__info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wcb2b-account-header__avatar {
    width: 52px;
    height: 52px;
    background: #1a237e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.wcb2b-account-header__name {
    margin: 0 0 2px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a1f36 !important;
    line-height: 1.3 !important;
}

.wcb2b-account-header__cuit,
.wcb2b-account-header__prov {
    margin: 0 !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
}

.wcb2b-account-header__badge {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.wcb2b-account-header__badge--approved {
    background: #dcfce7;
    color: #15803d;
}

.wcb2b-account-header__badge--pending {
    background: #fffbeb;
    color: #92400e;
}

/* ==========================================================================
   Mi Cuenta — Página Datos B2B
   ========================================================================== */

.wcb2b-data-page__intro {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.wcb2b-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.wcb2b-data-table th,
.wcb2b-data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f4f8;
    font-size: 14px;
    text-align: left;
    vertical-align: middle;
}

.wcb2b-data-table th {
    width: 200px;
    color: #6b7280;
    font-weight: 600;
    background: #f8fafc;
}

.wcb2b-data-table td {
    color: #1a1f36;
    font-weight: 500;
}

.wcb2b-data-table tr:last-child th,
.wcb2b-data-table tr:last-child td {
    border-bottom: none;
}

.wcb2b-data-page__note {
    font-size: 14px;
    color: #6b7280;
}

.wcb2b-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

.wcb2b-status--approved {
    background: #dcfce7;
    color: #15803d;
}

.wcb2b-status--pending {
    background: #fffbeb;
    color: #92400e;
}

/* ==========================================================================
   Campo OC en checkout
   ========================================================================== */

#wcb2b_oc_field {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf0;
}

#wcb2b_oc_field h3 {
    font-size: 16px !important;
    margin-bottom: 12px !important;
}
