/* integration.css — styles for the booking/donate integration elements that the
   design export doesn't ship (consent tick, Revolut hosted-field mount, loading &
   error states). Uses the site's existing design tokens. Copied verbatim into the
   theme by build/build.js and enqueued by functions.php. */

/* Consent tick on the booking details step */
.bk-consent { display: flex; align-items: flex-start; gap: 11px; margin: 24px 0 2px; cursor: pointer;
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.5; color: var(--fg-muted); }
.bk-consent input[type="checkbox"] { flex: none; width: 17px; height: 17px; margin-top: 1px;
  accent-color: var(--el-green); cursor: pointer; }
.bk-consent a { color: var(--el-green); text-decoration: underline; text-underline-offset: 2px; }
.bk-consent.has-err input[type="checkbox"] { outline: 1.5px solid #b23b3b; outline-offset: 1px; }

/* Load state: the green load screen is a fixed overlay (#elk-boot in front-page.php) that
   covers the viewport until the app paints, then fades out — it must NOT be a background on
   body/#root, because the site's "paper" sections are transparent and rely on base.css's
   `body { background: var(--el-paper) }` behind their dark text. Only the hero <video> gets
   a green backdrop (it has no poster), so it shows green until the video plays over it. */
#elk-boot { position: fixed; inset: 0; z-index: 2147483000; background: var(--el-green, #132416);
  transition: opacity .5s ease; pointer-events: none; }
