/** Quantity **/

.product .quantity {
    margin: 0;

}

.input-quantity-group {
    clear: both;
    position: relative;
    margin-top: 5px !important;
    min-width: 200px;
}

.input-quantity-group input[type="button"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-color: #3b74a9;
    -webkit-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
    color: #fff;
    border: 0 none;
}

.input-quantity-group .button-minus, .input-quantity-group .button-plus {
    position: relative;
    font-weight: bold;
    padding: 0;
    height: 30px;
    height: 1.875rem;
    width: 35px;
    width: 2.1875rem;
}

.input-quantity-group .quantity-field {
    position: relative;
    font-family: "UniSansRegular", sans-serif;
    text-align: center;
    resize: vertical;
    height: 30px;
    height: 1.875rem;
    max-width: 30px;
    max-width: 1.875rem;
    padding: 6px 0;
    padding: 0.375rem 0;
}

/** end Quantity **/

@media only screen and (max-width: 980px) {
    /* Selecciona la fila que contiene el ícono y el título */
    .et_pb_row_0 {
        display: flex !important;
        align-items: center !important; /* Alinea verticalmente los elementos al centro */
    }

    /* Anula el ancho 100% que Divi aplica a las columnas en móvil */
    .et_pb_row_0 > .et_pb_column {
        width: auto !important;
    }

    /* Puedes ajustar el espacio entre el ícono y el texto si es necesario */
    .et_pb_row_0 .et_pb_column_1_4 {
        padding-right: 15px !important; /* Espacio a la derecha del ícono */
    }
}

/** Checkout **/

.coupon #coupon_code {
    box-shadow: 0 0 0 1px #666;
    background-color: #fff !important;
    height: 40px;
    border-radius: 5px;
    width: 200px;
}


table.woocommerce-checkout-review-order-table img {
    width: 49px;
    height: 46px;
    padding: 2px;
    border: 1px solid #e0e0e0;
    background: #f3f3f3;
    border-radius: 4px;
}

.woocommerce-info.happy::after {
    content: '\52';
    font-family: 'ETmodules';
    float: left;
    font-size: 24px;
    margin-right: 10px;
    color: #ffffff;
}

.woocommerce-info.happy {
    background: green !important;
}

.woocommerce-info.sad::after {
    content: '\51';
    font-family: 'ETmodules';
    float: left;
    font-size: 24px;
    margin-right: 10px;
    color: #ffffff;
}

.woocommerce-info.sad {
    background: red !important;
}


#customer_details input[type="text"], #customer_details input[type="tel"], #customer_details input[type="email"], #customer_details textarea {
    box-shadow: 0 0 0 1px #666;
    background-color: #fff !important;
    height: 40px;
    border-radius: 5px;
}

#customer_details input[type="text"]:focus, #customer_details input[type="password"]:focus, #customer_details input[type="email"]:focus, #customer_details input[type="url"]:focus, input[type="tel"]:focus, input[type="number"]:focus, input[type="date"]:focus, textarea:focus, select:focus, .woocommerce .quantity input.qty:focus, .woocommerce table.shop_table .actions .coupon .input-text:focus, #bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content:focus {
    box-shadow: 0 0 0 2px #3b74a9;
}

/*coloca abajo 2a dirección envío*/
@media (min-width: 850px) {
    #customer_details, #order_review_heading, #order_review {
        width: 48%;
    }

    #customer_details {
        float: left;
    }

    #order_review_heading, #order_review {
        float: right;
    }

    .woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 {
        width: 100%;
    }
}


/*  CLS  */
@media (max-width: 849px) {
    header {
        min-height: 179px;
    }
}
@media (min-width: 850px) {
    header {
        min-height: 147px;
    }
}
/*  End CLS  */

/* Estilos para la nueva estructura del carrito */
.ds-cart-item-product {
    display: flex;
    align-items: center;
}

.ds-cart-item-thumbnail {
    margin-right: 15px;
    width: 80px; /* Ajusta el tamaño según necesites */
}

.ds-cart-item-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.ds-cart-item-details {
    flex-grow: 1;
}

/* En pantallas pequeñas, hacemos que la tabla se vea mejor */
@media screen and (max-width: 768px) {
    .shop_table.cart thead {
        display: none;
    }

    .shop_table.cart tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 15px;
    }

    .shop_table.cart td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 10px 0;
    }

    .shop_table.cart td::before {
        content: attr(data-title) ": ";
        font-weight: bold;
        margin-right: 10px;
    }

    .shop_table.cart td.product-name,
    .shop_table.cart td.product-remove {
        display: block;
        text-align: center;
    }

    .shop_table.cart td.product-remove {
        order: -1; /* Mueve el botón de eliminar al principio */
        padding-bottom: 15px;
    }

    .ds-cart-item-product {
        flex-direction: column;
        align-items: flex-start;
    }

    .ds-cart-item-thumbnail {
        margin-right: 0;
        margin-bottom: 10px;
    }
}



/* errores en qty */
/* El Tooltip Flotante */
.qty-tooltip-float {
    display: none;
    position: absolute;
    top: 0%; /* Lo posiciona justo debajo del input sin empujar nada */
    left: 110%;
    transform: translateX(-50%);
    background: #e2401c; /* Color rojo de advertencia */
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    pointer-events: none; /* Evita que el ratón interactúe con el mensaje */
}

/* Flecha del tooltip */
.qty-tooltip-float::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%; /* La pega al borde izquierdo del tooltip */
    margin-top: -6px; /* Centra la flecha verticalmente */
    border-width: 6px;
    border-style: solid;
    border-color: transparent #e2401c transparent transparent;
}


/* Clase de error para el input */
.qty-error-style {
    overflow: visible;
    color: #e2401c !important;
}
.input-quantity-group{
    overflow: visible !important;
}