#fibrargent-modal-registro {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
}

#fibrargent-modal-registro[style*="flex"] {
    display: flex !important;
}

/* =============================================================================
   CSS ADICIONAL CRÍTICO - Agregar al INICIO de tu style.css
   Este CSS debe ir ANTES de cualquier otro estilo del formulario de registro
   ============================================================================= */

/* MÉTODO 1: Ocultar por posición - cualquier campo antes del wrapper */
.woocommerce-form-register > .form-row:first-child,
.woocommerce-form-register > .woocommerce-form-row:first-child {
    display: none !important;
}

/* MÉTODO 2: Ocultar párrafos que no son form-row */
.woocommerce-form-register > p:not(.form-row):not(.woocommerce-form-row) {
    display: none !important;
}

/* MÉTODO 3: Ocultar específicamente campos fuera del wrapper */
.woocommerce-form-register > *:not(#fibrargent-registro-wrapper):not(.woocommerce-form__button) {
    display: none !important;
}

/* MÉTODO 4: Forzar visibilidad SOLO del wrapper y el botón */
.woocommerce-form-register {
    position: relative;
}

.woocommerce-form-register > :not(#fibrargent-registro-wrapper):not(p.woocommerce-form-row--wide):not(.woocommerce-Button) {
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* MÉTODO 5: Ocultar por contenido específico */
.woocommerce-form-register > p:not(.form-row) {
    display: none !important;
}

/* MÉTODO 6: Selector muy específico para el email de WooCommerce */
#customer_login .u-column2.col-2 .woocommerce-form-register > .form-row:first-of-type {
    display: none !important;
}

/* MÉTODO 7: Ocultar hermanos anteriores al wrapper */
#fibrargent-registro-wrapper ~ .form-row,
#fibrargent-registro-wrapper ~ .woocommerce-form-row {
    display: block !important; /* Permitir los que están después */
}

/* Pero ocultar los que están antes */
.woocommerce-form-register > .form-row:has(+ #fibrargent-registro-wrapper),
.woocommerce-form-register > p:has(+ #fibrargent-registro-wrapper) {
    display: none !important;
}

/* MÉTODO 8: Usar nth-child para ocultar el primero */
.woocommerce-form-register > :nth-child(1):not(#fibrargent-registro-wrapper) {
    display: none !important;
}

.woocommerce-form-register > :nth-child(2):not(#fibrargent-registro-wrapper) {
    display: none !important;
}

/* MÉTODO 9: Ocultar por atributo name="email" fuera del wrapper */
.woocommerce-form-register > .form-row:has(input[name="email"]):not(#fibrargent-registro-wrapper .form-row) {
    display: none !important;
}

/* MÉTODO 10: Forzar que solo sea visible nuestro wrapper */
#fibrargent-registro-wrapper {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Asegurar que NUESTRO campo de email sea visible */
#fibrargent-registro-form #reg_email,
#fibrargent-registro-form input[name="email"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#fibrargent-registro-form .form-row:has(#reg_email) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Botón de registro de WooCommerce - mantener visible */
.woocommerce-form-register .woocommerce-Button,
.woocommerce-form-register button[type="submit"],
.woocommerce-form-register input[type="submit"] {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   FIBRARGENT B2B - ESTILOS DETALLE DE PRODUCTO
   ============================================ */
/**{
/*outline: 1px dashed blue;
/*}*/
.fibrargent-product-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.fibrargent-product-section {
    display: grid;
    grid-template-columns: 1fr;
}

/* Información de descuentos */
.fibrargent-discount-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #0066cc;
}

.fibrargent-discount-info strong {
    display: block;
    margin-bottom: 5px;
}

.fibrargent-row-total.discounted{
    font-size: 16px; /* Un poco más pequeño */
    color: #333333;  /* Gris oscuro solicitado */
    text-decoration: line-through; /* Tachado */
    margin-bottom: 2px;
    opacity: 0.8; /* Opcional: un poco más suave para que no compita */
}

/* 3. Precio Final con Descuento (El de abajo) */
.fibrargent-row-total.final-price {
    font-size: 16px; /* Un poco más grande para destacar */
    font-weight: 700;
    color: #28a745; /* Verde solicitado */
}

/* ============================================
   FIBRARGENT B2B - ESTILOS LISTA (DIVS)
   ============================================ */

.fibrargent-variations-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
    border-top: 1px solid #e1e1e1;
}

