@use '../../../css/_config/_mixins';

.wrap {
  width: 100%;
  margin: 20px 0;

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

.banner {
  width: 100%;
  padding: 7px 30px 7px 7px;
  background: var(--color-tertiary-background);
  border: 1px solid var(--color-tertiary-border);
  border-radius: 6px;

  font-size: 12px;
  line-height: 16px;
  text-align: left;
  color: var(--color-text);

  @media (min-width: 1024px) {
    padding: 9px 30px 9px 9px;
  }

  @include mixins.focus-self-outline;
}

.title,
.body,
.cta {
  margin: 8px 0;
  text-wrap: balance;

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

.title {
  font-weight: 700;
  color: var(--color-opacity-07);
}

.body {
  line-height: 17px;
}

.cta {
  color: var(--color-opacity-07);
}

.icon {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  top: 2px;
  width: 12px;
  height: 12px;
  margin-left: 4px;
}

.close {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: transparent;
  border-radius: 6px;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;

  @include mixins.focus-self-outline;

  &:before,
  &:after {
    content: '';
    display: block;
    position: absolute;
    top: 14px;
    left: 9px;
    width: 12px;
    height: 1px;
    background: var(--color-text);
    transform: rotate(45deg);
  }
  &:after {
    transform: rotate(-45deg);
  }
}
