.sx__calendar-wrapper ul,
.sx__date-picker-wrapper ul,
.sx__date-picker-popup ul {
  list-style: none;
  padding: 0;
}
.sx__calendar-wrapper input,
.sx__calendar-wrapper button,
.sx__date-picker-wrapper input,
.sx__date-picker-wrapper button,
.sx__date-picker-popup input,
.sx__date-picker-popup button {
  font-family: inherit;
  outline: none;
}

.sx__button {
  background-color: inherit;
  outline: 0;
  border: none;
  cursor: pointer;
}

:root {
  --sx-color-primary: #6750a4;
  --sx-color-on-primary: #fff;
  --sx-color-primary-container: #eaddff;
  --sx-color-on-primary-container: #21005e;
  --sx-color-secondary: #625b71;
  --sx-color-on-secondary: #fff;
  --sx-color-secondary-container: #e8def8;
  --sx-color-on-secondary-container: #1e192b;
  --sx-color-tertiary: #7d5260;
  --sx-color-on-tertiary: #fff;
  --sx-color-tertiary-container: #ffd8e4;
  --sx-color-on-tertiary-container: #370b1e;
  --sx-color-surface: #fef7ff;
  --sx-color-surface-dim: #ded8e1;
  --sx-color-surface-bright: #fef7ff;
  --sx-color-on-surface: #1c1b1f;
  --sx-color-surface-container: #f3edf7;
  --sx-color-surface-container-low: #f7f2fa;
  --sx-color-surface-container-high: #ece6f0;
  --sx-color-background: #fff;
  --sx-color-on-background: #1c1b1f;
  --sx-color-outline: #79747e;
  --sx-color-outline-variant: #c4c7c5;
  --sx-color-shadow: #000;
  --sx-color-surface-tint: #6750a4;
  --sx-color-neutral: var(--sx-color-outline);
  --sx-color-neutral-variant: var(--sx-color-outline-variant);
  --sx-internal-color-gray-ripple-background: #e0e0e0;
  --sx-internal-color-light-gray: #fafafa;
  --sx-internal-color-text: #000;
}

.is-dark {
  --sx-color-primary: #d0bcff;
  --sx-color-on-primary: #371e73;
  --sx-color-primary-container: #4f378b;
  --sx-color-on-primary-container: #eaddff;
  --sx-color-secondary: #ccc2dc;
  --sx-color-on-secondary: #332d41;
  --sx-color-secondary-container: #4a4458;
  --sx-color-on-secondary-container: #e8def8;
  --sx-color-tertiary: #efb8c8;
  --sx-color-on-tertiary: #492532;
  --sx-color-tertiary-container: #633b48;
  --sx-color-on-tertiary-container: #ffd8e4;
  --sx-color-surface: #141218;
  --sx-color-surface-dim: #141218;
  --sx-color-surface-bright: #3b383e;
  --sx-color-on-surface: #e6e1e5;
  --sx-color-surface-container: #211f26;
  --sx-color-surface-container-low: #1d1b20;
  --sx-color-surface-container-high: #2b2930;
  --sx-color-background: #141218;
  --sx-color-on-background: #e6e1e5;
  --sx-color-outline: #938f99;
  --sx-color-outline-variant: #444746;
  --sx-color-shadow: #000;
  --sx-color-surface-tint: #d0bcff;
  --sx-internal-color-text: #fff;
}

:root {
  --sx-spacing-padding1: 4px;
  --sx-spacing-padding2: 8px;
  --sx-spacing-padding3: 12px;
  --sx-spacing-padding4: 16px;
  --sx-spacing-padding6: 24px;
  --sx-spacing-modal-padding: 16px;
}

:root {
  --sx-box-shadow-level3: 0 3px 6px 0 rgb(0 0 0 / 16%),
    0 3px 6px 0 rgb(0 0 0 / 23%);
  --sx-rounding-extra-small: 4px;
  --sx-rounding-small: 8px;
  --sx-rounding-extra-large: 28px;
  --sx-border: 1px solid var(--sx-color-outline-variant);
}

.is-dark {
  --sx-border: 1px solid var(--sx-color-outline-variant);
}

:root {
  --sx-font-small: 0.875rem;
  --sx-font-extra-small: 0.75rem;
  --sx-font-large: 1.125rem;
  --sx-font-extra-large: 1.25rem;
}