.fibrargent-variation-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e1e1e1;
}

/* COLUMNA 1: INFO PRECIO Y MEDIDA */
.fibrargent-col-info {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fibrargent-price-header {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: normal;
}

.fibrargent-price-header .price-bold {
    font-weight: 700;
    color: #646464;
    font-size: 14px;
    margin: 0 5px;
}

.fibrargent-price-header .pack-info {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

/* COLUMNA 2: CANTIDAD */
.fibrargent-col-qty {
    flex: 0 0 auto;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Bloque común para Botón/Input + Label */
.fibrargent-action-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fibrargent-row-size-price-total{
    display: flex;
    justify-content: space-between;
    width:100%;
    align-items: flex-start;
}

/* Labels (MEDIDAS / UNIDADES) */
.fibrargent-label-text {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin: 8px 0 0 0;
    letter-spacing: 0.05em;
    text-align: center;
    font-weight: 500;
}

/* COLUMNA 3: TOTAL */
.fibrargent-col-total {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: end;
    justify-content: center;
    padding:10px 0;
}

/* Ajustes específicos para los componentes existentes */
.fibrargent-size-button {
    min-width: 120px;
    padding: 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.fibrargent-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fff;
    width: 100%;
    height: 39px;
}

input.fibrargent-qty-input {
    width: 50px;
    height: 100%;
    border: none;
    border-left: 1px solid #e1e1e1;
    border-right: 1px solid #e1e1e1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding:0;
}

.fibrargent-qty-btn {
    width: 40px;
    height: 100%;
    background: #f9f9f9;
    font-size: 18px;
    color: #333;
    padding: 0;
    cursor: pointer;
}

.fibrargent-row-total {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    line-height: 1;
}

/* RESPONSIVE DE LA MATRIZ DE PRODUCTOS */
@media (max-width: 768px) {
    .fibrargent-row-size-price-total {
        flex-wrap: wrap; 
    }
    .fibrargent-action-block {
        order: 1;
        align-items: flex-start;
    }
    .fibrargent-action-block .fibrargent-label-text {
        align-self: center;
    }
    .fibrargent-variation-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .fibrargent-col-qty {
        order: 2;
        align-items: flex-end;
    }
    .fibrargent-col-qty .fibrargent-label-text {
        align-self: center;
    }
    .fibrargent-col-total {
        width: 100%;
        align-items: flex-end;
        margin-top: 20px;
        text-align: right;
        margin-bottom: 0;
        padding-top: 10px;
        order: 3;
        flex: 0 0 100%;
    }
}

.price {
    display: none !important;
}

/* Quitar flechas inputs number */
.fibrargent-qty-input::-webkit-outer-spin-button,
.fibrargent-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.fibrargent-qty-input[type=number] {
  -moz-appearance: textfield;
}

/* =============================================================================
   NUEVO SISTEMA: PANEL LATERAL FIJO (40% ANCHO)
   ============================================================================= */

/* 1. LAYOUT PRINCIPAL (PUSH BODY) - DESKTOP */
@media (min-width: 992px) {
    /* Empujamos el contenido para dejar el 40% libre a la derecha */
    /* Excluimos checkout para que ahí el panel desaparezca y el contenido use el 100% */
    body:not(.woocommerce-checkout) #page {
        margin-right: 35vw; /* 40% del ancho del viewport */
        width: 64vw;        /* El resto para el contenido */
        transition: margin 0.3s ease, width 0.3s ease;
        max-width: 100%;    /* Asegurar que no se desborde */
    }
    
    /* Panel Fijo */
    .fibrargent-sticky-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: 35vw; /* 40% del ancho */
        height: 100vh;
        background: #fff;
        border-left: 1px solid #e1e1e1;
        /*box-shadow: -5px 0 20px rgba(0,0,0,0.08);*/
        z-index: 10000;
        display: flex;
        flex-direction: column;
        font-family: 'Albert Sans', sans-serif;
    }
}

/* Ocultar en móvil/tablet (se usa barra inferior o diseño apilado) */
@media (max-width: 991px) {
    .fibrargent-sticky-panel {
        display: none;
    }
    body {
        padding-bottom: 80px;
    }
}

/* 2. ENCABEZADO DEL PANEL */
.sticky-panel-header {
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
    height: 81px;
    display: flex;
    align-items: center;
}

.sticky-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #111;
    /*text-transform: uppercase;*/
    letter-spacing: -0.5px;
}

