/* ============================================================
   Sharing a post
   ------------------------------------------------------------
   The word that confirms a copy, and the menu that stands in
   for the phone's share sheet where the page cannot reach it.
   See assets/js/share.js for why it cannot.
   ============================================================ */

.msk-share-note {
  position: fixed;
  inset-inline: 0;
  bottom: 24px;
  z-index: 9999;

  width: max-content;
  max-width: calc(100% - 40px);
  margin-inline: auto;
  padding: 12px 22px;

  border-radius: 12px;
  background: #0d3b3e;
  color: #fff;
  font-size: 15px;
  text-align: center;

  /* Out of the way of anything it is confirming, and out of the way of a tap. */
  pointer-events: none;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .28s ease;
}

.msk-share-note.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.msk-share-menu {
  position: fixed;
  inset: 0;
  z-index: 9998;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  background: rgb(13 59 62 / 55%);
  opacity: 0;
  transition: opacity .25s ease;
}

.msk-share-menu.is-shown {
  opacity: 1;
}

.msk-share-panel {
  width: 100%;
  max-width: 420px;
  margin: 16px;
  padding: 10px;

  display: grid;
  gap: 8px;

  border-radius: 18px;
  background: #fdfbf7;

  transform: translateY(14px);
  transition: transform .25s ease;
}

.msk-share-menu.is-shown .msk-share-panel {
  transform: translateY(0);
}

.msk-share-panel a,
.msk-share-panel button {
  display: block;
  width: 100%;
  padding: 15px 18px;

  border: 0;
  border-radius: 12px;
  background: #f1ece4;
  color: #0d3b3e;

  font: inherit;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;

  transition: background .2s ease;
}

.msk-share-panel a:hover,
.msk-share-panel button:hover {
  background: #e6ded2;
}

.msk-share-close {
  background: transparent !important;
  color: #6b6b6b !important;
  font-size: 15px !important;
}

@media (prefers-reduced-motion: reduce) {

  .msk-share-note,
  .msk-share-menu,
  .msk-share-panel {
    transition: none;
  }

}
