.base-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.base-popup--open {
  opacity: 1;
  visibility: visible;
}

.base-popup__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.base-popup__container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  margin: 1rem;
  background-color: var(--c-popup-bg);
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: scale(0.95) translateY(-1rem);
  transition: transform 0.2s ease;
}

.base-popup__container--wide {
  max-width: 48rem;
}

.base-popup__container--xl {
  max-width: 64rem;
}

.base-popup--open .base-popup__container {
  transform: scale(1) translateY(0);
}

.base-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--c-border);
}

.base-popup__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-base-text);
}

.base-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  color: var(--c-base-subtitle-text);
  background: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.base-popup__close:hover {
  color: var(--c-base-text);
  background-color: var(--c-border);
}

.base-popup__content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
