.sportsmarkers-template-auth {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 9, 0.88);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: Inter, Arial, sans-serif;
}

.sportsmarkers-template-auth[data-auth-state="signed-in"],
.sportsmarkers-template-auth[data-auth-state="signed-out"] {
  display: flex;
}

.sportsmarkers-template-auth[data-auth-state="signed-in"]
  .sportsmarkers-template-auth__signin,
.sportsmarkers-template-auth[data-auth-state="signed-in"]
  .sportsmarkers-template-auth__signup,
.sportsmarkers-template-auth[data-auth-state="signed-out"]
  .sportsmarkers-template-auth__select {
  display: none;
}

html[data-sportsmarkers-embedded="true"] .sportsmarkers-template-auth {
  display: none !important;
}

/* A customer-facing, published portfolio is not a marketing preview. */
html[data-sportsmarkers-published="true"] .sportsmarkers-template-auth {
  display: none !important;
}

.sportsmarkers-template-auth a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.sportsmarkers-template-auth a:hover {
  transform: translateY(-1px);
}

.sportsmarkers-template-auth a:focus-visible {
  outline: 3px solid rgba(111, 255, 83, 0.48);
  outline-offset: 2px;
}

.sportsmarkers-template-auth__signin {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.sportsmarkers-template-auth__signin:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.sportsmarkers-template-auth__signup {
  border: 1px solid #6fff53;
  color: #071006;
  background: #6fff53;
}

.sportsmarkers-template-auth__signup:hover {
  border-color: #8cff74;
  background: #8cff74;
}

.sportsmarkers-template-auth__select {
  border: 1px solid #6fff53;
  color: #071006;
  background: #6fff53;
}

.sportsmarkers-template-auth__select:hover {
  border-color: #8cff74;
  background: #8cff74;
}

@media (max-width: 520px) {
  .sportsmarkers-template-auth {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 5px;
    padding: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100vw - 24px);
  }

  .sportsmarkers-template-auth a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sportsmarkers-template-auth a {
    transition: none;
  }
}

@media print {
  .sportsmarkers-template-auth {
    display: none;
  }
}
