/* Estilos para el plugin de cotizaciones */

/* Botón de cotización en páginas de producto */
.request-quote,
.request-quote-loop {
    margin-top: 10px;
    margin-bottom: 10px;
    display: inline-block;
}

.request-quote-loop {
    width: 100%;
    text-align: center;
}

/* Hide the a link product */
.astra-shop-summary-wrap {
    display: none !important;
    visibility: hidden !important;
}

.woocommerce-loop-product__title {
    font-size: 1.125rem !important;
    margin-block-start: 1.25rem !important;
}

/* Formulario de cotización */
.wc-quote-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.quote-products {
    margin-bottom: 30px;
}

.quote-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.quote-products-table th,
.quote-products-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.quote-products-table th {
    background-color: #f8f8f8;
}

.product-quantity {
    width: 80px;
}

.wc-quote-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.wc-quote-form .form-row.wide {
    grid-column: span 2;
}

.wc-quote-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wc-quote-form input[type="text"],
.wc-quote-form input[type="email"],
.wc-quote-form input[type="tel"],
.wc-quote-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wc-quote-form textarea {
    height: 120px;
}

.wc-quote-form .required {
    color: red;
}

.quote-message {
    margin-top: 20px;
}

/* Mensajes de WooCommerce */
.woocommerce-message,
.woocommerce-error {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: #1a09b8;
    border: 0;
    color: white;
    padding-left: 70px;
    font-weight: 500;
}

.woocommerce-message::before, 
.woocommerce-info::before {
    color: white;
}

/* Sweet alert customization */
.wc-product-quotation-alert .swal2-popup.swal2-toast {
    background: linear-gradient(to right, #0009B8, #12569D);
    box-shadow: 0 10px 8px -10px #0009B8;
}
.wc-product-quotation-alert .swal2-title {
    font-weight: 500;
    color: white;
}

.wc-product-quotation-alert .swal2-html-container > a {
    color: white;
    display: flex;
    align-items: center;
    column-gap: .625rem;
    text-decoration: none;
}