html.has-mymex-blog-share-modal {
  overflow: hidden;
}

.mymex-blog-share-modal:not([open]) {
  display: none !important;
}

.mymex-blog-share-actions [hidden],
.mymex-blog-share-body[hidden],
.mymex-blog-share-empty[hidden],
.mymex-blog-share-image[hidden] {
  display: none !important;
}

.mymex-blog-share-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: block;
  width: min(1080px, calc(100vw - 32px));
  max-width: 1080px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  place-items: initial;
  border: 1px solid #c9d8e8;
  border-radius: 8px;
  background: #f7fbff;
  color: #0b1d35;
  box-shadow: 0 24px 70px rgba(1, 18, 40, .28);
  overflow: hidden;
}

.mymex-blog-share-modal::backdrop {
  background: rgba(2, 14, 30, .76);
}

.mymex-blog-share-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100dvh - 34px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  color: inherit;
}

.mymex-blog-share-dialog > .mymex-blog-share-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 20px;
  background: #071d38;
  color: #fff;
  border-bottom: 3px solid #18c9d2;
}

.mymex-blog-share-heading > div {
  min-width: 0;
}

.mymex-blog-share-heading span {
  display: block;
  margin-bottom: 7px;
  color: #53e0e5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.mymex-blog-share-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.mymex-blog-share-heading p {
  max-width: 760px;
  margin: 9px 0 0;
  color: #cfdeed;
  font-size: 14px;
  line-height: 1.55;
}

.mymex-blog-share-heading > button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mymex-blog-share-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid #d6e2ef;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: thin;
}

.mymex-blog-share-tabs:empty {
  display: none;
}

.mymex-blog-share-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 46px;
  padding: 7px 13px;
  border: 1px solid #ccd9e7;
  border-radius: 6px;
  background: #f7fafc;
  color: #17334f;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.mymex-blog-share-tabs button[aria-selected="true"] {
  border-color: #087ee8;
  background: #eaf5ff;
  color: #075ca8;
  box-shadow: inset 0 -3px 0 #087ee8;
}

.mymex-blog-share-tabs img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.mymex-blog-share-body {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.4fr);
  gap: 22px;
  margin: 0;
  padding: 22px;
  align-items: start;
  overflow: auto;
}

.mymex-blog-share-image {
  align-self: start;
  margin: 0;
  border: 1px solid #cddbea;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.mymex-blog-share-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8eff6;
}

.mymex-blog-share-image figcaption {
  padding: 10px 12px;
  color: #5a7188;
  font-size: 12px;
  font-weight: 700;
}

.mymex-blog-share-workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.mymex-blog-share-preview {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 17px;
  border: 1px solid #cedceb;
  border-radius: 8px;
  background: #fff;
}

.mymex-blog-share-preview > strong {
  color: #071d38;
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mymex-blog-share-preview > p {
  margin: 0;
  color: #3d5872;
  font-size: 14px;
  line-height: 1.55;
}

.mymex-blog-share-preview > a {
  width: fit-content;
  color: #0876d9;
  font-weight: 800;
  pointer-events: none;
}

.mymex-blog-share-preview > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mymex-blog-share-preview > div span {
  color: #075ca8;
  font-size: 12px;
  font-weight: 750;
}

.mymex-blog-share-caption {
  display: grid;
  gap: 7px;
  color: #17334f;
  font-size: 13px;
  font-weight: 800;
}

.mymex-blog-share-caption textarea {
  width: 100%;
  min-height: 210px;
  padding: 13px 14px;
  border: 1px solid #b9cadb;
  border-radius: 6px;
  background: #fff;
  color: #102b46;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.mymex-blog-share-caption small {
  justify-self: end;
  color: #61768b;
  font-weight: 600;
}

.mymex-blog-share-history {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border-left: 4px solid #20b58b;
  border-radius: 4px;
  background: #e9f9f4;
  color: #164c42;
}

.mymex-blog-share-history strong,
.mymex-blog-share-history span {
  display: block;
}

.mymex-blog-share-history span {
  font-size: 12px;
}

.mymex-blog-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mymex-blog-share-actions button,
.mymex-blog-share-actions a,
.mymex-blog-share-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #b8cadd;
  border-radius: 6px;
  background: #fff;
  color: #14324f;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.mymex-blog-share-actions .is-primary {
  border-color: #087ee8;
  background: #087ee8;
  color: #fff;
}

.mymex-blog-share-actions .is-confirm {
  border-color: #13936f;
  background: #13936f;
  color: #fff;
}

.mymex-blog-share-actions button:disabled {
  cursor: wait;
  opacity: .62;
}

.mymex-blog-share-status {
  min-height: 20px;
  margin: 0;
  color: #425f79;
  font-size: 13px;
  font-weight: 700;
}

.mymex-blog-share-empty {
  margin: 24px;
  padding: 24px;
  border: 1px solid #d5dfeb;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.mymex-blog-share-empty strong {
  display: block;
  color: #0b2440;
  font-size: 19px;
}

.mymex-blog-share-empty p {
  margin: 8px auto 16px;
  max-width: 560px;
  color: #506a83;
}

@media (max-width: 760px) {
  .mymex-blog-share-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .mymex-blog-share-dialog {
    max-height: calc(100dvh - 18px);
  }

  .mymex-blog-share-heading {
    padding: 18px 16px 16px;
  }

  .mymex-blog-share-heading p {
    font-size: 13px;
  }

  .mymex-blog-share-tabs {
    padding: 10px 12px;
  }

  .mymex-blog-share-tabs button {
    min-height: 42px;
    padding: 6px 10px;
  }

  .mymex-blog-share-tabs img {
    width: 24px;
    height: 24px;
  }

  .mymex-blog-share-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .mymex-blog-share-image {
    max-width: 100%;
  }

  .mymex-blog-share-caption textarea {
    min-height: 180px;
  }

  .mymex-blog-share-actions > * {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 430px) {
  .mymex-blog-share-heading h2 {
    font-size: 20px;
  }

  .mymex-blog-share-heading > button {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .mymex-blog-share-actions > * {
    flex-basis: 100%;
  }
}

