/* display:none until [open] — a plain class selector can outrank the UA
   stylesheet's dialog:not([open]) rule depending on what else the page
   loads, so don't rely on the browser default alone; without this the
   dialog sat inline at the bottom of the page, always visible. */
.popup-plus-dialog {
  display: none;
}

.popup-plus-dialog[open] {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 14px;
  padding: 0;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: min(70vh, calc(100% - 64px));
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  color: #111;
  text-align: left;
}

.popup-plus-dialog::backdrop {
  background: rgba(0, 0, 0, .55);
}

.popup-plus-dialog__body {
  overflow-y: auto;
  min-height: 0;
  padding: 44px 28px 28px;
}

/* style.css hides .popup-plus__content by default (display: none) and only
   un-hides it with a #colorbox-scoped rule — same override, scoped to this
   dialog instead, now that the content lives inside it. */
.popup-plus-dialog .popup-plus__content {
  display: block;
}

.popup-plus-dialog__body h2:first-child {
  margin-top: 0;
}

.popup-plus-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, .08);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 1;
  color: #333;
  cursor: pointer;
}

.popup-plus-dialog-close:hover {
  background: rgba(0, 0, 0, .16);
}
