/* Shared landing gift dialog; its frame reuses the existing live certificate checkout. */
.giftpop { width: min(620px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #333; border-radius: 0; background: #090909; color: #fff; font-family: var(--f, 'Outfit', sans-serif); box-shadow: 0 24px 100px #0009; overflow: hidden; }
.giftpop:not([open]) { display: none; }
.giftpop::backdrop { background: #000c; backdrop-filter: blur(8px); }
.giftpop__shell { position: relative; }
.giftpop__head { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 26px; border-bottom: 1px solid #292929; }
.giftpop__logo { width: 112px; height: 24px; fill: currentColor; }
.giftpop__close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #444; border-radius: 0; background: transparent; color: #fff; font: 300 30px/1 var(--f, 'Outfit', sans-serif); cursor: pointer; }
.giftpop__close:hover { color: #e9c568; border-color: #e9c568; }
.giftpop__close:focus-visible, .giftpop__retry:focus-visible, .giftpop__fallback:focus-visible { outline: 2px solid #e9c568; outline-offset: 4px; }
.giftpop__frame { display: block; width: 100%; height: min(594px, calc(100dvh - 98px)); border: 0; background: #090909; }
.giftpop__frame[hidden], .giftpop [hidden] { display: none; }
.giftpop__status { min-height: 300px; padding: 72px 30px; text-align: center; font-size: 16px; line-height: 1.6; }
.giftpop__status p { margin: 0; color: #bbb; }
.giftpop__retry { display: block; margin: 24px auto 0; padding: 14px 22px; border: 1px solid #e9c568; background: #e9c568; color: #000; font: 500 14px/1.3 var(--f, 'Outfit', sans-serif); cursor: pointer; }
.giftpop__fallback { display: block; margin-top: 20px; color: #ddd; font-size: 14px; text-underline-offset: 4px; }
.giftpop__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* /old?embed=gift keeps the real checkout code and no visible legacy landing. */
body.pbx-gift-embed { display: block; margin: 0; background: #090909; color: #fff; text-align: left; min-width: 0; }
body.pbx-gift-embed > :not(#gm-modal):not(#gift-embed-state):not(script) { display: none !important; }
body.pbx-gift-embed .gm-modal { position: relative; inset: auto; display: block; padding: 26px; opacity: 1; background: transparent; backdrop-filter: none; transition: none; }
body.pbx-gift-embed .gm-modal[hidden], body.pbx-gift-embed #gift-embed-state[hidden] { display: none; }
body.pbx-gift-embed .gm-box { width: 100%; max-width: none; max-height: none; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; transition: none; }
body.pbx-gift-embed .gm-close { display: none; }
body.pbx-gift-embed .gm-box h3 { max-width: 18ch; padding-right: 0; font-size: clamp(30px, 6vw, 42px); font-weight: 300; line-height: 1.1; letter-spacing: -.03em; }
body.pbx-gift-embed .gm-sub { color: #aaa; font-size: 15px; line-height: 1.55; }
body.pbx-gift-embed .gm-lbl { font-size: 11px; letter-spacing: .08em; color: #aaa; }
body.pbx-gift-embed .gm-step, body.pbx-gift-embed .gm-mail input { border-radius: 0; }
body.pbx-gift-embed .gm-step button { border-radius: 0; }
body.pbx-gift-embed .gm-mail input { font: 400 16px/1.5 'Outfit', sans-serif; }
body.pbx-gift-embed .btn-gift { border-radius: 0; font-family: 'Outfit', sans-serif; }
body.pbx-gift-embed .gm-fine { line-height: 1.55; }
body.pbx-gift-embed .gift-embed-state { padding: 48px 26px; font: 400 16px/1.6 'Outfit', sans-serif; }
body.pbx-gift-embed .gift-embed-state h1 { margin: 0 0 22px; font-size: 32px; font-weight: 300; letter-spacing: -.03em; line-height: 1.15; }
body.pbx-gift-embed .gift-embed-state p { color: #bbb; }
body.pbx-gift-embed .gift-embed-state button { margin-top: 24px; padding: 14px 20px; border: 1px solid #e9c568; background: #e9c568; color: #000; font: 500 14px/1.3 'Outfit', sans-serif; cursor: pointer; }
body.pbx-gift-embed .gift-embed-state button[hidden] { display: none; }
@media (max-width: 480px) {
  .giftpop { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .giftpop__head { height: 58px; padding-inline: 18px; }
  .giftpop__frame { height: min(594px, calc(100dvh - 80px)); }
  body.pbx-gift-embed .gm-modal { padding: 24px 18px; }
  body.pbx-gift-embed .gm-buy { gap: 14px; }
  body.pbx-gift-embed .gm-sum .tot { font-size: 25px; overflow-wrap: anywhere; }
}
