/*
 * Smart Contrast Mode 0.3.7.6
 * Ally-style global Light Mode, with JS-preserved accent colors.
 */

html.fresh-scm-light {
  color-scheme: light;
}

/*
 * This is intentionally close to Ally's robust approach:
 * every normal surface becomes light and every normal foreground becomes dark.
 * Accent colors are restored by JS with inline !important declarations.
 */
html.fresh-scm-light body,
html.fresh-scm-light body *:not(.fresh-scm-excluded):not(.fresh-scm-excluded *):not(.elementor-widget-animated-headline):not(.elementor-widget-animated-headline *) {
  background-color: var(--fresh-scm-light-bg, #ffffff) !important;
  color: var(--fresh-scm-light-text, #111111) !important;
  border-color: var(--fresh-scm-light-border, #d8d8d8) !important;
}

/* Elementor Animated Headline: NEVER touch its animation DOM from JS.
 * The whole widget is excluded from the global recoloring above.
 * In Light Mode we only recolor the actual visible text nodes.
 */
html.fresh-scm-light .elementor-widget-animated-headline .elementor-headline-plain-text,
html.fresh-scm-light .elementor-widget-animated-headline .elementor-headline-dynamic-text {
  color: var(--fresh-scm-light-text, #111111) !important;
  background-color: transparent !important;
}

html.fresh-scm-light .elementor-widget-animated-headline .elementor-headline-dynamic-wrapper,
html.fresh-scm-light .elementor-widget-animated-headline .elementor-headline-dynamic-wrapper * {
  background-color: transparent !important;
}

/* Native form controls should render as light UI as well. */
html.fresh-scm-light input:not(.fresh-scm-excluded),
html.fresh-scm-light textarea:not(.fresh-scm-excluded),
html.fresh-scm-light select:not(.fresh-scm-excluded),
html.fresh-scm-light option:not(.fresh-scm-excluded) {
  color-scheme: light !important;
}

/* Never let the plugin recolor its own control. */
.fresh-scm-float-wrap,
.fresh-scm-float-wrap *,
.fresh-scm-toggle,
.fresh-scm-toggle * {
  background: initial !important;
  color: initial !important;
  border-color: initial !important;
}

.fresh-scm-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none !important;
  border-radius: 999px;
  background: #b8009f !important;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(0,0,0,.24), 0 2px 8px rgba(184,0,159,.28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fresh-scm-toggle:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 16px 34px rgba(0,0,0,.28), 0 4px 14px rgba(184,0,159,.34);
  filter: brightness(1.03);
}

.fresh-scm-toggle:active {
  transform: translateY(0) scale(.98);
}

.fresh-scm-toggle:focus-visible {
  outline: 3px solid rgba(184,0,159,.28);
  outline-offset: 4px;
}

.fresh-scm-toggle .fresh-scm-sun,
.fresh-scm-toggle .fresh-scm-moon {
  display: none;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
}

.fresh-scm-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

.fresh-scm-toggle .fresh-scm-sun {
  display: inline-flex;
}

html.fresh-scm-light .fresh-scm-toggle {
  background: #b8009f !important;
  color: #fff !important;
}

html.fresh-scm-light .fresh-scm-toggle .fresh-scm-sun { display: none; }
html.fresh-scm-light .fresh-scm-toggle .fresh-scm-moon { display: inline-flex; }

.fresh-scm-float-wrap {
  position: fixed;
  z-index: 2147483000;
  pointer-events: none;
}
.fresh-scm-float-wrap .fresh-scm-toggle { pointer-events: auto; }
.fresh-scm-bottom-right { right: 22px; bottom: 22px; }
.fresh-scm-bottom-left { left: 22px; bottom: 22px; }
.fresh-scm-top-right { right: 22px; top: 22px; }
.fresh-scm-top-left { left: 22px; top: 22px; }
.fresh-scm-middle-right { right: 22px; top: 50%; transform: translateY(-50%); }
.fresh-scm-middle-left { left: 22px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: no-preference) {
  html.fresh-scm-animate body,
  html.fresh-scm-animate body * {
    transition-property: background-color, color, border-color;
    transition-duration: 160ms;
    transition-timing-function: ease;
  }
}
