//partial import from cardinal design system
@import 'settings/settings';
@import 'tools/tools';

:host {
  width: 50%;
}

p {
  font-size: $label-font-size;
  margin: 0 !important;
  line-height: 1.43;
}

h5,
.h5 {
  text-transform: uppercase;
}

.usage-warning-bar {
  margin-bottom: $spacing-lg;
}

.usage-warning-content {
  flex-wrap: nowrap;
}

.usage-warning-title {
  margin-bottom: $spacing-xs;
  font-weight: $font-weight-semibold;
}

.usage-warning-icon {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
  margin: 0;

  ::before {
    background-color: $ta-white100;
    background-clip: content-box;
    border-radius: 50%;
  }
}

.usage-warning-message {
  width: 90%;
  padding: 0 1%;
  margin: 0 1%;
}

:host-context(.do-halfWidth),
:host-context(.caution-halfWidth),
:host-context(.dont-halfWidth) {
  width: 48%;
}

:host-context(.do-fullWidth),
:host-context(.caution-fullWidth),
:host-context(.dont-fullWidth) {
  width: 100%;
}

:host-context(.do-halfWidth),
:host-context(.do-fullWidth) {
  & .usage-warning-title {
    color: $success;
  }

  & .usage-warning-bar {
    background-color: $success;
  }

  & i.usage-warning-icon {
    @include background-opacity($success, 0.2);
  }

  & i.usage-warning-icon::before {
    content: $ta-success-icon;
    color: $success;
  }
}

:host-context(.caution-halfWidth),
:host-context(.caution-fullWidth) {
  & .usage-warning-title {
    color: $caution;
  }

  & .usage-warning-bar {
    background-color: $caution;
  }

  & i.usage-warning-icon {
    @include background-opacity($caution, 0.2);
  }

  & i.usage-warning-icon::before {
    content: $ta-alert-icon;
    color: $caution;
  }
}

:host-context(.dont-fullWidth),
:host-context(.dont-halfWidth) {
  & .usage-warning-title {
    color: $error;
  }

  & .usage-warning-bar {
    background-color: $error;
  }

  & i.usage-warning-icon {
    @include background-opacity($error, 0.2);
  }

  & i.usage-warning-icon::before {
    content: $ta-error-icon;
    color: $error;
  }
}
