html.bt-share-open,
body.bt-share-open {
  overflow: hidden;
}

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

.bt-share-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .18s ease;
  font-family: inherit;
  direction: rtl;
}

.bt-share-modal.is-open {
  opacity: 1;
}

.bt-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 13, 34, .62);
  backdrop-filter: blur(5px);
}

.bt-share-modal__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(78, 25, 83, .13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 8%, rgba(226, 177, 64, .18), transparent 32%),
    linear-gradient(145deg, #fff 0%, #fbf7fc 100%);
  color: #35133a;
  box-shadow: 0 30px 90px rgba(35, 12, 39, .28);
  transform: translateY(14px) scale(.98);
  transition: transform .18s ease;
  outline: none;
}

.bt-share-modal.is-open .bt-share-modal__panel {
  transform: translateY(0) scale(1);
}

.bt-share-modal__close {
  position: absolute;
  inset-inline-start: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e3d9e5;
  border-radius: 50%;
  background: #fff;
  color: #4a184f;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.bt-share-modal__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #a17622;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}

.bt-share-modal h2 {
  margin: 0;
  color: #46154c;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
}

.bt-share-modal__item-title {
  margin: 10px 0 22px;
  color: #746777;
  font-size: 15px;
  line-height: 1.55;
}

.bt-share-modal__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.bt-share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid #e5dce6;
  border-radius: 17px;
  background: rgba(255, 255, 255, .94);
  color: #3c1741;
  text-align: right;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(50, 20, 53, .045);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.bt-share-option:hover,
.bt-share-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(83, 25, 88, .32);
  box-shadow: 0 13px 27px rgba(50, 20, 53, .09);
  outline: none;
}

.bt-share-option--whatsapp {
  background: linear-gradient(145deg, #f1fff6, #fff);
}

.bt-share-option__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: #f0e8f1;
  color: #501957;
  font-size: 20px;
  font-weight: 800;
}

.bt-share-option--whatsapp .bt-share-option__icon {
  background: #def7e7;
  color: #157d42;
}

.bt-share-option strong,
.bt-share-option small {
  display: block;
}

.bt-share-option strong {
  color: inherit;
  font-size: 15px;
}

.bt-share-option small {
  margin-top: 3px;
  color: #877889;
  font-size: 11px;
  line-height: 1.4;
}

.bt-share-copy {
  margin-top: 17px;
  padding: 16px;
  border: 1px solid #e5dce6;
  border-radius: 18px;
  background: rgba(249, 245, 249, .88);
}

.bt-share-copy label {
  display: block;
  margin-bottom: 7px;
  color: #806e82;
  font-size: 12px;
  font-weight: 800;
}

.bt-share-copy__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.bt-share-copy input {
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #ddd1df;
  border-radius: 12px;
  background: #fff;
  color: #4a3a4c;
  direction: ltr;
  text-align: left;
  font: inherit;
  font-size: 12px;
}

.bt-share-copy button {
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  background: #54195a;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.bt-share-copy button:disabled {
  opacity: .7;
  cursor: wait;
}

.bt-share-modal__status {
  min-height: 20px;
  margin: 10px 2px 0;
  color: #776779;
  font-size: 12px;
}

.bt-share-modal__status[data-tone="success"] {
  color: #177343;
}

.bt-share-modal__status[data-tone="error"] {
  color: #a23535;
}

@media (max-width: 620px) {
  .bt-share-modal {
    align-items: end;
    padding: 10px;
  }

  .bt-share-modal__panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 25px 18px 20px;
    border-radius: 25px 25px 19px 19px;
  }

  .bt-share-modal__options {
    grid-template-columns: 1fr;
  }

  .bt-share-copy__row {
    grid-template-columns: 1fr;
  }

  .bt-share-copy button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bt-share-modal,
  .bt-share-modal__panel,
  .bt-share-option {
    transition: none !important;
  }
}