.sticky-panel-header span{
    font-weight: 600;
}

/* 3. CUERPO (LISTADO) */
.sticky-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #fdfdfd;
}

/* ITEM INDIVIDUAL */
.fibrargent-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr; /* Imagen más grande */
    gap: 20px;
    padding:20px;
    border-bottom: 1px solid #e1e1e1;
    align-items: first;
    background: #fff;
}

/* Imagen */
.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}
.cart-item-container {
    display: flex;
    flex-direction:column;
    
}
.cart-item-details{
    display: flex;
    justify-content: space-between;
    margin-bottom:10px;
}
.cart-item-actions{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-qty-controls{
    display: flex;
    justify-content: space-between;
}

input.side-cart-qty-btn.minus, input.side-cart-qty-btn.plus{
    width:36px;
    height:36px;
}
input.side-cart-qty-btn.minus{
    border-radius:4px 0 4px 0;
}
/* Detalles */
.cart-item-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-right: 20px;
    /*margin-bottom: 8px;*/
}

.cart-item-unit-price {
    font-size: 14px;
    color: #666;
}

/* Estilo para el precio unitario dinámico */
.unit-price-display {
    font-weight: 700;
    color: #0066cc;
}

/* 4. SELECTOR DE PAGO (NUEVO) */
.payment-method-selector {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-method-selector label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 0;
    margin-right: 10px;
    text-transform: uppercase;
    white-space: nowrap;

}

.fibrargent-payment-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

/* 5. TOTALES Y FOOTER */
.sticky-panel-footer {
    background: #fff;
    padding-bottom: 20px;
}

.fibrargent-cart-totals {
    padding: 20px 20px 0 20px;
}
.cart-remove-btn{
    background: #e0e0e0;
    border: none;
    width: 35px;
    height: 35px;
    /*font-size: 14px;*/
    cursor: pointer;
    color: #838383;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
    padding:10px 15px;
}
.cart-remove-btn:hover{
    background: #cccccc;
    transition: color 0.2s;
}
.cart-remove-btn:active{
    color: #838383;
    transition: color 0.2s;
}
/* Ajuste para iconos Bootstrap */
.cart-remove-btn i {
    font-size: 14px; /* Tamaño del icono */
    color: #939393;
    transition: color 0.2s;
    pointer-events: none; /* Importante para que el clic vaya al botón */
}
.cart-remove-btn i:hover{
    color: #adadad;
    transition: color 0.2s;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

.cart-row.total-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e1e1e1;
    font-size: 22px; /* Más grande */
    color: #333333;
    font-weight: 700;
}

.fibrargent-btn-checkout {
    display: block;
    margin:0 20px;
    padding: 15px;
    background: #0066cc;
    color: white;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    transition: background 0.2s ease;
}

.fibrargent-btn-checkout:hover {
    background: #0052a3;
    color:white;
    transition: background 0.2s ease;
}

/* Ocultar elementos sobrantes de WooCommerce si se cuelan */
.widget_shopping_cart_content .buttons {
    display: none !important;
}

/* ============================================
   BARRA MÓVIL (BOTTOM BAR)
============================================ */
.fibrargent-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 992px) {
    .fibrargent-mobile-bottom-bar {
        display: none;
    }
}

.mobile-total-info {
    display: flex;
    flex-direction: column;
}

.mobile-total-info .text {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.mobile-total-info .amount {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
}

.fibrargent-btn-checkout-mobile {
    background: #0066cc;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.fibrargent-btn-checkout-mobile:hover {
    color: white;
}
/* Color verde para descuentos activos */
.cart-row.discount-row.active-discount {
    color: #28a745; /* Verde éxito */
    font-weight: 500;
}

/* Color gris suave para descuentos en 0 */
.cart-row.discount-row {
    color: #999;
}

.woocommerce-notices-wrapper,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    display: none !important;
}
/* Quitar el borde de foco en botones de cantidad al hacer clic */
.fibrargent-qty-btn:focus,
.side-cart-qty-btn:focus {
    outline: none;
    box-shadow: none;
}

