.Overlay {
  position: fixed;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background-color: rgba(0,0,0,.65);
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  overflow-y: auto;
  z-index: 5;

  @media (max-width: 735px) {
    &.fullScreen {
      top: 44px;
      background-color: transparent;
      z-index: 4;

      .Dialog {
        height: calc(100vh - 44px);
        width: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;

        .FixedSize {
          max-height: calc(100vh - 85px);
        }
      }
    }
  }
}

.Dialog {
  width: 400px;
  background-color: var(--color-light);
  animation: IGCoreModalShow .1s ease-out;
  border-radius: 12px;
  flex-shrink: 1;
  margin: 20px;
  max-height: calc(100% - 40px);
  overflow: hidden;

  @media (max-width: 375px) {
    width: 360px;
  }

  @media (max-width: 320px) {
    width: 315px;
  }
}

.Container {
  justify-content: center;
}

.Title {
  margin: var(--spacing-m) calc(var(--spacing-m) * 2);
  text-align: center;

  h3 {
    font-weight: 600;
    font-size: var(--large-font);
    line-height: 54px;
    margin: -4px 0 -6px;
  }

  &.withScrollingData {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    border-bottom: 1px solid var(--color-border);

    h3 {
      font-size: var(--medium-font);
    }

    .CloseIcon {
      position: absolute;
      right: 0;
      padding: 8px;
      cursor: pointer;
    }
  }
}

.DialogButton {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid var(--color-border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 1.5;
  margin: 0;
  min-height: 48px;
  padding: var(--spacing-xxs) var(--spacing-xs);
  text-align: center;
  vertical-align: middle;
  user-select: none;

  &.danger {
    color: var(--color-danger);
    font-weight: 700;
  }

  &.info {
    color: var(--color-accent);
    font-weight: 700;
  }

  &:first-child {
    border-top: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  &:last-of-type {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
}

.FixedSize {
  max-height: 400px;
  overflow: auto;
}

.Description {
  width: 100%;
  padding: var(--spacing-m);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.DialogImage {
  align-items: center;
  justify-content: center;
  padding-top: var(--spacing-m);
  width: 100%;
}

.AppIcon {
  width: 60px;
  height: 60px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@keyframes IGCoreModalShow {
  0% {
    opacity: 0;
    -webkit-transform: scale(1.2);
    transform: scale(1.2)
  }

  to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}
