@import 'variables';

.jfDialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.jfDialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.jfDialog-panel {
  position: relative;
  background: var(--jfv-white);
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.jfDialog-body {
  padding: 24px;
}

.jfDialog-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;

  &--error {
    background: var(--jfv-red-100);
    color: var(--jfv-red-500);
  }
}

.jfDialog-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--jfv-navy-700);
  margin: 0 0 8px;
  text-align: center;
}

.jfDialog-description {
  font-size: 14px;
  color: var(--jfv-navy-300);
  margin: 0 0 24px;
  text-align: center;
}

.jfDialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 24px;
}

.jfDialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
