:root {
  --font-scale: 1;
  --theme1: #111318;
  --theme2: #7a7a7a;
  --theme3: #dcdcdc;
  --theme4: linear-gradient(90deg, transparent 0%, rgba(228, 30, 39, .10) 50%, transparent 100%);
}

html[data-size="12"] {
  --font-scale: .75;
}
html[data-size="20"] {
  --font-scale: 1.25;
}
html[data-theme=dark] {
  --theme1: #DDDDE0;
  --theme2: #DDDDE0;
  --theme3: #3d4147;
  --theme4: linear-gradient(90deg, transparent 0%, rgba(228, 30, 39, .22) 50%, transparent 100%);
}

@keyframes hej_gradient_flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
@keyframes hej_pulse {
  0%, 100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
  50% {
    transform: scale(1.18) rotate(8deg);
    opacity: 0.85;
  }
}
@keyframes hej_shimmer {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}
@media screen and (min-width: 1024px) {
  .hej_widget {
    width: auto;
  }
}
.hej_widget__form {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin: 16px 0;
  gap: 8px;
  height: 56px;
  border: 1px solid var(--theme3);
  border-radius: 4px;
  font-family: "Roboto Serif", serif;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.hej_widget__form:hover {
  border-color: #e41e27;
  box-shadow: 0 6px 20px -10px rgba(228, 30, 39, 0.35);
}
.hej_widget__form:hover .hej_widget__sparkle {
  animation: hej_pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hej_widget__form:hover .hej_widget__sparkle {
    animation: none;
  }
}
.hej_widget__form:hover .hej_widget__bar {
  height: 2px;
  opacity: 1;
  background-image: linear-gradient(90deg, #a8161d 0%, #e41e27 45%, #ff5a4a 60%, #a8161d 100%);
  animation: hej_gradient_flow 3s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hej_widget__form:hover .hej_widget__bar {
    animation: none;
  }
}
.hej_widget__form:focus-within {
  border-color: #e41e27;
  box-shadow: 0 0 0 4px rgba(228, 30, 39, 0.18), 0 10px 28px -12px rgba(228, 30, 39, 0.45);
}
.hej_widget__form:focus-within .hej_widget__sparkle {
  animation: hej_pulse 1.4s ease-in-out infinite;
  transform: rotate(8deg);
}
@media (prefers-reduced-motion: reduce) {
  .hej_widget__form:focus-within .hej_widget__sparkle {
    animation: none;
    transform: scale(1.18) rotate(8deg);
  }
}
.hej_widget__form:focus-within .hej_widget__shimmer {
  animation: hej_shimmer 1.1s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .hej_widget__form:focus-within .hej_widget__shimmer {
    animation: none;
  }
}
.hej_widget__form:focus-within .hej_widget__bar {
  height: 2px;
  opacity: 1;
  background-image: linear-gradient(90deg, #111 0%, #e41e27 35%, #ed6e65 60%, #30333c 100%);
  animation: hej_gradient_flow 2.2s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hej_widget__form:focus-within .hej_widget__bar {
    animation: none;
  }
}
@media screen and (min-width: 1024px) {
  .hej_widget__form {
    gap: 16px;
    padding: 0 16px;
    margin-top: 0;
    height: 64px;
  }
}
.hej_widget__brand {
  flex: 0 0 auto;
}
.hej_widget__logo {
  height: 22px;
  display: block;
  width: 83px;
  flex-shrink: 0;
}
@media screen and (min-width: 1024px) {
  .hej_widget__logo {
    height: 30px;
    width: 113px;
  }
}
.hej_widget__logo svg {
  width: 100%;
  height: 100%;
}
.hej_widget__divider {
  flex: 0 0 auto;
  width: 1px;
  height: 24px;
  background-color: var(--theme3);
}
@media screen and (min-width: 1024px) {
  .hej_widget__divider {
    height: 32px;
  }
}
.hej_widget__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}
.hej_widget__sparkle {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: #e41e27;
  transition: transform 0.4s ease;
}
@media screen and (min-width: 1024px) {
  .hej_widget__sparkle {
    width: 22px;
    height: 22px;
    margin-right: 10px;
  }
}
.hej_widget__sparkle svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hej_widget__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  height: 100%;
  border: 0;
  font-size: calc(16px * var(--font-scale));
  font-weight: 500;
  color: var(--theme1);
  letter-spacing: -0.09px;
  padding: 0;
  container-type: inline-size;
}
@media screen and (min-width: 1024px) {
  .hej_widget__input {
    font-size: calc(18px * var(--font-scale));
  }
}
.hej_widget__input::placeholder {
  color: var(--theme2);
  font-style: italic;
  font-size: calc(clamp(10px, 3vw, 16px) * var(--font-scale));
}
@media screen and (min-width: 1024px) {
  .hej_widget__input::placeholder {
    font-size: calc(18px * var(--font-scale));
  }
}
.hej_widget__shimmer {
  position: absolute;
  inset: 0;
  background: var(--theme4);
  transform: translateX(-110%);
  opacity: 0;
}
.hej_widget__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  min-width: 40px;
  min-height: 40px;
  height: 40px;
  width: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, #e41e27 0%, #f29094 35%, #ed6e65 60%, #e41e27 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff;
  cursor: pointer;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px -6px #8f8f8f;
}
@media screen and (min-width: 1024px) {
  .hej_widget__submit {
    height: 44px;
    width: 58px;
    border-radius: 4px;
    flex-basis: 58px;
    min-width: 58px;
    min-height: 44px;
  }
}
.hej_widget__submit:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px #8f8f8f;
}
.hej_widget__submit:active {
  transform: translateY(0);
}
.hej_widget__submit svg {
  width: 18px;
  height: 18px;
  display: block;
}
.hej_widget__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background-image: linear-gradient(90deg, #111 0%, #959baf 35%, #959baf 60%, #111 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  opacity: 0.55;
  transition: height 0.25s ease, opacity 0.25s ease, background-image 0.25s ease;
}