/* R12.3.9 — compact checkout-style giftcard page. Overrides R12.3.8 only on this page. */
:root { --gc39-header:72px; --gc39-forest:#193f36; --gc39-sage:#416959; --gc39-gold:#c6a87e; --gc39-line:#e8e9e2; }
html { scroll-behavior:auto; }
body.gcg-compact-page { background:#f8f7f4; color:var(--gc39-forest); margin:0; }
.gcg-compact-page .gcg-compact-header { height:var(--gc39-header); background:var(--gc39-forest); color:#fff; border-bottom:1px solid rgba(255,255,255,.1); }
.gcg-compact-page .gcg-compact-header-inner { width:100%; max-width:1800px; height:100%; padding:0 clamp(18px,3.2vw,60px); margin:auto; display:flex; align-items:center; }
.gcg-compact-page .gcg-compact-back { display:flex; flex:0 0 42px; align-items:center; justify-content:center; width:42px; height:42px; margin-right:13px; border:1px solid rgba(255,255,255,.22); border-radius:50%; color:#eaf2eb; transition:background .18s,border-color .18s; }
.gcg-compact-page .gcg-compact-back:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.7); }
.gcg-compact-page .gcg-compact-brand { display:inline-flex; align-items:center; height:100%; min-width:0; }
.gcg-compact-page .gcg-compact-brand img { display:block; width:clamp(156px,14vw,208px); height:auto; max-height:55px; object-fit:contain; }
.gcg-compact-page .gcg-compact-main { height:calc(100vh - var(--gc39-header)); height:calc(100dvh - var(--gc39-header)); min-height:0; overflow:hidden; }
.gcg-compact-page #gc12-root { width:100%; height:100%; max-width:none; margin:0; border:0; border-radius:0; background:none; overflow:hidden; }
.gcg-compact-page #gc12-root .gc12-notice { display:none; }
.gcg-compact-page #gc12-root .layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(390px,465px); height:100%; min-height:0; max-width:none; margin:0; }
.gcg-compact-page #gc12-root .stage { min-height:0; min-width:0; display:flex; justify-content:center; align-items:center; padding:clamp(20px,4vw,60px); background:radial-gradient(ellipse at 50% 55%,rgba(222,231,219,.97),transparent 55%),radial-gradient(ellipse at 95% 95%,rgba(198,172,132,.13),transparent 50%),linear-gradient(130deg,#fcfaf6 0%,#f5f5ee 48%,#e7eee8 100%); }
.gcg-compact-page #gc12-root .stage::before { display:none; }
.gcg-compact-page #gc12-root .stage-inner { position:static; width:100%; max-width:760px; margin:auto; }
.gcg-compact-page #gc12-root .stage .eyebrow,
.gcg-compact-page #gc12-root .stage h1,
.gcg-compact-page #gc12-root .stage .stage-desc { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.gcg-compact-page #gc12-root .gift-card { width:100%; max-width:750px; max-height:min(62dvh,560px); margin:auto; border-radius:20px; box-shadow:0 26px 64px rgba(27,69,49,.16),0 2px 9px rgba(27,69,49,.08); }
.gcg-compact-page #gc12-root .card-content { padding:clamp(18px,3vw,42px); }
.gcg-compact-page #gc12-root .card-content strong { margin-top:clamp(22px,4vw,58px); }
.gcg-compact-page #gc12-root .preview-note { margin:18px 0 0; color:#718679; font-size:12px; }
.gcg-compact-page #gc12-root .benefits { display:none; }
.gcg-compact-page #gc12-root .builder { min-height:0; height:100%; overflow-y:auto; overflow-x:hidden; scrollbar-gutter:stable; overscroll-behavior:contain; background:#f9f9f7; border-left:1px solid #e4e8e0; padding:clamp(10px,1.4vw,18px); }
.gcg-compact-page #gc12-root .panel { margin:0 0 8px; border:1px solid var(--gc39-line); border-radius:14px; padding:13px 15px; box-shadow:none; background:#fff; }
.gcg-compact-page #gc12-root .intro { padding:8px 2px 10px; border:0; border-radius:0; background:transparent; }
.gcg-compact-page #gc12-root .intro .section-number,
.gcg-compact-page #gc12-root .intro p { display:none; }
.gcg-compact-page #gc12-root .intro h2 { margin:0; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; font-weight:680; font-size:clamp(20px,1.6vw,24px); line-height:1.2; letter-spacing:-.025em; }
.gcg-compact-page #gc12-root .panel h3 { margin:0 0 10px; font-size:15px; font-weight:700; letter-spacing:0; color:#25483b; }
.gcg-compact-page #gc12-root .panel .section-number { display:none; }
.gcg-compact-page #gc12-root .panel .section-number + h3 { margin-top:0; }
.gcg-compact-page #gc12-root .hint,
.gcg-compact-page #gc12-root .designs + .small-muted { display:none; }
.gcg-compact-page #gc12-root .designs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin:0; }
.gcg-compact-page #gc12-root .design-choice { min-width:0; padding:4px 4px 5px; font-size:10px; border-radius:9px; }
.gcg-compact-page #gc12-root .design-thumb { margin-bottom:4px; border-radius:6px; }
.gcg-compact-page #gc12-root .design-choice.active { border-color:var(--gc39-sage); }
.gcg-compact-page #gc12-root .amount-options { margin:3px 0 10px; gap:5px; }
.gcg-compact-page #gc12-root .amount-option,
.gcg-compact-page #gc12-root .segment { padding:7px 10px; font-size:11px; min-height:33px; background:#f4f7f2; border-color:#e6eee6; color:#41634e; }
.gcg-compact-page #gc12-root .amount-option.active,
.gcg-compact-page #gc12-root .segment.active { background:var(--gc39-forest); border-color:var(--gc39-forest); color:white; }
.gcg-compact-page #gc12-root .field-label { margin:8px 0 5px; color:#577362; font-size:11px; }
.gcg-compact-page #gc12-root .field { min-height:38px; border-radius:9px; }
.gcg-compact-page #gc12-root .field input { padding:8px 11px; font-size:12px; min-height:37px; }
.gcg-compact-page #gc12-root .field textarea { padding:9px 11px; font-size:12px; min-height:75px; }
.gcg-compact-page #gc12-root .field-unit { padding-right:12px; }
.gcg-compact-page #gc12-root .small-muted { margin:5px 0 0; font-size:10px; line-height:1.35; }
.gcg-compact-page #gc12-root .char-counter { margin:3px 0 0; }
.gcg-compact-page #gc12-root .segmented { margin:8px 0; padding:3px; gap:4px; }
.gcg-compact-page #gc12-root .segment { min-height:33px; padding:6px 7px; }
.gcg-compact-page #gc12-root .schedule-control { margin-top:10px; margin-bottom:0; }
.gcg-compact-page #gc12-root .schedule-fields { margin-top:8px; gap:8px; }
.gcg-compact-page #gc12-root .schedule-fields .field-label { margin-top:4px; }
.gcg-compact-page #gc12-root .agreement { margin-top:10px; font-size:10px; line-height:1.4; }
.gcg-compact-page #gc12-root .agreement .small-muted { font-size:10px; }
.gcg-compact-page #gc12-root .payment-panel { margin:0; padding:12px 15px; border-radius:14px; border-color:#dce7dc; box-shadow:none; }
.gcg-compact-page #gc12-root .payment-panel p { font-size:12px; margin-bottom:8px; }
.gcg-compact-page #gc12-root .payment-panel strong { font-size:20px; }
.gcg-compact-page #gc12-root .payment-panel button { padding:11px 12px; border-radius:9px; font-size:12px; }
.gcg-compact-page #gc12-root .payment-caption { margin-top:7px; font-size:10px; }
.gcg-compact-page #gc12-root .field-error { margin:4px 0; font-size:11px; }
/* Optional greeting is an accessible native details element. The underlying form remains untouched. */
.gcg-compact-page #gc12-root .gcg-optional-greeting { margin:0 0 8px; border:1px solid var(--gc39-line); border-radius:14px; background:white; overflow:hidden; }
.gcg-compact-page #gc12-root .gcg-optional-greeting > summary { cursor:pointer; list-style:none; display:flex; gap:12px; align-items:center; padding:13px 16px; font-size:13px; font-weight:700; color:#25483b; }
.gcg-compact-page #gc12-root .gcg-optional-greeting > summary::-webkit-details-marker { display:none; }
.gcg-compact-page #gc12-root .gcg-optional-caption { font-size:11px; font-weight:400; color:#8b9c8e; margin-left:auto; }
.gcg-compact-page #gc12-root .gcg-optional-arrow { font-size:23px; font-weight:400; line-height:.65; color:#66836c; transform:translateY(-2px); }
.gcg-compact-page #gc12-root .gcg-optional-greeting[open] .gcg-optional-arrow { transform:rotate(180deg) translateY(2px); }
.gcg-compact-page #gc12-root .gcg-optional-greeting .panel { padding:0 15px 15px; margin:0; border:0; border-radius:0; }
.gcg-compact-page #gc12-root .gcg-optional-greeting .panel h3 { display:none; }
/* Visually disabled payment is intentional until a verified order/payment integration exists. */
.gcg-compact-page #gc12-root .payment-panel button:disabled { cursor:not-allowed; }
@media(min-width:981px) and (max-height:810px) {
  .gcg-compact-page #gc12-root .builder { padding:7px 10px; }
  .gcg-compact-page #gc12-root .panel { padding:10px 12px; margin-bottom:6px; }
  .gcg-compact-page #gc12-root .panel h3 { margin-bottom:7px; }
  .gcg-compact-page #gc12-root .payment-panel { padding:10px 12px; }
  .gcg-compact-page #gc12-root .gift-card { max-height:58dvh; }
}
@media(max-width:980px) {
  .gcg-compact-page .gcg-compact-main { height:auto; min-height:calc(100dvh - var(--gc39-header)); overflow:visible; }
  .gcg-compact-page #gc12-root { height:auto; overflow:visible; }
  .gcg-compact-page #gc12-root .layout { display:block; height:auto; }
  .gcg-compact-page #gc12-root .stage { padding:clamp(20px,4vw,40px); }
  .gcg-compact-page #gc12-root .stage-inner { width:min(100%,620px); }
  .gcg-compact-page #gc12-root .gift-card { max-height:none; }
  .gcg-compact-page #gc12-root .builder { width:min(100%,720px); height:auto; max-height:none; overflow:visible; border-left:0; padding:16px 18px 28px; margin:auto; }
  .gcg-compact-page #gc12-root .gcg-optional-greeting > summary { padding:14px 16px; }
}
@media(max-width:600px) {
  :root { --gc39-header:64px; }
  .gcg-compact-page .gcg-compact-header-inner { padding:0 15px; }
  .gcg-compact-page .gcg-compact-back { flex-basis:38px; height:38px; width:38px; margin-right:10px; }
  .gcg-compact-page .gcg-compact-brand img { width:174px; max-height:44px; }
  .gcg-compact-page #gc12-root .stage { padding:28px 16px 20px; }
  .gcg-compact-page #gc12-root .gift-card { border-radius:15px; }
  .gcg-compact-page #gc12-root .card-content { padding:20px; }
  .gcg-compact-page #gc12-root .card-content strong { margin-top:22px; }
  .gcg-compact-page #gc12-root .preview-note { margin-top:10px; font-size:11px; }
  .gcg-compact-page #gc12-root .builder { padding:13px 12px 25px; }
  .gcg-compact-page #gc12-root .panel { padding:13px 14px; }
  .gcg-compact-page #gc12-root .designs { gap:4px; }
  .gcg-compact-page #gc12-root .payment-panel { position:static; }
}
@media(prefers-reduced-motion:reduce) { .gcg-compact-page * { transition:none!important; animation:none!important; } }

/* Wide-screen density: two small fields share a row, while all original IDs remain intact. */
@media(min-width:981px) {
 .gcg-compact-page #gc12-root .layout { grid-template-columns:minmax(0,1fr) minmax(440px,500px); }
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-delivery-options) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:5px 10px; }
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-delivery-options) > h3,
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-delivery-options) > #gc12-delivery-options,
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-delivery-options) > #gc12-schedule-fields { grid-column:1 / -1; }
 .gcg-compact-page #gc12-root #gc12-email-delivery,
 .gcg-compact-page #gc12-root #gc12-messenger-delivery { grid-column:1; min-width:0; }
 .gcg-compact-page #gc12-root #gc12-schedule-options { grid-column:2; margin:14px 0 0; align-self:end; }
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-sender-phone) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:5px 10px; }
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-sender-phone) > h3,
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-sender-phone) > .section-number,
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-sender-phone) > .agreement { grid-column:1 / -1; }
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-sender-phone) > label[for="gc12-sender-phone"] { grid-column:1; grid-row:2; }
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-sender-phone) > label[for="gc12-sender-email"] { grid-column:2; grid-row:2; }
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-sender-phone) > .field:has(> #gc12-sender-phone) { grid-column:1; grid-row:3; }
 .gcg-compact-page #gc12-root .builder > .panel:has(#gc12-sender-phone) > .field:has(> #gc12-sender-email) { grid-column:2; grid-row:3; }
 .gcg-compact-page #gc12-root .panel { padding:11px 13px; }
 .gcg-compact-page #gc12-root .intro { padding:6px 2px 6px; }
 .gcg-compact-page #gc12-root .design-thumb { aspect-ratio:2/1; }
 .gcg-compact-page #gc12-root .panel h3 { margin-bottom:7px; }
 .gcg-compact-page #gc12-root .field-label { margin:5px 0 3px; }
 .gcg-compact-page #gc12-root .amount-options { margin:2px 0 6px; }
 .gcg-compact-page #gc12-root .amount-option { min-height:29px; padding:5px 9px; }
 .gcg-compact-page #gc12-root .payment-panel { padding:10px 13px; }
 .gcg-compact-page #gc12-root .payment-caption { margin-top:4px; }
}
@media(min-width:981px) {
 .gcg-compact-page #gc12-root .builder > .panel { margin-bottom:6px; padding:9px 12px; }
 .gcg-compact-page #gc12-root .builder > .intro { padding:4px 2px 6px; }
 .gcg-compact-page #gc12-root .intro h2 { font-size:20px; }
 .gcg-compact-page #gc12-root .design-thumb { aspect-ratio:auto; height:32px; }
 .gcg-compact-page #gc12-root .design-choice { padding:2px 3px 3px; }
 .gcg-compact-page #gc12-root .panel h3 { margin-bottom:6px; }
 .gcg-compact-page #gc12-root .field { min-height:34px; }
 .gcg-compact-page #gc12-root .field input { min-height:33px; padding:6px 10px; }
 .gcg-compact-page #gc12-root .segment { min-height:30px; padding:5px 6px; }
 .gcg-compact-page #gc12-root .amount-options { margin:0 0 5px; }
 .gcg-compact-page #gc12-root .gcg-optional-greeting { margin-bottom:6px; }
 .gcg-compact-page #gc12-root .gcg-optional-greeting > summary { padding:10px 13px; }
 .gcg-compact-page #gc12-root .payment-panel { padding:9px 12px; }
 .gcg-compact-page #gc12-root .payment-panel button { padding:9px; }
}

