/* Copyright CloudLinux Zug GmbH 2010-2017 All Rights Reserved
 *
 * Licensed under CLOUD LINUX LICENSE AGREEMENT
 * http://cloudlinux.com/docs/LICENSE.TXT
 */

@import "../../../../styles/colors";
@import "../../../../styles/mixins";

/* Add Animation */
.keyframes(animatetop, {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
});

/* The Modal (background) */
.ui-modal {
    display: flex;
    -ms-flex-direction: column;
    position: fixed;
    z-index: 1030;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(76,76,76,0.55);

    /* Modal Content */
    .ui-modal-content {
        .ui-box-wrapper();
        position: relative;
        padding: 25px;
        margin: auto;
        width: 540px;
        overflow: auto;
        max-height: 100%;
        .animation(animatetop 0.4s);
        border-radius: 4px;
        background-color: #fff;
        box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.24);

        .ui-modal-header {
            display: flex;
            justify-content: space-between;
            font-size: 20px;
            color: #2b2b2b;

            h2 {
                font-weight: bold;
                line-height: 30px;
                width: 420px;
                &:first-letter {
                    text-transform: uppercase;
                }
            }

            .ui-close {
              font-size: 35px;
              font-weight: 100;
              color: #afafaf;
              cursor: pointer;
            }
        }

        .ui-modal-body {
            margin: 25px 0;
            overflow: auto;
            font-size: 13px;
        }

        .ui-modal-footer {
            display: flex;
            &.direction-type {
                &-row {
                    flex-direction: row;
                    justify-content: flex-end;
                }
                &-column {
                    flex-direction: column;
                    align-items: flex-end;
                }
            }
            & > ui-button {
                &[ng-reflect-style="default"],
                &[ng-reflect-style="primary"] {
                    margin-left: 10px;
                }
            }
        }
    }

}

:host /deep/ ui-button {
  button {
      font-size: 15px;
      font-weight: bold;
      &.icon {
          padding-left: 19px;
      }
  }
}

:host /deep/ .text-block {
    margin: 20px 0;
    width: 430px;
}

