#mw-site .mw-share-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .7rem;
  color: #153f60;
  background: #eaf7fd;
  border: 1px solid #c8e1ee;
  border-radius: 8px;
  font-weight: 700;
}

#mw-site .mw-share-open:hover {
  background: #d9f3ff;
}

#mw-site .mw-share-open svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#mw-site .mw-share-open[hidden] {
  display: none;
}

.mw-share-dialog {
  box-sizing: border-box;
  width: min(33rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: clamp(.85rem, 4vw, 1.6rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #a8cbdc;
  border-top: 4px solid #6dcff6;
  border-radius: 1rem;
  background: #fff;
  color: #153f60;
  box-shadow: 0 22px 75px #102e51a6;
  font: 1rem/1.45 Arial, Helvetica, sans-serif;
}

.mw-share-dialog::backdrop {
  background: #102b4bbb;
}

.mw-share-dialog * {
  box-sizing: border-box;
}

.mw-share-dialog :focus-visible {
  outline: 3px solid #225f88;
  outline-offset: 3px;
}

.mw-share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.mw-share-heading h2 {
  margin: 0;
  font-size: clamp(1.3rem, 4.5vw, 1.65rem);
  line-height: 1.2;
}

.mw-share-heading form {
  margin: 0;
}

.mw-share-dialog button {
  border-radius: .55rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mw-share-dialog .mw-share-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #b5d2e2;
  background: #eaf7fd;
  color: #153f60;
  font-size: 1.45rem;
  line-height: 1;
}

.mw-share-dialog .mw-share-close:hover {
  background: #d9f3ff;
}

.mw-share-preview {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .85rem;
  padding: .65rem;
  border: 1px solid #c8e1ee;
  border-radius: .65rem;
  background: #f1f8fb;
}

.mw-share-preview [data-mw-share-image] {
  flex: 0 0 auto;
  width: 4.75rem;
  aspect-ratio: 16 / 10;
  border-radius: .35rem;
  object-fit: cover;
}

.mw-share-title {
  min-width: 0;
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mw-share-url {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .35rem .55rem;
}

.mw-share-url label {
  flex: 1 0 100%;
  font-size: .9rem;
  font-weight: 700;
}

.mw-share-url [data-mw-share-url] {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: .55rem;
  border: 1px solid #a8cbdc;
  border-radius: .55rem;
  background: #fff;
  color: #153f60;
  font: inherit;
  font-size: .9rem;
}

.mw-share-dialog :is(.mw-share-copy, .mw-share-native) {
  min-height: 44px;
  padding: .45rem .7rem;
  border: 1px solid #153f60;
  background: #153f60;
  color: #fff;
}

.mw-share-dialog :is(.mw-share-copy, .mw-share-native):hover {
  background: #225f88;
}

.mw-share-dialog .mw-share-native {
  width: 100%;
  margin-bottom: .75rem;
}

.mw-share-dialog [data-mw-share-status] {
  display: block;
  min-height: 1.4em;
  margin: .28rem 0 .45rem;
  color: #3e5669;
  font-size: .86rem;
}

.mw-share-targets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-share-targets a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: .35rem .3rem;
  border: 1px solid #c8e1ee;
  border-radius: .5rem;
  background: #f1f8fb;
  color: #153f60;
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.mw-share-targets a:hover {
  border-color: #a8cbdc;
  background: #e1f4fd;
  text-decoration: underline;
  text-underline-offset: .14em;
}

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

@media (max-width: 680px) {
  #mw-site .mw-share-open {
    padding: 0;
    width: 44px;
  }

  #mw-site .mw-share-open span {
    display: none;
  }
}

@media (max-width: 380px) {
  #mw-site .mw-header .mw-masthead {
    column-gap: .55rem;
  }

  #mw-site .mw-masthead-actions {
    gap: .3rem;
  }

  .mw-share-targets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  #mw-site .mw-share-open,
  .mw-share-dialog {
    display: none;
  }
}
