.share-action-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.share-action-button .share-action-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

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

.platform-share-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 10, 16, 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.platform-share-modal-backdrop.show {
  display: flex;
}

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

.platform-share-modal__card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(38, 38, 38);
  border-radius: 15px;
  background: rgb(30, 30, 30);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  color: rgb(255, 255, 255);
  font-family: "Noto Sans", sans-serif;
}

.platform-share-modal__header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  border-bottom: 1px solid rgb(38, 38, 38);
  background: rgb(30, 30, 30);
}

.platform-share-modal__header h3 {
  margin: 0;
  color: rgb(255, 255, 255);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.platform-share-modal__close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(38, 38, 38);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.platform-share-modal__close:hover,
.platform-share-modal__close:focus-visible {
  border: 0;
  outline: none;
  background: rgb(46, 46, 46);
}

.platform-share-modal__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.platform-share-modal__body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 0px 18px;
  overflow-y: auto;
}

.platform-share-modal__value {
  box-sizing: border-box;
  width: 100%;
  min-height: 78px;
  max-height: min(260px, 38dvh);
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid rgb(46, 46, 46);
  border-radius: 10px;
  outline: none;
  background: rgb(20, 20, 20);
  color: rgba(255, 255, 255, 0.88);
  font:
    500 0.78rem/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  margin-bottom: 0px;
}

.platform-share-modal-backdrop[data-share-kind="embed"] .platform-share-modal__value {
  min-height: 142px;
}

.platform-share-modal__value:focus {
  border-color: rgb(39, 88, 208);
  box-shadow: 0 0 0 2px rgba(39, 88, 208, 0.2);
}

.platform-share-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
  background: rgb(30, 30, 30);
}

.platform-share-modal__button {
  min-width: 104px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgb(38, 38, 38);
  color: rgb(255, 255, 255);
  font:
    700 0.86rem/1 "Noto Sans",
    sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.platform-share-modal__button:hover,
.platform-share-modal__button:focus-visible {
  border: 0;
  outline: none;
  background: rgb(46, 46, 46);
}

.platform-share-modal__button--primary,
.platform-share-modal__button--primary:hover,
.platform-share-modal__button--primary:focus-visible {
  background: rgb(39, 88, 208);
}

.platform-share-modal__button--primary:hover,
.platform-share-modal__button--primary:focus-visible {
  background: rgb(35, 79, 192);
}

.platform-share-modal__button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.platform-share-modal__button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  .platform-share-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-share-modal__button {
    width: 100%;
    min-width: 0;
  }
}
