html.ws-bot-check-active,
html.ws-bot-check-active body {
  overflow: hidden;
}

html.ws-bot-passed #ws-bot-check {
  display: none !important;
}

#ws-bot-check {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f7fb;
  color: #313131;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ws-bot-check__panel {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 28px 28px 22px;
}

.ws-bot-check__lead {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #4a4a4a;
}

.ws-bot-check__status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fafafa;
}

.ws-bot-check__status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
}

.ws-bot-check__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e0e0e0;
  border-top-color: #f6821f;
  border-radius: 50%;
  animation: ws-bot-spin 0.9s linear infinite;
  flex: 0 0 auto;
}

.ws-bot-check__status-text {
  font-size: 14px;
  line-height: 1.45;
  color: #313131;
}

.ws-bot-check__challenge {
  display: none;
  align-items: center;
  gap: 12px;
}

.ws-bot-check__challenge.is-visible {
  display: flex;
}

.ws-bot-check__checkbox-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.ws-bot-check__checkbox {
  appearance: none;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 2px solid #c7c7c7;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.ws-bot-check__checkbox:checked {
  border-color: #2ecc71;
  background: #2ecc71;
}

.ws-bot-check__checkbox:checked::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 7px;
  height: 14px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.ws-bot-check__checkbox:disabled {
  cursor: default;
  opacity: 0.85;
}

.ws-bot-check__label {
  font-size: 14px;
  line-height: 1.4;
  color: #313131;
  user-select: none;
}

.ws-bot-check__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ececec;
  font-size: 12px;
  line-height: 1.5;
  color: #6b6b6b;
}

.ws-bot-check__ray {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  color: #888;
}

.ws-bot-check__panel--blocked {
  display: none;
  text-align: center;
}

.ws-bot-check__blocked-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.ws-bot-check__blocked-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4a4a4a;
}

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

@media (max-width: 480px) {
  .ws-bot-check__panel {
    padding: 22px 18px 18px;
  }
}
