@import 'variables';

.jfModal {
  background-color: rgba(8, 9, 11, 0.6);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647 !important;
  animation: fadeIn 0.15s;
  padding: 16px;

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

  &--container {
    background-color: var(--jfv-white);
    width: 100%;
    border-radius: 8px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    &-small {
      max-width: 480px;
    }
    &-medium {
      max-width: 640px;
    }
    &-large {
      max-width: 800px;
    }
  }

  &--title {
    padding: 24px 32px;
    border-bottom: 1px solid var(--jfv-navy-50);
    h2, h3 {
      color: var(--jfv-navy-700);
      font-weight: 500;
      font-size: 20px;
      margin: 0;
    }
    p {
      color: var(--jfv-navy-300);
      font-size: 14px;
      margin: 8px 0 0;
    }
  }

  &--body {
    padding: 24px 32px;
    overflow-y: auto;
  }

  &--actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    border-top: 1px solid var(--jfv-navy-50);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
