.umbral-widget-container {
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.umbral-widget-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

/* Estilos para el mensaje vacío */
.umbral-empty-quote {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.umbral-empty-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.umbral-explore-button {
    display: inline-block;
    background-color: #2271b1;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.umbral-explore-button:hover {
    background-color: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.umbral-quote-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.umbral-quote-products-column {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.umbral-quote-form-column {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.umbral-quote-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.umbral-quote-list-item {
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.umbral-item-remove {
    position: absolute;
    top: 10px;
    right: 0;
    color: #999;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
}

.umbral-item-remove:hover {
    color: #a00;
}

.umbral-product-thumbnail {
    width: 60px;
    margin-right: 15px;
}

.umbral-product-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
}

.umbral-product-info {
    flex: 1;
}

.umbral-product-name {
    display: block;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-bottom: 5px;
    font-size: 14px;
}

.umbral-product-variations,
.umbral-product-sku {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.sku-label {
    font-weight: 500;
    margin-right: 5px;
}

.umbral-product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.umbral-product-quantity-price {
    font-size: 13px;
    color: #555;
}

/* Estilos para los controles de cantidad */
.umbral-product-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 30px;
    margin-right: 8px;
}

.umbral-quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s;
}

.umbral-quantity-btn:hover {
    background-color: #e0e0e0;
}

.umbral-product-quantity-input {
    width: 40px;
    height: 30px;
    border: none;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Estándar */
    padding: 0;
    margin: 0;
}

/* Quitar flechas del input number */
.umbral-product-quantity-input::-webkit-outer-spin-button,
.umbral-product-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.umbral-quote-form-wrapper {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.umbral-form-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.umbral-quote-summary {
    margin-bottom: 20px;
}

.umbral-view-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.umbral-view-button:hover {
    background-color: #005d8c;
    color: #ffffff !important;
    text-decoration: none;
}

.umbral-empty-message,
.umbral-error-message {
    font-style: italic;
    color: #777;
    margin: 10px 0;
    font-size: 14px;
}

/* Estilos para el formulario */
.umbral-quote-form {
    margin-top: 15px;
}

.umbral-quote-form .yith-ywraq-mail-form-wrapper h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.umbral-quote-form .form-row {
    margin-bottom: 15px;
    width: 100%;
    display: block;
    clear: both;
}

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

.umbral-quote-form input[type="text"],
.umbral-quote-form input[type="email"],
.umbral-quote-form input[type="tel"],
.umbral-quote-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.umbral-error-message {
    color: #e2401c;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 4px;
    margin-bottom: 15px;
}

.umbral-quote-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Estilos para el selector de países */
.umbral-quote-form .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.umbral-quote-form .select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    display: none;
    align-items: center;
}

.umbral-quote-form .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
    padding-left: 8px;
    color: #444;
}

.umbral-quote-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.umbral-quote-form .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0073aa;
}

/* Ajuste para el dropdown para que no rompa el diseño */
body .select2-container--open .select2-dropdown {
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 6px;
}

body .select2-container--default .select2-results__option {
    padding: 8px 12px;
}

body .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0073aa;
    color: white;
}

/* Asegurarse de que el dropdown aparezca en la posición correcta */
body .select2-container--open .select2-dropdown--below {
    margin-top: 1px;
}

/* Estilos responsivos para dispositivos móviles */
@media (max-width: 767px) {
    body .select2-container--open .select2-dropdown {
        width: 100% !important;
        min-width: 100%;
        left: 0 !important;
        right: 0 !important;
        position: fixed;
        top: auto !important;
        bottom: 0;
        border-radius: 10px 10px 0 0;
        border-bottom: none;
        max-height: 50vh;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    body .select2-container--default .select2-results__option {
        padding: 12px 15px;
        font-size: 16px; /* Texto más grande para facilitar el toque */
    }
    
    body .select2-container--default .select2-search--dropdown .select2-search__field {
        padding: 10px;
        font-size: 16px;
    }
    
    /* Añadir un pequeño indicador de arrastre en la parte superior */
    body .select2-container--open .select2-dropdown::before {
        content: '';
        display: block;
        width: 50px;
        height: 5px;
        background: #ddd;
        border-radius: 5px;
        margin: 8px auto;
    }
}

.umbral-quote-form .raq-send-request {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
}

.umbral-quote-form .raq-send-request:hover {
    background-color: #005d8c;
}

.required {
    color: red;
}
/* Arreglar campos requeridos y mensajes de error
.umbral-quote-form .form-row.validate-required label:after {
    content: ' *';
    color: red;
} */

.umbral-quote-form .woocommerce-invalid input,
.umbral-quote-form .woocommerce-invalid select {
    border-color: #dc3232;
}

@media (max-width: 768px) {
    .umbral-quote-columns {
        display: block;
    }
    
    .umbral-quote-products-column,
    .umbral-quote-form-column {
        width: 100%;
        padding: 0;
    }
}