/*
 * Share modal overlay — modern add-on (not part of the verbatim CF CSS).
 * Positions the vanilla-JS share popup (static/js/shell.js); the inner
 * .c-pageshare__links + .close_modal come from the copied CF style.css.
 */
.share_modal_overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.share_modal_overlay.is-open {
  opacity: 1;
}

.share_modal_box {
  position: relative;
  background: #fff;
  max-width: 420px;
  width: calc(100% - 40px);
  padding: 48px 40px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.share_modal_overlay.is-open .share_modal_box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.share_modal_box .close_modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.share_modal_box .intro-msg {
  display: block;
  margin-bottom: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .share_modal_overlay,
  .share_modal_box {
    transition: none;
  }
}
