.trip-gps-open {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #28716e;
  color: #fff;
  padding: 8px 12px;
  font: 850 11px/1 Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.trip-gps-tracking {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid #b8d9c8;
  border-radius: 999px;
  background: #f4fff8;
  color: #17613f;
  padding: 8px 11px;
  font: 900 10px/1 Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trip-gps-tracking[hidden] {
  display: none;
}

.trip-gps-tracking > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #18a05e;
  box-shadow: 0 0 0 0 #18a05e80;
  animation: trip-gps-pulse 1.4s ease-out infinite;
}

@keyframes trip-gps-pulse {
  0% { box-shadow: 0 0 0 0 #18a05e80; opacity: 1; }
  70% { box-shadow: 0 0 0 7px #18a05e00; opacity: .75; }
  100% { box-shadow: 0 0 0 0 #18a05e00; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .trip-gps-tracking > span {
    animation: none;
  }
}

.trip-gps-box {
  position: absolute;
  z-index: 650;
  top: 70px;
  right: 12px;
  width: min(360px, calc(100% - 24px));
  max-height: calc(100% - 84px);
  overflow: auto;
  border: 1px solid #ffffffd8;
  border-radius: 15px;
  background: #fffffff5;
  padding: 12px;
  box-shadow: 0 16px 42px #14282f4d;
  backdrop-filter: blur(10px);
}

.trip-gps-box[hidden] {
  display: none;
}

.trip-gps-head,
.trip-gps-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trip-gps-head strong {
  color: #a94e35;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.trip-gps-head button {
  width: 32px;
  height: 32px;
  border: 1px solid #cad3d0;
  border-radius: 50%;
  background: #fff;
  color: #294149;
  font-size: 18px;
  cursor: pointer;
}

.trip-gps-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d6dddd;
}

.trip-gps-toggle,
.trip-gps-center {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font: 850 12px/1 Arial, sans-serif;
  cursor: pointer;
}

.trip-gps-toggle {
  flex: 1;
  background: #176f86;
  color: #fff;
}

.trip-gps-center {
  background: #e4ecec;
  color: #31525b;
}

.trip-gps-center[hidden] {
  display: none;
}

.trip-gps-status {
  margin: 8px 0 0;
  color: #56686d;
  font-size: 11px;
  line-height: 1.4;
}

.trip-live-shell {
  border: 0;
  background: transparent;
}

.trip-live-dot {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #168ad3;
  box-shadow: 0 2px 10px #0006;
}

.trip-live-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 3px solid #168ad388;
  border-radius: 50%;
}

@media (max-width: 660px) {
  .trip-gps-box {
    top: 112px;
    right: 8px;
    width: calc(100% - 16px);
    max-height: calc(100% - 122px);
  }
}
