.share-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d2d0ce;
  border-radius: 0;
  background: #fff;
  color: #605e5c;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 12px;
  white-space: nowrap;
  transition: border-color 130ms, background 130ms, color 130ms;
}

.share-button:hover {
  border-color: #d52b1e;
  background: #fdf3f2;
  color: #991b13;
}

.share-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(32, 31, 30, 0.42);
  padding: 24px;
}

.share-card {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid #d2d0ce;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 25.6px 57.6px rgba(0, 0, 0, 0.22), 0 4.8px 14.4px rgba(0, 0, 0, 0.18);
  color: #323130;
}

.share-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edebe9;
  padding: 0 18px;
}

.share-head h2 {
  margin: 0;
  color: #323130;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.share-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #605e5c;
  cursor: pointer;
}

.share-close:hover {
  border-color: #edebe9;
  background: #f3f2f1;
  color: #323130;
}

.share-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.share-body {
  padding: 18px;
}

.share-body p {
  margin: 0 0 14px;
  color: #605e5c;
  font-size: 13px;
}

.share-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.share-url input {
  width: 100%;
  height: 38px;
  min-width: 0;
  border: 1px solid #d2d0ce;
  border-radius: 0;
  background: #faf9f8;
  color: #323130;
  font: inherit;
  font-size: 12.5px;
  padding: 0 10px;
}

.share-copy {
  min-height: 38px;
  border: 1px solid #d52b1e;
  border-radius: 0;
  background: #d52b1e;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 13px;
}

.share-copy:hover {
  border-color: #b8241a;
  background: #b8241a;
}

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

.share-action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #edebe9;
  border-radius: 0;
  background: #fff;
  color: #323130;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
  text-decoration: none;
}

.share-action:hover {
  border-color: #d52b1e;
  background: #fdf3f2;
  color: #991b13;
}

.share-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.share-action.whatsapp {
  color: #0f8f72;
}

.share-action.telegram {
  color: #2563eb;
}

.share-action.email {
  color: #6d42c7;
}

.share-action.native {
  color: #d52b1e;
}

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

.share-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: #605e5c;
  font-size: 12px;
}

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

@media (max-width: 560px) {
  .share-modal {
    padding: 16px;
  }

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

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

@media (max-width: 720px) {
  .share-button {
    width: 36px;
    padding: 0;
  }

  .share-button span {
    display: none;
  }
}
