.lbpb-open{overflow:hidden!important}
.lbpb-backdrop[hidden]{display:none!important}
.lbpb-backdrop{position:fixed;inset:0;z-index:2147483000;background:rgba(0,9,16,.72);display:flex;align-items:flex-end;justify-content:center;padding:12px;box-sizing:border-box}
.lbpb-dialog{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box;width:min(100%,480px);max-height:min(82dvh,700px);overflow:auto;background:#091e29;border:1px solid rgba(54,206,228,.45);box-shadow:0 12px 60px #000a;border-radius:17px;color:#e8f9fa;padding:15px}
.lbpb-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#63dcea;font-size:12px;letter-spacing:.08em;font-weight:800}
.lbpb-dialog .lbpb-close{border:1px solid #42636c;background:#18323d;color:#fff;border-radius:9px;width:34px;height:34px;cursor:pointer}
.lbpb-dialog h3{font-size:16px;line-height:1.3;margin:16px 0 10px;color:#fff}
.lbpb-trip{border:1px solid rgba(69,179,197,.3);background:#102d39;border-radius:12px;padding:12px;margin:9px 0}
.lbpb-triphead{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
.lbpb-triphead span{color:#86d4de;font-size:11px}
.lbpb-hours{font-size:21px;font-weight:850;margin:8px 0;color:white;font-variant-numeric:tabular-nums}
.lbpb-leg{font-size:12px;line-height:1.6;color:#d6eff2}
.lbpb-change{font-size:11px;color:#70e9c1;margin:5px 0}
.lbpb-note,.lbpb-disclaimer{font-size:12px;line-height:1.5;color:#b6ced3}
.lbpb-disclaimer{border-top:1px solid #244b59;margin-top:14px;padding-top:12px}
#homeFavSlot .lb-home-fav-alternative[data-lbpb-attached="1"]{font-weight:800;white-space:nowrap}
@media(min-width:700px){.lbpb-backdrop{align-items:center}}
@media(prefers-reduced-motion:no-preference){.lbpb-dialog{animation:lbpb-enter .16s ease-out}@keyframes lbpb-enter{from{opacity:.75;transform:translateY(10px)}to{opacity:1;transform:none}}}
/* Plan B takes the existing composition grid area, without covering times. */
html[data-lb-v4-live="1"] body.lb-v3 #homeFavSlot .home-fav-row.lbpb-fav-cancelled > :is(.fav-type-wrap,.home-fav-compo-loading),
html[data-lb-v4-live="1"] body.lb-v3 #homeFavSlot .home-fav-row.lbpb-fav-cancelled .lb-home-fav-alternative {
  display: none !important;
}
html[data-lb-v4-live="1"] body.lb-v3 #homeFavSlot .home-fav-row.lbpb-fav-cancelled .lbpb-fav-action {
  grid-area: compo !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 5px 7px !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg,#e44d5c,#bd253a) !important;
  color: #fff !important;
  border: 1px solid #ff8b96 !important;
  border-radius: 9px !important;
  box-shadow: 0 1px 7px #b5263666 !important;
  font: 800 11px/1.1 system-ui,sans-serif !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}
html[data-lb-v4-live="1"] body.lb-v3 #homeFavSlot .home-fav-row.lbpb-fav-cancelled .lbpb-fav-action:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px !important;
}

.lbpb-train-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;margin-top:9px;padding:5px 10px;background:#09384a;border:1px solid #45b9cf;border-radius:8px;color:#8aeeff;font:750 12px/1.2 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.lbpb-train-link:focus-visible{outline:2px solid white;outline-offset:2px}

/* Plan B — same centered BER modal language as Le troupeau en direct.
   Scoped to Plan B: the itinerary search/render logic stays unchanged. */
html[data-lb-v4-live="1"] body.lb-v3 .lbpb-backdrop {
  align-items: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  background: rgba(4,12,20,.78);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
html[data-lb-v4-live="1"] body.lb-v3 .lbpb-dialog {
  width: min(420px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - var(--top-bar-height, 64px) - var(--bottom-bar-height, 84px) - 24px));
  padding: 14px 14px 12px;
  border: 1px solid rgba(0,240,255,.44);
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(12,34,54,.98), rgba(6,14,24,.99));
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 30px rgba(0,220,255,.18), inset 0 0 18px rgba(0,220,255,.20);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
html[data-lb-v4-live="1"] body.lb-v3 .lbpb-dialog header {
  min-height: 30px;
  align-items: flex-start;
  gap: 10px;
  color: #63ecf6;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: 0 0 9px rgba(0,232,248,.20);
}
html[data-lb-v4-live="1"] body.lb-v3 .lbpb-dialog header span { padding-top: 5px; }
html[data-lb-v4-live="1"] body.lb-v3 .lbpb-dialog .lbpb-close.tron-close-button {
  --tron-close-size: 26px;
  flex: 0 0 26px;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  margin-left: auto;
  padding: 0 !important;
  border-radius: 999px !important;
  font-size: 0;
}
html[data-lb-v4-live="1"] body.lb-v3 .lbpb-dialog h3 {
  margin: 12px 0 9px;
  font-size: 15px;
  line-height: 1.35;
}
html[data-lb-v4-live="1"] body.lb-v3 .lbpb-trip {
  background: rgba(3,24,36,.66);
  border: 1px solid rgba(93,221,234,.21);
  border-radius: 11px;
  padding: 11px;
  margin: 8px 0;
}
html[data-lb-v4-live="1"] body.lb-v3 .lbpb-hours { font-family: "Orbitron",system-ui,sans-serif; font-size: 19px; }
@media (max-width:600px) {
  html[data-lb-v4-live="1"] body.lb-v3 .lbpb-dialog {
    width: min(340px, calc(100vw - 24px));
    padding: 12px 12px 10px;
    border-radius: 16px;
  }
  html[data-lb-v4-live="1"] body.lb-v3 .lbpb-dialog header { font-size: 12px; }
}
