/* [santa_pack] and [santa_pack_resend]. Mobile first; desktop puts the preview in a right column. */
.sp {
  --sp-red: #b3121f;
  --sp-green: #1f6b3a;
  --sp-gold: #c9a227;
  --sp-ink: #2b2118;
  --sp-paper: #fffaf0;
  --sp-line: #e6dcc8;
  color: var(--sp-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp [hidden] { display: none !important; }

@media (min-width: 860px) {
  .sp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "kids preview" "checkout preview"; align-items: start; }
  .sp-kids { grid-area: kids; }
  .sp-checkout { grid-area: checkout; }
  .sp-preview { grid-area: preview; position: sticky; top: 20px; }
}

.sp-child {
  position: relative;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  margin: 0 0 12px;
}
.sp-child legend { font-weight: 700; color: var(--sp-red); padding: 0 6px; }
.sp-child label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 4px; }
.sp-child label span { font-weight: 400; color: #7a6d5c; }
.sp-child input {
  width: 100%;
  font-size: 16px; /* stops iOS zooming in */
  padding: 12px;
  border: 1px solid #cfc3ad;
  border-radius: 10px;
  background: var(--sp-paper);
}
.sp-child input:focus { outline: 2px solid var(--sp-green); outline-offset: 1px; border-color: var(--sp-green); }
.sp-child small { display: block; color: #7a6d5c; margin-top: 6px; font-size: 13px; }
.sp-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.sp-remove {
  position: absolute; top: 6px; right: 8px;
  border: 0; background: none; font-size: 24px; line-height: 1; color: #7a6d5c; cursor: pointer; padding: 4px 8px;
}

.sp-add {
  width: 100%;
  padding: 12px;
  border: 2px dashed var(--sp-green);
  border-radius: 12px;
  background: none;
  color: var(--sp-green);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.sp-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 612 / 792;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(43, 33, 24, 0.18);
  background: var(--sp-paper);
}
.sp-note { font-size: 13px; color: #7a6d5c; text-align: center; margin: 8px 0 0; }
.sp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sp-tabs button {
  border: 1px solid var(--sp-line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer;
}
.sp-tabs button.on { background: var(--sp-red); border-color: var(--sp-red); color: #fff; }

.sp-bundle {
  display: flex; gap: 12px; align-items: flex-start;
  border: 2px solid var(--sp-gold); border-radius: 14px; background: #fff8e1; padding: 14px; cursor: pointer;
}
.sp-bundle input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--sp-green); }
.sp-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin: 16px 2px 8px; }
.sp-total strong { font-size: 26px; color: var(--sp-red); }
.sp-optin { display: flex; gap: 8px; font-size: 13px; color: #7a6d5c; margin-bottom: 14px; }
.sp-gift-note { background: #eaf5ee; color: #1f6b3a; border: 1px solid #b9dcc6; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.sp-error { background: #fdecea; color: #8a1c13; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 15px; }
.sp-fine { text-align: center; font-size: 13px; color: #7a6d5c; margin: 8px 0 0; }
.sp-button {
  display: inline-block; background: var(--sp-red); color: #fff !important; text-decoration: none; border: 0; cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700; font-size: 18px; padding: 14px 28px; border-radius: 999px;
}
.sp-go { width: 100%; padding: 16px 20px; font-size: 19px; box-shadow: 0 6px 16px rgba(179, 18, 31, 0.25); }
.sp-go:hover { background: var(--sp-green); }
.sp-go:disabled { opacity: 0.7; cursor: wait; }
.sp-notices { max-width: 1040px; margin: 0 auto 12px; }

/* Thank-you page and My Account (outside the .sp form, so the colors are spelled out). */
.sp-downloads {
  text-align: center; background: #fff; border: 2px solid #1f6b3a; border-radius: 16px;
  padding: 24px 20px; margin: 24px 0;
}
.sp-downloads h2 { color: #1f6b3a; margin-top: 0; }
.sp-downloads .sp-button { background: #b3121f; }
.sp-downloads .sp-share { display: inline-block; width: auto; text-decoration: none; padding: 10px 18px; border: 2px dashed #1f6b3a; border-radius: 12px; color: #1f6b3a; font-weight: 700; }

.sp-resend { display: block; max-width: 440px; }
.sp-resend label { display: block; font-weight: 600; margin-bottom: 6px; }
.sp-resend input { width: 100%; font-size: 16px; padding: 12px; border: 1px solid #cfc3ad; border-radius: 10px; margin-bottom: 12px; }
