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

@layout-prefix-cls: ~"@{mkui-prefix}-layout";
@layout-modal-prefix-cls: ~"@{layout-prefix-cls}-inner-modal";

.@{layout-modal-prefix-cls} {
  background-color: #fff;
  display: flex;
  flex-flow: column;
  height: 100%;

  &-header {
    position: relative;
    padding: 16px 48px 16px 12px;
    border-radius: @border-radius-base @border-radius-base 0 0;
    background: @modal-header-bg;
    color: @text-color;
    border-bottom: 1px solid @border-color-split;

    &-title {
      display: inline-block;
      margin: 0;
      font-size: @font-size-lg;
      line-height: 1;
      font-weight: 500;
      color: @heading-color;
      padding-left: 8px;
      border-left: 3px solid @primary-color;
    }
    &-close {
      cursor: pointer;
      border: 0;
      background: transparent;
      position: absolute;
      right: 0;
      top: 0;
      z-index: 10;
      font-weight: 700;
      line-height: 1;
      text-decoration: none;
      transition: color .3s;
      color: @text-color-secondary;
      outline: 0;
      padding: 0;
      &-x {
        display: block;
        font-style: normal;
        vertical-align: baseline;
        text-align: center;
        text-transform: none;
        text-rendering: auto;
        width: 56px;
        height: 56px;
        line-height: 56px;
        font-size: @font-size-lg;
      }

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

  &-body {
    font-size: @font-size-base;
    line-height: @line-height-base;
    word-wrap: break-word;
    padding: 10px 20px 20px;
    flex-grow: 1;
    overflow: auto;
    &-toolbar {
      padding: 15px 24px 15px 24px;
      button + button {
        margin-left: 8px;
      }
    }
    .@{layout-modal-prefix-cls}-body-toolbar + .@{layout-modal-prefix-cls}-body-content {
      padding-top: 0;
    }
    &-content {
      padding: 24px;
    }
  }

  &-footer {
    padding: 10px 16px;
    text-align: right;
    border-radius: 0 0 @border-radius-base @border-radius-base;
    border-top: 1px solid @border-color-split;
    button + button {
      margin-left: 8px;
      margin-bottom: 0;
    }
  }
}
