.destination-address {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;

  .input {
    font-family: var(--font-atyp);
    background-color: var(--color-smoke);
    margin-top: 0.25rem;
    border-radius: 0.625rem;
    box-shadow: 0 0 0 1px var(--color-silver);
    width: 100%;
    padding: 0.75rem 1rem 0.6rem;
    font-size: 0.875rem;
    color: var(--color-black);
    resize: none;

    &.error {
      box-shadow: inset 0 0 0 0.125rem var(--color-red);
    }

    &.extra-padding {
      padding-right: 1.625rem;
    }
  }
}

.headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;

  .title {
    color: var(--color-black);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-atyp-text);
  }

  a {
    display: flex;
    color: var(--color-indigo);
    font-size: 0.875rem;
    gap: 0.2rem;
    font-weight: 500;

    svg {
      width: 0.75rem;
      height: 0.75rem;
      color: var(--color-indigo);
      transform: rotate(-45deg);
    }
  }
}

.input-container {
  position: relative;
}

.message-text {
  font-family: var(--font-atyp-text);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  line-height: 1.4;

  &.success {
    color: var(--color-green);
  }

  &.error {
    color: var(--color-red);
  }

  &.warning {
    color: var(--color-dark-red);
  }
}

.reset {
  width: 1rem;
  height: 1rem;
  color: var(--color-darker-gray);
  position: absolute;
  right: 0.5rem;
  top: calc(50% - 0.5rem);
  cursor: pointer;
  visibility: hidden;

  &.show {
    visibility: visible;
  }
}
