/* /mobile_pass/tour.css */

.tr-tour-launch {
  position: fixed;
  left: 12px;
  bottom: 78px; /* sits above the footer disclaimer */
  z-index: 2147483000;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.86);
  color: #fff;
  font: 900 12px/1 "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  clip-path: polygon(
	10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px),
	calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px
  );
}
.tr-tour-launch:active { transform: scale(.98); }

.tr-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: none;
}
.tr-tour-overlay.is-open { display: block; }

/* SVG dim + spotlight */
.tr-tour-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* outline around the hole */
.tr-tour-outline {
  stroke: rgba(183, 0, 255, .95);
  stroke-width: 3;
  fill: none;
}

/* Bottom sheet card */
.tr-tour-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  max-width: 520px;
  margin: 0 auto;
  bottom: calc(12px + env(safe-area-inset-bottom));


  background: rgba(0,0,0,.92);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 14px 14px 12px;

  clip-path: polygon(
	14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px),
	calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px
  );
}

.tr-tour-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.tr-tour-kicker {
  font: 900 12px/1 "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #b7ff00;
  opacity: .95;
}

.tr-tour-close {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font: 900 18px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1;
}

.tr-tour-title {
  font: 950 14px/1.2 "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tr-tour-body {
  font: 500 14px/1.35 "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  opacity: .96;
}

.tr-tour-foot {
  margin-top: 10px;
  font: 600 11px/1.35 "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  opacity: .80;
  color: #ddd;
}

.tr-tour-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.tr-tour-btn {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  font: 900 12px/1 "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
}
.tr-tour-btn.primary {
  border-color: rgba(183, 0, 255, .55);
  background: rgba(183, 0, 255, .22);
}


/* When highlighting the footer disclaimer, move the tour card above it */
.tr-tour-overlay.above-disclaimer .tr-tour-card{
  bottom: calc(88px + env(safe-area-inset-bottom)); /* tweak 88px if your disclaimer wraps taller */
}


/* ================= TOUR: ensure NOTHING sits above the dim layer ================= */
/* Some of your UI uses very large z-index values. When the tour is open, force
   key fixed elements underneath the overlay so they dim correctly. */
.tr-tour-overlay {
	 position: fixed;
	 inset: 0;
	 z-index: 2147483647 !important; /* top-most */
	 display: none;
   }
   .tr-tour-overlay.is-open { display: block; }

