/* Gift Cash public experience — scope everything to avoid changing other pages. */
.gift-cash-public {background:var(--brand-page-bg,#f5f7fb);color:var(--brand-text,#111827)}
.gift-cash-public .gift-wrap{max-width:1280px;margin:0 auto;padding:32px clamp(16px,3vw,44px) 60px}
.gift-hero{min-height:320px;border-radius:var(--brand-card-radius,18px);background:linear-gradient(125deg,var(--nav,#133b41),color-mix(in srgb,var(--brand,#367b7d) 54%,var(--nav,#133b41)));padding:clamp(26px,4vw,60px);color:#fff;display:grid;grid-template-columns:1fr minmax(220px,.72fr);gap:30px;align-items:center;overflow:hidden;position:relative}
.gift-hero h1{font-size:clamp(38px,5.2vw,70px);line-height:1.03;margin:8px 0 18px;font-weight:900}
.gift-hero p{font-size:clamp(14px,1.3vw,18px);line-height:1.6;max-width:570px;color:#f3f9f7}
.gift-eyebrow{letter-spacing:.13em;text-transform:uppercase;font-size:11px;font-weight:800;margin:0}
.gift-hero-link{display:inline-block;color:#fff;text-decoration:underline;font-weight:750;margin-top:16px;text-underline-offset:5px}
.gift-hero-art{display:flex;align-items:center;justify-content:center;position:relative;height:220px}
.gift-art-card{width:min(100%,355px);height:205px;border-radius:20px;display:flex;flex-direction:column;justify-content:space-between;padding:25px;position:relative;z-index:1;transform:rotate(-9deg);background:linear-gradient(150deg,var(--brand-accent,#e5a9ba),color-mix(in srgb,var(--brand-accent,#e5a9ba) 55%,#fff));box-shadow:0 28px 42px #0003;color:var(--brand-on-accent,#13232a)}
.gift-art-card>span{font-size:12px;font-weight:700;letter-spacing:.1em}.gift-art-card strong{font-size:clamp(25px,3vw,43px);line-height:1.04}.gift-art-card i{align-self:flex-end;font-size:12px;font-style:normal;letter-spacing:.14em;font-weight:800}
.gift-art-ball{position:absolute;right:0;top:-10px;border:10px solid #ffffff45;border-radius:50%;width:135px;height:135px;background:#fff4;color:transparent}
.gift-section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;flex-wrap:wrap;margin:38px 0 18px}.gift-section-heading h2,.gift-how h2{font-size:clamp(24px,2.4vw,35px);margin:6px 0 0;font-weight:850}.gift-section-heading>p{color:var(--brand-muted,#667085);margin:0}
.gift-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:20px}
.gift-product{background:var(--brand-surface,#fff);border-radius:var(--brand-card-radius,16px);border:1px solid color-mix(in srgb,var(--brand-text,#111827) 12%,transparent);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 9px 24px #1b3b4120;min-width:0}
.gift-product-image{height:220px;overflow:hidden;background:color-mix(in srgb,var(--brand-accent,#e5a9ba) 17%,var(--brand-surface,#fff))}
.gift-product-image img{width:100%;height:100%;object-fit:cover}
.gift-product-placeholder{height:100%;margin:18px;border-radius:18px;background:linear-gradient(135deg,var(--brand,#346b70),var(--nav,#10333a));color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:20px;box-shadow:10px 10px 0 #041b2020}
.gift-product-placeholder span{font-size:11px;letter-spacing:.1em;font-weight:700;text-transform:uppercase}.gift-product-placeholder strong{font-size:clamp(20px,2.2vw,34px);line-height:1.05}.gift-product-placeholder b{font-size:24px;align-self:flex-end}
.gift-product-content{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}.gift-product h3{font-size:29px;font-weight:850;color:var(--brand-text,#111827);margin:0}.gift-price{display:flex;gap:10px;align-items:center;margin:0;flex-wrap:wrap;color:var(--brand-text,#111827)}.gift-price del{color:var(--brand-muted,#667085)}.gift-price strong{font-size:19px;color:var(--brand,#286e6a)}.gift-sale{font-size:10px;letter-spacing:.07em;font-weight:900;color:var(--brand-on-accent,#fff);background:var(--brand-accent,#bd7c8a);padding:4px 8px;border-radius:7px}
.gift-campaign{font-weight:750;color:var(--brand,#286e6a);margin:0}.gift-product-desc{font-size:13px;color:var(--brand-muted,#667085);line-height:1.6;flex:1;margin:0}
.gift-buy,.gift-submit{background:var(--brand,#286e6a);color:var(--brand-on-primary,#fff);border:0;border-radius:var(--brand-button-radius,10px);padding:13px 18px;font-weight:850;min-height:46px;cursor:pointer}.gift-buy:hover,.gift-submit:hover{filter:brightness(.94)}.gift-buy:focus-visible,.gift-close:focus-visible{outline:3px solid var(--brand-accent,#d5a2b6);outline-offset:3px}
.gift-unavailable{color:var(--brand-muted,#667085);font-size:13px}.gift-how{margin:34px 0;padding:25px 28px;border:1px solid color-mix(in srgb,var(--brand-text,#111827) 12%,transparent);border-radius:var(--brand-card-radius,16px);background:var(--brand-surface,#fff)}
.gift-how>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}.gift-how p{display:grid;gap:8px;margin:0}.gift-how strong{font-size:14px}.gift-how span{font-size:13px;color:var(--brand-muted,#667085);line-height:1.55}
.gift-feedback{background:var(--brand-surface,#fff);border:1px solid var(--brand,#286e6a);padding:15px 20px;margin:20px 0;border-radius:12px}.gift-feedback--error{border-color:#b42332;color:#a21b29}
.gift-cash-public .dc-panel{background:var(--brand-surface,#fff);border:1px solid color-mix(in srgb,var(--brand-text,#111827) 15%,transparent);padding:25px;border-radius:var(--brand-card-radius,16px);margin:25px 0}.gift-cash-public .dc-panel input{max-width:100%;padding:10px;border:1px solid #bfcbd0;border-radius:9px}
.gift-cash-public .dc-panel button{padding:11px 18px;border:0;border-radius:var(--brand-button-radius,10px);background:var(--brand,#286e6a);color:var(--brand-on-primary,#fff)}
.gift-cash-public .dc-total{font-size:30px;font-weight:850;color:var(--brand,#286e6a)}
.gift-cash-public .dc-brand{text-align:center;color:var(--brand-muted,#667085);font-size:12px}
.gift-empty{border:1px dashed var(--brand-muted,#667085);padding:30px;border-radius:15px}
.gift-modal{padding:0;border:0;border-radius:20px;width:min(710px,calc(100% - 24px));max-width:710px;max-height:min(90vh,900px);max-height:min(90dvh,900px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;color:var(--brand-text,#111827);background:var(--brand-surface,#fff);box-shadow:0 24px 75px #0a1d2870}
.gift-modal::backdrop{background:rgba(7,20,30,.76);backdrop-filter:blur(3px)}
.gift-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 26px;border-bottom:1px solid #dfe5e7;background:var(--brand-surface,#fff);position:sticky;top:0;z-index:2}
.gift-modal-head h2{font-size:27px;font-weight:850;margin:4px 0}.gift-modal-head p:last-child{margin:0;font-weight:750;color:var(--brand,#286e6a)}
.gift-close{width:38px;height:38px;display:grid;place-items:center;background:transparent;border:1px solid #bdc9ce;border-radius:50%;font-size:24px;cursor:pointer;color:var(--brand-text,#111827)}
.gift-modal-body{max-height:none;overflow:visible;padding:24px 26px}.gift-modal-body h3{font-size:17px;font-weight:850;margin:8px 0 13px}.gift-modal-body h3:not(:first-child){margin-top:25px}
.gift-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gift-form-full{grid-column:1/-1}
.gift-modal label:not(.payment-account-option){display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:750}.gift-modal input:not([type=radio]),.gift-modal textarea{width:100%;padding:11px 12px;border:1px solid #bcc9cd;border-radius:9px;background:var(--brand-surface,#fff);color:var(--brand-text,#111827);font-size:14px}
.gift-payment-note{font-size:12px;line-height:1.6;color:var(--brand-muted,#667085)}
.gift-modal .payment-account-picker{margin:0 0 20px}
.gift-modal-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;padding:16px 24px;border-top:1px solid #dfe5e7;background:var(--brand-surface,#fff);position:sticky;bottom:0;z-index:2}.gift-cancel{padding:12px 18px;border:1px solid #bbc6ca;background:transparent;border-radius:9px;color:var(--brand-text,#111827);font-weight:700}.gift-submit:disabled{opacity:.6;cursor:wait}
@media(max-width:700px){.gift-hero{grid-template-columns:1fr;min-height:0}.gift-hero-art{height:190px}.gift-grid{grid-template-columns:1fr}.gift-how>div{grid-template-columns:1fr}.gift-form-grid{grid-template-columns:1fr}.gift-modal-head,.gift-modal-body{padding:18px}.gift-modal-actions{padding:14px}}

/* CMS-managed Deuce Cash sections: marketing can be reordered, transaction
   components remain isolated and their DOM hooks remain unchanged. */
.gift-cash-public .gift-hero-photo {margin:0;position:relative;min-width:0;align-self:center;}
.gift-cash-public .gift-hero-photo img {
    display:block;width:100%;height:265px;object-fit:cover;
    border:2px solid #ffffff38;border-radius:19px;
    box-shadow:0 18px 38px #001c274f;
}
.gift-cash-public .gift-hero-photo figcaption {
    margin:9px 0 0;font-size:12px;line-height:1.5;
    color:#eef6f4;opacity:.9;
}
.gift-cash-public .gift-editorial-cta {
    margin:32px 0 8px;padding:clamp(24px,3.5vw,39px);
    display:flex;align-items:center;justify-content:space-between;
    flex-wrap:wrap;gap:18px;min-width:0;
    border:1px solid color-mix(in srgb,var(--brand,#286e6a) 20%,transparent);
    border-radius:var(--brand-card-radius,16px);
    background:color-mix(in srgb,var(--brand,#286e6a) 12%,var(--brand-surface,#fff));
}
.gift-cash-public .gift-editorial-cta h2 {
    font-size:clamp(22px,2.7vw,35px);font-weight:850;
    line-height:1.13;max-width:690px;margin:0 0 8px;
}
.gift-cash-public .gift-editorial-cta p {
    margin:0;line-height:1.65;max-width:690px;
    color:var(--brand-muted,#667085);
}
.gift-cash-public .gift-editorial-cta-link {
    display:inline-flex;align-items:center;justify-content:center;
    flex:none;min-height:46px;padding:12px 19px;border-radius:10px;
    background:var(--brand,#286e6a);color:var(--brand-on-primary,#fff)!important;
    font-weight:800;text-decoration:none;
}
.gift-cash-public .gift-managed-copy {padding:12px 0;line-height:1.65;white-space:pre-line;}
.gift-cash-public .gift-preview-warning {background:#fff3df;color:#7c4e16;border-color:#e9c58c;}
.gift-cash-public .gift-wrap > .cms-content-blocks {margin:22px auto;}
@media(max-width:700px) {
    .gift-cash-public .gift-hero-photo img {height:215px;}
    .gift-cash-public .gift-editorial-cta {align-items:stretch;}
    .gift-cash-public .gift-editorial-cta-link {width:100%;}
}

/* Deuce Cash CMS hero: background photo and foreground gift card are distinct.
   Navy/teal fallback replaces the old black/plum brand-color gradient. */
.gift-cash-public .gift-hero {
  background:linear-gradient(120deg,#163e52 0%,#165b63 54%,#26776b 100%);
}
.gift-cash-public .gift-hero h1 {color:#fff;}
.gift-cash-public .gift-hero .gift-hero-copy {min-width:0;position:relative;z-index:2;}
.gift-cash-public .gift-hero .gift-hero-photo,
.gift-cash-public .gift-hero .gift-hero-art {z-index:2;}
.gift-cash-public .gift-hero-background {
  position:absolute;inset:0;display:block;width:100%;height:100%;
  object-fit:cover;object-position:center;
  border:0;border-radius:inherit;pointer-events:none;z-index:0;
}
.gift-cash-public .gift-hero--has-background::before {
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,
    rgba(251,249,242,.95) 0%,
    rgba(251,249,242,.82) 32%,
    rgba(251,249,242,.44) 50%,
    rgba(251,249,242,.03) 73%);
}
.gift-cash-public .gift-hero--has-background.gift-hero--text-dark {
  color:#152b3c;
}
.gift-cash-public .gift-hero--has-background.gift-hero--text-dark h1,
.gift-cash-public .gift-hero--has-background.gift-hero--text-dark .gift-eyebrow,
.gift-cash-public .gift-hero--has-background.gift-hero--text-dark .gift-hero-link {
  color:#152b3c;
}
.gift-cash-public .gift-hero--has-background.gift-hero--text-dark p {
  color:#254054;
}
.gift-cash-public .gift-hero--has-background.gift-hero--text-light::before {
  background:linear-gradient(90deg,
    rgba(11,33,47,.94) 0%,
    rgba(11,33,47,.83) 35%,
    rgba(11,33,47,.40) 55%,
    rgba(11,33,47,.03) 80%);
}
.gift-cash-public .gift-hero--has-background.gift-hero--text-light,
.gift-cash-public .gift-hero--has-background.gift-hero--text-light h1,
.gift-cash-public .gift-hero--has-background.gift-hero--text-light .gift-eyebrow,
.gift-cash-public .gift-hero--has-background.gift-hero--text-light .gift-hero-link {
  color:#fff;
}
.gift-cash-public .gift-hero--has-background.gift-hero--text-light p {color:#f3f8f8;}
.gift-cash-public .gift-hero--has-background .gift-hero-photo img {
  border-color:rgba(255,255,255,.38);
}
@media(max-width:700px) {
  .gift-cash-public .gift-hero-background {object-position:62% center;}
  .gift-cash-public .gift-hero--has-background.gift-hero--text-dark::before {
    background:linear-gradient(180deg,
      rgba(251,249,242,.95) 0%,
      rgba(251,249,242,.87) 51%,
      rgba(251,249,242,.30) 100%);
  }
  .gift-cash-public .gift-hero--has-background.gift-hero--text-light::before {
    background:linear-gradient(180deg,
      rgba(11,33,47,.96) 0%,
      rgba(11,33,47,.84) 51%,
      rgba(11,33,47,.27) 100%);
  }
}

/* Checkout uses just one scroll container (the native dialog).
   Do not reintroduce max-height/overflow on its body; that creates the
   nested scrollbars seen beside the GCash payment proof fields. */
.gift-cash-public .gift-modal-body {max-height:none;overflow:visible;}

/* High-contrast primary actions: white lettering against dark teal,
   instead of dark text against a pale pink brand button. Secondary cancel
   and close controls intentionally retain their dark text. */
.gift-cash-public .gift-buy,
.gift-cash-public .gift-submit,
.gift-cash-public .gift-editorial-cta-link,
.gift-cash-public .dc-panel button {
  background-color:#246773;
  color:#fff!important;
}
.gift-cash-public .gift-buy:hover,
.gift-cash-public .gift-submit:hover,
.gift-cash-public .gift-editorial-cta-link:hover,
.gift-cash-public .dc-panel button:hover {
  background-color:#18515a;
  color:#fff!important;
}
.gift-cash-public .gift-buy:focus-visible,
.gift-cash-public .gift-submit:focus-visible,
.gift-cash-public .gift-editorial-cta-link:focus-visible {
  outline:3px solid #f6c76d;
  outline-offset:3px;
}

/* White Label gift payment proof confirmation.
   The outer dialog clips to one consistent radius. Only its INNER content
   scrolls, so the native dialog scrollbar can never square off a corner. */
.gift-success-dialog {
  box-sizing:border-box;
  width:min(560px,calc(100vw - 32px));
  max-width:560px;
  max-height:min(90vh,860px);
  max-height:min(90dvh,860px);
  padding:0;
  margin:auto;
  border:1px solid color-mix(in srgb,var(--brand-text,#111827) 12%,transparent);
  border-radius:var(--brand-card-radius,16px);
  background:var(--brand-surface,#fff);
  color:var(--brand-text,#111827);
  font-family:var(--brand-font,Arial,sans-serif);
  box-shadow:0 24px 72px color-mix(in srgb,var(--nav,#111827) 25%,transparent);
  overflow:hidden;
}
.gift-success-dialog::backdrop {
  background:color-mix(in srgb,var(--nav,#111827) 72%,transparent);
  backdrop-filter:blur(4px);
}
.gift-success-inner {
  box-sizing:border-box;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  max-height:calc(min(90vh,860px) - 2px);
  max-height:calc(min(90dvh,860px) - 2px);
  padding:34px clamp(22px,5vw,42px) 30px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb,var(--brand,#2563eb) 40%,transparent) transparent;
}
.gift-success-x {
  position:absolute;
  top:16px;
  right:17px;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid color-mix(in srgb,var(--brand-text,#111827) 14%,transparent);
  border-radius:var(--brand-button-radius,10px);
  background:var(--brand-surface,#fff);
  color:var(--brand-text,#111827);
  cursor:pointer;
  font-size:23px;
  line-height:1;
}
.gift-success-dialog h2 {
  margin:8px 35px 14px 0;
  color:var(--brand-text,#111827);
  font-size:clamp(29px,3.7vw,38px);
  font-weight:800;
  letter-spacing:-.045em;
  line-height:1.15;
}
.gift-success-intro {
  margin:0 0 24px;
  color:var(--brand-muted,#667085);
  font-size:14px;
  line-height:1.75;
}
.gift-success-reference {
  box-sizing:border-box;
  border:1px solid color-mix(in srgb,var(--brand,#2563eb) 18%,var(--brand-surface,#fff));
  border-radius:var(--brand-card-radius,16px);
  padding:17px;
  background:color-mix(in srgb,var(--brand,#2563eb) 5%,var(--brand-surface,#fff));
  margin-bottom:24px;
  min-width:0;
}
.gift-success-ref-label {
  display:block;
  margin-bottom:10px;
  color:var(--brand-text,#111827);
  font-size:11px;
  letter-spacing:.11em;
  font-weight:800;
}
.gift-success-ref-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.gift-success-ref-line strong {
  min-width:0;
  color:var(--brand-text,#111827);
  font-size:13px;
  font-weight:800;
  overflow-wrap:anywhere;
  word-break:break-word;
  user-select:all;
}
.gift-success-copy {
  flex:none;
  padding:8px 12px;
  border:1px solid var(--brand,#2563eb);
  border-radius:var(--brand-button-radius,10px);
  background:var(--brand-surface,#fff);
  color:var(--brand-text,#111827);
  cursor:pointer;
  font-size:12px;
  font-weight:800;
}
.gift-success-amount {
  display:block;
  padding-top:12px;
  color:var(--brand-muted,#667085);
  font-size:12px;
}
.gift-success-copy-status {
  display:block;
  margin-top:5px;
  color:var(--brand-text,#111827);
  font-size:12px;
}
.gift-success-copy-status:empty {display:none;}
.gift-success-timeline {
  display:grid;
  gap:17px;
  margin:0 0 23px;
}
.gift-success-step {
  display:flex;
  align-items:flex-start;
  gap:13px;
}
.gift-success-step-marker {
  box-sizing:border-box;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:1px solid color-mix(in srgb,var(--brand-text,#111827) 18%,transparent);
  border-radius:50%;
  color:var(--brand-muted,#667085);
  background:var(--brand-surface,#fff);
  font-size:12px;
  font-weight:800;
}
.gift-success-step--done .gift-success-step-marker {
  background:var(--brand,#2563eb);
  border-color:var(--brand,#2563eb);
  color:var(--brand-on-primary,#fff);
}
.gift-success-step--pending .gift-success-step-marker {
  background:color-mix(in srgb,var(--brand,#2563eb) 10%,var(--brand-surface,#fff));
  border-color:color-mix(in srgb,var(--brand,#2563eb) 30%,var(--brand-surface,#fff));
  color:var(--brand-text,#111827);
}
.gift-success-step strong {
  display:block;
  padding-top:1px;
  color:var(--brand-text,#111827);
  font-size:13px;
  font-weight:800;
}
.gift-success-step span:not(.gift-success-step-marker) {
  display:block;
  margin-top:3px;
  color:var(--brand-muted,#667085);
  font-size:12px;
  line-height:1.6;
}
.gift-success-note {
  margin:0 0 23px;
  padding:13px 15px;
  border:1px solid color-mix(in srgb,var(--brand-accent,#16a34a) 25%,var(--brand-surface,#fff));
  border-radius:var(--brand-card-radius,16px);
  background:color-mix(in srgb,var(--brand-accent,#16a34a) 9%,var(--brand-surface,#fff));
  color:var(--brand-text,#111827);
  font-size:12px;
  line-height:1.7;
}
.gift-success-done {
  display:block;
  width:100%;
  min-height:49px;
  padding:12px 20px;
  border:0;
  border-radius:var(--brand-button-radius,10px);
  background:var(--brand,#2563eb);
  color:var(--brand-on-primary,#fff)!important;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}
.gift-success-done:hover {
  background:var(--brand-dark,#1d4ed8);
  color:var(--brand-on-primary,#fff)!important;
}
.gift-success-dialog :is(button):focus-visible {
  outline:3px solid var(--brand-accent,#16a34a);
  outline-offset:3px;
}
.gift-success-noscript {
  box-sizing:border-box;
  margin:16px auto;
  max-width:760px;
  padding:20px;
  border:1px solid var(--brand,#2563eb);
  border-radius:var(--brand-card-radius,16px);
  background:var(--brand-surface,#fff);
  color:var(--brand-text,#111827);
}
@media(max-width:600px) {
  .gift-success-dialog{width:calc(100vw - 24px);}
  .gift-success-inner{padding:27px 21px 22px;}
  .gift-success-ref-line{align-items:flex-start;flex-wrap:wrap;}
  .gift-success-copy{margin-left:auto;}
  .gift-success-dialog h2{margin-top:14px;font-size:clamp(28px,7vw,35px);}
}
@media(prefers-reduced-motion:reduce) {
  .gift-success-dialog::backdrop{backdrop-filter:none;}
}
