/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0.0
*/

/******** 1) OCULTA TODOS LOS ASTERISCOS POR DEFECTO ********/
/* Clásico (WooCommerce shortcode) */
.woocommerce abbr.required,
.woocommerce .required,
.woocommerce label .required,
.woocommerce span.required {
  display: none !important;
}
.woocommerce label .required::after,
.woocommerce .required::after,
.woocommerce abbr.required::after {
  content: none !important;
}

/* Bloques (Gutenberg Checkout) */
.wc-block-components-required {
  display: none !important;
}
.wc-block-components-required::after {
  content: none !important;
}

/******** 2) VUELVE A MOSTRAR SOLO EN NOMBRE, EMAIL Y TELÉFONO ********/
/* --- Checkout clásico --- */
#billing_first_name_field abbr.required,
#billing_first_name_field label .required,
#billing_email_field abbr.required,
#billing_email_field label .required,
#billing_phone_field abbr.required,
#billing_phone_field label .required {
  display: inline !important;
}

/* Asegura color si quieres rojo */
#billing_first_name_field abbr.required,
#billing_first_name_field label .required,
#billing_first_last_field abbr.required,
#billing_first_last_field label .required,
#billing_email_field abbr.required,
#billing_email_field label .required,
#billing_phone_field abbr.required,
#billing_phone_field label .required {
  color: red !important;
}

/* --- Checkout por bloques --- 
   Los labels en bloques usan 'for' apuntando al id del input (p. ej. billing-first_name).
   Volvemos a mostrar solo esos tres. */
label[for="billing-first_name"] .wc-block-components-required,
label[for="billing-email"] .wc-block-components-required,
label[for="billing-phone"] .wc-block-components-required {
  display: inline !important;
  color: red !important;
}


/**/
body .elementor-element.elementor-widget-woocommerce-product-add-to-cart .bkap-booking-form {
    display: flex !important;
}
/* Contenedor principal del formulario de reserva */
.elementor-add-to-cart .bkap-booking-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
}

.elementor-add-to-cart .bkap_persons_container {
    flex: 1 1 350px !important;
    background: #f9f9f9 !important;
    padding: 20px !important;
    border-radius: 12px !important;
}

/* Calendario a la derecha */
.elementor-add-to-cart #bkap_start_date {
    flex: 1 1 350px !important;
    padding: 20px !important;
    background: #fff !important;
    border-radius: 12px !important;
}

/* Cada campo dentro del formulario */
.elementor-add-to-cart .bkap_persons_container .bkap_field_persons {
    margin-bottom: 15px;
}

.elementor-add-to-cart .bkap_persons_container label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.elementor-add-to-cart .bkap_persons_container input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Input del calendario */
.elementor-add-to-cart #bkap_start_date .booking_calender {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer !important;
    font-size: 14px;
}

/* Contenedor del precio y botón */
.elementor-add-to-cart #bkap-price-box,
.elementor-add-to-cart .e-atc-qty-button-holder {
    width: 100%;
    margin-top: 20px;
}

/* Botón de reservar */
.elementor-add-to-cart .single_add_to_cart_button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.elementor-add-to-cart .single_add_to_cart_button:hover {
    background-color: #b71c1c;
}

/* Responsive: en pantallas pequeñas apilar */
@media(max-width: 900px){
    .elementor-add-to-cart .bkap-booking-form {
        flex-direction: column;
    }
}

.elementor-button--view-cart {
    display: none !important;
}
