:focus-visible {
  outline: 3px solid #ea3323;
  outline-offset: 3px;
}

.form-error {
  color: #b42318;
  flex-basis: 100%;
  font-size: 1.6rem;
  margin: 0.8rem 0 0;
}

.demo-badge {
  background: #fff1f0;
  border: 1px solid #ea3323;
  border-radius: 999px;
  color: #b42318;
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 2rem;
  padding: 0.8rem 1.4rem;
  text-transform: uppercase;
}

.demo-warning,
.request-error {
  background: #fff8e6;
  border-left: 4px solid #ea3323;
  border-radius: 0.8rem;
  color: #572f00;
  font-size: 1.6rem;
  line-height: 1.55;
  margin: 2rem 0;
  padding: 1.6rem;
}

.demo-request-list {
  display: grid;
  font-size: 1.6rem;
  gap: 1rem;
  grid-template-columns: minmax(12rem, 0.4fr) minmax(0, 1fr);
  margin: 2.4rem 0 3.2rem;
  text-align: left;
}

.demo-request-list dt {
  color: #828282;
  font-weight: 600;
}

.demo-request-list dd {
  color: var(--color-text-primary);
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-deposit-address {
  overflow-wrap: anywhere;
}

.demo-qr {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 1.2rem;
  display: block;
  height: auto;
  margin: 2rem auto;
  max-width: 24rem;
  padding: 1rem;
  width: 100%;
}

.dynamic-qr {
  background: #fff;
  box-sizing: border-box;
  height: auto;
  padding: 1rem;
}

.dynamic-qr svg {
  display: block;
  height: auto;
  width: 100%;
}

[hidden] {
  display: none !important;
}

.error-page {
  align-items: center;
  background: var(--background-main);
  color: var(--color-text-primary);
  display: flex;
  min-height: 100vh;
  padding: 3rem 0;
  text-align: center;
}

.error-page__code {
  color: #ea3323;
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.error-page__title {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  margin: 2rem 0 1rem;
}

.error-page__text {
  color: var(--color-text-secondary);
  font-size: 1.8rem;
  line-height: 1.6;
  margin: 0 auto 3rem;
  max-width: 60rem;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

html[data-theme='dark'] .demo-badge,
html[data-theme='dark'] .demo-warning,
html[data-theme='dark'] .request-error {
  color: #fff;
}

html[data-theme='dark'] .demo-badge {
  background: #401714;
}

html[data-theme='dark'] .demo-warning,
html[data-theme='dark'] .request-error {
  background: #352710;
}

@media (max-width: 640px) {
  .demo-request-list {
    grid-template-columns: 1fr;
  }

  .demo-request-list dd {
    margin-bottom: 0.8rem;
  }
}
