/* En /finalizar-compra/ ocultar filas no deseadas del resumen de pedido */
body.woocommerce-checkout table.shop_table tfoot .cart-subtotal,
body.woocommerce-checkout table.shop_table tfoot .recurring-totals,
body.woocommerce-checkout table.shop_table tfoot .cart-subtotal.recurring-total,
body.woocommerce-checkout table.shop_table tfoot .tax-rate.recurring-total,
body.woocommerce-checkout table.shop_table tfoot .order-total.recurring-total {
    display: none !important;
}




/* Estructura de cuadrícula en el formulario */
.woocommerce-billing-fields > .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Dos columnas iguales */
  gap: 8px 12px; /* Espacio entre filas y columnas */
}

/* Ocultar etiquetas innecesarias (excepto el campo final de ayuda) */
/* Ocultar todas las etiquetas... */
.woocommerce-billing-fields label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* ...excepto la del campo de licencia */
#licencia__field > label {
  position: relative !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 4px 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  display: block !important;
  font-weight: bold;
}


/* Ocultar dirección 2 */
#billing_address_2_field {
  display: none !important;
}

/* Compactar inputs */
.woocommerce-billing-fields input,
.woocommerce-billing-fields select {
  padding: 4px 8px !important;
  height: 34px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

/* Campos que deben ocupar una columna (50%) */
#billing_city_field,
#billing_postcode_field,
#billing_state_field,
#billing_country_field,
#billing_phone_field,
#billing_nif_field {
  grid-column: span 1 !important;
}

/* Campos que deben ocupar toda la fila (100%) */
#billing_first_name_field,
#billing_address_1_field,
#billing_email_field,
#licencia__field {
  grid-column: span 2 !important;
}

/* Reducir márgenes verticales */
.woocommerce-billing-fields .form-row {
  margin-bottom: 0 !important;
}

.woocommerce-billing-fields input,
.woocommerce-billing-fields select,
.woocommerce-billing-fields textarea {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  line-height: 1.2 !important;
  min-height: auto !important;
  height: auto !important;
  box-sizing: border-box;
}

