/* ==========================================================================
   NovaShop — Checkout y cuenta
   Solo armonía visual: la lógica es la de WooCommerce.
   ========================================================================== */

.ns-theme.woocommerce-checkout .site-main,
.ns-theme.woocommerce-account .site-main {
  padding-block: 2.5rem 4rem;
}

.ns-theme.woocommerce-checkout h3,
.ns-theme.woocommerce-checkout .woocommerce-billing-fields h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Campos ------------------------------------------------------------------- */

.ns-theme .woocommerce form .form-row label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ns-stone-700);
  margin-bottom: 0.375rem;
}

.ns-theme .woocommerce form .form-row input.input-text,
.ns-theme .woocommerce form .form-row textarea,
.ns-theme .woocommerce form .form-row select,
.ns-theme .select2-container .select2-selection--single {
  border-radius: var(--ns-radius-md);
  border: 1px solid var(--ns-stone-300);
  padding: 0.75rem 1rem;
  height: auto;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--ns-stone-900);
  background: #fff;
  transition: border-color var(--ns-t-fast), box-shadow var(--ns-t-fast);
}

.ns-theme .woocommerce form .form-row input.input-text:focus,
.ns-theme .woocommerce form .form-row textarea:focus,
.ns-theme .woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--ns-emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Resumen del pedido ------------------------------------------------------- */

.ns-theme .woocommerce-checkout-review-order {
  background: #fff;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-xl);
  padding: 1.5rem;
}

.ns-theme .woocommerce-checkout-review-order-table {
  border: 0;
  width: 100%;
}

.ns-theme .woocommerce-checkout-review-order-table th,
.ns-theme .woocommerce-checkout-review-order-table td {
  border: 0;
  border-bottom: 1px solid var(--ns-stone-200);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.ns-theme .woocommerce-checkout-review-order-table .order-total td,
.ns-theme .woocommerce-checkout-review-order-table .order-total th {
  border-bottom: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ns-stone-900);
}

/* Métodos de pago ---------------------------------------------------------- */

.ns-theme #payment {
  background: transparent;
  border-radius: var(--ns-radius-lg);
}

.ns-theme #payment ul.payment_methods {
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-lg);
  background: var(--ns-stone-50);
  padding: 1rem;
}

.ns-theme #payment div.payment_box {
  background: #fff;
  border-radius: var(--ns-radius-md);
  font-size: 0.8125rem;
  color: var(--ns-stone-600);
}

.ns-theme #payment div.payment_box::before { display: none; }

/* Botón de pagar ----------------------------------------------------------- */

.ns-theme #place_order,
.ns-theme .woocommerce button.button.alt,
.ns-theme .woocommerce a.button.alt,
.ns-theme .woocommerce input.button.alt {
  background: var(--ns-emerald-600);
  color: #fff;
  border-radius: var(--ns-radius-pill);
  padding: 0.9375rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 0;
  transition: background-color var(--ns-t-base);
}

.ns-theme #place_order:hover,
.ns-theme .woocommerce button.button.alt:hover,
.ns-theme .woocommerce a.button.alt:hover {
  background: var(--ns-emerald-700);
  color: #fff;
}

.ns-theme .woocommerce .button {
  border-radius: var(--ns-radius-pill);
  font-weight: 600;
}

/* Cupón -------------------------------------------------------------------- */

.ns-theme .woocommerce-form-coupon-toggle .woocommerce-info,
.ns-theme .woocommerce-form-login-toggle .woocommerce-info {
  background: var(--ns-stone-50);
  border-radius: var(--ns-radius-lg);
  border: 1px solid var(--ns-border);
  border-left: 3px solid var(--ns-emerald-600);
  color: var(--ns-stone-700);
  font-size: 0.875rem;
}

/* Confirmación de pedido --------------------------------------------------- */

.ns-theme .woocommerce-order-received .woocommerce-thankyou-order-received {
  background: var(--ns-emerald-50);
  border: 1px solid var(--ns-emerald-100);
  border-radius: var(--ns-radius-lg);
  color: var(--ns-emerald-700);
  padding: 1rem 1.25rem;
  font-weight: 600;
}
