/* wtheme — live demo customizer panel. Self-contained; every rule is scoped to .wpt-sw. */
.wpt-sw { --sw-bg: #ffffff; --sw-ink: #111114; --sw-muted: #6b6b75; --sw-line: #e7e7ec; --sw-soft: #f4f4f7; --sw-brand: #2e7d32; --sw-leaf: #8bc34a;
	position: fixed; z-index: 2147483000; top: 0; right: 0; height: 100%; pointer-events: none;
	font: 400 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--sw-ink); }
.wpt-sw *, .wpt-sw *::before, .wpt-sw *::after { box-sizing: border-box; }
.wpt-sw button, .wpt-sw a, .wpt-sw input { font: inherit; letter-spacing: 0; text-transform: none; }

.wpt-sw-tab { pointer-events: auto; position: absolute; top: 50%; right: 0; transform: translateY(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border: 0; cursor: pointer;
	background: #0a0a0a; color: #fff; border-radius: 12px 0 0 12px; box-shadow: -6px 8px 24px rgba(0, 0, 0, .25); transition: right .35s cubic-bezier(.2, .8, .2, 1); }
.wpt-sw-tab svg { width: 22px; height: 22px; fill: var(--sw-leaf); }
.wpt-sw-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wpt-sw-tab:hover svg { animation: wpt-spin 1.2s linear infinite; }
.wpt-sw.is-hint .wpt-sw-tab { animation: wpt-nudge 1.6s ease-in-out 1s 3; }
@keyframes wpt-spin { to { transform: rotate(360deg); } }
@keyframes wpt-nudge { 0%, 100% { margin-right: 0; } 50% { margin-right: 8px; } }

.wpt-sw-panel { pointer-events: auto; position: absolute; top: 0; right: 0; height: 100%; width: 320px; max-width: 88vw; overflow-y: auto;
	background: var(--sw-bg); box-shadow: -20px 0 50px rgba(0, 0, 0, .22); transform: translateX(100%); visibility: hidden;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s; padding: 0 0 20px; }
.wpt-sw.is-open .wpt-sw-panel { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.wpt-sw.is-open .wpt-sw-tab { right: min(320px, 88vw); }

.wpt-sw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; background: #0a0a0a; color: #fff; }
.wpt-sw-head strong { display: block; font-size: 17px; font-weight: 800; }
.wpt-sw-head span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.wpt-sw-close { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.wpt-sw-close:hover { background: rgba(255, 255, 255, .22); }

.wpt-sw-sec { padding: 16px 20px 4px; }
.wpt-sw-sec + .wpt-sw-sec { border-top: 1px solid var(--sw-line); }
.wpt-sw-sec h3 { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sw-muted); font-family: inherit; line-height: 1.4; }

.wpt-sw-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-bottom: 12px; }
.wpt-sw-swatch { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; padding: 3px; cursor: pointer; background: none; }
.wpt-sw-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--a) 0 58%, var(--b) 58% 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .2s; }
.wpt-sw-swatch:hover span { transform: scale(1.08); }
.wpt-sw-swatch.is-on { border-color: var(--sw-ink); }
.wpt-sw-swatch.is-on::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

.wpt-sw-custom { display: flex; gap: 10px; padding-bottom: 12px; }
.wpt-sw-custom label { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--sw-line); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; margin: 0; }
.wpt-sw-custom input { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; flex: none; }
.wpt-sw-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.wpt-sw-custom input::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, .1); border-radius: 50%; }
.wpt-sw-custom input::-moz-color-swatch { border: 1px solid rgba(0, 0, 0, .1); border-radius: 50%; }

.wpt-sw-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--sw-soft); border-radius: 10px; margin-bottom: 12px; }
.wpt-sw-seg button { border: 0; background: transparent; color: var(--sw-muted); padding: 8px; border-radius: 7px; font-weight: 700; font-size: 13px; cursor: pointer; }
.wpt-sw-seg button.is-on { background: #fff; color: var(--sw-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.wpt-sw-group { margin-bottom: 12px; }
.wpt-sw-group > span { display: block; font-size: 12px; font-weight: 700; color: var(--sw-ink); margin-bottom: 6px; }
.wpt-sw-group > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wpt-sw-group a { display: block; padding: 8px 10px; border: 1px solid var(--sw-line); border-radius: 8px; color: var(--sw-ink); font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: none; background: #fff; }
.wpt-sw-group a:hover { border-color: var(--sw-brand); color: var(--sw-brand); }
.wpt-sw-group a.is-here { border-color: var(--sw-brand); background: rgba(46, 125, 50, .08); color: var(--sw-brand); }

.wpt-sw-foot { display: flex; gap: 10px; padding: 16px 20px 0; border-top: 1px solid var(--sw-line); margin-top: 4px; }
.wpt-sw-reset { border: 1px solid var(--sw-line); background: #fff; color: var(--sw-ink); border-radius: 10px; padding: 11px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.wpt-sw-reset:hover { border-color: var(--sw-ink); }
.wpt-sw-cta { flex: 1; text-align: center; background: var(--sw-brand); color: #fff !important; border-radius: 10px; padding: 11px 14px; font-weight: 700; font-size: 13px; text-decoration: none; }
.wpt-sw-cta:hover { filter: brightness(1.1); }

@media (max-width: 640px) {
	.wpt-sw-tab { top: auto; bottom: 84px; transform: none; padding: 12px 8px; }
	.wpt-sw-tab span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.wpt-sw *, .wpt-sw-tab, .wpt-sw-panel { animation: none !important; transition: none !important; }
}
