.hwt-info {
  --hwt-info-bg: var(--infobox);
  --hwt-info-text: var(--color-headline, #ffe0fd);
  --hwt-info-white: var(--color-white, #fff);
  --hwt-info-accent: var(--color-button-hover, #ffa5e7);
  --hwt-info-hover: var(--hwt-button-hover, #ff03bb);
  --hwt-info-shadow: var(
    --text-shadow-glow,
    0.0625rem 0.0625rem 2.5rem rgba(255, 255, 255, 0.33)
  );
  --hwt-info-transition: 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: fixed;
  right: 1.875rem;
  bottom: 5.875rem;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.875rem;
  max-width: calc(100vw - 3.75rem);
  color: var(--hwt-info-text);
  font-family: "Inter", sans-serif;
  pointer-events: none;
}
.hwt-info {
  pointer-events: none;
}
.hwt-info__toggle {
  pointer-events: auto;
}
.hwt-info--open {
  pointer-events: auto;
}
.hwt-info__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
  width: 75rem;
  min-height: 8.75rem;
  box-sizing: border-box;
  padding: 1.5rem 3.75rem;
  overflow: hidden;
  border: 1px solid var(--color-white);
  border-radius: 1.5rem;
  background: var(--color-background-trans);
  box-shadow: var(--hwt-info-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateX(2rem) scaleX(0.96);
  transform-origin: right bottom;
  pointer-events: none;
  transition:
    opacity var(--hwt-info-transition),
    transform var(--hwt-info-transition),
    visibility var(--hwt-info-transition);
}

.hwt-info--open .hwt-info__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scaleX(1);
  pointer-events: auto;
}

.hwt-info__content {
  min-width: 0;
}
.hwt-info__content h3 {
  font-size: 1.688rem !important;
}

.hwt-info__content > :first-child {
  margin-top: 0;
}
.hwt-info__content > :last-child {
  margin-bottom: 0;
}

.hwt-info__content h1,
.hwt-info__content h2,
.hwt-info__content h3,
.hwt-info__content h4,
.hwt-info__content h5,
.hwt-info__content h6 {
  margin: 0 0 0.5rem;
  color: var(--hwt-info-white);
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(1.25rem, 1.7vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: none;
}

.hwt-info__content p {
  margin: 0.25rem 0;
  color: var(--color-white);
  font-weight: 300;
  line-height: 1.5;
}

.hwt-info__content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hwt-info__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1.125rem 2rem;
  border: 1px solid var(--color-white);
  border-radius: 0.625rem;
  background: transparent;
  color: var(--hwt-info-white);
  font-family: "Lexend Deca", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.hwt-info__link:hover,
.hwt-info__link:focus-visible {
  border-color: var(--hwt-info-hover);
  background: var(--hwt-info-hover);
}

.hwt-info__toggle {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--color-background);
  padding: 0;
  border: 0;

  color: var(--color-white);
  cursor: pointer;
  pointer-events: auto;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.hwt-info__toggle::before {
  content: "";
  position: absolute;
  width: 3.75rem;
  height: 3.75rem;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition:
    width 0.3s ease,
    height 0.3s ease,
    box-shadow 0.3s ease;
}

.hwt-info__toggle-percent {
  position: relative;
  z-index: 1;
  font-family: "Inter";
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-0.125rem);
}
.hwt-info__toggle-percent .hwt-info__toggle-small {
  font-size: 0.6rem;
}
.hwt-info__content h2 {
  font-size: 1.688rem;
}
.hwt-info__content {
  font-size: 1.225rem;
  font-weight: 500;
}
.hwt-info__toggle-close {
  position: absolute;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0;
}

.hwt-info__toggle-close::before,
.hwt-info__toggle-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.75rem;
  height: 0.125rem;
  background: currentColor;
}

.hwt-info__toggle-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.hwt-info__toggle-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hwt-info--open .hwt-info__toggle::before {
  width: 3.5rem;
  height: 3.5rem;
}

.hwt-info--open .hwt-info__toggle-percent {
  opacity: 0;
}
.hwt-info--open .hwt-info__toggle-close {
  opacity: 1;
}

.hwt-info__toggle:hover,
.hwt-info__toggle:focus-visible {
  color: var(--hwt-info-accent);
  transform: translateY(-0.2rem);
}

.hwt-info__toggle:hover::before,
.hwt-info__toggle:focus-visible::before {
  box-shadow: var(--hwt-info-shadow);
}

.hwt-info__toggle:focus-visible,
.hwt-info__link:focus-visible {
  outline: 0.1875rem solid var(--hwt-info-white);
  outline-offset: 0.1875rem;
}

@media (max-width: 64rem) {
  .hwt-info {
    right: 1.25rem;
    bottom: 2.25rem;
    gap: 1rem;
    max-width: calc(100vw - 2.5rem);
    align-items: flex-end;
  }

  .hwt-info__panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: calc(100vw - 10rem);
    padding: 2rem;
  }

  .hwt-info__link {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hwt-info__panel,
  .hwt-info__toggle,
  .hwt-info__toggle::before,
  .hwt-info__link {
    transition-duration: 0.01ms;
  }
}