/* FORZAR ESTILO DE BOTONES DE CANTIDAD */
.fibrargent-qty-btn,
.side-cart-qty-btn {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 15px;
}

/* Efecto solo al pasar el mouse por encima (Hover) */
.fibrargent-qty-btn:hover,
.side-cart-qty-btn:hover {
    background-color: #e0e0e0 !important;
}

/* Evitar que se quede "azul" o pintado al hacer clic (Active/Focus) */
.fibrargent-qty-btn:active,
.fibrargent-qty-btn:focus,
.side-cart-qty-btn:active,
.side-cart-qty-btn:focus {
    background-color: #d0d0d0 !important;
    color: #333333 !important;
}

/* ============================================
   PÁGINA MI CARRITO (CART)
   ============================================ */

/* Ocultar botón de actualizar carrito (lo haremos automático por JS) */
.woocommerce-cart button[name="update_cart"] {
    display: none !important;
}

/* Opcional: Feedback visual de que se está calculando */
.woocommerce-cart .cart_totals.processing {
    opacity: 0.5;
    pointer-events: none;
}
.ast-single-entry-banner[data-post-type="product"]{
    display: none !important;
}

/* ============================================
   FIX VISIBILIDAD INPUT CARRITO LATERAL
   ============================================ */

input.side-cart-qty-input {
    /* Forzamos anular el estilo del tema */
    padding: 0 !important; 
    margin: 0 !important;
    
    /* Aseguramos dimensiones */
    height: 32px !important; /* Un poco menos que los botones para que respire */
    width: 50px !important;
    
    /* Estética del texto */
    text-align: center !important;
    color: #333333 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 32px !important; /* Centrado vertical */
    
    /* Fondo y Bordes */
    background: transparent !important;
    border:none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    
    /* Fix para navegadores móviles que oscurecen inputs readonly */
    opacity: 1 !important;
    -webkit-text-fill-color: #333333 !important;
}

/* Asegurar que el contenedor alinee todo al centro */
.cart-qty-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 36px; /* Altura total del bloque */
    overflow: hidden; /* Para que nada se salga */
}

/* Ajuste de los botones para que coincidan */
.side-cart-qty-btn {
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px !important;
}

/* --- FIX 1: Centrar números en input del panel --- */
.side-cart-qty-input {
    text-align: center !important;
    padding-left: 0 !important; /* Asegura que no haya espacio extra */
}

/* --- FIX 2: Flecha del Selector de Pago --- */
.fibrargent-payment-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Flecha SVG codificada en base64 para que se vea siempre */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px; /* Espacio para que el texto no tape la flecha */
}

/* --- FIX 4: Estilos para precio tachado --- */
.price-display-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.old-price-display {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
    font-weight: 400;
}
/* Bloqueo del botón de pago */
#place_order.fibrargent-disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
    transform: none !important;
}
/* ============================================
   PANELES INFORMATIVOS SUPERIORES
   ============================================ */
.fibrargent-info-panels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1200px;
    /* margin: 0 auto 40px;  Depende de tu container */
}

.info-panel-box {
    background-color: #e7f3ff; /* Celeste suave */
    border-radius: 6px;
    padding: 15px 20px;
    font-size: 14px;
    color: #0066cc;
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.info-panel-title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 13px;
}

.info-panel-content {
    line-height: 1.4;
    font-size: 13px;
}

.info-panel-content b {
    font-weight: 700;
}

