.clickets-theme-switch {
  position: relative;
  width: 62px;
  min-width: 62px;
  height: 34px;
  min-height: 34px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent) !important;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  overflow: hidden;
  color: #f8fafc;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  cursor: pointer;
  isolation: isolate;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.clickets-theme-switch:hover,
.clickets-theme-switch:focus,
.clickets-theme-switch:focus-visible {
  transform: none;
}

.clickets-theme-switch:hover {
  border-color: color-mix(in srgb, currentColor 50%, transparent) !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.clickets-theme-switch:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent, #38bdf8) 48%, transparent);
  outline-offset: 3px;
}

.clickets-theme-switch__track {
  position: relative;
  width: 56px;
  height: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
}

.clickets-theme-switch__icon {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  font-size: 16px;
  line-height: 1;
  opacity: .46;
  transition: color 160ms ease, opacity 160ms ease;
}

.clickets-theme-switch__moon {
  color: #e0e7ff;
  opacity: 1;
}

.clickets-theme-switch__sun {
  color: #fde68a;
}

.clickets-theme-switch__thumb {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: transform 180ms ease, background 160ms ease, box-shadow 160ms ease;
}

.clickets-theme-switch[aria-checked="true"] {
  color: #07111f;
  border-color: color-mix(in srgb, currentColor 30%, transparent) !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.clickets-theme-switch[aria-checked="true"] .clickets-theme-switch__thumb {
  transform: translateX(28px);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 1px 5px rgba(15, 23, 42, .16), inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.clickets-theme-switch[aria-checked="true"] .clickets-theme-switch__moon {
  color: #0c4a6e;
  opacity: .45;
}

.clickets-theme-switch[aria-checked="true"] .clickets-theme-switch__sun {
  color: #713f12;
  opacity: 1;
}

.clickets-theme-switch__label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .clickets-theme-switch,
  .clickets-theme-switch__icon,
  .clickets-theme-switch__thumb {
    transition: none;
  }
}
