/*
 * Shared tokens and a minimal reset for everything the plugin renders.
 * Every rule is scoped under .csm-scope so theme/Elementor styles for
 * buttons, links and lists don't leak in, and ours don't leak out.
 */

.csm-scope {
  --csm-bg: #fcf9f1;
  --csm-bg-alt: #f6f3eb;
  --csm-ink: #1c1c17;
  --csm-black: #171717;
  --csm-cream: #faf8f3;
  --csm-text: #444748;
  --csm-muted: #747878;
  --csm-line: #dedcd5;
  --csm-photo: #f7f7f7;
  --csm-accent: #616200;
  --csm-error: #ba1a1a;
  --csm-sticky-top: 80px;

  color: var(--csm-ink);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.csm-scope *,
.csm-scope *::before,
.csm-scope *::after {
  box-sizing: border-box;
}

.csm-scope p,
.csm-scope h2,
.csm-scope h3,
.csm-scope ul,
.csm-scope dl,
.csm-scope dd,
.csm-scope figure {
  margin: 0;
  padding: 0;
}

.csm-scope ul {
  list-style: none;
}

.csm-scope img {
  display: block;
  max-width: 100%;
  border: 0;
  box-shadow: none;
}

.csm-scope a {
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

.csm-scope button {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  line-height: inherit;
  cursor: pointer;
  box-shadow: none;
}

.csm-scope [hidden] {
  display: none !important;
}

.csm-scope :focus-visible {
  outline: 2px solid var(--csm-black);
  outline-offset: 2px;
}

@keyframes csm-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.csm-scope .csm-fade {
  animation: csm-fade 0.4s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .csm-scope .csm-fade {
    animation: none;
  }
}
