/* genea.ca's gift pages (gift.js): the gift form, the buyer's gift page and its printable card, and the redeem page,
   in the account page's look (Genealogy Assistant account/account.css, #ga-flow), scoped to #ga-gift so the theme's
   own rules stay as they are. Words and layout from the mock-ups Dan saw (review page 2026-11-29-gift-purchase). */
#ga-gift { font: 19px/1.6 'IBM Plex Serif', serif; color: #000; max-width: 760px; }
#ga-gift [hidden] { display: none !important; }
#ga-gift .gg-head { display: flex; align-items: center; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid #e2e2e2; }
#ga-gift .gg-head img { flex: none; width: 104px; height: 104px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.14)); }
#ga-gift .gg-head h1 { font-size: 31px; line-height: 1.12; margin: 0 0 .21em; letter-spacing: -0.01em; }
#ga-gift .gg-head p { margin: 0; text-wrap: pretty; }
#ga-gift .gg-sec { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
#ga-gift .gg-sec + .gg-sec, #ga-gift .gg-sec + .gg-foot { margin-top: 40px; border-top: 1px solid #e2e2e2; }
#ga-gift .gg-sec > * { margin: 0; }
#ga-gift .gg-sec h2 { font-size: 23px; line-height: 1.25; margin: 0; }
#ga-gift .gg-fields { display: flex; flex-direction: column; gap: 20px; }
#ga-gift label.gg-field { display: block; }
#ga-gift label.gg-field > span { display: block; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
#ga-gift .gg-field input, #ga-gift .gg-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #767676; border-radius: 8px;
  background: #fff; padding: 12px 16px; font: 19px/1.5 'IBM Plex Serif', serif; color: #000; outline: none; }
#ga-gift .gg-field input { height: 54px; }
#ga-gift .gg-field input[type=date] { width: auto; min-width: 240px; }
#ga-gift .gg-field input.gg-code-in { font-weight: 700; font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
#ga-gift .gg-field textarea { min-height: 112px; resize: vertical; }
#ga-gift .gg-field :is(input, textarea):focus { border-color: #000; box-shadow: 0 0 0 1px #000; }
#ga-gift label.gg-check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
#ga-gift .gg-check input { width: 22px; height: 22px; margin: 5px 0 0; accent-color: #109322; flex: none; }
#ga-gift .gg-fine { font-size: 19px; }
#ga-gift .gg-pay { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
/* the bold is !important: genea.ca's theme rule for submit buttons outweighs the shorthand (29 Nov 2026) */
#ga-gift .gg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 8px;
  background: #109322; color: #fff !important; font: 700 19px/1.3 'IBM Plex Serif', serif; font-weight: 700 !important; text-decoration: none !important; cursor: pointer; }
#ga-gift .gg-btn:is(:hover, :focus-visible) { background: #34a244; }
#ga-gift .gg-btn:disabled { opacity: .6; cursor: default; }
#ga-gift .gg-line { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border: 0; border-radius: 10px;
  background: #f1f1f1; color: #111 !important; font: 700 18px/1.3 'IBM Plex Serif', serif; text-decoration: none !important; cursor: pointer; }
#ga-gift .gg-line:is(:hover, :focus-visible) { background: #e4e4e4; }
#ga-gift .gg-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
#ga-gift :is(.gg-sec, .gg-fields) > :is(.gg-btn, .gg-line) { align-self: flex-start; }
#ga-gift .gg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 32px; }
#ga-gift .gg-link { font: 600 18px/1.3 'IBM Plex Serif', serif; color: #000; background: none; border: 0; border-bottom: 1px dotted #000; padding: 0; cursor: pointer; }
#ga-gift .gg-link:hover { border-bottom-style: solid; }
#ga-gift .gg-code, body > .gg-card .gg-code { font: 700 30px/1.2 'IBM Plex Mono', ui-monospace, Menlo, monospace; letter-spacing: .06em; white-space: nowrap; }
#ga-gift ol.gg-steps { margin: 0; padding-left: 28px; } #ga-gift .gg-steps li { margin: 0 0 8px; padding-left: 4px; }
#ga-gift .gg-error { color: #a40000; font-weight: 600; }
#ga-gift .nw, body > .gg-card .nw { white-space: nowrap; }
@media (max-width: 640px) {
  #ga-gift .gg-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  #ga-gift .gg-head img { width: 72px; height: 72px; }
  #ga-gift :is(.gg-btn, .gg-line) { width: 100%; box-sizing: border-box; text-align: center; padding: 12px 20px; }
}