.hero-video { background-color: var(--el-green, #132416); }

/* Anchor deep-links: leave room for the ~92px fixed nav so a section's heading
   isn't hidden under it when you jump to #causes / #fund / etc. Applied to the
   section ids directly (not just :target) so it also holds for scripted scrolls. */
#top, #marks, #idea, #whofor, #calling, #causes, #week, #circles, #community,
#moments, #place, #fund, #participate, #stay, #past, #faq, #apply,
:target { scroll-margin-top: 104px; }

/* Cardholder-name field inside the Revolut block (Revolut's iframe has no name input) */
.bk-revolut .bk-cardname { padding: 16px 16px 2px; }
.bk-revolut .bk-cardname input { width: 100%; }

/* Revolut hosted card field mount (booking + donate) */
.bk-card-field { position: relative; min-height: 56px; padding: 18px 16px 16px; }
.bk-card-field .rc-mount { min-height: 20px; }
.bk-card-loading { font-family: var(--font-sans); font-size: 13px; color: var(--fg-subtle);
  text-align: center; padding: 6px 0; }

/* Disabled / in-flight CTA states (booking footer + donate) */
.btn[disabled], .dn-submit[disabled] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"], .dn-submit[aria-busy="true"] { opacity: .72; cursor: progress; }

/* Silent site: hide the hero video's sound/unmute toggle (audio is forced off). */
.hero-sound { display: none !important; }

/* Donate overlay: payment step + error line */
.dn-pay { display: flex; flex-direction: column; }
.dn-pay .bk-revolut { margin: 6px 0 4px; }
.dn-error { margin: 12px 0 0; font-size: 13px; font-weight: 500; line-height: 1.45;
  color: #b23b3b; text-align: center; }
.dn-back { display: block; margin: 12px auto 0; padding: 4px 8px; background: none; border: none;
  font-family: var(--font-sans); font-size: 12.5px; color: var(--fg-subtle); cursor: pointer; }
.dn-back:hover { color: var(--el-green); }

/* ------------------------------------------------------------------ *
 * Guest-list capture (GuestList.jsx) — modal + inline band.
 * Approved split layout only; reuses the site's .bk-field / .btn primitives
 * and colors_and_type.css tokens. (Prototype-only variants — card / invitation /
 * right-sheet / fake site backdrop — are intentionally not carried over.)
 * ------------------------------------------------------------------ */
.serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 300; letter-spacing: .005em; }
/* overlay */
.gl-overlay { position: fixed; inset: 0; z-index: 2300; display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px); background: rgba(19, 36, 22, .55); animation: glfade var(--dur-slow, .5s) var(--ease-out, ease); }
@keyframes glfade { from { opacity: 0; } to { opacity: 1; } }
/* modal shell */
.gl-modal { position: relative; background: var(--el-paper); border-radius: calc(var(--card-r) + 4px);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: min(88vh, 760px); animation: glrise var(--dur-slow, .5s) var(--ease-out, ease); }
@keyframes glrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gl-modal.split { display: grid; grid-template-columns: 300px 1fr; width: min(860px, 100%); }
.gl-body { padding: clamp(30px, 4vw, 46px); overflow-y: auto; }
.gl-modal.split .gl-body { max-height: min(88vh, 760px); }
.gl-close { top: 16px; right: 16px; z-index: 2; }
/* copy */
.gl-eyebrow { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 500; font-size: 10.5px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--accent, #5C7C60); }
.gl-title { font-family: var(--font-display); font-weight: 250; font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem);
  letter-spacing: -.012em; line-height: 1.1; color: var(--el-ink); margin: 14px 0 0; }
.gl-title .serif-accent { letter-spacing: .03em; }
.gl-sub { font-size: 14.5px; line-height: 1.65; color: var(--fg-muted); margin: 13px 0 0; max-width: 46ch; }
/* form */
.gl-form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.gl-form .bk-field input::placeholder { color: #6E6A63; }
/* No box outline on the fields — the design's own focus is the underline colour change
   (.bk-field input:focus → border-color, in site.css), which stays for a11y. */
.gl-submit { width: 100%; margin-top: 6px; }
.gl-submit:focus-visible { outline: 2px solid var(--accent, #5C7C60); outline-offset: 2px; }
.gl-submit[disabled] { opacity: .75; cursor: default; }
.gl-submit[disabled]:hover { background: var(--el-green); }
.gl-spin { width: 14px; height: 14px; border: 1.5px solid rgba(238, 235, 231, .35); border-top-color: var(--el-cream);
  border-radius: 50%; animation: glspin .7s linear infinite; }
@keyframes glspin { to { transform: rotate(360deg); } }
.gl-legal { font-size: 12px; line-height: 1.6; color: var(--fg-subtle); margin: 2px 0 0; }
.gl-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gl-legal a:hover { color: var(--el-green); }
.gl-form-err { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.4; color: #A4452F; }
.gl-form-err i { font-size: 15px; }
.gl-modal .bk-err, .gl-band .bk-err { font-size: 11px; font-weight: 400; margin-top: 5px; letter-spacing: .02em; }
/* opt-in rows (hairline) */
.gl-opts { margin-top: 10px; }
.gl-opt { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 15px 2px; font-family: inherit; }
.gl-opt + .gl-opt { border-top: 1px solid var(--border); }
.gl-opt:focus-visible { outline: 2px solid var(--accent, #5C7C60); outline-offset: 2px; }
.gl-check { flex: none; width: 22px; height: 22px; border: 1px solid var(--border-strong); border-radius: 4px;
  display: grid; place-items: center; color: transparent; font-size: 14px;
  transition: background var(--dur-base, .2s), border-color var(--dur-base, .2s), color var(--dur-base, .2s); }
.gl-opt.on .gl-check { background: var(--el-green); border-color: var(--el-green); color: var(--el-cream); }
.gl-opt-name { display: block; font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .02em; color: var(--el-ink); }
.gl-opt-note { display: block; font-size: 12.5px; line-height: 1.55; color: var(--fg-subtle); margin-top: 3px; }
/* split panel (deep green left) */
.gl-panel { background: var(--el-green); color: var(--el-cream); padding: clamp(28px, 3.5vw, 40px); display: flex; flex-direction: column; }
.gl-panel-logo { height: 30px; width: auto; align-self: flex-start; }
.gl-panel-tag { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 17px; letter-spacing: .03em; margin: 14px 0 auto; color: var(--el-cream); }
.gl-panel-dates { display: none; }
.gl-facts { list-style: none; margin: 26px 0 0; padding: 0; }
.gl-facts li { display: flex; flex-direction: column; gap: 3px; padding: 13px 0; border-bottom: 1px solid var(--border-dark); }
.gl-facts li:last-child { border-bottom: 0; }
.gl-fact-k { font-family: var(--font-display); font-weight: 500; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--green-300); margin-bottom: 7px; }
.gl-fact-v { font-family: var(--font-display); font-weight: 300; font-size: 14.5px; letter-spacing: .04em; color: #fff; }
.gl-panel-foot { margin-top: 26px; margin-bottom: -18px; display: flex; align-items: baseline; gap: 10px; width: 100%; padding-top: 14px; }
.gl-panel-foot .gl-fact-k { margin-bottom: 0; }
.gl-panel-foot img { height: 11px; width: auto; opacity: .92; transform: translateY(1px); }
/* success / already */
.gl-done { display: grid; place-content: center; text-align: center; gap: 0; padding: clamp(40px, 5vw, 60px) clamp(30px, 4vw, 46px); }
.gl-done .bk-check { margin-bottom: 22px; }
.gl-done-kicker { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 25px; color: var(--el-green); margin: 0; }
.gl-done-body { font-size: 14.5px; line-height: 1.7; color: var(--fg-muted); margin: 14px auto 0; max-width: 42ch; }
/* inline band — in-flow, full-width, above Participate (NOT the prototype's fixed-bottom demo) */
.gl-band { position: relative; background: var(--el-paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gl-band-inner { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 68px);
  display: grid; grid-template-columns: minmax(250px, 1fr) minmax(340px, 1.35fr); gap: clamp(26px, 4vw, 60px); align-items: start; }
.gl-band .gl-form { margin-top: 0; }
.gl-band .gl-done { padding: 20px 0; place-content: start; text-align: left; }
.gl-band .gl-done-body { margin-inline: 0; }
/* mobile: slim panel header, stacked name fields, one-column band */
@media (max-width: 760px) {
  .gl-modal.split { grid-template-columns: 1fr; }
  .gl-panel { flex-direction: row; align-items: center; gap: 14px; padding: 14px 20px; }
  .gl-panel-logo { height: 22px; }
  .gl-panel-tag, .gl-facts, .gl-panel-foot { display: none; }
  .gl-panel-dates { display: block; margin-left: auto; font-family: var(--font-display); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--el-cream); }
  .gl-form .bk-two { grid-template-columns: 1fr; }
  .gl-band-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ------------------------------------------------------------------ *
 * Cookie consent banner (elk-cookie.js) — replaces the cookie-consent-box plugin.
 * Slim deep-green bar pinned to the bottom edge, no page overlay. Accept + Decline
 * are IDENTICAL in size/weight/contrast — equal prominence is a French legal
 * requirement, not a style choice.
 * ------------------------------------------------------------------ */
#elk-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2400;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 54px; padding: 8px clamp(16px, 4vw, 40px);
  background: var(--el-green, #132416); color: var(--el-cream, #EEEBE7);
  font-family: var(--font-sans, "Albert Sans", system-ui, sans-serif);
  transform: translateY(100%); transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
#elk-cookie.is-in { transform: none; }
.elk-cookie__text { margin: 0; font-size: 13px; line-height: 1.45; color: var(--el-cream, #EEEBE7); }
.elk-cookie__link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.elk-cookie__link:hover { opacity: .8; }
.elk-cookie__actions { display: flex; gap: 10px; flex: none; }
/* #elk-cookie id-scoped so the two buttons stay identical even if a `.cookie-box__button`
   rule exists elsewhere (Accept carries that class for the elk-ga/elk-meta grant hook). */
#elk-cookie .elk-cookie__btn {
  font-family: var(--font-display, inherit); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  padding: 9px 22px; border-radius: 4px; border: 1px solid var(--el-cream, #EEEBE7);
  background: transparent; color: var(--el-cream, #EEEBE7);
  transition: background .2s, color .2s;
}
#elk-cookie .elk-cookie__btn:hover { background: var(--el-cream, #EEEBE7); color: var(--el-green, #132416); }
#elk-cookie .elk-cookie__btn:focus-visible { outline: 2px solid var(--el-cream, #EEEBE7); outline-offset: 2px; }
@media (max-width: 760px) {
  #elk-cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 18px; }
  #elk-cookie .elk-cookie__actions { justify-content: stretch; }
  #elk-cookie .elk-cookie__btn { flex: 1; }
}
/* Footer "Cookies" control — reopens the consent banner; styled to match footer links. */
.footer-cookies { background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; }

/* ------------------------------------------------------------------ *
 * Guest-list bottom bar → slide-up band (GuestList.jsx GuestListBar).
 * Owns the bottom edge ONLY after cookies are handled (elk-cookie.js hands off),
 * so it never stacks with the cookie banner. Slide-up entrance on first appearance.
 * ------------------------------------------------------------------ */
.gl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2350;
  animation: gl-bar-in .6s cubic-bezier(.22, 1, .36, 1); }
@keyframes gl-bar-in { from { transform: translateY(100%); } to { transform: none; } }
/* thin strip (collapsed trigger) */
.gl-bar__strip { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  width: 100%; min-height: 54px; padding: 8px 24px; cursor: pointer; border: 0;
  background: var(--el-green, #132416); color: var(--el-cream, #EEEBE7);
  font-family: var(--font-display, "Albert Sans", system-ui, sans-serif); }
.gl-bar__text { font-size: 13px; letter-spacing: .01em; opacity: .9; }
.gl-bar__sep { opacity: .45; }
.gl-bar__cta { font-weight: 500; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; }
.gl-bar__strip:hover .gl-bar__cta { text-decoration: underline; text-underline-offset: 3px; }
.gl-bar__strip:focus-visible { outline: 2px solid var(--el-cream, #EEEBE7); outline-offset: -3px; }
/* slide-up band panel — sits above the strip; open .7s ease-out, close .45s ease-in */
.gl-bar__panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2360;
  background: var(--el-paper); border-top: 1px solid var(--border);
  box-shadow: 0 -18px 50px rgba(19, 36, 22, .22);
  max-height: 90vh; overflow-y: auto;
  transform: translateY(100%); transition: transform .45s ease-in; }
.gl-bar.is-open .gl-bar__panel { transform: none; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.gl-bar__close { position: absolute; top: 16px; right: 20px; z-index: 2; width: 32px; height: 32px;
  background: none; border: 0; font-size: 18px; line-height: 1; color: var(--fg-subtle); cursor: pointer; }
.gl-bar__close:hover { color: var(--el-green); }
.gl-bar__panel .gl-band-inner { padding: clamp(30px, 4vw, 52px) clamp(22px, 5vw, 68px); }
.gl-bar__panel .gl-form { margin-top: 0; }
/* confirmation: hide the head, centre the check + copy across the full band */
.gl-bar.is-done .gl-bar__panel .gl-band-inner { grid-template-columns: 1fr; }
.gl-bar.is-done .gl-bar__panel .gl-done { place-content: center; text-align: center; }
.gl-bar.is-done .gl-bar__panel .gl-done-body { margin-inline: auto; }
@media (max-width: 760px) {
  .gl-bar__strip { gap: 8px; padding: 8px 16px; }
  .gl-bar__text { font-size: 12px; }
  .gl-bar__panel .gl-band-inner { grid-template-columns: 1fr; gap: 20px; }
}
