/*
 * Smart Contrast Mode 0.3.4
 * 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 *) {
  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 Pro: Animated Headline compatibility
 * JS excludes the whole widget from the global Ally-style recoloring and
 * inverts ONLY its original text color. No filter, transform or animation
 * property is touched. These rules are only a defensive fallback.
 */
html.fresh-scm-light .elementor-widget-animated-headline,
html.fresh-scm-light .elementor-widget-animated-headline * {
  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;
}

/* Keep the plugin control outside the page recoloring.
 * IMPORTANT: do not reset its own visual styles here. */
.fresh-scm-float-wrap {
  background: transparent !important;
  color: inherit !important;
  border-color: transparent !important;
}

.fresh-scm-toggle,
html.fresh-scm-light .fresh-scm-toggle {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  aspect-ratio: 1 / 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #b8009f !important;
  background-color: #b8009f !important;
  color: #ffffff !important;
  cursor: pointer;
  font: inherit;
  line-height: 1 !important;
  text-decoration: none !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.24), 0 2px 8px rgba(184,0,159,.28) !important;
  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 !important;
  height: 24px !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: #ffffff !important;
  border: 0 !important;
}

.fresh-scm-toggle svg {
  width: 24px !important;
  height: 24px !important;
  display: block;
  background: transparent !important;
  color: #ffffff !important;
  fill: none !important;
  stroke: currentColor !important;
}

.fresh-scm-toggle svg * {
  color: #ffffff !important;
  stroke: currentColor !important;
}

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

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;
  }
}
