.modal-back {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 6;

  .mask {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background-color: rgba(10, 10, 10, 0.5);
  }
}

.modal {
  position: relative;
  width: 100%;
  max-width: 375px;
  border-radius: 6px;
  background: #FFFFFF;

  &.full-modal {
    width: auto;
    max-width: none;
  }

  .js-close {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 14px;
    color: #999;
    &:hover {
      color: #000;
    }
  }

  &-header {
    position: relative;
    padding: 15px 15px 0;
    text-align: right;
    z-index: 1;
  }

  &-footer {
    width: 100%;
    padding:20px 15px 15px;
  }

  &.modal-round {
    border-radius: 8px;
  }

  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background-color: #9660F9;
  } /* the new scrollbar will have a flat appearance with the set background color */

  ::-webkit-scrollbar-thumb {
    background-color: #90083F;
  } /* this will style the thumb, ignoring the track */

  ::-webkit-scrollbar-button {
    background-color: #45347B;
    max-height: 200px;
  } /* optionally, you can style the top and the bottom buttons (left and right for horizontal bars) */

  ::-webkit-scrollbar-corner {
    background-color: black;
  }
}


.modal-body {
  position: relative;
  line-height: 18px;
  padding: 0 15px;
  font-size: 13px;
  h1 {
    line-height: 110%;
    padding-bottom: 15px;
    font-size: 16px;
    color: #f21b5a;
  }
}

.movie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: $header-index;
  &.on {
    display: block;
  }
  .mask {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(0,0,0,.85);
  }
  .modal-view {
    position: relative;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 0;
    padding-top: 45%;
    text-align: right;
    .cell {
      position: absolute;
      left: 0; top: 0; right: 0; bottom: 0;
    }
  }
  .btn {
    color: #fff;
  }

  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background-color: #9d9d9d;
  } /* the new scrollbar will have a flat appearance with the set background color */

  ::-webkit-scrollbar-thumb {
    background-color: #717182;
  } /* this will style the thumb, ignoring the track */

  ::-webkit-scrollbar-button {
    background-color: #9d9d9d;
    max-height: 200px;
  } /* optionally, you can style the top and the bottom buttons (left and right for horizontal bars) */

  ::-webkit-scrollbar-corner {
    background-color: black;
  }
}

.modal-pkg-down {
  min-width: 638px;
  padding-bottom: 40px;
  text-align: center;

  h3 {
    padding: 20px 0 40px;
    font-size: 30px;
    font-weight: bold;
    color: #471b6b;
  }

  .flex-box,
  .col-row {
    max-width: 484px;
    margin: 0 auto;
  }

  .down {
    display: inline-block;
    border-radius: 6px;
    border: solid 3px rgba(35, 15, 59, 0.1);
    overflow: hidden;

    img {
      width: 100%;
    }
  }

  p {
    padding-top: 9px;
    font-size: 12px;
    text-align: center;
    color: #4d4d4d;
  }

  .js-storelink {
    display: inline-block;
    width: 280px;
    height: 50px;
    line-height: 44px;
    margin-top: 38px;
    border-radius: 25px;
    background-color: #230f3b;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #ebebeb;

    span,
    i {
      display: inline-block;
      vertical-align: middle;
    }
    i {
      font-size: 12px;
    }
  }

  .qrcode {
    img {
      width: 100%;
      max-width: 96px;
    }
  }
}

@media screen and (max-width: $grid-breakpoint-mb) {
  .modal {
    position: fixed;
    left: 0; right: 0; top:0; bottom: 0;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    overflow-y: auto;

    .modal-header {
      position: fixed;
      top:0; right: 0;
      z-index: 1;
      .js-modalClose {
        z-index: 1;
      }
    }
    .modal-body * {
      word-break: break-word;
    }
  }

  .movie-modal {
    .modal-view {
      width: 100%;
      padding-top: 57%;
    }
  }
}