@keyframes sx-ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.16;
  }
  40% {
    width: 100px;
    height: 100px;
    opacity: 0.08;
  }
  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
  }
}
.sx__ripple {
  position: relative;
  overflow: hidden;
}
.sx__ripple::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: currentcolor;
  opacity: 0.1;
  visibility: hidden;
  z-index: 2;
}
.sx__ripple:active::before {
  visibility: visible;
}
.sx__ripple:not(:active)::before {
  animation: sx-ripple 0.75s cubic-bezier(0, 0.1, 0.8, 1);
  transition: visibility 0.75s step-end;
}

@keyframes sx-ripple-wide {
  0% {
    width: 0;
    height: 0;
    opacity: 0.16;
  }
  40% {
    width: 300px;
    height: 100px;
    opacity: 0.08;
  }
  100% {
    width: 450px;
    height: 150px;
    opacity: 0;
  }
}
.sx__ripple--wide {
  position: relative;
  overflow: hidden;
}
.sx__ripple--wide::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: currentcolor;
  opacity: 0.1;
  visibility: hidden;
  z-index: 2;
}
.sx__ripple--wide:active::before {
  visibility: visible;
}
.sx__ripple--wide::before {
  border-radius: var(--sx-rounding-small);
}
.sx__ripple--wide:not(:active)::before {
  animation: sx-ripple-wide 0.75s cubic-bezier(0, 0.1, 0.8, 1);
  transition: visibility 0.75s step-end;
}

.sx__chevron-wrapper {
  position: relative;
  border-radius: 50%;
  min-height: 48px;
  min-width: 48px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  font-size: 0;
}
.sx__chevron-wrapper:active {
  background-color: var(--sx-internal-color-gray-ripple-background);
}
.sx__chevron-wrapper:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.sx__chevron-wrapper:hover, .sx__chevron-wrapper:focus {
  background-color: var(--sx-color-surface-dim);
}
.is-dark .sx__chevron-wrapper:hover, .is-dark .sx__chevron-wrapper:focus {
  background-color: var(--sx-color-surface-container-high);
}
.sx__chevron-wrapper .sx__chevron {
  position: absolute;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-width: 0.2rem 0.2rem 0 0;
  border-style: solid;
  border-color: var(--sx-internal-color-text);
}

.sx__chevron--previous {
  left: calc(50% + 0.125rem);
  transform: translate(-50%, -50%) rotate(225deg);
}
[dir=rtl] .sx__chevron--previous {
  left: calc(50% - 0.125rem);
  transform: translate(-50%, -50%) rotate(45deg);
}

.sx__chevron--next {
  left: calc(50% - 0.125rem);
  transform: translate(-50%, -50%) rotate(45deg);
}
[dir=rtl] .sx__chevron--next {
  left: calc(50% + 0.125rem);
  transform: translate(-50%, -50%) rotate(225deg);
}

.sx__time-picker-wrapper {
  position: relative;
  color: var(--sx-color-on-background);
  width: fit-content;
}
.sx__time-picker-wrapper.has-full-width {
  width: 100%;
}
.sx__time-picker-wrapper * {
  color: var(--sx-color-on-background);
  box-sizing: border-box;
}

.sx__time-input-wrapper {
  position: relative;
}

.sx__time-picker-input {
  font-size: 1rem;
  padding: var(--sx-spacing-padding4);
  border: var(--sx-border);
  border-radius: var(--sx-rounding-extra-small);
  cursor: pointer;
  background-color: var(--sx-color-background);
  width: 6rem;
  text-align: center;
}
.is-12-hour .sx__time-picker-input {
  width: 6.4rem;
}
.sx__time-input--active .sx__time-picker-input {
  border-color: var(--sx-color-primary);
  outline: 1px solid var(--sx-color-primary);
}

.sx__time-input-label {
  position: absolute;
  top: 0;
  inset-inline-start: 12px;
  padding: 0 var(--sx-spacing-padding1);
  background-color: var(--sx-color-background);
  font-size: 0.75rem;
  color: var(--sx-color-neutral);
  line-height: 1rem;
  transform: translateY(-50%);
  transition: transform 0.2s ease-in-out;
  pointer-events: none;
}
.sx__time-input--active .sx__time-input-label {
  color: var(--sx-color-primary);
}
.is-dark .sx__time-input--active .sx__time-input-label {
  display: none;
}

