:root {
  --tpp-ebh-blue: #316ff6;
  --tpp-ebh-navy: #0b1f3a;
  --tpp-ebh-light: #eaf2ff;
  --tpp-ebh-white: #ffffff;
  --tpp-ebh-muted: #5e6b7b;
  --tpp-ebh-border: rgba(49, 111, 246, 0.2);
  --tpp-ebh-shadow: 0 28px 80px rgba(11, 31, 58, 0.24);
}

html.tpp-ebh-lock,
html.tpp-ebh-lock body {
  overflow: hidden !important;
}

.tpp-ebh-root,
.tpp-ebh-root * {
  box-sizing: border-box;
}

.tpp-ebh-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.tpp-ebh-root.is-visible {
  opacity: 1;
  visibility: visible;
}

.tpp-ebh-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 39, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tpp-ebh-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--tpp-ebh-white);
  color: var(--tpp-ebh-navy);
  border: 1px solid var(--tpp-ebh-border);
  border-radius: 24px;
  box-shadow: var(--tpp-ebh-shadow);
  padding: 28px;
  outline: none;
  transform: translateY(24px);
  transition: transform 220ms ease;
}

.tpp-ebh-root.is-visible .tpp-ebh-dialog {
  transform: translateY(0);
}

.tpp-ebh-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f2f5fa;
  color: var(--tpp-ebh-navy);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.tpp-ebh-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--tpp-ebh-blue);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.tpp-ebh-plane {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--tpp-ebh-light);
}

.tpp-ebh-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 7px 11px;
  background: var(--tpp-ebh-light);
  color: #2457c5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tpp-ebh-dialog h1 {
  margin: 0 0 12px;
  color: var(--tpp-ebh-navy);
  font-size: clamp(25px, 6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.tpp-ebh-dialog > p,
.tpp-ebh-dialog #tpp-ebh-message {
  margin: 0 0 22px;
  color: var(--tpp-ebh-muted);
  font-size: 16px;
  line-height: 1.58;
}

.tpp-ebh-primary,
.tpp-ebh-secondary,
.tpp-ebh-continue {
  width: 100%;
  min-height: 52px;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.tpp-ebh-primary {
  border: 1px solid var(--tpp-ebh-blue);
  background: var(--tpp-ebh-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(49, 111, 246, 0.28);
}

.tpp-ebh-secondary {
  border: 1px solid var(--tpp-ebh-border);
  background: var(--tpp-ebh-light);
  color: var(--tpp-ebh-navy);
}

.tpp-ebh-continue {
  min-height: 42px;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #526174;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tpp-ebh-primary:active,
.tpp-ebh-secondary:active {
  transform: translateY(1px);
}

.tpp-ebh-primary:focus-visible,
.tpp-ebh-secondary:focus-visible,
.tpp-ebh-continue:focus-visible,
.tpp-ebh-close:focus-visible {
  outline: 3px solid rgba(49, 111, 246, 0.32);
  outline-offset: 2px;
}

.tpp-ebh-help,
.tpp-ebh-copy-status,
.tpp-ebh-note {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--tpp-ebh-muted) !important;
}

.tpp-ebh-help {
  margin: 12px 4px 0 !important;
  text-align: center;
}

.tpp-ebh-copy-status {
  min-height: 20px;
  margin: 10px 4px 0 !important;
  text-align: center;
}

.tpp-ebh-note {
  margin: 8px 0 0 !important;
  text-align: center;
}

.tpp-ebh-steps {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.tpp-ebh-steps > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--tpp-ebh-border);
  border-radius: 14px;
  background: #f9fbff;
}

.tpp-ebh-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--tpp-ebh-blue);
  color: #fff;
  font-weight: 850;
}

.tpp-ebh-steps p {
  margin: 0;
  color: var(--tpp-ebh-navy);
  font-size: 15px;
  line-height: 1.45;
}

.tpp-ebh-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(49,111,246,.18), transparent 36%),
    linear-gradient(145deg, #f7faff, #eef4ff 55%, #ffffff);
}

.tpp-ebh-root.is-standalone {
  position: relative;
  inset: auto;
  z-index: auto;
  min-height: auto;
  width: 100%;
  padding: 0;
  align-items: center;
  opacity: 1;
  visibility: visible;
}

.tpp-ebh-root.is-standalone .tpp-ebh-backdrop,
.tpp-ebh-root.is-standalone .tpp-ebh-close {
  display: none;
}

.tpp-ebh-root.is-standalone .tpp-ebh-dialog {
  max-height: none;
  transform: none;
}

@media (min-width: 640px) {
  .tpp-ebh-root:not(.is-standalone) {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpp-ebh-root,
  .tpp-ebh-dialog,
  .tpp-ebh-primary,
  .tpp-ebh-secondary {
    transition: none !important;
  }
}
