@import '../../settings';

.#{$rkc-prefix}-base-modal {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  opacity: 0;

  &.#{$rkc-prefix}-invisible {
    display: none !important;
  }

  &__close {
    display: block;
    margin: 0 auto 10px;
  }

  &__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }

  &__scroll-area {
    position: relative;

    width: 100%;
    height: auto;
    max-height: 100%;
  
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  
    -ms-overflow-style: none;
    scrollbar-width: none;
  
    &::-webkit-scrollbar {
      display: none;
      appearance: none;
      width: 0;
      height: 0;
    }
  }

  &__wrapper {
    margin: 20px auto;
    width: max-content;
    max-width: 100%;
  }
}