/* R12.4.3: user-configured denominations, clean disclosure chevron */
.gcg-compact-page #gc12-root.gc1243-no-custom .gc1243-custom-label,
.gcg-compact-page #gc12-root.gc1243-no-custom .gc1243-custom-field,
.gcg-compact-page #gc12-root.gc1243-no-custom #gc12-amount-help,
.gcg-compact-page #gc12-root.gc1243-no-custom #gc12-amount-error {display:none!important}
.gcg-compact-page #gc12-root .gcg-optional-arrow {width:9px;height:9px;flex:0 0 9px;display:block;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);font-size:0;line-height:0;margin:0 3px 5px 0}
.gcg-compact-page #gc12-root .gcg-optional-greeting[open] .gcg-optional-arrow {transform:rotate(225deg);margin:5px 3px 0 0}
.gcg-compact-page #gc12-root #gc12-messenger-delivery .small-muted {max-width:42ch;font-size:10px;line-height:1.3;margin:5px 0}
.gcg-compact-page #gc12-root .amount-options {flex-wrap:wrap}

/* R12.4.3 test-only validation button */
.gcg-compact-page #gc12-root .gc1243-check-btn{display:block;background:transparent;border:0;color:#275f4c;text-decoration:underline;text-underline-offset:3px;padding:6px;margin:7px auto 0;cursor:pointer;font-size:11px;width:auto}
.gcg-compact-page #gc12-root #gc1243-check-result{font-size:11px;text-align:center;color:#2b5f49;margin:3px 0 0;line-height:1.4}
.gcg-compact-page #gc12-root #gc1243-check-result.gc1243-invalid{color:#9b3333}

