/* Ricambi Checkout — stile pensato per far sembrare questa pagina parte
   dello stesso sito, non un salto a un WordPress "nudo" diverso. */

:root {
  --ricambi-accent: #161619; /* sovrascritto per brand da functions.php */
}

* { box-sizing: border-box; }

body.ricambi-checkout-body {
  margin: 0;
  padding: 0;
  background: #f7f7f6;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a1a;
}

.ricambi-checkout-wrap {
  min-height: 100vh;
}

.ricambi-checkout-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Nasconde eventuali residui del tema/WordPress che non controlliamo
   riga per riga (admin bar, titoli di pagina duplicati, breadcrumb). */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
.woocommerce-breadcrumb,
.entry-title,
.page-title {
  display: none;
}

.ricambi-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #3a3a3e;
  text-decoration: none;
  margin-bottom: 24px;
}
.ricambi-back-link:hover {
  color: var(--ricambi-accent);
}

/* --- Contenitore ordine WooCommerce --- */
.woocommerce-order-pay,
.woocommerce {
  background: #fff;
  border: 1px solid #eaeae7;
  border-radius: 5px;
  padding: 32px;
}

.woocommerce table.shop_table {
  border: none;
  border-collapse: collapse;
  width: 100%;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border: none;
  border-bottom: 1px solid #ececea;
  padding: 12px 4px;
  font-size: 13.5px;
}
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td {
  font-weight: 600;
}

/* --- Metodi di pagamento --- */
ul.wc_payment_methods {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
ul.wc_payment_methods li.wc_payment_method {
  border: 1px solid #e2e2de;
  border-radius: 5px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
ul.wc_payment_methods li.wc_payment_method label {
  font-weight: 600;
  font-size: 14px;
}

/* --- Bottone conferma pagamento --- */
#place_order,
.woocommerce #payment #place_order {
  width: 100%;
  background: var(--ricambi-accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 18px !important;
  border-radius: 5px !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  cursor: pointer;
}
#place_order:hover {
  opacity: 0.92;
}