.info-panel-link {
    font-size: 11px;
    color: #0066cc;
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

/* RESPONSIVE PANELES */
@media (max-width: 768px) {
    .fibrargent-info-panels-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ============================================
   MODAL DE PAGOS
   ============================================ */
.fibrargent-modal {
    display: none;
    position: fixed; 
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
}

.fibrargent-modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.fibrargent-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.fibrargent-modal-close:hover {
    color: black;
}

.fibrargent-modal-content h3 {
    margin-top: 0;
    color: #333;
    font-size:1.75em;
}

.fibrargent-modal-content ul {
    margin-top: 20px;
    padding-left: 20px;
}

.fibrargent-modal-content li {
    margin-bottom: 10px;
    color: #555;
}

/* Ocultar sección de suscripción a boletín en Checkout */
#contact > div.wc-block-components-checkbox.wc-block-components-address-form__hostinger-reach-newsletter-optin{
    display: none !important;
}

/* ============================================
   LIMPIEZA EXTREMA DEL CHECKOUT
   ============================================ */

/* 1. Ocultar Cupones */
.woocommerce-form-coupon-toggle,
.checkout_coupon,
.woocommerce-form-coupon {
    display: none !important;
}

/* 2. Ocultar Selección de Pagos (Pero mantener el botón de finalizar) */
#payment ul.payment_methods {
    display: none !important;
}
#payment .payment_box {
    display: none !important;
}
/* Quitar el fondo gris de la caja de pago para que parezca parte del formulario */
#payment {
    background: transparent !important;
    padding: 0 !important;
}

/* 3. Ocultar filas de 'Fees' automáticas (Las reemplazaremos por las nuestras fijas) */
.cart-discount, 
.fee {
    display: none !important;
}

/* 4. Estilo para nuestras filas personalizadas */
.fibrargent-custom-row th {
    font-weight: 400;
    color: #666;
}
.fibrargent-custom-row .amount {
    font-weight: 700;
}
/* Color verde para los descuentos */
.fibrargent-custom-row.discount-row .amount {
    color: #28a745;
}

/* ============================================
   AJUSTE DE ESPACIADO GENERAL (SITE CONTENT)
   ============================================ */

.site-content {
    /* Ajusta estos valores según lo que necesites */
    padding-top: 10px !important;    /* Espacio arriba */
    padding-bottom: 10px !important; /* Espacio abajo */
    
    /* Si también quieres espacio a los lados en desktop */
    padding-left: 10px;
    padding-right: 10px;
}

.site-content#content .ast-container{
    padding-left:0 !important;
    padding-right:0 !important;
}
/* Ajuste para Móviles (para que no quede tan separado) */
@media (max-width: 768px) {
    .site-content {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

@media (min-width: 1200px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 10px !important;
        margin-bottom: 60px;
    }
}
@media (min-width: 922px) {
    .site-content .ast-container {
        display: flex;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ============================================
   ESTILOS TARJETA DE PRODUCTO (CATÁLOGO)
   ============================================ */

/* 1. Contenedor de Imagen (Bordes Redondeados) */
.woocommerce ul.products li.product a img {
    border-radius: 6px !important;
    overflow: hidden;
}

/* 2. Categoría */
.ast-woo-product-category,
.ast-woo-product-category a {
    color: #888888 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
}

/* 3. Título del Producto */
.woocommerce-loop-product__title {
    font-size: 16px !important;
    color: #333333 !important;
    font-weight: 600 !important; /* Negrita para destacar */
    margin-bottom: 10px;
}

/* 4. Párrafo (Descripción Corta) - Limitado a 2 líneas */
.ast-woo-shop-product-description {
    font-size: 13px !important;
    color: #666666 !important;
    line-height: 1.5;
    margin-bottom: 15px;
    
    /* Truco CSS para cortar a las 2 líneas con "..." */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5. Botón "Agregar cantidad" */
.woocommerce ul.products li.product .button {
    font-size: 14px !important;
    width: 100% !important; /* Ocupar todo el ancho */
    display: block !important;
    text-align: center !important;
    padding: 12px 0 !important; /* Ajuste vertical para que se vea bien */
    border-radius: 4px; /* Un poco de borde para suavizar */
}
.ast-footer-copyright{
    font-size: 13px;
    color: #666666;
}
.woocommerce-pagination ul.page-numbers{
    justify-content: center !important;
}

/* ============================================
   PERSONALIZACIÓN DE PAGINACIÓN (GRIS)
   ============================================ */

/* 1. Centrar el contenedor de la paginación */
.woocommerce nav.woocommerce-pagination {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 40px; /* Espacio arriba */
    border: none !important; /* Quita bordes del contenedor si los hay */
}

.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    display: flex;
    gap: 8px; /* Espacio entre botones */
    justify-content: center;
    padding: 0;
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
    overflow: hidden;
    margin: 0 !important;
}

/* 2. Estilo Base de los Botones (Números y Flechas) */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background-color: #E0E0E0 !important; /* Fondo gris claro */
    color: #838383 !important;             /* Texto gris medio */
    border: 1px solid #E0E0E0 !important;  /* Borde igual al fondo para matar el azul */
    border-radius: 4px !important;         /* Bordes ligeramente redondeados */
    padding: 10px 16px !important;         /* Tamaño del botón */
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: block;
    line-height: 1;
    transition: all 0.3s ease;
}

/* 3. Estilo Hover (Al pasar el mouse) y Focus */
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
    background-color: #c0c0c0 !important; /* Un poco más oscuro que E0E0E0 */
    border-color: #c0c0c0 !important;
    color: #333333 !important;             /* Texto se oscurece un poco */
}

/* 4. Estilo de la Página Actual (Activa) */
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #c0c0c0 !important; /* Mismo color oscuro que el hover */
    border-color: #c0c0c0 !important;
    color: #000000 !important;             /* Texto negro para destacar */
    cursor: default;
}
.e-con-inner{
    padding-right:0 !important;
    padding-left:0 !important;
}
/* ============================================
   ESTILOS PÁGINA CHECKOUT (PEDIDO)
   ============================================ */