/* R12.5E storefront finish: live personal greeting and future coupon space. */
.gcg-compact-page #gc12-root .gift-card .card-caption.gc125e-personal-greeting {
  max-width:86%; overflow-wrap:anywhere; white-space:pre-line;
  font-size:clamp(11px,1.05vw,15px); line-height:1.3;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4;
  overflow:hidden; max-height:5.2em; letter-spacing:normal;
}
.gcg-compact-page #gc12-root .card-bottom { align-items:flex-end; }
.gcg-compact-page #gc12-root .card-bottom .gc125e-promo {
  display:flex; flex-direction:column; align-items:flex-end;
  gap:3px; max-width:56%; text-align:right; letter-spacing:normal;
}
.gcg-compact-page #gc12-root .gc125e-promo-label {
  font-size:clamp(7px,.8vw,10px); letter-spacing:.14em; opacity:.74;
}
.gcg-compact-page #gc12-root #gc125e-promo-value {
  font-size:clamp(9px,.95vw,12px); font-weight:700; letter-spacing:.02em;
  overflow-wrap:anywhere;
}
@media(max-width:600px) {
  .gcg-compact-page #gc12-root .gift-card .card-caption.gc125e-personal-greeting {
    max-width:92%; font-size:10px; -webkit-line-clamp:2; max-height:2.6em;
  }
  .gcg-compact-page #gc12-root .card-bottom .gc125e-promo {max-width:55%;gap:1px}
  .gcg-compact-page #gc12-root #gc125e-promo-value {font-size:8px}
  .gcg-compact-page #gc12-root .gc125e-promo-label {font-size:7px}
}

/* R12.5E1: hide retired browser test checkout, even if old MODX HTML is cached. */
.gcg-compact-page #gc12-root #gc125c-pilot,
.gcg-compact-page #gc12-root .gc125c-pilot { display:none!important; }
