.newsletter-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

@media screen and (min-width: 750px) {
  .newsletter-form {
    align-items: flex-start;
    margin: 0 auto;
    max-width: 26rem;
  }
}

.newsletter-form__field-wrapper {
  width: 100%;
  position: relative;
}

.newsletter-form__field-wrapper .field,
.newsletter-form__field-wrapper .field:before,
.newsletter-form__field-wrapper .field:after,
.newsletter-form__field-wrapper .field__input {
  border-radius: var(--radius-pill);
}

.newsletter-form__field-wrapper .field:hover.field:after {
  border-radius: var(--radius-pill);
}

.newsletter-form__field-wrapper .field__input {
  padding-right: var(--space-12);
  transition: border-color var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default);
}

.newsletter-form__field-wrapper .field {
  z-index: 0;
}

.newsletter-form__message {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  justify-content: center;
  margin-bottom: 0;
}

.newsletter-form__message--success {
  margin-top: var(--space-3);
  color: rgb(var(--color-foreground));
}

@media screen and (min-width: 750px) {
  .newsletter-form__message {
    justify-content: flex-start;
  }
}

.newsletter-form__button {
  width: var(--space-11);
  margin: 0;
  right: var(--border-hairline);
  top: 0;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: rgb(var(--color-foreground));
  transition: color var(--duration-fast) var(--ease-default), opacity var(--duration-fast) var(--ease-default);
}

.newsletter-form__button:hover {
  opacity: 1;
}

.newsletter-form__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--space-0-5) rgba(var(--color-foreground), 0.2);
  background-color: rgb(var(--color-background));
}

.newsletter-form__button:focus {
  outline: none;
  box-shadow: 0 0 0 var(--space-0-5) rgba(var(--color-foreground), 0.2);
  background-color: rgb(var(--color-background));
}

.newsletter-form__button:not(:focus-visible):not(.focused) {
  box-shadow: inherit;
  background-color: inherit;
}

.newsletter-form__button .icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  transition: transform var(--duration-fast) var(--ease-default);
}

.newsletter-form__button:hover .icon {
  transform: translateX(var(--space-0-5));
}