/* 1. Títulos en 16px */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
    font-size: 16px !important;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

/* 2. Padding específico para el título "Tu Pedido" */
#order_review_heading {
    padding: 20px 20px 20px !important; /* Ajustado para que no se desfase a la izq */
    border-radius:6px 6px 0 0 !important;
    border: 1px solid #e1e1e1 !important;
}

/* 3. Inputs y Selects */
.woocommerce-checkout input.input-text {
    border-radius: 4px !important;
    border: 1px solid #ccc;
}

.woocommerce-checkout select {
    height: 40px !important;
    border-radius: 4px !important;
    border: 1px solid #ccc;
    vertical-align: middle;
}

/* 4. Recuadro "Tu Pedido" (Borde y Radio) */
#order_review {
    border: 1px solid #e1e1e1 !important;
    border-top:0px solid transparent !important;
    border-radius:0 0 6px 6px !important;
    padding: 20px;
    background-color: #fff;
}

/* 5. Botón Realizar Pedido */
#place_order {
    height: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 6. Eliminar Checkbox "Suscríbase a nuestro boletín" */
.woocommerce-form-row.mailchimp-newsletter,
p.form-row.mailchimp-newsletter{
    display: none !important;
}

/* 7. Eliminar el primer Subtotal duplicado (Solución visual rápida) */
/* Se explica más abajo por qué sucede */
.woocommerce-checkout tr.cart-subtotal:first-child {
    /*display: none;*/ /* Descomenta esto si quieres ocultar el de arriba a la fuerza */
}

.woocommerce-js .select2-container .select2-selection--single, .woocommerce-js select, .woocommerce-page .select2-container .select2-selection--single, .woocommerce-page select {
    padding: .9em 0.8em !important;
    line-height: normal !important;
    padding-right: 2em !important;
    appearance: none !important;
    background-position: 98% 50% !important;
    background-color: var(--ast-global-dark-bg-style, #fff) !important;
    border-color: var(--ast-border-color) !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    height: 45px!important;
}

textarea.input-text#order_comments{
    border-radius: 6px !Important;
}
input.woocommerce-form__input.woocommerce-form__input-checkbox.input-checkbox,
span.hostinger-reach-optin__checkbox-text{
    display: none !important;
}
/* ============================================
   FIX VISUAL CHECKOUT: ALINEACIÓN VERTICAL
   ============================================ */



/* 2. Asegurar que el div del precio tenga comportamiento de bloque */
.woocommerce-checkout .product-unit-price {
    display: block !important;
    margin-top: 5px !important; /* Separación entre nombre y precio */
    width: 100%;
}

/* ============================================
   ESTILOS PEDIDO RECIBIDO (PIXEL PERFECT)
   ============================================ */

