/*
 * Erigo Core — notice pop-up (oznámení), mail 957 (2026-10-26). JS: JavaScript/Frontend/notice-popup.js
 * Edge: square sheet on a flat 50 % dim, no blur shadow, no border (house rule design-edges);
 * corner radius only from the site token --erigo-radius. Colours/spacing from --erigo-* with fallbacks.
 */

/* The source element is only a carrier for the content: never shown in the page flow. */
.modal-notification {
  display: none;
}

.erigo-notice-popup {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(40.625rem, calc(100vw - 2 * var(--erigo-gutter, 1rem)));
  max-height: calc(100vh - 2 * var(--erigo-gutter, 1rem));
  padding: 0;
  overflow: auto;
  color: var(--erigo-color-text, #1f1f1f);
  background: var(--erigo-color-bg, #fff);
  border: 0;
  border-radius: var(--erigo-radius, 0);
  font-size: var(--erigo-text-lg, 1.125rem);
  text-align: center;
}

.erigo-notice-popup::backdrop {
  background-color: rgb(0 0 0 / 50%);
}

.erigo-notice-popup-body {
  padding: var(--erigo-space-xl, 2.5rem) var(--erigo-space-lg, 2rem) var(--erigo-space-lg, 2rem);
}

/* The cloned frame keeps its classes; its spacing belongs to the page, not to the window. */
.erigo-notice-popup-content,
.erigo-notice-popup-content .frame-container,
.erigo-notice-popup-content .frame-inner {
  margin: 0;
  padding: 0;
  max-width: none;
  min-height: 0;
}

.erigo-notice-popup-content p {
  margin: 0 0 var(--erigo-space-sm, 1em);
}

.erigo-notice-popup-body:focus {
  outline: none;
}

.erigo-notice-popup-content > :last-child,
.erigo-notice-popup-content p:last-child {
  margin-bottom: 0;
}

.erigo-notice-popup-close {
  position: absolute;
  top: var(--erigo-space-xs, 0.5rem);
  right: var(--erigo-space-xs, 0.5rem);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.erigo-notice-popup-close::before,
.erigo-notice-popup-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 25%;
  width: 50%;
  height: 0.1875rem;
  background: currentColor;
  transform: rotate(45deg);
}

.erigo-notice-popup-close::after {
  transform: rotate(-45deg);
}

.erigo-notice-popup-close:hover,
.erigo-notice-popup-close:focus-visible {
  color: var(--erigo-color-primary, #1f1f1f);
}

.erigo-notice-popup-close:focus-visible {
  outline: 2px solid var(--erigo-color-focus, currentColor);
  outline-offset: -2px;
}

@media (max-width: 40rem) {
  .erigo-notice-popup {
    font-size: 0.9em;
  }

  .erigo-notice-popup-body {
    padding: var(--erigo-space-xl, 2.5rem) var(--erigo-space-md, 1.25rem) var(--erigo-space-md, 1.25rem);
  }
}
