.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color var(--dur-hover) var(--ease-out),
    border-color var(--dur-hover) var(--ease-out),
    color var(--dur-hover) var(--ease-out);
}

.btn__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 17px;
  transition:
    transform var(--dur-hover) var(--ease-out),
    background-color var(--dur-hover) var(--ease-out);
}

.btn--primary {
  padding: 8px 8px 8px 24px;
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--primary .btn__arrow {
  background: rgba(255, 255, 255, 0.18);
}

.btn--secondary {
  padding: 7px 8px 7px 24px;
  background: var(--white-04);
  border: 1px solid var(--white-28);
  color: var(--color-white);
}
.btn--secondary .btn__arrow {
  background: var(--white-10);
}

.btn--outline-white {
  padding: 7px 8px 7px 24px;
  background: transparent;
  border: 1px solid var(--white-60);
  color: var(--color-white);
}
.btn--outline-white .btn__arrow {
  background: var(--white-10);
}

.btn--white {
  padding: 8px 8px 8px 24px;
  background: var(--color-white);
  color: var(--color-blue);
}
.btn--white .btn__arrow {
  background: rgba(0, 102, 255, 0.12);
}

.btn--link {
  gap: 8px;
  padding: 4px 0;
  color: var(--color-lavender);
  transition:
    gap var(--dur-hover) var(--ease-out),
    color var(--dur-hover) var(--ease-out);
}
.btn--link .btn__arrow {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: none;
}

/* Hover / focus */
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(3px);
}
.btn--primary:hover {
  background: #1a75ff;
}
.btn--secondary:hover {
  background: var(--white-10);
  border-color: var(--white-60);
}
.btn--white:hover .btn__arrow {
  background: rgba(0, 102, 255, 0.2);
}
/* Link hover: the arrow moves 6px out, text turns white and underlined. */
.btn--link:hover,
.btn--link:focus-visible {
  gap: 14px;
  color: var(--color-white);
}
.btn--link .btn__label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--dur-hover) var(--ease-out);
}
.btn--link:hover .btn__label,
.btn--link:focus-visible .btn__label {
  text-decoration-color: currentColor;
}
.btn--link:hover .btn__arrow img,
.btn--link:focus-visible .btn__arrow img {
  filter: brightness(0) invert(1);
}
.btn--link:hover .btn__arrow,
.btn--link:focus-visible .btn__arrow {
  transform: none;
}

.btn[aria-disabled='true'] {
  cursor: default;
} /* shown as designed; no destination defined */
.btn[aria-disabled='true']:hover .btn__arrow {
  transform: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Small button. */
.btn--sm {
  padding: 8px 18px;
  font-size: 14px;
}

/* Phones: long button labels wrap instead of running off the screen. */
@media (max-width: 599px) {
  .btn {
    max-width: 100%;
    white-space: normal;
  }
  .btn__label {
    min-width: 0;
  }
}
