/*
Theme Name: Bemins Child
Theme URI: http://www.wpbingosite.com/bemins
Author: wpbingo
Description: This is a child theme for Bemins
Version: 1.0.0
Author URI: http://wpbingosite.com
Template: bemins
Text Domain: bemins-child
*/
/*************** ADD YOUR CUSTOM CSS HERE  ***************/

/* Contenedor para que la tabla sea scrollable en móvil */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* suaviza el scroll en móviles */
  margin-bottom: 15px;
}
/* =====================================================
   CHECKOUT – MEJORAS UX + MOBILE (BEMINS CHILD)
   Enfoque: claridad, orientación y conversión
   ===================================================== */

/* ===============================
   1. PASOS DEL CHECKOUT
   =============================== */

.woocommerce-page-header ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 35px;
}

.woocommerce-page-header li {
  opacity: 0.4;
  font-weight: 500;
}

.woocommerce-page-header li.active {
  opacity: 1;
  font-weight: 700;
}

/* ===============================
   2. FORMULARIO DATOS CLIENTE
   =============================== */

#customer_details {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* Título orientativo */
#customer_details:before {
  content: "Completá tus datos para recibir tu pedido";
  display: block;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Labels */
#customer_details label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* Inputs */
#customer_details input.input-text,
#customer_details select,
#customer_details textarea {
  height: 52px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 15px;
  background: #fff;
}

/* Textarea */
#customer_details textarea {
  height: auto;
  padding: 12px 14px;
}

/* Focus */
#customer_details input:focus,
#customer_details select:focus,
#customer_details textarea:focus {
  border-color: var(--theme-color, #54d9e1);
  box-shadow: 0 0 0 2px rgba(84, 217, 225, 0.15);
  outline: none;
}

/* Espacio entre campos */
#customer_details .form-row {
  margin-bottom: 18px;
}

/* ===============================
   3. DESTACAR TELÉFONO (CLAVE)
   =============================== */

#billing_phone_field {
  background: #fafafa;
  border: 2px solid var(--theme-color, #54d9e1);
  padding: 15px;
  border-radius: 8px;
}

#billing_phone_field label {
  font-weight: 700;
}

/* Microcopy WhatsApp */
#billing_phone_field:after {
  content: "Te avisamos por WhatsApp el estado de tu pedido";
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* ===============================
   4. RESUMEN DEL PEDIDO
   =============================== */

.woocommerce-checkout-review-order {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
}

/* Tabla */
.woocommerce-checkout-review-order-table,
.shop_table.woocommerce-checkout-review-order-table {
  padding: 20px 20px 25px;
  box-sizing: border-box;
}

/* Productos */
.shop_table.woocommerce-checkout-review-order-table .cart_item {
  padding: 15px 0;
}

/* Subtotal y total */
.shop_table.woocommerce-checkout-review-order-table .cart-subtotal,
.shop_table.woocommerce-checkout-review-order-table .order-total {
  padding: 15px 0;
}

/* Título productos */
.shop_table.woocommerce-checkout-review-order-table .title-product-name {
  margin-bottom: 15px;
  font-weight: 600;
}

/* ===============================
   5. BOTÓN DE FINALIZAR COMPRA
   =============================== */

#place_order {
  font-size: 18px;
  padding: 18px;
  font-weight: 700;
  border-radius: 8px;
}

/* ===============================
   6. ERRORES MÁS VISIBLES
   =============================== */

.woocommerce-invalid input,
.woocommerce-invalid select {
  border-color: #e2401c;
}

/* ===============================
   7. MOBILE OPTIMIZADO
   =============================== */

@media (max-width: 768px) {

  .woocommerce-page-header ul {
    gap: 15px;
    font-size: 14px;
  }

  #customer_details {
    padding: 20px;
  }

  #customer_details:before {
    font-size: 18px;
    margin-bottom: 20px;
  }

  #customer_details input.input-text,
  #customer_details select {
    height: 48px;
  }

  #place_order {
    font-size: 17px;
    padding: 16px;
  }
}

/* ===============================
   SELECT SUCURSALES ANDREANI
   =============================== */

#sucursales_andreani {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 15px;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Flechita custom (opcional, igual a Woo) */
#sucursales_andreani {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

/* Focus igual al checkout */
#sucursales_andreani:focus {
  border-color: var(--theme-color, #54d9e1);
  box-shadow: 0 0 0 2px rgba(84, 217, 225, 0.15);
  outline: none;
}

/* Error (cuando no se selecciona) */
.woocommerce-invalid #sucursales_andreani {
  border-color: #e2401c;
}

/* Mobile */
@media (max-width: 768px) {
  #sucursales_andreani {
    height: 48px;
    font-size: 14px;
  }
}
