.biometric-button {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.biometric-button:hover {
  background-color: #f7f7f7;
}

.biometric-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-family: 'FK Olympikus Upright', sans-serif;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background-color: #000;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.biometric-action-btn:hover {
  background-color: var(--color-primary, #2735d4);
}

.biometric-action-btn:active {
  transform: scale(0.96);
}

.biometric-stage {
  flex-direction: column;
  background-color: #0c0c0c;
}

.biometric-stage:not(.hidden) {
  display: flex;
}

.biometric-video-container {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

@media (min-width: 768px) {
  .biometric-video-container {
    aspect-ratio: auto;
    height: min(56vh, 30rem);
  }
}

.biometric-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.biometric-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biometric-photo--mirrored {
  transform: scaleX(-1);
}

.biometric-steps {
  margin: 0;
  padding: 1.25rem 1.5rem 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.biometric-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.4);
}

.biometric-step::before {
  content: "";
  flex: none;
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.biometric-step[data-state="current"] {
  color: #fff;
}

.biometric-step[data-state="current"]::before {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: biometric-spin 0.8s linear infinite;
}

.biometric-step[data-state="done"] {
  color: rgba(255, 255, 255, 0.7);
}

.biometric-step[data-state="done"]::before {
  border-color: #fff;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 0.75rem no-repeat;
}

.biometric-queue-note {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
}

.biometric-thumb {
  width: 5rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.5rem;
  background-color: #000;
}

@keyframes biometric-spin {
  to {
    transform: rotate(360deg);
  }
}

.biometric-face-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.biometric-face-overlay::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  height: 66%;
  aspect-ratio: 0.78;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

.biometric-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 3rem 1rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.biometric-shutter-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem 1.5rem;
}

.biometric-shutter {
  --size: 4rem;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.biometric-shutter-core {
  width: calc(var(--size) - 0.75rem);
  height: calc(var(--size) - 0.75rem);
  border-radius: 50%;
  background: #fff;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

.biometric-shutter:not(:disabled):active .biometric-shutter-core {
  transform: scale(0.96);
}

.biometric-shutter:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.biometric-shutter:disabled {
  border-color: rgba(255, 255, 255, 0.25);
  cursor: wait;
}

.biometric-shutter:disabled .biometric-shutter-core {
  background: rgba(255, 255, 255, 0.2);
}

.biometric-shutter-label {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
