@import './Overlay';

$padding: 15px;

@mixin pseudo() {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  display: inline-block;
  min-width: 360px;
  min-height: 80px;
  color: #666;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(#000, 0.2);

  .header {
    padding: 0 $padding;
    line-height: 40px;
  }

  .icon-close {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 30px;
    height: 30px;
    color: #666;
    border-radius: 50%;
    cursor: pointer;

    &:hover {
      color: #333;
      //background: #efefef;
    }

    &:before {
      @include pseudo();
      width: 1px;
      height: 1em;
    }

    &:after {
      @include pseudo();
      width: 1em;
      height: 1px;
    }
  }
}
