@import "../../../style/mixins/index";
@import "../../../style/theme/default/index";

@dialog-prefix-cls:  ~"@{idoll-prefix}-modal";

.@{dialog-prefix-cls} {
  position: relative;
  margin: 0 auto;
  top: 100px;
  width: 560px;

  &-wrap {
    position: fixed;
    overflow: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: @modal-zindex-mask;
    -webkit-overflow-scrolling: touch;
    outline: 0;
  }

  &-title {
    margin: 0;
    font-size: @font-size-base + 2;
    line-height: @modal-line-height + 2px;
    font-weight: bold;
  }

  &-content {
    position: relative;
    background-color: @white;
    border: 0;
    border-radius: @border-radius-base;
    background-clip: padding-box;
  }

  &-close {
    cursor: pointer;
    border: 0;
    background: transparent;
    position: absolute;
    right: 24px;
    top: 20px;
    z-index: 10;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: color @animation-duration-slow ease;
    color: @text-color-secondary;
    outline: 0;

    &-x {
      display: block;
      font-style: normal;
      text-align: center;
      text-transform: none;
      text-rendering: auto;
      font-size: @padding-md;
      line-height: 1;

      &:before {
        content: "\E6EC";
        display: block;
        font-family: "idollicon"
      }
    }

    &:focus,
    &-hover {
      color: @text-color;
      text-decoration: none;
    }
  }

  &-header {
    position: relative;
    padding: @padding-md @padding-lg;
    border-radius: @border-radius-base @border-radius-base 0 0;
    background: @white;
    color: @text-color ;
    border-bottom: 1px solid @border;
  }

  &-body {
    // min-height: 180px;
    padding: @padding-lg;
    font-size: @font-size-base;
    line-height: @modal-line-height;
    overflow:auto;
  }

  &-footer {
    padding:@padding-md @padding-lg;
    text-align: right;
    border-radius: 0 0 @border-radius-base @border-radius-base;
    button {
      margin-left:8px;
    }

  }

  &.zoom-enter,
  &.zoom-appear {
    animation-duration: @animation-duration-slow;
    transform: none;
    opacity: 0;
  }

  &-mask {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: @modal-mask-bg;
    height: 100%;
    z-index: @modal-zindex-mask;
    filter: ~"alpha(opacity=50)";

    &-hidden {
      display: none;
    }
  }

  &-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .@{dialog-prefix-cls} {
    width: auto !important;
    margin: 10px;
  }
  .vertical-center-modal {
    .@{dialog-prefix-cls} {
      flex: 1;
    }
  }
}
