.m-top-content-bar {
  display: block;

  &.m-top-content-bar__bottom-mobile {
    position: fixed;
    bottom: 0;
    top: unset;
    width: 100%;
    z-index: 2;

    @media (min-width: $breakpoint-xs) {
      position: unset;
      bottom: unset;
    }
  }

  .m-top-content-bar__content-text {
    margin: 0;
    @media (min-width: $breakpoint-xs) {
      margin: 1em 0;
    }
  }

  .m-top-content-bar__icon,
  .m-top-content-bar__close-button {
    width: 40px;
    text-align: center;
  }

  .m-top-content-bar__close-button {
    margin-left: 13px;

    &.hide-close {
      display: none;
    }
  }

  .m-top-content-bar__icon {
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;

    &.hide-icon {
      display: none;
    }
  }

  .m-top-content-bar__content-button {
    display: none;
  }

  .m-top-content-bar__content-button-mobile {
    display: block;
    width: 100%;
    margin-top: 16px;

    .m-top-content-bar__button,
    .m-top-content-bar__button-link {
      width: 100%;
    }
  }

  &__container {
    @include text(t4);

    background-color: $color-ocean-blue;
    color: $color-prim-white;

    min-height: 50px;
    vertical-align: middle;
    padding: 16px;

    box-sizing: border-box;

    @media (min-width: $breakpoint-xs) {
      padding: 1px 16px;
    }

    &-component {
      min-height: 40px;
      display:flex;
      align-items:center;
      flex-wrap: nowrap;
      line-height: 24px;
      font-size: 16px;

      .m-top-content-bar__button, .m-top-content-bar__button-link {
        margin-left: 10px;
      }

      .m-top-content-bar__button-link {
        display: inline-flex;
      }
    }

    &-flex {
      display:flex;
      flex-wrap: nowrap;
      justify-content: space-between;
    }

    .m-top-content-bar-empty {
      display: none;

      @media (min-width: $breakpoint-xs) {
        display: block;
      }
    }
  }

  &__children {
    display: flex;
    flex-wrap: nowrap;

    @media (min-width: $breakpoint-md) {
      flex-direction: row;
      padding: 0;

      & > * {
        padding: 0;
      }
    }

    .m-top-content-bar__button-link,
    .m-top-content-bar__button {
      margin-left: 10px;
    }
  }

  @media (min-width: $breakpoint-md) {
    div.m-top-content-bar__icon,
    div.m-top-content-bar__close-button {
      justify-content: center;
    }
  }

  @media (min-width: $breakpoint-xs) {
    .m-top-content-bar__content-button-mobile {
      display: none
    }

    .m-top-content-bar__content-button {
      display: flex;
      align-items: center;
      margin-left: 10px;

      &.hide-button {
        display: none;
      }
    }

    .m-top-content-bar__close-button {
      display: flex;
      align-items: center;
      min-width: 40px;
      margin-left: 28px;
      cursor: pointer;
      margin-top: 5px;
    }

    .m-top-content-bar__icon {
      min-width: 40px;
      margin-top: 5px;
    }
  }

}

.m-top-content-bar__container--warning {
  background-color: $color-shy-tomato;
}
.m-top-content-bar__container--success {
  background-color: $color-malachite;
}
.m-top-content-bar__container--attention {
  background-color: $color-underbrush;
}
