/* 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;
}







    /* Bloque del acceso fácil sin contraseña en /mi-cuenta/ */
    .gotpv-easy-access-wrapper {
        background: #f0f7ff;
        border: 2px solid #2271b1;
        padding: 20px;
        border-radius: 10px;
        margin: 0 0 30px;
        text-align: center;
    }

    /* Texto encima del botón */
    .gotpv-easy-access-wrapper p {
        margin: 0 0 12px;
        font-size: 16px;
        font-weight: 600;
    }

    /* Botón principal “Acceso fácil sin contraseña” */
    .gotpv-easy-access-wrapper .button {
        display: inline-block;
        padding: 12px 32px;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        background: #ffd600 !important;   /* amarillo chillón */
        color: #000000 !important;
        border: none !important;
        border-radius: 999px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
        opacity: 1 !important;            /* por si el tema lo dejaba "apagado" */
    }

    /* Hover del botón */
    .gotpv-easy-access-wrapper .button:hover,
    .gotpv-easy-access-wrapper .button:focus {
        background: #ffb800 !important;   /* amarillo un poco más oscuro al pasar el ratón */
        color: #000000 !important;
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(0,0,0,0.2);
    }


/* ------------------------------------------------------
   Easy Access / Mi Cuenta
   Ocultar por completo los formularios de login/registro
   de WooCommerce en /mi-cuenta/ (cuando no estás logueado)
------------------------------------------------------- */

/* Oculta el contenedor completo de login+registro */
.woocommerce-account #customer_login {
    display: none !important;
}
