.@{prefixCls} {
  position: relative;
  width: auto;
  margin: 10px;

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

  &-title {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
    line-height: 21px;
  }

  &-content {
    position: relative;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-radius: 6px 6px;
  }

  &-close {
    position: absolute;
    top: 12px;
    right: 20px;
    color: #000;
    font-weight: 700;
    font-size: 21px;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 0 #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    opacity: 0.2;
    filter: alpha(opacity=20);

    &-x::after {
      content: '×';
    }

    &:hover {
      text-decoration: none;
      opacity: 1;
      filter: alpha(opacity=100);
    }
  }

  &-header {
    padding: 13px 20px 14px 20px;
    color: #666;
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
    border-radius: 5px 5px 0 0;
  }

  &-body {
    padding: 20px;
  }

  &-footer {
    padding: 10px 20px;
    text-align: right;
    border-top: 1px solid #e9e9e9;
    border-radius: 0 0 5px 5px;
  }

  .effect() {
    animation-duration: 0.3s;
    animation-fill-mode: both;
  }

  &-zoom-enter,
  &-zoom-appear {
    opacity: 0;
    animation-play-state: paused;
    animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
    .effect();
  }

  &-zoom-leave {
    .effect();
    animation-play-state: paused;
    animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
  }

  &-zoom-enter&-zoom-enter-active,
  &-zoom-appear&-zoom-appear-active {
    animation-name: rcDialogZoomIn;
    animation-play-state: running;
  }

  &-zoom-leave&-zoom-leave-active {
    animation-name: rcDialogZoomOut;
    animation-play-state: running;
  }

  @keyframes rcDialogZoomIn {
    0% {
      transform: scale(0, 0);
      opacity: 0;
    }
    100% {
      transform: scale(1, 1);
      opacity: 1;
    }
  }
  @keyframes rcDialogZoomOut {
    0% {
      transform: scale(1, 1);
    }
    100% {
      transform: scale(0, 0);
      opacity: 0;
    }
  }
}

@media (min-width: 768px) {
  .@{prefixCls} {
    width: 600px;
    margin: 30px auto;
  }
}
