* {
  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-date-picker-width: (<length-percentage>) Controls the desktop popup and embedded calendar width.
 * @prop --tct-date-picker-border-radius: (<length-percentage>) Controls the popup corner radius.
 * @prop --tct-date-picker-mobile-gutter: (<length-percentage>) Controls the inline gutter on each side of the mobile popup.
 * @prop --tct-date-picker-mobile-max-width: (<length-percentage>) Controls the maximum mobile popup and embedded calendar width.
 */
:host {
  --comp-date-picker-width: var(--tct-date-picker-width, var(--tct-date-calendar-width, 360px));
  box-sizing: border-box;
  display: block;
}

:host[hidden] {
  display: none;
}

click-elsewhere,
.date-picker-input {
  display: block;
  width: 100%;
}

q2-date-calendar {
  --comp-date-calendar-width: var(--comp-date-picker-width);
  display: block;
  width: var(--comp-date-picker-width);
}

q2-date-calendar.is-action-sheet {
  --comp-date-calendar-width: 100%;
  width: 100%;
}

q2-popover {
  --tct-popover-width: var(--comp-date-picker-width);
  --tct-popover-border-radius: var(--tct-date-picker-border-radius, var(--tct-date-calendar-border-radius, var(--app-border-radius-1, 4px)));
}

@media (max-width: 768px) {
  :host {
    --comp-date-picker-width: min(
        100%,
        calc(
            100vw - var(--tct-date-picker-mobile-gutter, var(--tct-date-calendar-mobile-gutter, 24px)) - var(--tct-date-picker-mobile-gutter, var(--tct-date-calendar-mobile-gutter, 24px))
        ),
        var(--tct-date-picker-mobile-max-width, var(--tct-date-calendar-mobile-max-width, 420px))
    );
  }
}