/* The card: only on paper. A4's width and Letter's height, the smaller of each, so it prints on either. */
/* the printable card sits directly in <body> (gift.js), shown only on paper */
body > .gg-card { display: none; }
@media print {
  @page { margin: 0; }
  /* the card is body's own child, so everything else on the page (a theme's header, footer, buttons) goes from the paper */
  body:has(> .gg-card) > :not(.gg-card) { display: none !important; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body > .gg-card { display: flex; position: absolute; left: 0; top: 0; width: 794px; height: 1056px; box-sizing: border-box; padding: 80px 88px;
    flex-direction: column; background: #fff; font: 21px/1.55 'IBM Plex Serif', serif; color: #000; }
  body > .gg-card .top { display: flex; align-items: center; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid #d2d2d2; }
  body > .gg-card .top img { width: 112px; height: 112px; }
  body > .gg-card .for { font-size: 22px; margin: 0 0 4px; }
  body > .gg-card h2.name { font-size: 44px; line-height: 1.1; margin: 0; }
  body > .gg-card .msg { padding: 28px 0; border-bottom: 1px solid #d2d2d2; }
  body > .gg-card .msg p { margin: 0; font-size: 24px; white-space: pre-line; }
  body > .gg-card .msg p.from { margin-top: 14px; font-size: 21px; }
  body > .gg-card h3 { font-size: 26px; margin: 28px 0 16px; }
  body > .gg-card .box { border: 2px dashed #109322; border-radius: 10px; padding: 16px 22px; margin: 0 0 22px; }
  body > .gg-card .box p { margin: 0; font-size: 18px; }
  body > .gg-card .box .gg-code { display: block; margin: 4px 0 8px; font-size: 34px; }
  body > .gg-card ol { margin: 0; padding-left: 30px; } body > .gg-card li { margin: 0 0 10px; padding-left: 6px; }
  body > .gg-card .url { font-weight: 700; font-size: 26px; }
  body > .gg-card .have { margin: 6px 0 16px; font-size: 17px; line-height: 1.4; }
  body > .gg-card .have p { margin: 0 0 6px; }
  body > .gg-card .end { margin: auto 0 0; font-size: 18px; border-top: 1px solid #d2d2d2; padding-top: 22px; }
  body > .gg-card .msg p.from:first-child { margin-top: 0; }
  /* a long message (gift.js: over about 2 lines at 24px; more ran the card to the paper's edge, 30 Nov 2026): smaller, with tighter spacing, so the card keeps to one sheet */
  body > .gg-card.long { padding: 44px 88px; }
  /* Wider lines leave room for the address card's install and sign-in steps. */
  body > .gg-card:has(> .have) { padding-inline: 56px; }
  body > .gg-card.long .top { padding-bottom: 20px; }
  body > .gg-card.long .msg { padding: 18px 0; }
  body > .gg-card.long .msg p { font-size: 18px; line-height: 1.4; }
  body > .gg-card.long h3 { margin-top: 20px; }
  body > .gg-card.long li { margin-bottom: 6px; }
  body > .gg-card.long .have p { margin: 0 0 6px; }
  body > .gg-card.long .have { margin: 6px 0 12px; font-size: 16px; line-height: 1.35; }  /* with the way in for a copy already in use, a 7-line message keeps inside the sheet's margin */
}
