/*
 * open-in-browser
 *
 * Styles of the guide overlay. Everything is prefixed with `halo-oib` to avoid
 * clashing with theme styles, and no theme CSS variable is required.
 */
.halo-oib {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(10, 12, 16, 0.88);
  color: #fff;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.halo-oib--visible {
  opacity: 1;
}

.halo-oib__hint {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.halo-oib__hint--top-right {
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 14px;
}

.halo-oib__hint--bottom-right {
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  flex-direction: column-reverse;
}

.halo-oib__dots {
  min-width: 40px;
  padding: 2px 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 1px;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.25);
}

.halo-oib__arrow {
  color: #ffd166;
  font-size: 26px;
  line-height: 1;
  animation: halo-oib-bob 1.4s ease-in-out infinite;
}

.halo-oib__hint--bottom-right .halo-oib__arrow {
  animation-name: halo-oib-bob-down;
}

.halo-oib__hint-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  letter-spacing: 1px;
}

.halo-oib__body {
  max-width: 340px;
}

.halo-oib__title {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.halo-oib__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.8;
}

.halo-oib__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.halo-oib__btn {
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.halo-oib__btn:active {
  transform: scale(0.96);
}

.halo-oib__btn--primary {
  background: #fff;
  color: #111;
  font-weight: 600;
}

.halo-oib__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.halo-oib__toast {
  position: fixed;
  left: 50%;
  bottom: 15%;
  z-index: 2147483001;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 14px;
  transform: translateX(-50%);
}

@keyframes halo-oib-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes halo-oib-bob-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
