@import '../../assets/scss/_mixin/responsive.scss';
@import '../../assets/scss/_variable/grid.scss';
@import '../../assets/scss/_variable/color.scss';

:local .coverBackground {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 299;
  cursor: pointer;
}

:local .alert {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  background-color: #fff;
  border-radius: 8px;
  bottom: 0;
  box-sizing: border-box;
  height: 260px;
  left: 0;
  margin: auto;
  position: fixed;
  right: 0;
  top: 0;
  width: 550px;
  z-index: 300;
  @include responsive(md) {
    width: 400px;
  }
  @include responsive(sm) {
    width: 350px;
  }
  &.top-left {
    bottom: auto;
    left: 0px;
    right: auto;
  }
  &.top-right {
    bottom: auto;
    left: auto;
    right: 0;
  }
  &.top-center {
    bottom: auto;
    margin: 0 auto;
  }
  &.center {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
  }
  &.left {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: auto;
  }
  &.right {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: 0;
  }
  &.bottom-left {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
  }
  &.bottom-right {
    top: auto;
    bottom: 0px;
    left: auto;
    right: 0px;
  }
  &.bottom-center {
    top: auto;
    bottom: 0;
    margin: 0 auto;
  }
  .titleDiv {
    color: #303030;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 30px;
  }
  .messageDiv {
    color: #2a2a2a;
    font-size: 16px;
    margin-bottom: 30px;
    padding: 5px 30px;
  }
  .buttonDiv {
    bottom: 1em;
    position: absolute;
    width: 100%;
    text-align: center;
  }
}

@each $key, $value in $defaultColors {
  :local .bg-color-#{$key} {
    background-color: #fff;
    border: 0.1px solid $value;
  }
}
