@import "../../../themes/default";

:global {
  .app-modal-wrap {
    position: fixed;
    overflow: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    outline: 0;
  }

  .app-modal-mask {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: @color-overlay;
    height: 100%;
    z-index: 1000;
  }

  .app-modal {
    width: 360px;
    top: 80px;
    padding-bottom: 80px;
    line-height: @line-height-base;
    color: rgba(0, 0, 0, .65);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    list-style: none;
    position: relative;
    margin: 0 auto;
    z-index: 1000;
  }

  .app-modal-close {
    position: absolute;
    background: transparent;
    cursor: pointer;
    border: 0;
    right: 0;
    top: 0;
    z-index: 10;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    -webkit-transition: color .3s;
    transition: color .3s;
    color: rgba(0, 0, 0, .45);
    outline: 0;
    padding: 0;
    opacity: 0.45;

    &:hover {
      opacity: 1;
    }

    span {
      display: block;
      font-style: normal;
      vertical-align: baseline;
      text-align: center;
      width: 56px;
      height: 56px;
      line-height: 56px;
      font-size: 16px;
    }
  }

  .app-modal-content {
    position: relative;
    background-color: #fff;
    border: 0;
    border-radius: @border-radius-base;
    background-clip: padding-box;
    .box-shadow();
  }

  .app-modal-header {
    padding: @modal-header-padding;
    border-radius: @border-radius-base @border-radius-base 0 0;
    background: #fff;
    color: rgba(0, 0, 0, .65);
    border-bottom: @border-base;
    font-size: @modal-header-font-size;
  }

  .app-modal-body {
    padding: @modal-padding;

    .app-input {
      color: @color-black-65;
    }

    .app-steps {
      width: 100% !important;

      .app-steps-item-title {
        color: @color-black-90 !important;
      }

      .app-steps-item-wait .app-steps-item-icon > .app-steps-icon .app-steps-icon-dot {
        background: #e8e8e8 !important
      }
    }

    iframe {
      border: 0;
      width: 100%;
      height: 100vh;
    }
  }

  .app-modal-footer {
    border-top: @border-base;
    padding: 10px 24px;
    border-radius: 0 0 @border-radius-base @border-radius-base;
    color: @color-black-65;
  }

  .app-modal-form {
    width: 360px;
    margin: auto;
  }

  .app-modal-body, .app-modal-footer {
    a {
      color: @color-base;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  .app-layout-mobile {
    .app-modal {
      width: 100% !important;
      padding-left: @padding-base;
      padding-right: @padding-base;
    }

    .app-modal-body {
      padding: @padding-base;
    }
  }
}
