@import "variables";

.tt_modal_confirm {
  position: absolute;
  z-index: 10000;
  top: 0;
  left: 0;
  visibility: hidden;
  width: 100%;
  height: 100%;

  &.is-visible {
    visibility: visible;

    .tt_modal_overlay {
      opacity: 1;
      visibility: visible;
      transition-delay: 0s;
    }

    .tt_modal_transition {
      transform: translateY(0);
      opacity: 1;
    }

  }

  .tt_modal_overlay {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s;
  }

  .tt_modal_wrapper {
    position: absolute;
    z-index: 9999;
    top: 6em;
    left: 50%;
    width: 32em;
    margin-left: -16em;
    background-color: $white;
    box-shadow: 0 0 1.5em hsla(0, 0%, 0%, 0.35);
  }

  .tt_modal_transition {
    transition: all 0.3s 0.12s;
    transform: translateY(-10%);
    opacity: 0;
  }

  .tt_modal_content {
    padding: 50px 20px 20px 20px;
    display: flex;
    justify-content: center;
  }

  .tt_modal_header {
    padding: 1em;
    font-size: 16px;
    position: relative;
    background-color: $white;
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.06);
    border-bottom: 1px solid $grey;
  }

  .tt_modal_close {
    position: absolute;
    top: 0;
    right: 10px;
    padding: 1em;
    color: $medium-grey;
    border: 0;
    opacity: 0.3;

    &:hover {
      opacity: 1;
    }

    &:before,
    &:after {
      position: absolute;
      left: 15px;
      content: ' ';
      height: 25px;
      width: 2px;
      background-color: #333
    }

    &:before {
      transform: rotate(45deg);
    }

    &:after {
      transform: rotate(-45deg);
    }
  }

  .tt_modal_heading {
    font-size: 1.125em;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .tt_modal_description {
    font-size: 16px;
    line-height: 20px;
    padding: 0 20px;
    position: relative;
  }

  button {
    padding: 12px 30px;
    font-size: 16px;
    margin-right: 20px;
    cursor: pointer;
    color: $white;
    outline: none;
    border: none;

    &:hover {
      box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
  }

  .tt_modal_cancel {
    background: $red;
  }

  .tt_modal_logout {
    background: $dark-green;
  }

  .tt_modal_content > *:first-child {
    margin-top: 0;
  }

  .tt_modal_content > *:last-child {
    margin-bottom: 0;
  }

}



