/* ===================================================
   INTEGRACIÓN DEL BOTÓN EN FICHA DE PRODUCTO
   =================================================== */

/* Aseguramos que el formulario del carrito soporte ambos botones en bloque/fila */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Reajuste de proporciones para convivir con el botón regular de 75% */
.woocommerce div.product form.cart .b2b-btn-quote {
    display: inline-block !important;
    vertical-align: middle !important;
    width: 100% !important; /* Ocupa la fila completa o se adapta debajo */
    margin: 8px 0 0 0 !important;
    padding: 12px 20px !important;
    background-color: transparent !important;
    color: #e21121 !important; /* Mismo tono de tu enlace corporativo */
    border: 2px solid #e21121 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.25s ease-in-out !important;
    text-align: center !important;
}

.woocommerce div.product form.cart .b2b-btn-quote:hover {
    background-color: #e21121 !important;
    color: #ffffff !important;
}

.woocommerce div.product form.cart .b2b-btn-quote:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* ===================================================
   VISTA DEL CARRITO Y FORMULARIO B2B (/cotizar)
   =================================================== */

.b2b-quote-wrapper {
    max-width: 960px;
    margin: 0 auto;
    font-family: sans-serif;
    color: #333;
}

.b2b-quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.b2b-quote-table th {
    background-color: #f7f7f7;
    color: #333;
    font-weight: 700;
    padding: 12px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
}

.b2b-quote-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.b2b-quote-table tfoot th {
    background-color: #fafafa;
    border-top: 2px solid #ccc;
    font-size: 16px;
}

.b2b-remove-item {
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.b2b-remove-item:hover {
    background: #cc0000;
}

/* Formulario */
#b2b-quote-form input[type="text"],
#b2b-quote-form input[type="email"],
#b2b-quote-form input[type="tel"],
#b2b-quote-form textarea,
#b2b-quote-form input[type="file"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    box-sizing: border-box;
    font-size: 14px;
}

#b2b-quote-form input:focus,
#b2b-quote-form textarea:focus {
    border-color: #e21121;
    outline: none;
}

/* Contenedor del botón junto a Compare */
.b2b-quote-btn-container {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* Estilo idéntico a los botones secundarios/Compare de Brothers Tools */
.b2b-btn-quote {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #000000 !important;
    border-radius: 0px !important;
    padding: 6px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    cursor: pointer !important;
    line-height: normal !important;
    transition: all 0.2s ease-in-out !important;
    height: auto !important;
    display: inline-block !important;
}

.b2b-btn-quote:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.b2b-btn-quote:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}