/* Shared floating navigation on Site, Blog and GPTHub. */
.cp-floating-nav {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(72px, calc(env(safe-area-inset-bottom) + 60px));
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-floating-nav__button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c8d7ed;
  border-radius: 13px;
  background: #fff;
  color: #19467d;
  box-shadow: 0 4px 16px rgba(13, 42, 79, .16);
  opacity: .96;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.cp-floating-nav__button svg { display: block; width: 22px; height: 22px; pointer-events: none; }
.cp-floating-nav__button:hover { background: #174d89; color: #fff; transform: translateY(-1px); }
.cp-floating-nav__button:focus-visible { outline: 3px solid #f0b347; outline-offset: 2px; }
.cp-floating-nav__button:active { transform: translateY(0); }
@media (max-width: 640px) {
  .cp-floating-nav {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 60px));
    gap: 7px;
  }
  .cp-floating-nav__button { width: 40px; height: 40px; border-radius: 12px; }
  .cp-floating-nav__button svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-floating-nav__button { transition: none; }
}
@media print { .cp-floating-nav { display: none !important; } }

/* Keep the privacy consent banner unobstructed until the visitor chooses. */
body:has(#cy-privacy-root .cy-privacy-banner:not([hidden])) .cp-floating-nav { display: none; }