/* 1. Título del Producto + Cantidad */
.fibrargent-thankyou-title {
    color: #333333;      /* Negro suave */
    font-size: 16px;     /* Tamaño legible */
    font-weight: 700;    /* Negrita (Bold) */
    line-height: 1.4;
    margin-bottom: 4px;  /* Separación del precio */
    font-family: 'Albert Sans', sans-serif;
}

/* 2. Precio Unitario (El que agregamos antes) */
.order-unit-price {
    font-size: 15px !important;
    color: #666666 !important; /* Gris medio */
    font-weight: 400 !important; /* Regular */
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* 3. Atributos (Medidas, Paquete, Marca) */
/* WooCommerce los pone en una lista ul.wc-item-meta */

ul.wc-item-meta {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.wc-item-meta li {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important; /* Un poco más chico que el título */
    line-height: 1.6 !important;
    color: #555555 !important;
    display: block !important; /* Uno debajo del otro */
    clear: both;
}

/* Etiquetas de atributos (Ej: "Medidas:") */
ul.wc-item-meta li strong {
    font-weight: 500 !important; /* Semi-bold */
    color: #0066cc !important;   /* Azul de la marca o Gris oscuro según prefieras */
    margin-right: 5px;
    float: none !important;
}

/* Valores de atributos (Ej: "070x040 cm") */
ul.wc-item-meta li p {
    display: inline !important;
    margin: 0 !important;
    color: #555 !important;
}

/* Forzar estructura de 2 columnas en detalles del pedido */
.woocommerce-order-details table.shop_table,
.woocommerce-checkout-review-order-table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Alineación y anchos de celdas */
.woocommerce-order-details table.shop_table th,
.woocommerce-order-details table.shop_table td {
    width: 50% !important;
    word-wrap: break-word !important; /* Evita que el texto largo rompa el diseño */
    vertical-align: top !important;
    padding: 15px !important;
}

/* Estilo específico para la fila de la nota */
.woocommerce-order-details table.shop_table tr.order-note td {
    text-align: left !important;
    line-height: 1.6;
}

/* =============================================================================
   ESTILOS ADICIONALES PARA SISTEMA DE APROBACIÓN MANUAL
   Agregar al final de tu archivo style.css existente
   ============================================================================= */

/* ============================================
   FORMULARIO DE REGISTRO PERSONALIZADO
   ============================================ */

/* Wrapper principal */
#fibrargent-registro-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

/* Intro del registro */
.fibrargent-registro-intro {
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    border: 0;
}

.fibrargent-registro-intro h3 {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.fibrargent-registro-intro p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Botón de Registrarme principal */
.fibrargent-btn-registro {
    background-color: #0066cc !important;
    color: white !important;
    border: none !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fibrargent-btn-registro:hover {
    background-color: #0052a3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Formulario de registro */
.fibrargent-registro-form {
    background: white;
    padding: 30px;
    border-radius: 5px;
    border: 0;
    /*margin-top: 20px;*/
}

/* Campos del formulario */
.fibrargent-registro-form .form-row {
    margin-bottom: 20px;
}

.fibrargent-registro-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.fibrargent-registro-form .required {
    color: #e74c3c;
    font-weight: 700;
}

.fibrargent-registro-form input[type="text"],
.fibrargent-registro-form input[type="email"],
.fibrargent-registro-form input[type="tel"] {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    transition: border-color 0.3s ease;
}

.fibrargent-registro-form input:focus {
    border-color: #0066cc !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Botón de submit del formulario */
.fibrargent-registro-form .button[type="submit"] {
    background-color: #0066cc !important;
    color: white !important;
    border: none !important;
    padding: 14px 0 !important;
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.fibrargent-registro-form .button[type="submit"]:hover {
    background-color: #0052a3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ============================================
   MODAL DE CONFIRMACIÓN DE REGISTRO
   ============================================ */

.fibrargent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fibrargent-modal-content-registro {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fibrargent-modal-header {
    margin-bottom: 25px;
}

.fibrargent-modal-header i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 15px;
}

.fibrargent-modal-header h3 {
    color: #333;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.fibrargent-modal-body {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.fibrargent-modal-body p {
    margin-bottom: 15px;
}

.fibrargent-modal-body strong {
    color: #333;
}

.fibrargent-btn-modal {
    background-color: #0066cc !important;
    color: white !important;
    border: none !important;
    padding: 14px 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fibrargent-btn-modal:hover {
    background-color: #0052a3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ============================================
   MENSAJE DE PRECIO PARA USUARIOS PENDIENTES
   ============================================ */

.fibrargent-pending-price {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .fibrargent-registro-intro,
    .fibrargent-registro-form {
        padding: 20px;
    }

    .fibrargent-registro-intro h3 {
        font-size: 20px;
    }

    .fibrargent-modal-content-registro {
        padding: 30px 20px;
    }

    .fibrargent-modal-header i {
        font-size: 48px;
    }

    .fibrargent-modal-header h3 {
        font-size: 22px;
    }

    .fibrargent-modal-body {
        font-size: 14px;
    }
}

/* ============================================
   AJUSTES PARA PÁGINA DE MI CUENTA
   ============================================ */

/* Ocultar el texto predeterminado de WooCommerce sobre la contraseña */
.woocommerce-form-register > p:first-of-type {
    display: none !important;
}

/* Ocultar el campo de email que WooCommerce genera por defecto ANTES de nuestro wrapper */
.woocommerce-form-register > p:has(#reg_email):not(#fibrargent-registro-wrapper p) {
    display: none !important;
}

/* Método alternativo: ocultar el primer campo de email que aparece antes del wrapper */
#customer_login .woocommerce-form-register > p.form-row:has(input[name="email"]) {
    display: none !important;
}

/* Ocultar específicamente el párrafo que contiene el texto de la contraseña */
.woocommerce-form-register > p:not(.form-row):first-child {
    display: none !important;
}

/* Ajustar espaciado de la sección de registro */
.woocommerce-form-register {
    padding: 0 !important;
}

/* ============================================
   ESTILOS PARA PANEL DE ADMIN
   ============================================ */

/* Mejorar visualización del campo de estado en admin */
#account_status {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

#account_status option {
    padding: 5px;
}

/* Destacar el estado según el valor */
tr:has(#account_status) {
    background: #f8f9fa;
    padding: 15px;
}

/* ============================================
   NOTIFICACIONES ADICIONALES
   ============================================ */

/* Mensaje de cuenta pendiente en Mi Cuenta */
.woocommerce-MyAccount-content .fibrargent-account-pending-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.fibrargent-account-pending-notice h3 {
    color: #856404;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.fibrargent-account-pending-notice p {
    color: #856404;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* =============================================================================
   CSS ESPECÍFICO PARA OCULTAR TEXTO "Se enviará un enlace..."
   Agregar este código a tu style.css
   ============================================================================= */

/* Ocultar el párrafo que contiene "Se enviará un enlace..." */
#fibrargent-registro-wrapper > p:not(.form-row):not(.woocommerce-form-row) {
    display: none !important;
}

/* Ocultar dentro del formulario expandido también */
#fibrargent-registro-form > p:not(.form-row):not(.woocommerce-form-row) {
    display: none !important;
}



/* Asegurar que los campos de formulario SÍ sean visibles */
#fibrargent-registro-form .form-row,
#fibrargent-registro-form .woocommerce-form-row {
    display: block !important;
}

/* Específicamente para el campo de email de WooCommerce */
#fibrargent-registro-form .woocommerce-form-row:has(#reg_email) {
    display: block !important;
}

/* ============================================
   BOTONES DE "VOLVER" EN PRODUCTO
   ============================================ */
.fibrargent-btn-volver-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
}

.fibrargent-btn-volver-wrapper.top {
    margin-bottom: 20px;
}

.fibrargent-btn-volver-wrapper.bottom {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1; /* Una línea separadora para que quede prolijo */
}

.fibrargent-btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cc; /* Azul de tu marca */
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 15px;
    background: #f8f9fa; /* Fondo gris muy sutil */
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.fibrargent-btn-volver:hover {
    background: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

/* Icono de Bootstrap que ya tienes cargado en tu tema */
.fibrargent-btn-volver i {
    font-size: 18px;
    position: relative;
    top: 1px;
}