@import '../../_global/styles/mixins';
@import '../../_global/styles/vars';

.infobox, .richtext div.strong, article.col div.strong {
  margin: calc(3% + 26px) 0;
  background-color: var(--theme-color-secondary-dimmed);
  padding: var(--content-box-padding);
  border-bottom: var(--border-width) solid var(--theme-color-secondary);

  &.success {
    background-color: var(--theme-color-success-dimmed);
    border-color: var(--theme-color-success);
  }
  &.error {
    background-color: var(--theme-color-error-dimmed);
    border-color: var(--theme-color-error);
  }
  &.warning {
    background-color: var(--theme-color-warning-dimmed);
    border-color: var(--theme-color-warning);
  }

  > *:first-child {
    margin-top: -0.4em;
  }
  > *:last-child {
    margin-bottom: -0.4em;
  }

  &:first-child {
    margin-top: 0;
  }
  &:last-child {
    margin-bottom: 0;
  }
}
