/* Demo-only style switcher (not part of the download package). */
.demo-switcher { position: fixed; top: 50%; right: 0; z-index: 1070; transform: translate(100%, -50%); transition: transform .45s cubic-bezier(.22, 1, .36, 1); font-family: var(--s-font-body); }
.demo-switcher.is-open { transform: translate(0, -50%); }
.demo-switcher__toggle { position: absolute; left: -48px; top: calc(50% - 24px); width: 48px; height: 48px; border: 0; border-radius: 14px 0 0 14px; background: var(--s-primary); color: #fff; font-size: 1.375rem; display: grid; place-items: center; box-shadow: var(--s-shadow); }
.demo-switcher__toggle .bi { animation: demo-spin 6s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo-switcher__panel { width: 300px; max-height: 88vh; overflow-y: auto; background: var(--s-card); border: 1px solid var(--s-border); border-right: 0; border-radius: 18px 0 0 18px; padding: 1.25rem 1.5rem 1.5rem; box-shadow: var(--s-shadow-lg); color: var(--s-text); }
.demo-switcher__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--s-border); }
.demo-switcher__head strong { font: 700 1.0625rem var(--s-font-head); color: var(--s-ink); }
.demo-switcher__close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--s-border); background: var(--s-surface); color: var(--s-ink); display: grid; place-items: center; }
.demo-switcher__label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); margin: 0 0 .625rem; font-family: var(--s-font-body); }
.demo-switcher__label + div { margin-bottom: 1.375rem; }
.demo-colors { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.demo-colors button { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--s-card); box-shadow: 0 0 0 1px var(--s-border); padding: 0; }
.demo-colors button.is-active { box-shadow: 0 0 0 2px var(--s-ink); }
.demo-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.demo-modes button, .demo-fonts button { border: 1px solid var(--s-border); background: var(--s-surface); color: var(--s-ink); border-radius: 12px; padding: .625rem; font: 600 .875rem var(--s-font-head); display: flex; align-items: center; justify-content: center; gap: .375rem; transition: border-color .2s, background-color .2s, color .2s; }
.demo-fonts { display: grid; gap: .5rem; }
.demo-fonts button { justify-content: space-between; padding: .625rem .875rem; font-size: .9375rem; font-weight: 700; }
.demo-fonts button span { font-size: 1.125rem; color: var(--s-muted); }
.demo-modes button.is-active, .demo-fonts button.is-active { border-color: var(--s-primary); color: var(--s-primary); background: var(--s-primary-soft); }
.demo-fonts button.is-active span { color: var(--s-primary); }
.demo-reset { width: 100%; border: 1px dashed var(--s-border); background: none; color: var(--s-ink); border-radius: 12px; padding: .625rem; font: 600 .875rem var(--s-font-head); display: flex; align-items: center; justify-content: center; gap: .5rem; }
.demo-reset:hover { border-color: var(--s-primary); color: var(--s-primary); }
.demo-note { font-size: .75rem; line-height: 1.5; color: var(--s-muted); margin: 1rem 0 0; }
.demo-hint { font-size: .75rem; line-height: 1.5; color: var(--s-muted); margin: -.75rem 0 1.375rem; }
/* Hide the switcher while a menu, cart or modal is open so it never covers them. */
.menu-open .demo-switcher, .modal-open .demo-switcher, .demo-switcher.is-covered,
body:has(.search-overlay.is-open, .lightbox.is-open, .fullmenu.is-open) .demo-switcher { opacity: 0; visibility: hidden; }
/* Phones and tablets: keep the switcher at the bottom, above the back-to-top button, away from the header and its menu button. */
@media (max-width: 991.98px) {
	.demo-switcher { top: auto; bottom: 1rem; transform: translateX(100%); }
	.demo-switcher.is-open { transform: none; }
	.demo-switcher__toggle { top: auto; bottom: 4.5rem; width: 44px; height: 44px; left: -44px; font-size: 1.25rem; transition: bottom .3s; }
	/* Product pages: the sticky add-to-cart bar lifts the back-to-top button to 6rem, so the tab moves above it. */
	.has-sticky-atc .demo-switcher__toggle { bottom: 8.5rem; }
	.demo-switcher__panel { max-width: calc(100vw - 3.5rem); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); }
}
