* {
  box-sizing: border-box;
}

*:active {
  outline: none;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc);
}

:host {
  box-shadow: none !important;
}

::-moz-focus-inner {
  border: none;
}

input,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  font-stretch: inherit;
}

:host(.sr),
:host(.sr) button {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.sr,
.sr button {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.hidden {
  display: none;
}

:host([hidden]) {
  display: none;
}

.invisible {
  visibility: hidden;
}

@container style(--t-prefers-motion: "reduced") {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-delay: 0ms !important;
  }
}
@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")) {
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
      animation-delay: 0ms !important;
      transition-delay: 0ms !important;
    }
  }
}
/**
 * @prop --tct-message-background: (<color>) Controls the background color of the message container.
 * @prop --tct-message-font-color?: (<color>) Controls the optional text color of the message content.
 * @prop --tct-message-font-size?: (<length-percentage>) Controls the optional font size of the message content.
 * @prop --tct-message-line-height: (<number> | <length-percentage>) Controls the line height of the message content.
 * @prop --tct-message-box-shadow?: (*) Controls the optional box shadow of the message container.
 * @prop --tct-message-border-color?: (<color>) Controls the optional border color of the message container.
 * @prop --tct-message-border-style: (<custom-ident>) Controls the border style of the message container.
 * @prop --tct-message-border-width?: (<length>+) Controls the optional border width of the message container.
 * @prop --tct-message-border-radius?: (<length-percentage>) Controls the optional corner radius of the message container.
 * @prop --tct-message-margin: (<length-percentage>+) Controls the outer margin of the message host in the standard appearance.
 * @prop --tct-message-padding: (<length-percentage>+) Controls the inner padding of the message container in the standard appearance.
 * @prop --tct-message-minimal-padding: (<length-percentage>+) Controls the inner padding of the message container in the minimal appearance.
 * @prop --tct-message-gap: (<length-percentage>) Controls the gap between the message icon and its content.
 * @prop --tct-message-icon-size: (<length>) Controls the size of the message leading icon.
 * @prop --tct-message-list-margin: (<length-percentage>+) Controls the margin around a slotted unordered list inside the message.
 * @prop --tct-message-list-padding: (<length-percentage>+) Controls the inner padding of a slotted unordered list inside the message.
 * @prop --tct-message-bar-width: (<length>) Controls the width of the colored status bar on the side of the message.
 * @prop --tct-message-bar-border-radius: (<length-percentage>+) Controls the corner radius of the colored status bar on the side of the message.
 * @prop --tct-message-info-bar-color: (<color>) Controls the color of the status bar when the message type is info.
 * @prop --tct-message-success-bar-color: (<color>) Controls the color of the status bar when the message type is success.
 * @prop --tct-message-warning-bar-color: (<color>) Controls the color of the status bar when the message type is warning.
 * @prop --tct-message-error-bar-color: (<color>) Controls the color of the status bar when the message type is error or danger.
 * @prop --tct-message-info-background: (<color>) Controls the background color of the message container when the message type is info.
 * @prop --tct-message-success-background: (<color>) Controls the background color of the message container when the message type is success.
 * @prop --tct-message-warning-background: (<color>) Controls the background color of the message container when the message type is warning.
 * @prop --tct-message-error-background: (<color>) Controls the background color of the message container when the message type is error or danger.
 */
:host {
  display: block;
}

:host([hidden]) {
  display: none;
}

.message {
  --comp-line-height: var(--tct-message-line-height, var(--t-message-line-height, var(--app-line-height, 1.428571429em)));
  border-width: var(--tct-message-border-width, 0);
  border-style: var(--tct-message-border-style, solid);
  border-color: var(--tct-message-border-color, transparent);
  position: relative;
  display: grid;
  gap: var(--tct-message-gap, 8px);
  align-items: flex-start;
  background: var(--comp-message-background);
  color: var(--tct-message-font-color, var(--t-message-font-color, inherit));
  box-shadow: var(--tct-message-box-shadow, var(--t-message-box-shadow, var(--app-shadow-1, inherit)));
  border-radius: var(--tct-message-border-radius, var(--t-message-border-radius, var(--app-border-radius-1, inherit)));
}
.message:focus {
  box-shadow: var(--const-global-focus);
}

.bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  background: var(--comp-bar-color);
  width: var(--tct-message-bar-width, var(--t-message-bar-width, 4px));
  border-radius: var(--tct-message-bar-border-radius, var(--app-border-radius-1) 0 0 var(--app-border-radius-1));
}

