/* Shared styles for popup buttons across all blocks. */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  opacity: 0.5;
  z-index: 9998;
}

.popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem 1.5rem;
  border: 1px solid #fff;
  border-radius: 8px;
  background-color: var(--clr-black);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  min-width: 300px;
  max-width: 90vw;
  max-height: 90vh;
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.popup-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-right: 4px;
}

.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

.popup-content textarea {
  height: 100px;
}

html.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
}
