.share-modal[hidden] {
  display: none;
}

body.share-modal-is-open {
  overflow: hidden;
}

.share-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: fixed;
  z-index: 1050;
}

.share-modal__backdrop {
  background-color: rgba(51, 51, 51, 0.42);
  inset: 0;
  position: absolute;
}

.share-modal__dialog {
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  color: var(--ceballos-cleaning-header);
  max-height: calc(100vh - 3rem);
  max-width: 34rem;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  text-align: left;
  width: min(100%, 34rem);
}

.share-modal__url:focus {
  outline: 0;
}

.share-modal__title {
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 2rem 0.5rem 0;
  text-transform: uppercase;
}

.share-modal__subtitle {
  font-family: "Josefin Sans", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.share-modal__text {
  color: #555;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.share-modal__qr {
  border-bottom: 1px solid rgba(205, 71, 154, 0.18);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.share-modal__qr-frame {
  align-items: center;
  background-color: rgba(205, 71, 154, 0.04);
  border: 1px solid rgba(205, 71, 154, 0.18);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.share-modal__qr-image {
  display: block;
  height: 9rem;
  width: 9rem;
}

.share-modal__copy {
  align-items: center;
  border: 1px solid rgba(205, 71, 154, 0.35);
  border-radius: 999px;
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
}

.share-modal__url {
  background-color: transparent;
  border: 0;
  border-radius: 999px;
  color: #555;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.75rem;
}

.share-modal__business-card {
  border-top: 1px solid rgba(205, 71, 154, 0.18);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.share-modal__preview {
  background-color: rgba(205, 71, 154, 0.04);
  border: 1px solid rgba(205, 71, 154, 0.18);
  border-radius: 18px;
  margin-bottom: 1rem;
  overflow: hidden;
  padding: 0.75rem;
}

.share-modal__preview-image {
  -webkit-touch-callout: default;
  border-radius: 18px;
  display: block;
  height: auto;
  touch-action: manipulation;
  user-select: auto;
  width: 100%;
}

.share-modal__status {
  color: #555;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  min-height: 1.2em;
}

.share-modal__copied-label,
.share-modal__label--es {
  display: none;
}

html[lang="es"] .share-modal__label--en {
  display: none;
}

html[lang="es"] .share-modal__label--es {
  display: inline;
}

@media (max-width: 575.98px) {
  .share-modal {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }

  .share-modal__dialog {
    border-radius: 0;
    max-height: 100vh;
    max-width: 100vw;
    padding: 1.75rem 1.25rem;
    width: 100vw;
  }

  .share-modal__copy {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .share-modal__url {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .share-modal__copy-button {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
  }
}
