/* ==========================================================================
 * clone.css — overlay, stopwatch badge, injected card form, validation states
 * Layered on top of the captured Ticketmaster checkout markup.
 * ========================================================================== */

:root {
  --tm-blue: #026cdf;
  --tm-green: #1d8a3f;
  --tm-green-hover: #176e32;
  --tm-red: #c0392b;
  --tm-border: #c4c9d0;
  --tm-text: #15151a;
  --tm-muted: #5a6068;
  --cl-font: Averta, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* hide OneTrust cookie banner / consent overlay if it renders */
#onetrust-consent-sdk,
#onetrust-banner-sdk,
.onetrust-pc-dark-filter { display: none !important; }

/* hide the empty Rokt offers widget (loads via stripped JS → blank gap) */
[class*="RoktWrapper"] { display: none !important; }

/* TM ships `body{overflow:hidden}` (it scrolls via a React inner container that
   no longer exists once JS is stripped) — restore normal page scrolling.
   Only `html` scrolls; `body` stays overflow:visible so it doesn't break the
   right summary column's `position: sticky` (a non-visible overflow on a
   non-scrolling ancestor silently disables sticky in Chrome). */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
}
body {
  overflow: visible !important;
  height: auto !important;
}

/* remove the frozen 07:21 hold timer baked into the captured header */
[role="timer"],
[class*="TimerContainer-sc-y294cn"] { display: none !important; }

/* ---------- Start overlay ---------------------------------------------- */
#cl-start-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(8, 10, 16, 0.92);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cl-font);
  -webkit-font-smoothing: antialiased;
}
#cl-start-overlay.cl-hidden { display: none; }
.cl-start-card {
  background: #fff; border-radius: 12px; padding: 40px 44px;
  width: 420px; max-width: 90vw; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.cl-start-card .cl-logo {
  font-weight: 800; font-size: 22px; letter-spacing: -0.4px;
  color: var(--tm-text); margin-bottom: 6px;
}
.cl-start-card h1 { font-size: 24px; margin: 14px 0 8px; color: var(--tm-text); }
.cl-start-card p { font-size: 14px; color: var(--tm-muted); line-height: 1.5; margin: 0 0 26px; }
#cl-start-btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--tm-green); color: #fff;
  font-family: var(--cl-font); font-weight: 700; font-size: 16px;
  padding: 14px 40px; border-radius: 6px; transition: background .15s;
}
#cl-start-btn:hover { background: var(--tm-green-hover); }

/* ---------- Stopwatch badge ------------------------------------------- */
#cl-stopwatch {
  position: fixed; top: 64px; right: 18px; z-index: 99990;
  background: var(--tm-blue); color: #fff;
  font-family: var(--cl-font);
  border-radius: 10px; padding: 9px 14px;
  box-shadow: 0 6px 18px rgba(2,108,223,0.4);
  display: none; align-items: center; gap: 9px; user-select: none;
}
#cl-stopwatch.cl-show { display: flex; }
#cl-stopwatch.cl-done { background: var(--tm-green); box-shadow: 0 6px 18px rgba(29,138,63,0.4); }
#cl-stopwatch .cl-sw-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .8px; opacity: .85;
}
#cl-stopwatch .cl-sw-time {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  font-size: 19px; font-weight: 700; line-height: 1;
}
#cl-stopwatch .cl-sw-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: cl-pulse 1s infinite ease-in-out;
}
#cl-stopwatch.cl-done .cl-sw-dot { animation: none; }
@keyframes cl-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* collapse TM's now-empty FanWallet payment containers (iframe is hidden) */
[data-tid="payment-section"] iframe,
[class*="FanWalletContainer"] { display: none !important; }
[class*="FanWalletMainContainer"],
[class*="FanWalletWrapper"],
[class*="ContentContainer-sc-fex1it"] {
  min-height: 0 !important; height: auto !important;
}

/* ---------- Injected card form --------------------------------------- */
.cl-card-wrap { font-family: var(--cl-font); margin-top: 8px; }
.cl-card-heading {
  font-family: var(--cl-font); font-weight: 700; font-size: 16px;
  color: var(--tm-text); margin: 4px 0 14px;
}
#cl-add-card-btn {
  appearance: none; cursor: pointer; background: #fff;
  border: 1px solid var(--tm-blue); color: var(--tm-blue);
  font-family: var(--cl-font); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 6px; transition: background .12s;
}
#cl-add-card-btn:hover { background: #f0f6ff; }
#cl-card-form { display: none; }
#cl-card-form.cl-open { display: block; }

