/* In-page HUD */

.ccm-notification {
  max-width: 90%;
  font-family: @font-family-sans-serif;
  font-size: @font-size-base;
  z-index: @index-level-hud;
  -webkit-font-smoothing: antialiased;
  .border-radius(3px);
  i.ccm-notification-icon {
    font-size: 16px;
    position: absolute;
    top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 11px 12px;
    width: 40px;
    height: 40px;
    text-align: center;
    left: 20px;
    .border-radius(40px);
  }

  form {
    position: relative;
  }

  div.ccm-notification-inner-wrapper {
    max-height: 320px;
    overflow: auto;
  }

  div.ccm-notification-inner {
    h3 {
      font-size: @font-size-base * 1.2;
      font-weight: 300;
      margin: 0px 0px 10px 0px;
      padding: 0px;
    }

    div.ccm-notification-inner-buttons {
      margin-top: 10px;

      a, button {
        margin-right: 8px;
        border: 0px;
        outline: 0px;
      }

      .btn-default {
        background-color: rgba(255, 255, 255, 0.4);
      }
    }
  }
}

div.ccm-notification-inner {
  width: 360px;
  max-width: 100%;
  padding: 30px 30px 30px 80px;
}

div.ccm-notification-actions {
  font-size: @font-size-small;
  font-weight: 400;
  background-color: rgba(17, 47, 76, 0.9);
  border-top: 1px solid #002a53;
  .border-bottom-radius(3px);
  text-align: right;
  a {
    display: inline-block;
    text-align: center;
    padding: 6px 10px 6px 10px;
    margin-left: 0px;
  }
  a, a:hover {
    text-decoration: none;
  }

}

div#ccm-notification-hud {
  position: fixed;
  top: 110px;
  right: 0px;
  z-index: @index-level-hud;
  .opacity(0);
}

div#ccm-notification-page-alert, div#ccm-notification-page-alert-workflow {
  position: fixed;
  top: 110px;
  right: 10px;
  z-index: @index-level-page-alert;
  @media (min-width: @screen-sm-min) {
    right: 60px;
  }
}

div#ccm-notification-page-alert-workflow {
  div.ccm-notification-inner {
    width: 440px;
  }
}

/**
 * Colors
 */

div.ccm-notification-help,
div.ccm-notification-info {
  background-color: rgba(19, 72, 125, 0.9);
  color: #adeef7;
  h3 {
    color: #fff;
  }
  .ccm-notification-icon {
    color: #fff;
  }

  form {
    border-bottom: 1px solid #002a53;
  }
  div.ccm-notification-actions {
    a {
      border-left: 1px solid #002a53;
      color: #88aee7;

      &.ccm-notification-actions-dismiss-single {
        color: #ffff00;
      }

    }
    a:hover {
      color: #fff;
    }
  }
}

div.ccm-notification-success {
  color: #1c3e00;
  background-color: rgba(15, 190, 102, 0.9);
  h3 {
    color: #fff;
  }
  i {
    color: #fff;
  }
}

div.ccm-notification-danger {
  color: #fff;
  background-color: rgba(190, 62, 62, 0.90);
}


/**
 * Help launcher
 */
div.ccm-notification-help-launcher {
  position: fixed;
  top: 82px;
  right: 0px;
  z-index: @index-level-page-help;

  div.ccm-panel-detail-content & {
    z-index: @index-level-panel-help;
  }

  -webkit-font-smoothing: antialiased;
  .transition-transform(cubic-bezier(0.190, 1.000, 0.220, 1.000) 0.5s);

  html.ccm-panel-open.ccm-panel-right & {
    .translate(-320px, 0);
  }

  a {
    .border-left-radius(4px);
    background-color: #335B8A;
    color: #fff;
    display: block;
    height: 40px;
    width: 40px;
    .transition(all 0.1s ease-in-out);

    -webkit-animation-duration:0.2s;
    -moz-animation-duration:0.2s;
    -ms-animation-duration:0.2s;
    -o-animation-duration:0.2s;
    animation-duration:0.2s;

  }

  a:hover, a:active, a:focus {
    color: #fff;
    background-color: #163251;
  }

  i {
    margin-left: 9px;
    vertical-align: middle;
    font-size: 26px;
    font-weight: normal;
    line-height: 40px;
  }
}

div.ccm-notification-help {
  display: none;

  div.ccm-panel-detail-content & {
    margin-top: -28px; // not sure why – some of the style in these panels gets a little weird.
  }

  -webkit-animation-duration:0.2s;
  -moz-animation-duration:0.2s;
  -ms-animation-duration:0.2s;
  -o-animation-duration:0.2s;
  animation-duration:0.2s;
  -webkit-font-smoothing: antialiased;

  .transition-transform(cubic-bezier(0.190, 1.000, 0.220, 1.000) 0.5s);

  html.ccm-panel-open.ccm-panel-right & {
    .translate(-320px, 0);
  }

  position: fixed;
  right: 0px;
  top: 83px;
  .border-right-radius(0px);
  z-index: @index-level-page-help;

}

