/* Email actions in the saved files list. */
.btn.email-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.65rem 1rem;
  border: 1px solid #00004c;
  border-radius: 0.375rem;
  background: #00004c;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 2px 4px rgb(0 0 76 / 10%);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.email-share-button .fa-envelope {
  transition: transform 220ms ease;
}

.btn.email-share-button:focus-visible {
  outline: 3px solid #a6a6d0;
  outline-offset: 3px;
}

.btn.email-share-button--icon {
  padding: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn.email-share-button:not(:disabled):not(.disabled):hover {
    background: #242464;
    border-color: #242464;
    color: #fff;
    box-shadow: 0 6px 14px rgb(0 0 76 / 18%);
    transform: translateY(-2px);
  }

  .email-share-button:not(:disabled):not(.disabled):hover .fa-envelope {
    transform: translateX(2px) rotate(-8deg);
  }

  .btn.email-share-button:not(:disabled):not(.disabled):active {
    box-shadow: 0 1px 3px rgb(0 0 76 / 12%);
    transform: translateY(0) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.email-share-button,
  .email-share-button .fa-envelope {
    transition: none;
  }

  .btn.email-share-button:not(:disabled):not(.disabled):hover,
  .btn.email-share-button:not(:disabled):not(.disabled):active,
  .email-share-button:not(:disabled):not(.disabled):hover .fa-envelope {
    transform: none;
  }
}
