$notification-background-color: $background !default;
$notification-code-background-color: $scheme-main !default;
$notification-radius: $radius !default;
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default;

.cj-notification {
  @extend %block;

  background-color: $notification-background-color;
  border-radius: $notification-radius;
  padding: $notification-padding;
  position: relative;

  a:not(.cj-button):not(.cj-dropdown-item) {
    color: currentColor;
    text-decoration: underline;
  }

  strong {
    color: currentColor;
  }

  code,
  pre {
    background: $notification-code-background-color;
  }

  pre code {
    background: transparent;
  }

  & > .cj-delete {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
  }

  .cj-title,
  .cj-subtitle,
  .cj-content {
    color: currentColor;
  }

  // Colors
  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.cj-is-#{$name} {
      background-color: $color;
      color: $color-invert;
    }
  }
}
