.share-button {
  margin-bottom: 0;
  border: 0;
  background-color: white;
  padding: var(--buttonPadding);
  border-radius: var(--buttonRadius);
  place-items: center;
  width: 50px;
  height: 50px;
  display: grid;
  place-content: center;
  transition: all 0.2s linear;
}
.share-button .symbol::before {
  color: var(--color5);
  --iconsize: var(--m-fontsize);
}
.share-button .text {
  display: none;
}
@media (hover: hover) {
  .share-button:hover {
    background-color: var(--color2);
  }
  .share-button:hover .symbol::before {
    color: white;
  }
}
.share-button.active {
  background-color: var(--color2);
}
.share-button.active .symbol::before {
  color: white;
}
.share-dialog {
  display: none;
}
.share-dialog.is-open {
  display: block;
}
.share-dialog:before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
  height: 100%;
}
.share-dialog .block {
  position: fixed;
  z-index: 99999;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 95%;
  max-width: 800px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  padding: var(--padding);
  background: #fff;
}
.share-dialog .block .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--padding);
}
.share-dialog .block .header .blockTitle {
  padding-bottom: 0;
}
.share-dialog .block .header .close {
  border: none;
  background: none;
  width: 32px;
  height: 32px;
  text-align: center;
  text-decoration: none;
  line-height: 32px;
  font-family: sans-serif;
  font-size: 2rem;
  color: black;
}
.share-dialog .block .actionButton {
  justify-content: start;
  gap: calc(var(--padding) * 0.375);
}
.share-dialog .block .targets {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  margin-bottom: var(--padding);
}
.share-dialog .block .link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #eee;
  position: relative;
}
.share-dialog .block .link:before {
  position: absolute;
  z-index: 1;
  background: #eee;
  opacity: 0.5;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
.share-dialog .block .link .copy-link {
  position: relative;
  z-index: 2;
  font-size: var(--xs-fontsize);
  transition: all 0.2s linear;
  padding: 10px 15px;
  border: 0;
  color: var(--color5);
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--subfont);
  cursor: pointer;
  background: var(--color5);
  color: white;
  border-radius: 50px;
}
@media (hover: hover) {
  .share-dialog .block .link .copy-link:hover {
    color: #fff;
    background: var(--color2);
  }
}
.share-dialog .block .link .pen-url {
  margin-right: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  flex: 1;
  background: transparent;
  font-size: var(--fontsize);
}
