@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;


.infobox {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.infobox,
.richtext div.strong,
article.col div.strong {
  position: relative;
  margin: calc(3% + 26px) 0;
  background-color: var(--color-background);
  padding: var(--content-box-padding);
  border-radius: calc(4 * (var(--border-radius-xs)));
  overflow: hidden;
  @media (max-width: 767px) {
    border-radius: calc(2 * (var(--border-radius-xs)));
    padding-top: calc(2 * var(--content-box-padding));
    padding-bottom: calc(2 * var(--content-box-padding));
  }

  &:after {
    content: "";
    display: block;
    width: 100%;
    height: var(--border-width);
    background: var(--color-border);
    position: absolute;
    left: 0;
    bottom: 0;
  }

  &.success {
    &:after {
    }
  }

  &.error {
    background-color: var(--feedback-error-light);
    color: var(--feedback-error);
    &:after {
      background: var(--feedback-error);
    }
  }

  &.warning {
    background-color: var(--feedback-warning-light);
    &:after {
      background: var(--feedback-warning);
    }
  }

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

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

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

  &:last-child {
    margin-bottom: 0;
  }
  .infobox--content {
    flex: 1;
  }
  .icon-box {
    flex-shrink: 0;
    margin-top: -15px;
    width: 76px;
    height: 76px;
    font-size: 76px;
    line-height: 76px;
    font-family: "Pictograms", sans-serif;
    color: var(--color-decoration);
    @media (max-width: 767px) {
      position: absolute;
      right: 15px;
      top: 15px;
      margin-top: 0;
    }
  }
  h2, .like-h2 {
    @media (max-width: 767px) {
      padding-right: 90px;
    }
  }
  p.kicker {
    @media (max-width: 767px) {
      padding-right: 90px;
    }
  }
}

.snippingTool {
  margin: calc(3% + 26px) 50px;
  background-color: var(--color-background);
  padding: var(--content-box-padding);
  width: 652px;

  .topicSnippingTool {
    margin: 10px 0;
  }

  .snippingToolLink {
    font-size: var(--font-size-xs);
    margin: 5px 0 0;
  }

  .snippingToolTitle {
    margin: 0;
  }

  .snippingToolDescription {
    font-size: var(--font-size-xs);
  }
}
