/* First-run coachmarks, and the standing highlight on the AI chat button. */

.coachmark {
  position: fixed;
  z-index: 1200;
  width: min(17rem, calc(100vw - 1rem));
  padding: 0.85rem 1rem;
  background: #0e3833;
  color: #e8f2f0;
  border: 1px solid rgba(232, 242, 240, 0.16);
  border-radius: 0.9rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  font-size: 0.85rem;
  line-height: 1.45;
}

.coachmark__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.coachmark__count {
  color: rgba(232, 242, 240, 0.55);
  font-size: 0.75rem;
}

.coachmark__buttons {
  display: flex;
  gap: 0.4rem;
}

/* 44px tap targets: this is the only way out of the sequence on a phone. */
.coachmark__btn {
  min-height: 44px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #ffb000;
  color: #241a02;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.coachmark__btn--ghost {
  background: transparent;
  color: rgba(232, 242, 240, 0.7);
}

.coachmark-target {
  position: relative;
  z-index: 1201;
  border-radius: 0.6rem;
  box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.85);
}

/* The AI chat button carries a standing rainbow edge: it is the newest and
   least discoverable thing on the page, and an icon in a row of icons reads
   as one more icon. */
.trip-action-icon--ai {
  position: relative;
}

.trip-action-icon--ai::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(120deg, #00ff75, #3700ff, #ff00c8, #ffb000);
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: trip-ai-sheen 6s ease infinite;
}

@keyframes trip-ai-sheen {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trip-action-icon--ai::after {
    animation: none;
  }
}
