.page-floating-actions {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.page-floating-actions > * {
  pointer-events: auto;
}

.page-floating-sign-in {
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  background: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
  color: #ffffff;
}

.page-floating-sign-in:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.page-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--ink, #0f172a);
  cursor: pointer;
}

.page-back-to-top__icon {
  display: block;
}

.page-back-to-top:hover,
.page-back-to-top:focus-visible {
  border-color: var(--accent, #2563eb);
  color: var(--accent, #2563eb);
  outline: none;
}

.page-back-to-top[hidden] {
  display: none;
}

body:has(.cookie-consent:not([hidden])) .page-floating-actions {
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 5.5rem);
}