.message-icon {
  --comp-top-offset: calc(calc(var(--comp-line-height) - var(--comp-icon-size)) / 2);
  --tct-icon-size: var(--comp-icon-size);
  top: var(--comp-top-offset);
  margin-bottom: calc(var(--comp-top-offset) * -1);
}

.message-content {
  flex: 1;
  line-height: var(--comp-line-height);
  font-size: var(--tct-message-font-size, inherit);
}

::slotted(ul) {
  --comp-list-default-padding: 0 0 0 var(--app-scale-3x, 15px);
  padding: var(--tct-message-list-padding, var(--comp-list-default-padding));
}

:host(:not([appearance])),
:host([appearance=standard]) {
  --comp-default-margin: var(--app-scale-3x, 5px) 0;
  margin: var(--tct-message-margin, var(--comp-default-margin));
}
:host(:not([appearance])) .message,
:host([appearance=standard]) .message {
  --comp-icon-size: var(--tct-message-icon-size, var(--t-message-icon-size, 24px));
  --comp-padding: var(--tct-message-padding, var(--t-message-padding, var(--app-scale-3x, 15px)));
  grid-template-columns: var(--comp-icon-size) 1fr;
  padding: var(--comp-padding);
  padding-bottom: calc(var(--comp-padding) - var(--tct-scale-1, var(--app-scale-1x, 5px)));
}
:host(:not([appearance])) ::slotted(ul),
:host([appearance=standard]) ::slotted(ul) {
  --comp-list-default-margin: var(--app-scale-3x, 15px) 0;
  margin: var(--tct-message-list-margin, var(--comp-list-default-margin));
}

:host([appearance=minimal]) {
  margin: 0;
}
:host([appearance=minimal]) .message {
  padding: var(--tct-message-minimal-padding, var(--t-message-minimal-padding, var(--app-scale-2x, 10px)));
  grid-template-columns: 1fr;
}
:host([appearance=minimal]) ::slotted(ul) {
  margin: var(--tct-scale-1, var(--app-scale-1x, 5px)) 0;
}

:host(:not([type])),
:host([type=info]) {
  --comp-info-color: #0079c1;
  --comp-bar-color: var(--tct-message-info-bar-color, var(--const-stoplight-info, var(--comp-info-color)));
  --comp-message-background: var(--tct-message-info-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)));
}
:host(:not([type])) .message-icon,
:host(:not([type])) .message-icon,
:host([type=info]) .message-icon,
:host([type=info]) .message-icon {
  --tct-icon-stroke-primary: var(--tct-stoplight-info, var(--const-stoplight-info, var(--comp-info-color)));
  --tct-icon-stroke-secondary: var(--tct-stoplight-info, var(--const-stoplight-info, var(--comp-info-color)));
}

:host([type=success]) {
  --comp-success-color: #0e8a00;
  --comp-bar-color: var(--tct-message-success-bar-color, var(--const-stoplight-success, var(--comp-success-color)));
  --comp-message-background: var(--tct-message-success-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)));
}
:host([type=success]) .message-icon {
  --tct-icon-stroke-primary: var(--tct-stoplight-success, var(--const-stoplight-success, var(--comp-success-color)));
  --tct-icon-stroke-secondary: var(--tct-stoplight-success, var(--const-stoplight-success, var(--comp-success-color)));
}

:host([type=warning]) {
  --comp-warning-color: #c35500;
  --comp-bar-color: var(--tct-message-warning-bar-color, var(--const-stoplight-warning, var(--comp-warning-color)));
  --comp-message-background: var(--tct-message-warning-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)));
}
:host([type=warning]) .message-icon {
  --tct-icon-stroke-primary: var(--tct-stoplight-warning, var(--const-stoplight-warning, var(--comp-warning-color)));
  --tct-icon-stroke-secondary: var(--tct-stoplight-warning, var(--const-stoplight-warning, var(--comp-warning-color)));
}

:host([type=error]),
:host([type=danger]) {
  --comp-error-color: #d20a0a;
  --comp-bar-color: var(--tct-message-error-bar-color, var(--const-stoplight-alert, var(--comp-error-color)));
  --comp-message-background: var(--tct-message-error-background, var(--tct-message-background, color-mix(in srgb, var(--t-base, #FFFFFF), var(--comp-bar-color) 10%)));
}
:host([type=error]) .message-icon,
:host([type=error]) .message-icon,
:host([type=danger]) .message-icon,
:host([type=danger]) .message-icon {
  --tct-icon-stroke-primary: var(--tct-stoplight-error, var(--const-stoplight-alert, var(--comp-error-color)));
  --tct-icon-stroke-secondary: var(--tct-stoplight-error, var(--const-stoplight-alert, var(--comp-error-color)));
}