* {
  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-modal-background: (<color>) Controls the background color of the modal dialog.
 * @prop --tct-modal-color: (<color>) Controls the text color of the modal dialog.
 * @prop --tct-modal-backdrop-background: (<color>) Controls the background color of the modal backdrop.
 * @prop --tct-modal-border-radius: (<length-percentage>+) Controls the corner radius of the modal dialog.
 * @prop --tct-modal-box-shadow: (*) Controls the box shadow of the modal dialog.
 * @prop --tct-modal-padding: (<length-percentage>+) Controls the inner padding of the modal dialog.
 * @prop --tct-modal-gap: (<length-percentage>) Controls the vertical gap between the modal header, content, and footer.
 * @prop --tct-modal-header-height: (<length>) Controls the height of the modal header row.
 * @prop --tct-modal-close-button-size: (<length>) Controls the size of the modal close button.
 * @prop --tct-modal-content-gradient-height: (<length>) Controls the height of the scroll-edge gradient on the modal content.
 * @prop --tct-modal-max-width: (<length-percentage>) Controls the maximum width of the modal dialog.
 * @prop --tct-modal-max-height: (<length-percentage>) Controls the maximum height of the modal dialog.
 * @prop --tct-modal-min-height: (<length-percentage>) Controls the minimum height of the modal dialog.
 * @prop --tct-modal-icon-size: (<length>) Controls the height and width of the modal leading icon.
 * @prop --tct-modal-icon-margin: (<length-percentage>+) Controls the margin around the modal leading icon.
 * @prop --tct-modal-image-border-radius: (<length-percentage>) Controls the corner radius of the modal image.
 * @prop --tct-modal-description-font-size: (<length-percentage>) Controls the font size of the modal description text.
 * @prop --tct-modal-title-font-weight: (<number>) Controls the font weight of the modal title.
 * @prop --tct-modal-tween: (*) Controls the open/close transition timing of the modal dialog.
 */
@keyframes showBackdrop {
  from {
    opacity: 0;
  }
}
@keyframes hideBackdrop {
  to {
    opacity: 0;
  }
}
dialog {
  --comp-border-radius-default: var(--app-scale-3x, 15px);
  --comp-border-radius: var(--tct-modal-border-radius, var(--comp-border-radius-default));
  --comp-desktop-border-radius: var(--tct-modal-border-radius, var(--app-scale-3x, 15px));
  --comp-close-button-size: var(--tct-modal-close-button-size, var(--t-a11y-min-size, 44px));
  --comp-header-height: var(--tct-modal-header-height, var(--t-a11y-min-size, 44px));
  --comp-dialog-background: var(--tct-modal-background, var(--t-base, #ffffff));
  --comp-dialog-color: var(--tct-modal-color, inherit);
  --comp-dialog-padding: var(--tct-modal-padding, var(--app-scale-3x, 15px));
  --comp-content-gradient-height: var(--tct-modal-content-gradient-height, var(--app-scale-2x, 10px));
  --comp-dialog-gap: var(--tct-modal-gap, var(--app-scale-2x, 10px));
  --comp-dialog-max-width: var(--tct-modal-max-width, 600px);
  --comp-dialog-max-height: var(--tct-modal-max-height, 100vh);
  --comp-dialog-min-height: var(--tct-modal-min-height, inherit);
  --comp-dialog-box-shadow: var(--tct-modal-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14)));
  position: fixed;
  top: 100%;
  bottom: unset;
  color: var(--comp-dialog-color);
  background: var(--comp-dialog-background);
  transition: transform var(--tct-modal-tween, var(--app-tween-2, 0.4s ease)), opacity var(--tct-modal-tween, var(--app-tween-2, 0.4s ease));
  width: 100%;
  max-width: var(--comp-dialog-max-width);
  max-height: var(--comp-dialog-max-height);
  border: 0;
  border-radius: var(--comp-border-radius);
  box-shadow: var(--comp-dialog-box-shadow);
  padding: 0;
  height: auto;
  overflow: hidden;
}
dialog::backdrop {
  opacity: 0;
  background: var(--tct-modal-backdrop-background, var(--t-top-a2, rgba(13, 13, 13, 0.6)));
}
dialog[open] {
  border-radius: var(--comp-desktop-border-radius);
  top: 0px;
  bottom: 0px;
  height: fit-content;
  transform: translateY(10%);
  opacity: 1;
}
dialog[open].is-opening, dialog[open].is-open {
  opacity: 1;
  transform: translateY(0);
}
dialog[open].is-opening::backdrop, dialog[open].is-open::backdrop {
  opacity: 1;
  animation: showBackdrop var(--tct-modal-tween, var(--app-tween-2, 0.4s ease));
}
dialog[open].is-closing {
  transform: translateY(10%);
}
dialog[open].is-closing::backdrop {
  animation: hideBackdrop var(--tct-modal-tween, var(--app-tween-2, 0.4s ease));
}

.content {
  overflow-y: auto;
  --comp-scrollbar-size: var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));
  --comp-scrollbar-border-radius: var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));
  --comp-scrollbar-color: var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));
  scrollbar-width: thin;
  scrollbar-color: var(--comp-scrollbar-color) transparent;
}
.content::-webkit-scrollbar {
  width: var(--comp-scrollbar-size);
  height: var(--comp-scrollbar-size);
  margin: 5px;
}
.content::-webkit-scrollbar-thumb {
  background: var(--comp-scrollbar-color);
  border-radius: var(--comp-scrollbar-border-radius);
}
.content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--comp-scrollbar-border-radius);
}
.content .icon {
  height: var(--tct-modal-icon-size, var(--app-scale-9x, 45px));
  margin: var(--tct-modal-icon-margin, var(--app-scale-2x, 10px));
  display: flex;
  justify-content: center;
}
.content .icon q2-icon {
  width: var(--tct-modal-icon-size, var(--app-scale-9x, 45px));
}
.content .image {
  display: flex;
  justify-content: center;
}
.content .image img {
  width: 100%;
  border-radius: var(--tct-modal-image-border-radius, var(--app-border-radius-2, 8px));
}
.content .description {
  font-size: var(--tct-modal-description-font-size, var(--const-px-14, 14px));
}
.content.more-gradient {
  -webkit-mask-image: linear-gradient(to bottom, red 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, red 85%, transparent 100%);
}

