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

.wicketkeeper {
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 0.6rem;
  width: 100%;
  max-width: 300px;
  height: 65px;
  padding: 0 0.8rem;
  cursor: pointer;
  font-family: Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  user-select: none;
  pointer-events: auto;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #202124;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.wicketkeeper[aria-disabled="true"],
.wicketkeeper.loading {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}
.wicketkeeper-indicator {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #d9d9d9;
}
.wicketkeeper-spinner {
  display: none;
  position: absolute;
  inset: 0;
  animation: wk-spin 0.8s linear infinite;
  border-radius: 50%;
  border: 3px solid #8c8c8c;
}
.wicketkeeper-check {
  display: none;
}
.wicketkeeper.success .wicketkeeper-check,
.wicketkeeper.loading .wicketkeeper-spinner {
  display: inline;
}
.wicketkeeper-message {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .wicketkeeper {
    border-color: #fff;
    background: #1e1e1e;
    color: #e7e7e7;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.08);
  }
  .wicketkeeper-indicator {
    border-color: #fff;
  }
  .wicketkeeper.loading .wicketkeeper-indicator .wicketkeeper-spinner {
    border: 3px solid #b0b0b0;
  }
}
/* force light mode */
.wk-light .wicketkeeper,
.wicketkeeper.wk-light {
  border-color: #d9d9d9;
  background: #fff;
  color: #202124;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.wk-light .wicketkeeper-indicator {
  border-color: #d9d9d9;
}
.wk-light .wicketkeeper-spinner {
  border: 3px solid #8c8c8c;
}
/* force dark mode */
.wk-dark .wicketkeeper,
.wicketkeeper.wk-dark {
  border-color: #fff;
  background: #1e1e1e;
  color: #e7e7e7;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.08);
}
.wk-dark .wicketkeeper-indicator {
  border-color: #fff;
}
.wk-dark .wicketkeeper-spinner {
  border: 3px solid #b0b0b0;
}

.wicketkeeper-spinner {
  border-top-color: transparent !important;
}
.wicketkeeper.error {
  border-color: #e74c3c;
}
.wicketkeeper.success {
  border-color: #2ecc71;
}
.wicketkeeper.success .wicketkeeper-indicator {
  background: #2ecc71;
  border-color: #2ecc71;
}
