/* "Alert me when tickets go on sale" dialog -- 2026-11 redesign (tickets home / rides claim / FoatShare language).
   Native <dialog id="am-dialog" class="am-dlg"> built by $.tb.alertMeClickListener() in js/thefoat-tb.js; body from
   tb2/dsp_alert_me.php. Every selector is under .am-dlg (Bootstrap 2 + theme_bs_tb restyle inputs, buttons, h-tags and
   dialog globally), so this file is self-contained. Hand-edited, like the rest of the site CSS: edit this file directly.
   Cache-bust: loaded with asset_url() next to each thefoat-tb.js layout include. */
.am-dlg {
  --orange: #F47B20; --orange-dark: #D96400; --orange-tint: #FFF3E8; --black: #0D0D0D; --white: #FFFFFF;
  --gray-bg: #F4F4F4; --gray-text: #6B6B6B; --gray-border: #E5E5E5; --green: #1E8E4E; --red: #C62828;
  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; border-radius: 16px;
  width: min(460px, calc(100vw - 32px)); max-width: none; height: fit-content; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--white); color: var(--black); box-shadow: 0 24px 60px rgba(0,0,0,.35);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5; text-align: left; letter-spacing: normal;
  -webkit-font-smoothing: antialiased; z-index: 100000;
}
.am-dlg:not([open]) { display: none; }
.am-dlg::backdrop { background: rgba(13,13,13,.6); }
.am-dlg *, .am-dlg *::before, .am-dlg *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: inherit; text-shadow: none; }
.am-dlg [hidden] { display: none !important; }
.am-dlg .am-card { position: relative; padding: 24px 22px 20px; }

.am-dlg .am-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--gray-text); cursor: pointer; box-shadow: none; }
.am-dlg .am-x:hover { background: var(--gray-bg); color: var(--black); }
.am-dlg .am-x:focus-visible, .am-dlg .am-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.am-dlg .am-head { display: flex; align-items: center; gap: 12px; padding-right: 36px; margin-bottom: 14px; }
.am-dlg .am-bell { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; }
.am-dlg .am-title { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: .02em; text-transform: none; color: var(--black); }

.am-dlg .am-event { margin-bottom: 14px; }
.am-dlg .am-event-t { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.am-dlg .am-event-d { display: block; font-size: 14px; color: var(--gray-text); }

.am-dlg .am-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.am-dlg .am-tile { background: var(--black); color: var(--white); border-radius: 10px; padding: 10px 4px 8px; text-align: center; }
.am-dlg .am-tile b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.am-dlg .am-tile small { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A8A8A8; }
.am-dlg .am-live { grid-column: 1 / -1; background: var(--orange-tint); color: var(--orange-dark); border-radius: 10px; padding: 12px; text-align: center; font-weight: 600; }
.am-dlg .am-onsale { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--gray-text); }

.am-dlg .am-form { margin-top: 16px; }
.am-dlg .am-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.am-dlg .am-input { display: block; width: 100%; height: 46px; padding: 0 14px; border: 1px solid #CFCFCF; border-radius: 6px; background: var(--white);
  color: var(--black); font-size: 16px; line-height: 1.2; box-shadow: none; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.am-dlg .am-input:invalid, .am-dlg .am-input:user-invalid { color: var(--black); border-color: #CFCFCF; box-shadow: none; outline: 0; }
/* Bootstrap 2 / theme_bs_tb paints input:focus:required:invalid red; an empty required field is not an error here */
.am-dlg .am-input:focus, .am-dlg .am-input:focus:required:invalid, .am-dlg .am-input:focus:required:invalid:focus { outline: 0; color: var(--black); border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,.25); }
.am-dlg .am-input.am-bad, .am-dlg .am-input.am-bad:invalid, .am-dlg .am-input.am-bad:focus:required:invalid { border-color: var(--red); box-shadow: none; }
.am-dlg .am-ts { margin-top: 14px; min-height: 0; max-width: 100%; overflow: hidden; }
.am-dlg .am-err { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: #FDECEC; color: #8E1C1C; font-size: 14px; line-height: 1.4; }

.am-dlg .am-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.am-dlg .am-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1; text-transform: none; text-shadow: none; box-shadow: none; background-image: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; }
.am-dlg .am-btn-ghost { background: var(--white); color: var(--black); border-color: #CFCFCF; }
.am-dlg .am-btn-ghost:hover { background: var(--gray-bg); }
.am-dlg .am-btn-go { background: var(--orange); color: var(--white); border-color: var(--orange); }
.am-dlg .am-btn-go:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.am-dlg .am-btn[disabled] { opacity: .65; cursor: default; }
.am-dlg .am-fine { margin-top: 14px; font-size: 13px; color: var(--gray-text); text-align: right; }

.am-dlg .am-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 0 30px; color: var(--gray-text); font-size: 15px; }
.am-dlg .am-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--gray-border); border-top-color: var(--orange); animation: am-spin .8s linear infinite; }
.am-dlg .am-msg { padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.4; }
.am-dlg .am-msg-err { background: #FDECEC; color: #8E1C1C; }

.am-dlg .am-done { text-align: center; padding: 6px 0 0; }
.am-dlg .am-check { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; }
.am-dlg .am-done-h { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: .02em; text-transform: none; color: var(--black); }
.am-dlg .am-done-p { margin-top: 8px; font-size: 15px; color: #444; overflow-wrap: anywhere; }
.am-dlg .am-btns-one .am-btn { min-width: 140px; }
.am-dlg .am-btns-one { justify-content: center; }

@keyframes am-spin { to { transform: rotate(360deg); } }
@keyframes am-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes am-fade { from { opacity: 0; } to { opacity: 1; } }
.am-dlg[open] { animation: am-pop .18s ease-out; }
.am-dlg[open]::backdrop { animation: am-fade .18s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .am-dlg[open], .am-dlg[open]::backdrop { animation: none; }
  .am-dlg .am-spin { animation-duration: 2s; }
}
@media (max-width: 480px) {
  .am-dlg .am-card { padding: 22px 16px 16px; }
  .am-dlg .am-btns { flex-direction: column-reverse; }
  .am-dlg .am-btn { width: 100%; }
  .am-dlg .am-fine { text-align: center; }
  .am-dlg .am-tile b { font-size: 30px; }
}

/* After a successful sign-up the page's Alert Me button is marked .disabled (+ aria-disabled). The site-wide
   .btn.disabled { pointer-events: none } would make the "you're already on the list" re-click unreachable, so the
   button stays clickable (it only opens the "already set" state). */
.alert-me-event.disabled[aria-disabled="true"] { pointer-events: auto; cursor: default; }
