@import "../../styles/global-css-settings.scss";
@import "../../styles/typography.scss";
@import "../../styles/themes.scss";

.monday-alert-banner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  width: 100%;
  font-size: 14px;

  &.monday-alert-banner {
    &--background-color {
      &-primary {
        @include theme-prop(background-color, primary-color);
        @include theme-prop(color, text-color-on-primary);
      }
      &-positive {
        @include theme-prop(background-color, positive-color);
        @include theme-prop(color, text-color-on-primary);
      }
      &-negative {
        @include theme-prop(background-color, negative-color);
        @include theme-prop(color, text-color-on-primary);
      }
      &-dark {
        @include theme-prop(background-color, inverted-color-background);
        @include theme-prop(color, text-color-on-inverted);
      }
    }
  }
}

.monday-alert-banner__inner {
  flex: 1 1 auto;
  display: flex;
  height: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding-left: $spacing-medium;
}

.monday-alert-banner__close-button-wrapper {
  flex: 0 0 40px;
  position: relative;
  height: 100%;
  min-width: 0;
}

.monday-style-button.monday-alert-banner__alert-banner-close-btn {
  position: absolute;
  right: 4px;
  top: 4px;
}

.monday-alert-banner__ellipsis {
  flex: 0 1 auto;
}

.monday-alert-banner__inner-item {
  flex: 0 0 auto;
  min-width: 0;
}

.monday-alert-banner__inner-item-text {
  flex: 0 1 auto;
  min-width: 0;
}