.cl-row { display: flex; gap: 16px; margin-bottom: 16px; }
.cl-field { flex: 1; min-width: 0; margin-bottom: 16px; }
.cl-row .cl-field { margin-bottom: 0; }
.cl-field label {
  display: block; font-size: 13px; color: var(--tm-text);
  margin-bottom: 6px; font-weight: 400;
}
.cl-inputwrap { position: relative; }
.cl-field input,
.cl-field select {
  width: 100%; box-sizing: border-box;
  font-family: var(--cl-font); font-size: 15px; color: var(--tm-text);
  padding: 11px 38px 11px 12px; border: 1px solid var(--tm-border);
  border-radius: 4px; background: #fff; outline: none; transition: border-color .12s;
}
.cl-field select { padding-right: 30px; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23026cdf' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }
.cl-field input:focus,
.cl-field select:focus { border-color: var(--tm-blue); }

/* valid / invalid states + icons */
.cl-field .cl-tick, .cl-field .cl-cross {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; display: none; pointer-events: none;
}
.cl-field.cl-valid .cl-tick { display: block; }
.cl-field.cl-invalid .cl-cross { display: block; }
.cl-field.cl-valid input,
.cl-field.cl-valid select { border-color: var(--tm-green); }
.cl-field.cl-invalid input,
.cl-field.cl-invalid select { border-color: var(--tm-red); }
.cl-error {
  display: none; color: var(--tm-red); font-size: 12px; margin-top: 5px;
}
.cl-field.cl-invalid .cl-error { display: block; }
.cl-hint { color: var(--tm-muted); font-size: 12px; margin-top: 5px; }

.cl-check-line { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 2px; font-size: 14px; color: var(--tm-text); }
.cl-check-line input { margin-top: 2px; }

/* ---------- ADD PARKING (hand-rebuilt) ------------------------------- */
.cl-parking-card {
  font-family: var(--cl-font); background: #fff; margin: 24px 0;
  box-shadow: rgba(18, 18, 18, 0.18) 0 3px 12px 0;
}
.cl-parking-header {
  background: #024ddf; color: #fff; font-weight: 800; font-size: 20px;
  letter-spacing: .2px; padding: 18px 24px;
}
.cl-parking-body { padding: 24px; }
.cl-limited {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #cfd6e4; border-radius: 6px; padding: 16px;
  font-size: 15px; color: var(--tm-text); margin-bottom: 22px;
}
.cl-info-i {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: #024dff; color: #fff; font-style: italic; font-weight: 700;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.cl-park-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--tm-text); margin-bottom: 6px; }
.cl-park-desc { font-size: 14px; color: var(--tm-muted); margin: 4px 0 12px; line-height: 1.5; }
.cl-park-desc a, .cl-spothero-terms a { color: var(--tm-blue); text-decoration: underline; font-weight: 600; }
.cl-badge-rec {
  display: inline-block; background: #8a1fe0; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  padding: 4px 9px; border-radius: 3px; margin-bottom: 14px;
}
.cl-park-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; border-top: 1px solid #ececec;
}
.cl-item-firstline { border-top: 0; }
.cl-gname { font-weight: 700; font-size: 15px; color: var(--tm-text); }
.cl-walk { font-size: 14px; color: var(--tm-text); margin-bottom: 2px; }
.cl-gprice { font-size: 14px; color: var(--tm-text); margin-top: 2px; }
.cl-park-hr { border: 0; border-top: 1px solid #ececec; margin: 18px 0; }
.cl-spothero-row { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.cl-spothero-logo {
  background: #1f8fff; color: #fff; border-radius: 6px; padding: 8px 12px;
  display: flex; flex-direction: column; align-items: center; line-height: 1; width: 84px;
}
.cl-spothero-logo span { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.cl-spothero-logo strong { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.cl-spothero-title { font-weight: 700; font-size: 16px; color: var(--tm-text); }
.cl-spothero-terms { font-size: 13px; color: var(--tm-muted); margin-top: 14px; line-height: 1.5; }
.cl-stepper {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0;
  border-radius: 22px; box-shadow: rgba(18,18,18,0.16) 0 2px 8px; background: #fff;
}
.cl-step {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1; background: #fff; color: var(--tm-text);
}
.cl-step.cl-plus { background: var(--tm-blue); color: #fff; font-weight: 600; }
.cl-step-val { min-width: 34px; text-align: center; font-weight: 700; font-size: 16px; }

/* ---------- Success modal -------------------------------------------- */
#cl-success {
  position: fixed; inset: 0; z-index: 100001; display: none;
  align-items: center; justify-content: center;
  background: rgba(8,10,16,0.9); font-family: var(--cl-font);
}
#cl-success.cl-show { display: flex; }
.cl-success-card {
  background: #fff; border-radius: 12px; padding: 40px 44px; text-align: center;
  width: 440px; max-width: 90vw; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.cl-success-card .cl-checkmark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--tm-green);
  margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
}
.cl-success-card h2 { font-size: 22px; margin: 0 0 6px; color: var(--tm-text); }
.cl-success-card p { font-size: 14px; color: var(--tm-muted); margin: 0 0 18px; }
.cl-success-card .cl-elapsed {
  font-size: 40px; font-weight: 800; color: var(--tm-green);
  font-variant-numeric: tabular-nums; margin: 6px 0 22px;
}
#cl-restart-btn {
  appearance: none; border: 1px solid var(--tm-border); cursor: pointer;
  background: #fff; color: var(--tm-text); font-family: var(--cl-font);
  font-weight: 600; font-size: 14px; padding: 10px 22px; border-radius: 6px;
}
#cl-restart-btn:hover { background: #f3f4f6; }
