:root {
  --ws-primary-color: #014fa2;
  --ws-secondary-color: #df0616;
  --ws-loader-overlay: rgba(1, 79, 162, 0.08);
}

body.ws-shindan {
  background-color: var(--surface-white, #ffffff);
  color: var(--text-black, #0f172a);
}

.no-js .p-result__loader {
  display: none !important;
}

.p-question-shell,
.p-question-shell__mount {
  width: 100%;
}

.p-question__notice {
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  background: var(--ws-loader-overlay);
  color: var(--ws-primary-color);
}

.p-question__notice.is-error {
  background: rgba(223, 6, 22, 0.08);
  color: var(--ws-secondary-color);
}

.p-question__notice.is-info {
  background: rgba(1, 79, 162, 0.06);
}

.p-question__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.p-question__answers [role='button'] {
  cursor: pointer;
}

.p-question__answers [role='button']:focus-visible {
  outline: 2px solid var(--ws-primary-color);
  outline-offset: 6px;
}

.p-question__loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.p-question__loader-spinner {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 0.35rem solid rgba(1, 79, 162, 0.2);
  border-top-color: var(--ws-primary-color);
  animation: ws-spin 1s linear infinite;
}

.p-question__loader-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ws-primary-color);
}

.p-result__loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9999;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.p-result__loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.p-result__loader-spinner {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 0.35rem solid rgba(1, 79, 162, 0.2);
  border-top-color: var(--ws-primary-color);
  animation: ws-spin 1s linear infinite;
}

.p-result__loader-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ws-primary-color);
}

.p-result__error {
  margin: 10rem auto;
  text-align: center;
}

.p-result__error-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}

@keyframes ws-spin {
  to {
    transform: rotate(360deg);
  }
}
