/* Amplify Tyee — order form styles (loaded only on sweatshirts.html) */

.store-hero {
  background:
    radial-gradient(800px 380px at 15% -20%, rgba(179, 32, 46, .10), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: clamp(38px, 6vw, 62px) 0 clamp(30px, 4vw, 44px);
}
.store-hero h1 { margin-bottom: .35em; }
.store-hero .lede { font-size: clamp(1.02rem, 2vw, 1.13rem); color: var(--ink-soft); max-width: 64ch; margin: 0; }

.store-wrap { max-width: 800px; padding-block: clamp(28px, 5vw, 46px); }

/* Panels ----------------------------------------------------------------- */
.panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow); padding: 26px; margin: 0 0 22px; min-width: 0;
}
.panel > legend {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.24rem; font-weight: 700; letter-spacing: -.02em;
  padding: 0 10px; margin-left: -10px;
}
.step-num {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--red); color: #fff; font-size: .9rem; font-weight: 700;
  display: grid; place-items: center;
}
.panel-intro { color: var(--muted); font-size: .94rem; margin: 6px 0 18px; }

/* A <button> that looks like a link (e.g. "Size chart", which opens a popup). */
.link-button {
  background: none; border: 0; padding: 2px 0; margin-left: 4px; font: inherit; font-weight: 650;
  color: var(--red); text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; cursor: pointer; white-space: nowrap;
}
.link-button:hover { color: var(--red-dark); text-decoration-thickness: 2.5px; }

/* Each color's "Size" label with its "Size chart" link beside it. The row is no taller than a
   plain label, so the Size dropdown stays level with the Quantity dropdown next to it. */
.label-row { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; margin-bottom: 7px; }
.label-row label { margin-bottom: 0; }
.label-row .link-button { margin-left: 0; padding: 0; font-size: .86rem; line-height: inherit; }

