.clarion-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clarion-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.clarion-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.clarion-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 35, 30, 0.65);
  cursor: pointer;
}

.clarion-modal__dialog {
  position: relative;
  z-index: 1;
  width: 95vw;
  max-width: 720px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(35, 35, 30, 0.25);
  display: flex;
  flex-direction: column;
}

.clarion-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(35, 35, 30, 0.08);
  color: var(--dark, #23231e);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.clarion-modal__close:hover {
  background: rgba(35, 35, 30, 0.14);
}

@media (max-width: 640px) {
  .clarion-modal {
    padding: 8px;
  }

  .clarion-modal__dialog {
    width: 100%;
    max-height: 95vh;
    border-radius: 12px;
  }
}
