* {
  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-toast-background: (<color>) Controls the background color of the toast container.
 * @prop --tct-toast-text: (<color>) Controls the primary text color of the toast.
 * @prop --tct-toast-subtle: (<color>) Controls the subtle/secondary text color of the toast (description, footer).
 * @prop --tct-toast-border: (<color>) Controls the border color of the toast container in its default theme.
 * @prop --tct-toast-icon-bg: (<color>) Controls the background color of the toast leading icon circle in its default theme.
 * @prop --tct-toast-shadow: (*) Controls the box shadow of the toast container.
 * @prop --tct-toast-gap: (<length-percentage>) Controls the gap between the toast header and body.
 * @prop --tct-toast-padding: (<length-percentage>+) Controls the inner padding of the toast content container.
 * @prop --tct-toast-padding-small: (<length-percentage>+) Controls the inner padding of the toast content container in the small size.
 * @prop --tct-toast-footer-gap: (<length-percentage>) Controls the top margin between the toast body and footer.
 * @prop --tct-toast-footer-spacing: (<length-percentage>) Controls the gap between items within the toast footer.
 * @prop --tct-toast-actions-gap: (<length-percentage>) Controls the gap between action buttons in the toast footer.
 * @prop --tct-toast-close-offset: (<length>) Controls the left margin offset of the toast close button.
 */
:host {
  display: block;
}

.toast {
  --comp-accent-width: 1px;
  --comp-icon-size: 32px;
  --comp-icon-bg: transparent;
  --comp-text-color: var(--tct-toast-text, var(--tct-gray-2, var(--app-gray-2, #333333)));
  --comp-subtle-color: var(--tct-toast-subtle, var(--tct-gray-5, var(--app-gray-5, #6b6b6b)));
  --comp-color-success: var(--tct-stoplight-success, var(--const-stoplight-success, #0e8a00));
  --comp-color-info: var(--tct-stoplight-info, var(--const-stoplight-info, #0079c1));
  --comp-color-warning: var(--tct-stoplight-warning, var(--const-stoplight-warning, #c35500));
  --comp-color-alert: var(--tct-stoplight-alert, var(--const-stoplight-alert, #d20a0a));
  --comp-color-default: white;
  display: flex;
  flex-direction: column;
  gap: var(--tct-toast-gap, var(--app-scale-2x, 10px));
  padding-left: 3px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: var(--tct-toast-background, var(--tct-gray-14, var(--app-gray-l3, #ffffff)));
  color: var(--comp-text-color);
  box-shadow: var(--tct-toast-shadow, var(--app-shadow-2, 0 12px 24px rgb(0 0 0 / 0.12)));
  overflow: hidden;
}
.toast.success {
  border-color: var(--comp-color-success);
  background-color: var(--comp-color-success);
  --comp-icon-bg: #e7f5e3;
}
.toast.info {
  border-color: var(--comp-color-info);
  background-color: var(--comp-color-info);
  --comp-icon-bg: #e6f1fb;
}
.toast.warning {
  border-color: var(--comp-color-warning);
  background-color: var(--comp-color-warning);
  --comp-icon-bg: #fff0df;
}
.toast.alert {
  border-color: var(--comp-color-alert);
  background-color: var(--comp-color-alert);
  --comp-icon-bg: #fde6e6;
}
.toast.is-closing {
  animation-name: shrink;
  animation-duration: 500ms;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  transform-origin: top;
  overflow: hidden;
}
.toast.small .container {
  padding: var(--tct-toast-padding-small, var(--app-scale-2x, 10px));
}
.toast.default {
  --comp-border-color: var(--tct-toast-border, var(--tct-gray-9, var(--app-gray-4, #d1d1d1)));
  --comp-icon-bg: var(--tct-toast-icon-bg, var(--tct-gray-12, var(--app-gray-l2, #f3f3f3)));
  border-color: var(--comp-border-color);
}

.header {
  display: grid;
  grid-template-columns: var(--comp-icon-size) 1fr auto;
  gap: var(--tct-toast-gap, var(--app-scale-2x, 10px));
  align-items: center;
}

.toast.no-icon .header {
  grid-template-columns: 1fr auto;
}

.icon {
  width: var(--comp-icon-size);
  height: var(--comp-icon-size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--comp-icon-bg);
}

.icon q2-icon {
  --tct-icon-size: calc(var(--comp-icon-size) - 6px);
  --tct-icon-stroke-primary: var(--comp-border-color);
  --tct-icon-stroke-secondary: var(--comp-border-color);
  --tct-icon-fill: var(--comp-border-color);
}

.title {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content {
  color: var(--comp-subtle-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer {
  margin-top: var(--tct-toast-footer-gap, var(--app-scale-2x, 10px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tct-toast-footer-spacing, var(--app-scale-2x, 10px));
  color: var(--comp-subtle-color);
  font-size: 0.875rem;
}

.time {
  white-space: nowrap;
}

.actions {
  display: inline-flex;
  align-items: center;
  gap: var(--tct-toast-actions-gap, var(--app-scale-2x, 10px));
}

.close {
  border: none;
  background: transparent;
  padding: 2px;
  margin-left: var(--tct-toast-close-offset, var(--app-scale-1x, 5px));
  color: var(--comp-subtle-color);
  cursor: pointer;
}

.close q2-icon {
  --tct-icon-size: 18px;
}

.container {
  padding: var(--tct-toast-padding, var(--app-scale-3x, 15px));
  background-color: white;
}

@keyframes shrink {
  from {
    transform: scale(1);
    height: var(--toast-close-height, 0px);
    opacity: 1;
  }
  to {
    transform: scale(0);
    height: 0;
    opacity: 0;
  }
}