/* Size chart popup ------------------------------------------------------- */
.size-dialog {
  border: 0; padding: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink);
}
.size-dialog::backdrop { background: rgba(20, 20, 30, .55); }
.size-dialog-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 12px 4px 22px;
}
.size-dialog-head h2 { margin: 0; font-size: 1.3rem; }
.dialog-close {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: transparent;
  font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.dialog-close:hover { background: var(--bg-alt); color: var(--ink); }
.size-dialog-body { padding: 0 22px 22px; }
.size-note { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.size-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.size-table th, .size-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.size-table thead th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  border-bottom-width: 2px;
}
.size-table tbody th { font-weight: 700; white-space: nowrap; }
.size-table tbody td:first-of-type { white-space: nowrap; }   /* keep "30–32”" on one line */
.size-table tbody tr:last-child th, .size-table tbody tr:last-child td { border-bottom: 0; }

/* Fields ----------------------------------------------------------------- */
.field { margin-bottom: 18px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-grow { flex: 1 1 260px; }

.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field-row > .field { flex: 1 1 220px; }

label, .choice-group > legend {
  display: block; font-weight: 650; font-size: .95rem; margin-bottom: 7px; color: var(--ink);
}
.req { color: var(--red); }

input[type="text"], input[type="email"], select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #ccccd8; border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236e6e7a' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
input:hover, select:hover:not(:disabled) { border-color: #a9a9bb; }
input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179, 32, 46, .15); outline: none; }
select:disabled { background-color: #f4f4f7; color: var(--muted); cursor: not-allowed; opacity: 1; }

[aria-invalid="true"] { border-color: var(--red) !important; background: #fffafa; }

.hint { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }

.err { color: var(--red-dark); font-size: .88rem; font-weight: 600; margin: 7px 0 0; }
.err::before { content: "\26A0  "; }
.err-block { margin-top: 14px; }

/* Radio groups ----------------------------------------------------------- */
.choice-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choice-group > legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  border: 1px solid #ccccd8; border-radius: 10px; padding: 11px 17px;
  background: #fff; cursor: pointer; font-weight: 550; font-size: .97rem;
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: #a9a9bb; background: var(--bg-alt); }
.choice input { accent-color: var(--red); width: 17px; height: 17px; margin: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.choice:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }

/* Products --------------------------------------------------------------- */
.products { display: grid; gap: 16px; }
.product {
  display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  background: var(--bg-alt); transition: border-color .15s ease, background .15s ease;
}
.product.is-selected { border-color: var(--red); background: var(--red-soft); }
.product-img {
  flex: none; width: 118px; background: #fff; border-radius: 10px;
  border: 1px solid var(--line); padding: 8px;
}
.product-img img { width: 100%; height: auto; }
.product-body { flex: 1 1 auto; min-width: 0; }
.product-name { margin: 0 0 2px; font-size: 1.08rem; }
.product-price { margin: 0 0 14px; font-weight: 700; color: var(--red); font-size: 1.06rem; }
.product-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.product-controls .field { margin: 0; }
.product-controls select.qty { width: 84px; }

/* Summary ---------------------------------------------------------------- */
.summary {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt); padding: 18px 20px; margin-bottom: 22px;
}
.summary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 14px; font-size: .95rem; }
.summary-lines .sz { font-style: normal; color: var(--muted); font-size: .88em; }
.summary-lines .qx { color: var(--muted); }
.summary-empty { color: var(--muted); font-style: italic; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 1.05rem; font-weight: 650;
}
.summary-total strong { font-size: 1.55rem; color: var(--red); letter-spacing: -.02em; }

/* Payment ---------------------------------------------------------------- */
#paypal-button-container { min-height: 50px; }
.pay-status { margin: 14px 0 0; font-size: .94rem; color: var(--ink-soft); }
.pay-status.is-error { color: var(--red-dark); font-weight: 600; }

.notice {
  border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; line-height: 1.55;
  border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink-soft);
}
.notice-info { border-color: #cfe0f5; background: #f2f7fd; color: #1c3d63; }
.notice-info a, .notice-warn a { color: inherit; font-weight: 600; }
.notice-warn { border-color: #f0dcae; background: #fdf8ec; color: #6b4e11; margin-top: 16px; }

.fine-print { font-size: .9rem; color: var(--muted); margin: 18px 0 0; }

/* Receipt ---------------------------------------------------------------- */
.receipt {
  border: 1px solid #bfe6d0; border-left: 5px solid var(--green);
  background: var(--green-soft); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.receipt:focus { outline: none; }
.receipt h2 { color: var(--green); margin-bottom: .4em; }
.receipt-check {
  width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 25px; font-weight: 700; margin-bottom: 16px;
}
.receipt .summary-lines,
.receipt .summary-total { background: #fff; border-radius: 10px; }
.receipt .summary-lines { padding: 16px 18px; margin-top: 18px; }
.receipt .summary-total { padding: 14px 18px; margin-top: 8px; border-top: 0; }
.receipt-meta {
  display: grid; grid-template-columns: auto 1fr; gap: 7px 18px;
  margin: 20px 0 0; font-size: .93rem;
}
.receipt-meta dt { font-weight: 650; color: var(--ink-soft); }
.receipt-meta dd { margin: 0; }
.receipt-meta code { font-size: .88em; background: #fff; padding: 2px 7px; border-radius: 5px; border: 1px solid #cfe7da; }
.receipt-note { font-size: .92rem; color: var(--ink-soft); margin-top: 20px; }

@media (max-width: 560px) {
  .panel { padding: 20px 17px; }
  .product { flex-direction: column; gap: 14px; }
  .product-img { width: 128px; margin-inline: auto; }
  .product-controls select.qty { width: 100%; }
  .product-controls .field { flex: 1 1 100%; }
  .receipt { padding: 24px 19px; }
  .receipt-meta { grid-template-columns: 1fr; gap: 2px; }
  .receipt-meta dd { margin-bottom: 10px; }
  .size-dialog-head { padding: 14px 8px 4px 18px; }
  .size-dialog-body { padding: 0 14px 16px; }
  .size-table th, .size-table td { padding: 9px 6px; }
}

/* Sandbox test-mode banner, shown above the PayPal buttons. */
.notice-test { margin: 0 0 18px; }
