/* Order page chrome — address + $0 card check styled like a real shop checkout.
   Colors come from --ink / --paper / --accent. Invalid state = .input1.invalid.
   Fields stay: fullName address address2 city state zipCode email phone
   cardName cardNumber cardExp cardCvc. Autocomplete stays in HTML. */

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper, #F6F1E8); color: var(--ink, #1C1916); font-family: ShopSans, "Segoe UI", system-ui, sans-serif; }
img { max-width: 100%; display: block; }

.top-content {
  display: flex;
  flex-direction: row;
  background: var(--ink, #1C1916);
  padding: 10px 30px;
  align-items: center;
  gap: 12px;
}
.top-content img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 50%; }
.top-content h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #fff;
  margin: 0;
}

.main-content-body {
  padding: 1.25rem 1rem 7rem;
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
}

/* page title = the shipping section heading */
.main-content-body > h1 {
  margin: 0.25rem 0 0.4rem;
  font-family: ShopSerif, Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink, #1C1916);
}

.hero { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: 0 3px 18px #dfdfdfed; }
.sku { margin: 1rem 0 0.25rem; font-size: 22px; letter-spacing: 0.04em; }
.price { font-size: 18px; font-weight: 700; color: var(--accent, #C4A574); margin: 0 0 0.5rem; }
.lead { margin: 0 0 1.25rem; line-height: 1.45; }

/* ---- checkout card ---- */
form {
  margin-top: 10px;
  padding: 18px 16px;
  box-shadow: 0 3px 18px rgba(28,25,22,.07), 0 1px 3px rgba(28,25,22,.05);
  border-radius: 16px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ece4d3;
  text-align: left;
}

/* ---- "$0 authorization, first kit is free" note ---- */
.main-content-body .lead-sub {
  margin: 10px 0 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #ece4d3;
  border-left: 3px solid var(--accent, #C4A574);
  border-radius: 10px;
  color: #6b6052;
  font-size: 14px;
  line-height: 1.45;
}
.main-content-body .lead-sub strong { color: var(--ink, #1C1916); }

/* ---- trust chips ---- */
.main-content-body .trust-strip { display: flex; gap: 8px; margin: 0 0 12px; }
.main-content-body .trust-strip > div {
  flex: 1;
  background: #fff;
  border: 1px solid #ece4d3;
  border-radius: 9px;
  padding: 9px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink, #1C1916);
}
.main-content-body .trust-strip > div::first-letter { color: var(--accent, #C4A574); }

/* ---- order summary ---- */
.main-content-body #cart-box {
  background: #fff;
  border: 1px solid #ece4d3;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.main-content-body #cart-box::before {
  content: "Your order";
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a8f7e;
  margin-bottom: 8px;
}
.main-content-body .cart-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #eee5d5;
  font-size: 14px;
  color: var(--ink, #1C1916);
  background: transparent;
  border-radius: 0;
  margin: 0;
}
.main-content-body .cart-line:last-of-type { border-bottom: none; }
.main-content-body #cart-box::after {
  content: "Total \2014 $0";
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e8e0cf;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink, #1C1916);
}

/* ---- fields ---- */
form div.input1 { margin-bottom: 1rem; position: relative; }
form div.input1 label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6052;
}
.main-content-body form div.input1 input {
  padding: 11px 12px !important;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8d0c2;
  background-color: #fff;
  border-radius: 9px;
  outline: none;
  font-size: 15px;
  color: var(--ink, #1C1916);
  font-family: ShopSans, "Segoe UI", system-ui, sans-serif;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.main-content-body form div.input1 input:hover { border-color: #c9bfad; }
.main-content-body form div.input1 input::placeholder { opacity: .45; color: #9a8f7e; }
.main-content-body form div.input1 input:focus {
  border-color: var(--accent, #C4A574);
  box-shadow: 0 0 0 3px rgba(28,25,22,.08);
  background: #fff;
}

.main-content-body form .row2 { display: flex; gap: 10px; }
.main-content-body form .row2 .input1 { flex: 1; }

/* ---- invalid state (class added by form.js) ---- */
.error { display: none; color: #d64545; font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.input1.invalid .error { display: block; }
.main-content-body form div.input1.invalid input {
  border-color: #e5484d;
  background-color: #fff7f7;
  box-shadow: 0 0 0 3px rgba(229,72,77,.12);
}
.input1.invalid label { color: #d64545; }

#verify-step { display: none; }
body[data-step="verify"] #verify-step { display: block; }
body[data-step="verify"] form > .input1,
body[data-step="verify"] form > .row2,
body[data-step="verify"] form > .pay-title,
body[data-step="verify"] form > .pay-note { display: none; }
body[data-step="verify"] #verify-step .pay-title,
body[data-step="verify"] #verify-step .pay-note,
body[data-step="verify"] #verify-step .input1 { display: block; }

/* ---- payment section heading ---- */
.main-content-body form .pay-title {
  margin: 1.5rem 0 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ece4d3;
  font-family: ShopSerif, Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink, #1C1916);
}
.main-content-body form .pay-note {
  margin: 0 0 1rem;
  padding: 10px 12px;
  background: #faf6ee;
  border: 1px solid #eee5d3;
  border-radius: 8px;
  color: #6b6052;
  font-size: 13px;
  line-height: 1.4;
}
.main-content-body form .pay-note strong { color: var(--ink, #1C1916); }

/* ---- trust line under the form ---- */
.main-content-body .no-pay {
  text-align: center;
  font-size: 12.5px;
  color: #8a7f6f;
  margin: 14px 0 0;
  line-height: 1.4;
}

/* ---- fixed submit bar ---- */
.button-submit {
  position: fixed !important;
  z-index: 10000 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #fff !important;
  box-shadow: #0000000d 0 6px 24px, #00000014 0 0 0 1px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
#submit-reject {
  display: none;
  width: 90%;
  max-width: 500px;
  color: #b42318;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  padding: 8px 8px 0;
  letter-spacing: 0.01em;
}
#submit-reject.show { display: block; }
.button-submit button {
  font-weight: 800;
  background: var(--ink, #1C1916);
  color: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 100rem;
  padding: 15px 40px;
  border: none !important;
  margin: 10px 0;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28,25,22,.14);
  transition: transform .12s ease, opacity .12s ease;
}
.button-submit button:hover { opacity: .92; }
.button-submit button:active { opacity: .5; transform: translateY(1px); }

.loading-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  display: none; align-items: center; justify-content: center;
  z-index: 10001; background-color: #00000073;
}
.loading-overlay.show { display: flex; }
.spinner {
  border: 4px solid rgb(207,207,207);
  border-top: 4px solid var(--accent, #C4A574);
  border-radius: 50%;
  width: 50px; height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.thanks { text-align: center; padding: 3rem 1rem; }
.thanks h2 { letter-spacing: 0.12em; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 1rem; max-width: 800px; margin: 0 auto; }
.grid a { text-decoration: none; color: inherit; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 18px #dfdfdfed; }
.grid a img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.grid a span { display: block; padding: 10px; letter-spacing: 0.2em; font-size: 13px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .main-content-body { padding-left: 0.75rem; padding-right: 0.75rem; }
  form { padding: 16px 12px; }
}
