@import '../../theme/index.less';

.backdrop,
.noBackdrop {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 70px;
  z-index: 999;
  overflow: scroll;
  @media screen and (max-width: @screen-sm) {
    padding: 70px 10px;
  }

  &.fullscreen {
    padding: 0;
  }
}
.noBackdrop {
  background-color: rgba(0, 0, 0, 0);
}

.modalStyle {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 550px;
  min-height: 200px;
  margin: 0 auto;
  padding: 30px;
  position: relative;
  @media screen and (max-width: @screen-md) {
    max-width: 100% !important;
    width: 100%;
  }
  @media screen and (max-width: @screen-sm) {
    padding: 10px;
  }
}

.modalIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: @orange-01;
  position: absolute;
  top: -30px;
  left: 50%;
  border-radius: 100%;
  width: 60px;
  height: 60px;
  text-align: center;
  margin-left: -30px;
  color: @white;
  font-size: 1.5em;
  & span {
    font-weight: 700;
    font-size: 2em;
    line-height: 0.9;
  }
  .icon {
    fill: @white;
  }
}

.modalBody {
  margin-top: 25px;
}

.confirmText {
  color: #ee464a;
  display: block;
  margin-bottom: 15px;
}

.label {
  margin-left: 10px;
}

.cancelButton {
  text-align: right;
  margin-top: 20px;
}

.closeButton {
  background: @white;
  border: none;
  margin: 15px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  cursor: pointer;
  .closeIcon {
    fill: @gray-06;
  }
  &:focus {
    .sbmFocusStyle;
  }
}