.sx__time-picker-popup {
  position: absolute;
  height: fit-content;
  z-index: 1;
  top: calc(100% + 1px);
  width: 20.75rem;
  max-width: 500px;
  max-height: 400px;
  overflow: scroll;
  box-shadow: var(--sx-box-shadow-level3);
  padding: var(--sx-spacing-modal-padding);
  display: flex;
  flex-direction: column;
  gap: var(--sx-spacing-padding3);
  background-color: var(--sx-color-background);
  box-sizing: border-box;
}
.sx__time-picker-popup * {
  box-sizing: border-box;
}
.is-dark .sx__time-picker-popup {
  background-color: var(--sx-color-surface-container-high);
}
.sx__time-picker-popup.bottom-end {
  left: auto;
  right: 0;
  transform: translateX(0);
}
.sx__time-picker-popup.top-start {
  inset: auto auto calc(100% + 1rem) 0;
  transform: translateX(0);
}
.sx__time-picker-popup.top-end {
  inset: auto 0 calc(100% + 1rem) auto;
  transform: translateX(0);
}
.sx__time-picker-popup .sx__time-picker-popup-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sx-color-neutral);
  font-family: inherit;
}
.is-dark .sx__time-picker-popup .sx__time-picker-popup-label {
  color: var(--sx-internal-color-text);
}
.sx__time-picker-popup .sx__time-picker-time-inputs {
  display: flex;
  gap: var(--sx-spacing-padding2);
}
[dir=rtl] .sx__time-picker-popup .sx__time-picker-time-inputs {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.sx__time-picker-popup .sx__time-picker-colon {
  font-size: 2.5rem;
  color: var(--sx-internal-color-text);
  margin: 0 var(--sx-spacing-padding1);
}
.sx__time-picker-popup .sx__time-picker-12-hour-switches {
  display: flex;
  flex-flow: column;
  flex: 1;
  margin-left: var(--sx-spacing-padding1);
}
.sx__time-picker-popup .sx__time-picker-12-hour-switch {
  background-color: transparent;
  padding: 0 var(--sx-spacing-padding3);
  border: none;
  flex: 1;
  cursor: pointer;
  border-radius: inherit;
  color: var(--sx-internal-color-text);
}
.sx__time-picker-popup .sx__time-picker-12-hour-switch:focus {
  outline: 1px solid var(--sx-color-primary);
}
.sx__time-picker-popup .sx__time-picker-12-hour-switch:first-child {
  border: 1px solid var(--sx-color-neutral);
  border-bottom: 1px solid var(--sx-color-neutral);
  border-top-left-radius: var(--sx-rounding-small);
  border-top-right-radius: var(--sx-rounding-small);
}
.sx__time-picker-popup .sx__time-picker-12-hour-switch:last-child {
  border: 1px solid var(--sx-color-neutral);
  border-bottom-left-radius: var(--sx-rounding-small);
  border-bottom-right-radius: var(--sx-rounding-small);
}
.sx__time-picker-popup .sx__time-picker-12-hour-switch.is-selected {
  background-color: var(--sx-color-primary-container);
  color: var(--sx-color-on-primary-container);
}
.sx__time-picker-popup .sx__time-picker-actions {
  display: flex;
  justify-content: end;
  gap: var(--sx-spacing-padding2);
}
.sx__time-picker-popup .sx__time-picker-action {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sx-color-primary);
  background-color: transparent;
  cursor: pointer;
  border: none;
}
.sx__time-picker-popup .sx__time-picker-action:focus {
  outline: 2px solid var(--sx-color-primary);
  border-radius: var(--sx-rounding-extra-small);
}

.sx__time-input {
  --sx-color-time-input-bg: #f1f0f0;
  width: 100px;
  font-size: 2rem;
  background-color: var(--sx-color-time-input-bg);
  color: var(--sx-internal-color-text);
  border-radius: var(--sx-rounding-small);
  border: none;
  padding: var(--sx-spacing-padding3);
  text-align: center;
}
.is-dark .sx__time-input {
  --sx-color-time-input-bg: #444141;
}
.sx__time-input:focus {
  background-color: var(--sx-color-secondary-container);
  outline: 3px solid var(--sx-color-primary);
}
