.drawn-check {
  position: relative;
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}

.drawn-check input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 1;
  inset: -10px;
  width: auto;
  height: auto;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.drawn {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: #fffdf6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.drawn-line {
  stroke-width: 1.6;
  transition: filter 150ms ease, stroke 150ms ease;
}

.drawn-tick,
.drawn-spark {
  opacity: 0;
}

.drawn-tick {
  stroke-width: 2.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

input:checked + .drawn .drawn-tick {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 380ms cubic-bezier(0.3, 0.1, 0.3, 1);
}

.drawn-spark {
  fill: #fffdf6;
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
}

input:checked + .drawn .drawn-spark {
  animation: drawn-spark 800ms 300ms ease-out both;
}

@keyframes drawn-spark {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  35% {
    opacity: 1;
    transform: scale(1.25);
  }

  100% {
    opacity: 0;
    transform: scale(0.7);
  }
}

@media (hover: hover) and (pointer: fine) {
  label:hover .drawn-line {
    filter: drop-shadow(0 0 3px rgb(255 253 246 / 55%));
  }
}

.drawn-check input[aria-invalid="true"] + .drawn .drawn-line {
  stroke: #ff8f7d;
  stroke-width: 2.2;
}

.drawn-check input:focus-visible + .drawn {
  border-radius: 4px;
  outline: 3px solid #ff8f7d;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .drawn-line,
  input:checked + .drawn .drawn-tick {
    transition: none;
  }

  input:checked + .drawn .drawn-spark {
    animation: none;
  }
}

:is(.signup-consent, .consent-label) a {
  padding-block: 14px;
}

.email-slip {
  margin: 4px 0 0;
}

.email-slip:empty {
  display: none;
}

.signup .email-slip {
  text-align: center;
}

.email-slip-fix {
  min-height: 44px;
  padding: 8px 0;
  color: #f0eee2;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgb(255 253 246 / 30%);
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.email-slip-fix:hover,
.email-slip-fix:focus-visible {
  color: #d9ed67;
  text-decoration-color: #d9ed67;
}

@media (prefers-reduced-motion: reduce) {
  .email-slip-fix {
    transition: none;
  }
}
