/* ================================================================
 * ONLINE BOOKING — tour panel, phone price bar, promises, payment marks,
 * short booking header, thank-you states (inc/payments.php, 2026-11-20).
 * Loaded on tour pages that can be paid online, the booking page and the
 * thank-you page. Colours and type come from the theme tokens (main.css).
 * ================================================================ */

/* ── Tour page panel ───────────────────────────────────────────── */
/* A div, not a <section>: main.css pads every section 64px 0, which would remove the side padding. */
.em-paypanel {
  margin: 3.2rem 0 2.6rem;
  padding: clamp(1.4rem, 3.4vw, 2.4rem);
  border-radius: 22px;
  background: var(--em-dark);
  color: var(--em-bg);
  display: grid;
  gap: 1.4rem;
  scroll-margin-top: 96px;   /* clear the fixed nav when "Book now" jumps here */
}
.em-paypanel__head { display: grid; gap: .45rem; }
.em-paypanel__eyebrow {
  font: 600 .78rem/1 var(--em-font-head);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--em-gold);
}
.em-single-content .em-paypanel__title,
.em-paypanel__title {
  margin: 0;
  font: 700 clamp(1.7rem, 3.6vw, 2.3rem)/1.05 var(--em-font-head);
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--em-bg);
}
.em-single-content .em-paypanel p { margin: 0; }
.em-paypanel__lead { color: rgba(244,236,224,.72); font-size: 1rem; max-width: 60ch; }
.em-paypanel__ages { color: var(--em-gold); font-weight: 600; font-size: .98rem; }

