/* ==========================================================================
   WooPlainly – Components – Theme Toggle
   ========================================================================= */

.footer-theme-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ast-global-color-3);
  cursor: pointer;
}
#footer-theme-toggle + label,
#toast-theme-toggle + label {
  color: var(--ast-global-color-4);
  transition: color 0.3s ease;
}
#footer-theme-toggle:checked + label,
#toast-theme-toggle:checked + label {
  color: var(--ast-global-color-2) !important;
}

.footer-theme-switch input[type="checkbox"] {
  appearance: none;
  width: 40px;
  height: 20px;
  background: var(--ast-global-color-6);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}
.footer-theme-switch input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s ease;
}
.footer-theme-switch input[type="checkbox"]:checked {
  background: var(--ast-global-color-0);
}
.footer-theme-switch input[type="checkbox"]:checked::before {
  transform: translateX(19px);
}

.theme-toast label {
  color: var(--ast-global-color-2) !important;
}

.theme-toast {
  width: 30em;
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ast-global-color-5) !important;
  color: var(--ast-global-color-2) !important;
  padding: 1em 1.5em;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  text-align: center;
  transition: top 0.6s ease;
}
.theme-toast.show {
  top: 40px;
}
