.wcc-giving[aria-hidden="true"] { display: none; }
.wcc-giving { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 20px; }
.wcc-giving__overlay { position: absolute; inset: 0; background: rgb(22 12 35 / 68%); }
.wcc-giving__panel { position: relative; box-sizing: border-box; width: min(100%, 600px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 48px 36px 30px; background: #fffaf3; color: #292034; border-top: 7px solid #3f3187; font: 17px/1.6 system-ui, sans-serif; text-align: left; }
.wcc-giving__panel h2 { margin: 12px 0 20px; color: #422158; font: 700 clamp(28px, 5vw, 38px)/1.12 system-ui, sans-serif; letter-spacing: -.025em; }
.wcc-giving__panel p { margin: 0 0 18px; }
.wcc-giving__panel .wcc-giving__subtitle { margin-top: -8px; color: #422158; font-size: 19px; font-weight: 600; line-height: 1.4; }
.wcc-giving__panel button { font-family: inherit; cursor: pointer; border-radius: 0; }
.wcc-giving__panel .wcc-giving__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; color: #422158; border: 0; font-size: 30px; line-height: 1; }
.wcc-giving__panel .wcc-giving__donate { display: block; box-sizing: border-box; width: 100%; margin-top: 26px; padding: 14px 18px; background: #3f3187; color: white; text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: 16px; font-weight: 700; }
.wcc-giving__panel .wcc-giving__donate:hover { background: #422158; color: white; }
.wcc-giving__panel .wcc-giving__later { display: block; margin: 12px auto 0; min-height: 44px; padding: 8px 16px; background: transparent; border: 0; color: #422158; text-decoration: underline; font-size: 15px; }
.wcc-giving button:focus-visible, .wcc-giving a:focus-visible, .wcc-giving-reopen:focus-visible { outline: 3px solid #ae5300; outline-offset: 3px; }
.wcc-giving-reopen { position: fixed; bottom: 16px; left: 16px; z-index: 99998; max-width: calc(100% - 32px); padding: 12px 16px; border: 2px solid white; background: #422158; color: white; font: 14px/1.4 system-ui, sans-serif; cursor: pointer; }
@media (max-width: 480px) {
  .wcc-giving { padding: 12px; }
  .wcc-giving__panel { max-height: calc(100dvh - 24px); padding: 44px 22px 20px; font-size: 15px; line-height: 1.5; }
  .wcc-giving__panel p { margin-bottom: 12px; }
  .wcc-giving__panel .wcc-giving__subtitle { font-size: 17px; }
  /* Long copy scrolls; keep the donate button in view while it does. */
  .wcc-giving__panel .wcc-giving__donate { position: sticky; bottom: 0; margin-top: 18px; box-shadow: 0 -12px 0 #fffaf3; }
}
/* Alternative preview only: ?wcc-giving-preview=1&wcc-giving-layout=sheet */
.wcc-giving-layout-sheet .wcc-giving { place-items: end center; padding: 0; }
.wcc-giving-layout-sheet .wcc-giving__panel { width: 100%; max-height: min(85dvh, 680px); padding: 40px max(32px, calc((100vw - 800px) / 2)) max(24px, env(safe-area-inset-bottom)); }
.wcc-giving-layout-sheet .wcc-giving__panel h2 { max-width: 700px; }
.wcc-giving-layout-sheet .wcc-giving__panel .wcc-giving__donate { width: min(100%, 340px); }
.wcc-giving-layout-sheet .wcc-giving__panel .wcc-giving__later { margin: 8px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .wcc-giving-layout-sheet .wcc-giving:not([aria-hidden="true"]) .wcc-giving__panel { animation: wcc-giving-sheet-enter 220ms ease-out; }
  @keyframes wcc-giving-sheet-enter { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
}
@media (max-width: 480px) {
  .wcc-giving-layout-sheet .wcc-giving__panel { padding: 48px 24px max(24px, env(safe-area-inset-bottom)); }
  .wcc-giving-layout-sheet .wcc-giving__panel .wcc-giving__donate { width: 100%; }
}