.em-paypanel__ways { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .em-paypanel__ways--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .em-paypanel__ways--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.em-single-content a.em-payway,
.em-payway {
  position: relative;
  display: grid;
  gap: .25rem;
  align-content: start;
  padding: 1.1rem 2.6rem 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1.5px solid rgba(var(--em-gold-rgb), .55);
  background: rgba(255,255,255,.03);
  color: var(--em-bg);
  text-decoration: none;
  transition: transform .25s var(--em-ease), background .25s var(--em-ease), border-color .25s var(--em-ease);
}
.em-payway:hover, .em-payway:focus-visible { transform: translateY(-2px); border-color: var(--em-gold); background: rgba(var(--em-gold-rgb), .12); }
.em-payway:focus-visible { outline: 2px solid var(--em-gold); outline-offset: 3px; }
.em-payway__name { font: 700 1.3rem/1.1 var(--em-font-head); text-transform: uppercase; letter-spacing: .02em; }
.em-payway__price { font: 600 1.08rem/1.3 var(--em-font-body); color: var(--em-gold); }
.em-payway__note { font-size: .88rem; color: rgba(244,236,224,.66); line-height: 1.4; }
.em-payway__arrow { position: absolute; right: 1rem; top: 1.2rem; opacity: .75; }
/* The first card (pay in full) is the filled one. */
.em-single-content a.em-payway.is-first,
.em-payway.is-first { background: var(--em-gold); border-color: var(--em-gold); color: var(--em-dark); }
.em-payway.is-first .em-payway__price { color: var(--em-dark); }
.em-payway.is-first .em-payway__note { color: rgba(22,19,13,.72); }
.em-payway.is-first:hover, .em-payway.is-first:focus-visible { background: #cc9445; border-color: #cc9445; }

/* ── Promises (panel: dark; form: light) ──────────────────────── */
.em-promises {
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  display: grid;
  gap: .55rem;
}
.em-single-content .em-promises { margin: 0; padding: 1rem 1.15rem; }
.em-promises li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; line-height: 1.45; margin: 0; padding: 0; }
.em-single-content .em-promises li::before { content: none; }
.em-promises svg { flex: none; margin-top: .2rem; }
.em-promises--dark { background: rgba(255,255,255,.06); color: var(--em-bg); }
.em-promises--dark svg { color: var(--em-gold); }
.em-promises--form { background: var(--em-bg); color: var(--em-ink); margin: 0 0 1.1rem; }
.em-promises--form svg { color: var(--em-teal); }
/* Last line: link to the full policy, aligned with the promise text (16px icon + gap). */
.em-promises li.em-promises__policy { padding-left: calc(16px + .65rem); font-size: .9rem; }
.em-promises__policy a { text-decoration: underline; text-underline-offset: 3px; }
.em-promises--dark .em-promises__policy a { color: var(--em-gold); }
.em-promises--form .em-promises__policy a { color: var(--em-teal); }

/* ── Secure line + payment marks ──────────────────────────────── */
.em-paysecure { display: grid; gap: .55rem; justify-items: center; text-align: center; margin-top: .9rem; }
.em-paypanel .em-paysecure { justify-items: start; text-align: left; margin-top: 0; }
.em-paysecure__line { display: flex; gap: .45rem; align-items: center; margin: 0; font-size: .86rem; color: var(--em-muted); line-height: 1.4; }
.em-paysecure__line svg { flex: none; }
.em-paypanel .em-paysecure__line { color: rgba(244,236,224,.66); }
.em-paysecure__marks { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.em-paymark {
  font: 700 .72rem/1 var(--em-font-body);
  letter-spacing: .02em;
  padding: .42rem .62rem;
  border-radius: 7px;
  background: #fff;
  color: #1c1813;
  border: 1px solid var(--em-line);
}
.em-paymark--visa { color: #1a1f71; }
.em-paymark--mc { color: #b5121b; }
.em-paymark--apple { background: #000; color: #fff; border-color: #000; }
.em-paypanel .em-paymark { border-color: transparent; }

.em-paypanel__help { font-size: .92rem; color: rgba(244,236,224,.66); }
.em-paypanel__help a { color: var(--em-gold); }

/* Sidebar: the exact age rule under the price. */
.em-booking-box__ages { margin: -1.3rem 0 1.6rem; font-size: .86rem; font-weight: 600; color: var(--em-gold-d); line-height: 1.4; }

/* ── Phone price bar ─────────────────────────────────────────── */
.em-paybar { display: none; }
@media (max-width: 960px) {
  .em-paybar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 8990;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem max(1rem, env(safe-area-inset-right, 0px)) calc(.7rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    background: #fffaf2;
    box-shadow: 0 -6px 24px rgba(22,19,13,.16);
    border-top: 1px solid var(--em-line);
  }
  .em-paybar__price { display: grid; line-height: 1.1; margin-right: auto; min-width: 0; }
  .em-paybar__label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--em-muted); font-family: var(--em-font-head); }
  .em-paybar__price strong { font: 700 1.5rem/1.05 var(--em-font-head); color: var(--em-ink); }
  .em-paybar__per { font-size: .78rem; color: var(--em-muted); }
  .em-paybar__book {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
    background: var(--em-gold); color: var(--em-dark); text-decoration: none;
    font: 700 1rem/1 var(--em-font-head); letter-spacing: .08em; text-transform: uppercase;
  }
  .em-paybar__wa {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px; flex: none;
    background: #25d366; color: #fff;
  }
  body.em-has-paybar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  /* The bar has its own WhatsApp button; the booking page has a WhatsApp box. */
  body.em-has-paybar .em-wa-float,
  body.em-pay-mode .em-wa-float { display: none !important; }
}

/* ── Booking page: short header in pay mode ──────────────────── */
.em-archive-hero.em-archive-hero--compact {
  height: auto;
  min-height: 0;
  padding: 7.4rem 0 2.4rem;
}
.em-archive-hero--compact .em-title { font-size: clamp(2rem, 4.4vw, 3rem); margin: .5rem 0 0; }
@media (max-width: 768px) {
  .em-archive-hero.em-archive-hero--compact { min-height: 0; padding: 6.2rem 0 1.6rem; }
}
.em-pay-mode .em-booking-section { padding-top: 2.2rem; }

/* ── Thank-you: outcome icons, try again, live check ─────────── */
.em-check-circle--wait { background: linear-gradient(135deg, var(--em-teal), #1f5f58); }
.em-check-circle--warn { background: linear-gradient(135deg, #c0573f, #9a3f2c); }
.em-check-circle--wait svg,
.em-check-circle--warn svg { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.em-pay-retry { margin: 1.4rem 0 0; }
.em-pay-retry__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 2rem; border-radius: 999px;
  background: var(--em-gold); color: var(--em-dark); text-decoration: none;
  font: 700 1rem/1 var(--em-font-head); letter-spacing: .1em; text-transform: uppercase;
}
.em-pay-retry__btn:hover, .em-pay-retry__btn:focus-visible { background: var(--em-gold-d); color: #fff; }
.em-pay-wait { margin-top: .8rem; font-size: .9rem; color: var(--em-muted); }

@media (prefers-reduced-motion: reduce) {
  .em-payway { transition: none; }
  .em-payway:hover { transform: none; }
}

/* ── 2.55.0 · four ways on the tour panel (adds "by invoice") ─── */
@media (min-width: 720px) {
  .em-paypanel__ways--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 2.55.0 · floating cart button (right, above WhatsApp) ────── */
.em-cart-float {
  position: fixed;
  right: max(1.5rem, env(safe-area-inset-right, 0px));
  bottom: calc(1.5rem + 64px + .8rem + env(safe-area-inset-bottom, 0px));
  z-index: 9001;
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--em-gold);
  color: var(--em-dark);
  box-shadow: 0 6px 22px rgba(22,19,13,.28);
  text-decoration: none;
  transition: transform .22s var(--em-ease), background .22s var(--em-ease);
}
.em-cart-float[hidden], .em-cart-float__n[hidden] { display: none; }
.em-cart-float:hover, .em-cart-float:focus-visible { transform: translateY(-3px); background: #cc9445; }
.em-cart-float:focus-visible { outline: 3px solid var(--em-dark); outline-offset: 3px; }
.em-cart-float__n {
  position: absolute; top: -4px; right: -4px;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 12px; border: 2px solid #fff;
  background: var(--em-dark); color: #fff;
  font: 700 .8rem/20px var(--em-font-body); text-align: center;
}
@media (max-width: 960px) {
  /* Tour pages on phones: the price bar replaces the WhatsApp bubble, so the cart sits just above the bar. */
  body.em-has-paybar .em-cart-float { bottom: calc(76px + 1rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  .em-cart-float { right: 1.25rem; bottom: calc(1.25rem + 60px + .7rem + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
}

/* ── 2.55.0 · "Add to cart" on the booking form ───────────────── */
.em-cart-add {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; min-height: 50px; margin-top: .7rem;
  border: 1.5px solid var(--em-gold); border-radius: 999px;
  background: transparent; color: var(--em-gold-d);
  font: 700 .95rem/1 var(--em-font-head); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--em-ease), color .2s var(--em-ease);
}
.em-cart-add:hover, .em-cart-add:focus-visible { background: var(--em-gold); color: var(--em-dark); }
.em-cart-add[hidden] { display: none; }
.em-form-status.is-success { color: var(--em-teal); font-weight: 600; }
.em-form-status.is-success a { color: var(--em-teal); text-decoration: underline; margin-left: .25rem; }

/* ── 2.55.0 · cart page ──────────────────────────────────────── */
.em-cart__title { margin: 0 0 1rem; font: 700 clamp(1.5rem, 3vw, 2rem)/1.1 var(--em-font-head); text-transform: uppercase; }
.em-cart__loading { color: var(--em-muted); padding: 1rem 0; }
.em-cart__list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .7rem; }
.em-cart__list[hidden], .em-cart__empty[hidden], .em-cart__loading[hidden], #em-cart-form[hidden] { display: none; }
.em-cart__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .9rem;
  padding: .75rem .9rem; border: 1px solid var(--em-line); border-radius: 14px; background: #fff;
}
.em-cart__item.is-bad { border-color: #c0573f; background: #fff6f3; }
.em-cart__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.em-cart__text { display: grid; gap: .2rem; min-width: 0; }
.em-cart__name { font-weight: 700; color: var(--em-ink); text-decoration: none; overflow-wrap: anywhere; }
a.em-cart__name:hover { color: var(--em-gold-d); }
.em-cart__meta { font-size: .88rem; color: var(--em-muted); }
.em-cart__item.is-bad .em-cart__meta { color: #9a3f2c; }
.em-cart__price { font: 700 1.1rem/1 var(--em-font-head); color: var(--em-ink); white-space: nowrap; }
.em-cart__rm {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--em-line); background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--em-muted); cursor: pointer;
}
.em-cart__rm:hover, .em-cart__rm:focus-visible { color: #9a3f2c; border-color: #c0573f; }
.em-cart__more { margin: 0 0 1rem; }
.em-cart__more a { color: var(--em-gold-d); font-weight: 600; }
.em-cart__empty { text-align: center; padding: 1.5rem 0; }
.em-cart__empty p { color: var(--em-muted); margin: 0 0 1rem; }
@media (max-width: 520px) {
  .em-cart__item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .em-cart__thumb { width: 52px; height: 52px; }
  .em-cart__price { grid-column: 2; }
  .em-cart__rm { grid-row: 1; grid-column: 3; }
}
/* Thank-you page: one line per tour of a cart booking. */
.em-pay-done li.em-pay-done__tour span { display: grid; gap: .15rem; color: var(--em-ink); }
.em-pay-done li.em-pay-done__tour small { color: var(--em-muted); font-size: .82rem; }

/* ── 2.55.0 · homepage: "You decide when and how to pay" ───────── */
.em-payways {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--em-dark);
  color: var(--em-bg);
}
.em-payways__head { max-width: 40rem; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.em-payways .em-title { color: var(--em-bg); }
.em-payways .em-title em { color: var(--em-gold); }
.em-payways__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .em-payways__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .em-payways__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.em-payways__card {
  position: relative;
  display: flex; gap: 1.1rem; align-items: flex-start;
  margin: 0; padding: 1.5rem 1.4rem;
  border-radius: 20px;
  border: 1.5px solid rgba(var(--em-gold-rgb), .35);
  background: rgba(255,255,255,.04);
}
.em-payways__card.is-popular { border-color: var(--em-gold); background: rgba(var(--em-gold-rgb), .1); box-shadow: 0 0 0 4px rgba(var(--em-gold-rgb), .12); }
.em-payways__badge {
  position: absolute; top: -13px; right: 18px;
  padding: .38rem .8rem; border-radius: 999px;
  background: var(--em-gold); color: var(--em-dark);
  font: 700 .74rem/1 var(--em-font-head); letter-spacing: .16em; text-transform: uppercase;
}
.em-payways__icon {
  flex: none; width: 54px; height: 54px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--em-gold-rgb), .14); color: var(--em-gold);
}
.em-payways__text { display: grid; gap: .4rem; min-width: 0; }
.em-payways__name { font: 700 1.45rem/1.1 var(--em-font-head); text-transform: uppercase; letter-spacing: .02em; color: var(--em-bg); }
.em-payways__desc { font-size: 1rem; line-height: 1.5; color: rgba(244,236,224,.74); }
.em-payways__more { margin: clamp(1.6rem, 4vw, 2.4rem) 0 0; }
/* On the dark band the dark home button would vanish: gold, with a dark arrow disc. */
.em-home-page .em-payways .btn { background: var(--em-gold); color: var(--em-dark); }
.em-home-page .em-payways .btn:hover { background: #cc9445; }
.em-home-page .em-payways .btn .arr { background: var(--em-dark); color: var(--em-gold); }

/* Hello Elementor colours every button pink (#c36) on hover/focus; these selectors win in every state. */
body button.em-cart-add, body button.em-cart-add:hover, body button.em-cart-add:focus, body button.em-cart-add:active { border: 1.5px solid var(--em-gold); }
body button.em-cart-add { background: transparent; color: var(--em-gold-d); }
body button.em-cart-add:hover, body button.em-cart-add:focus-visible { background: var(--em-gold); color: var(--em-dark); }
body button.em-cart-add:focus:not(:focus-visible), body button.em-cart-add:active { background: transparent; color: var(--em-gold-d); }
body button.em-cart__rm, body button.em-cart__rm:focus, body button.em-cart__rm:active { background: transparent; color: var(--em-muted); border: 1px solid var(--em-line); }
body button.em-cart__rm:hover, body button.em-cart__rm:focus-visible { background: #fff6f3; color: #9a3f2c; border-color: #c0573f; }

/* ── 2.56.1 · long FR/DE/PL texts on phones ─────────────────────
   The parent theme sets buttons to white-space: nowrap, so a translated
   label longer than the screen ("AJOUTER AU PANIER — RÉSERVER D'AUTRES
   EXCURSIONS") became the booking column's minimum width and pushed the
   whole form and sidebar off the right edge. Buttons in the booking flow
   wrap instead, and the column itself can no longer be widened by its
   content. */
.em-booking-layout--pay > * { min-width: 0; }
body .em-booking-layout--pay .em-submit-btn,
body .em-booking-layout--pay button.em-cart-add,
body .em-paypanel .btn,
body .em-paypanel a,
body .em-payways .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: break-word;
}
