* {
  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-action-sheet-date-picker-padding: (<length-percentage>+) Controls the outer padding around date picker content.
 * @prop --tct-action-sheet-background: (<color>) Controls the background color of the action sheet dialog.
 * @prop --tct-action-sheet-color: (<color>) Controls the text color of the action sheet dialog.
 * @prop --tct-action-sheet-backdrop-background: (<color>) Controls the background color of the action sheet backdrop.
 * @prop --tct-action-sheet-border-radius: (<length-percentage>+) Controls the corner radius of the action sheet dialog.
 * @prop --tct-action-sheet-box-shadow: (*) Controls the box shadow of the action sheet dialog.
 * @prop --tct-action-sheet-padding: (<length-percentage>+) Controls the inner padding of the action sheet dialog.
 * @prop --tct-action-sheet-gap: (<length-percentage>) Controls the vertical gap between the action sheet header, content, and footer.
 * @prop --tct-action-sheet-header-height: (<length>) Controls the height of the action sheet header row.
 * @prop --tct-action-sheet-close-button-size: (<length>) Controls the size of the action sheet close button.
 * @prop --tct-action-sheet-content-gradient-height: (<length>) Controls the height of the scroll-edge gradient on the action sheet content.
 * @prop --tct-action-sheet-max-width: (<length-percentage>) Controls the maximum width of the action sheet dialog.
 * @prop --tct-action-sheet-max-height: (<length-percentage>) Controls the maximum height of the action sheet dialog.
 * @prop --tct-action-sheet-min-height: (<length-percentage>) Controls the minimum height of the action sheet dialog.
 * @prop --tct-action-sheet-tween: (*) Controls the open/close transition timing of the action sheet dialog.
 */
@keyframes showBackdrop {
  from {
    opacity: 0;
  }
}
@keyframes hideBackdrop {
  to {
    opacity: 0;
  }
}
dialog {
  --comp-border-radius-default: var(--app-scale-3x, 15px) var(--app-scale-3x, 15px) 0 0;
  --comp-border-radius: var(--tct-action-sheet-border-radius, var(--comp-border-radius-default));
  --comp-desktop-border-radius: var(--tct-action-sheet-border-radius, var(--app-scale-3x, 15px));
  --comp-close-button-size: var(--tct-action-sheet-close-button-size, var(--t-a11y-min-size, 44px));
  --comp-header-height: var(--tct-action-sheet-header-height, var(--t-a11y-min-size, 44px));
  --comp-dialog-background: var(--tct-action-sheet-background, var(--t-base, #ffffff));
  --comp-dialog-color: var(--tct-action-sheet-color, inherit);
  --comp-dialog-padding: var(--tct-action-sheet-padding, var(--app-scale-3x, 15px));
  --comp-content-gradient-height: var(--tct-action-sheet-content-gradient-height, var(--app-scale-2x, 10px));
  --comp-dialog-gap: var(--tct-action-sheet-gap, var(--app-scale-2x, 10px));
  --comp-dialog-max-width: var(--tct-action-sheet-max-width, 400px);
  --comp-dialog-max-height: var(--tct-action-sheet-max-height, var(--comp-action-sheet-computed-max-height, 75vh));
  --comp-dialog-min-height: var(--tct-action-sheet-min-height, var(--comp-action-sheet-computed-min-height, 20vh));
  --comp-dialog-box-shadow: var(--tct-action-sheet-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-action-sheet-tween, var(--app-tween-2, 0.4s ease)), opacity var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease));
  width: 100%;
  max-width: var(--comp-dialog-max-width);
  border: 0;
  border-radius: var(--comp-border-radius);
  box-shadow: var(--comp-dialog-box-shadow);
  padding: 0;
  height: auto;
  overflow: hidden;
  overscroll-behavior: contain;
  min-height: var(--comp-dialog-min-height);
  max-height: var(--comp-dialog-max-height);
}
dialog::backdrop {
  opacity: 0;
  background: var(--tct-action-sheet-backdrop-background, var(--t-top-a2, rgba(13, 13, 13, 0.6)));
}
dialog[open].is-opening, dialog[open].is-open {
  transform: translateY(-100%);
}
@media screen and (min-width: 1200px) {
  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-action-sheet-tween, var(--app-tween-2, 0.4s ease));
}
dialog[open].is-closing {
  transform: translateY(10%);
}
dialog[open].is-closing::backdrop {
  animation: hideBackdrop var(--tct-action-sheet-tween, var(--app-tween-2, 0.4s ease));
}
@media screen and (min-width: 1200px) {
  dialog {
    border-radius: var(--comp-desktop-border-radius);
    top: 0px;
    bottom: 0px;
    height: fit-content;
    transform: translateY(10%);
    opacity: 0;
  }
}

.content {
  overflow-y: auto;
  overscroll-behavior: contain;
  --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);
}

.date-picker-content {
  padding: var(--tct-action-sheet-date-picker-padding, var(--app-scale-1x, 5px));
}

.interior {
  display: grid;
  grid-template-rows: 44px 1fr auto;
  gap: var(--comp-dialog-gap);
  max-height: calc(var(--comp-dialog-max-height) - var(--comp-dialog-padding));
  padding: var(--comp-dialog-padding);
  margin-bottom: env(safe-area-inset-bottom, 0px);
}
.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;
}
.interior [slot=popover-top] {
  padding: var(--tct-dropdown-popover-top-slot-padding, 0);
  border-bottom: var(--tct-dropdown-slot-border-top);
}
.interior [slot=popover-bottom] {
  padding: var(--tct-dropdown-popover-bottom-slot-padding, 0);
  border-top: var(--tct-dropdown-slot-border-bottom);
}

.list-body {
  display: contents;
}

.interior.is-list {
  display: flex;
  flex-direction: column;
}
.interior.is-list > header,
.interior.is-list .list-body > .list-slot,
.interior.is-list .list-body > footer {
  flex-shrink: 0;
}
.interior.is-list .list-body > .content {
  flex: 1 1 auto;
  min-height: 0;
}
.interior.is-list .list-body > .content > .list-slot {
  margin-block: var(--comp-dialog-gap);
}

header {
  display: grid;
  grid-template-columns: var(--comp-close-button-size) 1fr var(--comp-close-button-size);
  grid-template-areas: ". title close";
  gap: var(--comp-dialog-gap);
}
header #title {
  grid-area: title;
  text-align: center;
  line-height: var(--comp-header-height);
}
header .btn-close {
  grid-area: close;
  width: var(--comp-close-button-size);
  height: var(--comp-close-button-size);
}

footer {
  display: flex;
  justify-content: end;
}

@media screen and (max-width: 1199px) and (orientation: portrait) {
  dialog:has(.date-picker-content) {
    --comp-dialog-max-height: 100dvh;
  }
  .interior:has(.date-picker-content) {
    max-height: calc(100dvh - var(--comp-dialog-padding) - var(--comp-dialog-padding));
  }
  .content.date-picker-content {
    overflow-y: visible;
  }
}
@media screen and (max-width: 1199px) and (orientation: landscape) {
  dialog:has(.date-picker-content) {
    --comp-dialog-max-height: 100dvh;
    height: 100dvh;
  }
  .interior:has(.date-picker-content) {
    height: calc(100dvh - var(--comp-dialog-padding) - var(--comp-dialog-padding));
  }
  .content.date-picker-content {
    min-height: 0;
  }
}