.interior {
  box-sizing: border-box;
  display: grid;
  min-height: var(--comp-dialog-min-height);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--comp-dialog-gap);
  max-height: min(var(--comp-dialog-max-height), 100vh - 2 * var(--comp-dialog-padding));
  padding: var(--comp-dialog-padding);
}
.interior.is-list header,
.interior.is-list footer {
  position: relative;
}
.interior.is-list header:before,
.interior.is-list footer:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  height: var(--comp-content-gradient-height);
  width: 100%;
  z-index: 1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .title {
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-align: left;
  font-weight: var(--tct-modal-title-font-weight, 400);
  margin: 0;
}
header .btn-close {
  grid-area: close;
  width: var(--comp-close-button-size);
  height: var(--comp-close-button-size);
}

footer {
  --tct-action-group-margin: var(--app-scale-2x, 10px) 0 0;
  align-self: end;
}

@media screen and (max-height: 400px) {
  .content {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-y: visible;
  }
  .interior {
    grid-template-rows: auto auto auto;
    overflow-y: auto;
    --comp-scrollbar-size: var(--tct-scrollbar-size, var(--t-scrollbar-size, var(--app-scale-1x, 5px)));
    --comp-scrollbar-border-radius: var(--tct-scrollbar-border-radius, var(--t-scrollbar-border-radius, var(--app-border-radius-1, 4px)));
    --comp-scrollbar-color: var(--tct-scrollbar-color, var(--t-scrollbar-color, var(--t-a11y-gray-color, #747474)));
    scrollbar-width: thin;
    scrollbar-color: var(--comp-scrollbar-color) transparent;
  }
  .interior::-webkit-scrollbar {
    width: var(--comp-scrollbar-size);
    height: var(--comp-scrollbar-size);
    margin: 5px;
  }
  .interior::-webkit-scrollbar-thumb {
    background: var(--comp-scrollbar-color);
    border-radius: var(--comp-scrollbar-border-radius);
  }
  .interior::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--comp-scrollbar-border-radius);
  }
}