.ea-dl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.ea-dl-button--icon-left,
.ea-dl-button--icon-right {
  flex-direction: row;
}

.ea-dl-button--icon-top,
.ea-dl-button--icon-bottom {
  flex-direction: column;
}

/* Por si quieres aprovechar la clase has-icon para estilos extra */
.ea-dl-button--has-icon .ea-dl-button__icon {
  display: inline-flex;
}

/* Ajustar el SVG */
.ea-dl-button__icon svg,
.ea-dl-button__icon i {
  width: 1em;
  height: 1em;
}

/* El texto siempre como bloque inline-flex para alinearse bien */
.ea-dl-button__text {
  display: inline-flex;
  align-items: center;
}

.ea-dl-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ea-dl-modal[hidden] {
  display: none !important;
}

.ea-dl-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.ea-dl-modal__content {
  position: relative;
  background: #fff;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.ea-dl-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.ea-dl-modal__title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.ea-dl-modal__description {
  margin-top: 0;
  margin-bottom: 1rem;
}

.ea-dl-modal__input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.ea-dl-modal__submit {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.ea-dl-modal__error {
  margin-top: 0.5rem;
  color: #d03232;
  font-size: 0.9rem;
}

.ea-dl-modal__success {
  margin-top: 0.5rem;
  color: #2f8a2f;
  font-size: 0.9rem;
}

a.ea-dl-button {
  padding: 0;
}

.ea-dl-button::before {
  content: "\f019"; /* icono download */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 8px;
  font-size: 1em;
  vertical-align: middle;
  line-height: 1;
}

button.ea-dl-modal__submit {
  background: black;
  color: white;
}

button.ea-dl-modal__submit::after {
  content: "\f019"; /* icono download */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 8px;
  font-size: 1em;
  vertical-align: middle;
  line-height: 1;
}

form.ea-dl-modal__form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
