/* Wildscape Merchant Portal. Mobile first. Brand tokens match the theme spec. */

:root {
	--ws-primary: #1E5631;
	--ws-primary-dark: #143D22;
	--ws-cream: #EDE3C4;
	--ws-brass: #B39B6A;
	--ws-ink: #1B1B18;
	--ws-muted: #5E5A4E;
	--ws-surface: #F7F2E4;
	--ws-card: #FFFDF7;
	--ws-border: #DDD3B6;
	--ws-success: #2E7D4F;
	--ws-warning: #B7791F;
	--ws-danger: #B23B2E;
	--ws-on-primary: #EDE3C4;
	--ws-radius: 10px;
	--ws-shadow: 0 1px 2px rgba(27, 27, 24, .06), 0 4px 14px rgba(27, 27, 24, .06);
	--ws-font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ws-font-display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
	--ws-tab-h: 64px;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ws-primary: #3F8A57;
		--ws-primary-dark: #2C6B40;
		--ws-brass: #C9B488;
		--ws-ink: #EDE3C4;
		--ws-muted: #A8A08A;
		--ws-surface: #141513;
		--ws-card: #1F211E;
		--ws-border: #34362F;
		--ws-on-primary: #F7F2E4;
		--ws-shadow: none;
	}
}
:root[data-theme="dark"] {
	--ws-primary: #3F8A57; --ws-primary-dark: #2C6B40; --ws-brass: #C9B488; --ws-ink: #EDE3C4; --ws-muted: #A8A08A;
	--ws-surface: #141513; --ws-card: #1F211E; --ws-border: #34362F; --ws-on-primary: #F7F2E4; --ws-shadow: none;
}

/* Base -------------------------------------------------------------- */
.wsm-portal-body { margin: 0; background: var(--ws-surface); color: var(--ws-ink); font: 16px/1.55 var(--ws-font); -webkit-text-size-adjust: 100%; }
.wsm-portal-body *, .wsm-portal-body *::before, .wsm-portal-body *::after { box-sizing: border-box; }
.wsm-portal-body a { color: var(--ws-primary); text-underline-offset: 2px; }
.wsm-portal-body h1, .wsm-portal-body h2, .wsm-portal-body h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ws-ink); }
.wsm-portal-body h1 { font: 400 1.75rem/1.15 var(--ws-font-display); letter-spacing: .01em; }
.wsm-portal-body h2 { font-size: 1.15rem; font-weight: 700; }
.wsm-portal-body h3 { font-size: 1rem; font-weight: 700; }
.wsm-portal-body p { margin: 0 0 1em; }
.wsm-portal-body :focus-visible { outline: 3px solid var(--ws-brass); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wsm-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ws-card); padding: 8px 12px; border-radius: 6px; }
.wsm-skip:focus { left: 8px; }
.wsm-muted { color: var(--ws-muted); }
.wsm-small { font-size: .875rem; }
.wsm-center { text-align: center; }
.wsm-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ws-brass); margin: 0 0 .4em; }
.wsm-icon { flex: none; }
[hidden] { display: none !important; }

/* Top bar ----------------------------------------------------------- */
.wsm-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--ws-primary); color: var(--ws-on-primary); }
.wsm-brand { display: flex; align-items: center; color: var(--ws-on-primary) !important; text-decoration: none; }
.wsm-brand__logo { height: 40px; width: auto; }
.wsm-brand__name { font: 400 1.05rem/1 var(--ws-font-display); letter-spacing: .06em; text-transform: uppercase; }
.wsm-topbar__actions { display: flex; gap: 4px; }
.wsm-topbar__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ws-on-primary) !important; text-decoration: none; font-size: .9rem; }
.wsm-topbar__link:hover { background: rgba(255, 255, 255, .1); }
.wsm-topbar__link span { display: none; }

/* Layout ------------------------------------------------------------ */
.wsm-app { max-width: 1200px; margin: 0 auto; }
.wsm-main { padding: 20px 16px 40px; min-width: 0; }
.wsm-app--dash .wsm-main { padding-bottom: calc(var(--ws-tab-h) + 32px + env(safe-area-inset-bottom)); }
.wsm-main:focus { outline: none; }

/* Dashboard nav: bottom tabs on phones ------------------------------ */
.wsm-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ws-card); border-top: 1px solid var(--ws-border); padding-bottom: env(safe-area-inset-bottom); }
.wsm-nav__shop { display: none; }
.wsm-nav__list { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 0; padding: 0; }
.wsm-nav__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--ws-tab-h); color: var(--ws-muted) !important; text-decoration: none; font-size: .7rem; font-weight: 600; }
.wsm-nav__item.is-active { color: var(--ws-primary) !important; }
.wsm-nav__item.is-active .wsm-icon { stroke-width: 2.4; }
.wsm-nav__item.is-disabled { opacity: .35; }

@media (min-width: 600px) {
	.wsm-topbar__link span { display: inline; }
	.wsm-main { padding: 28px 24px 48px; }
}
@media (min-width: 960px) {
	.wsm-app--dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px; }
	.wsm-app--dash .wsm-main { padding-bottom: 48px; }
	.wsm-nav { position: sticky; top: 56px; align-self: start; height: calc(100vh - 56px); border-top: 0; border-right: 1px solid var(--ws-border); background: transparent; padding: 24px 12px; }
	.wsm-nav__shop { display: flex; align-items: center; gap: 10px; padding: 0 12px 20px; font-weight: 700; }
	.wsm-nav__logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
	.wsm-nav__list { display: flex; flex-direction: column; gap: 2px; }
	.wsm-nav__item { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: .95rem; }
	.wsm-nav__item:hover { background: rgba(30, 86, 49, .07); }
	.wsm-nav__item.is-active { background: rgba(30, 86, 49, .12); }
}

/* Cards, alerts, banners -------------------------------------------- */
.wsm-card { background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: var(--ws-radius); box-shadow: var(--ws-shadow); padding: 18px 16px; margin: 0 0 16px; }
.wsm-card--quiet { box-shadow: none; background: transparent; }
@media (min-width: 600px) { .wsm-card { padding: 22px 24px; } }
.wsm-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.wsm-page-head h1 { margin: 0; flex: 1 1 auto; }
.wsm-page-head__meta { margin: 0; color: var(--ws-muted); flex-basis: 100%; order: 3; }
.wsm-breadcrumb { flex-basis: 100%; margin: 0; font-size: .9rem; }
.wsm-alert { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; border: 1px solid transparent; }
.wsm-alert--success { background: #E2F0E5; border-color: #BCD9C3; color: #173F25; }
.wsm-alert--info { background: #EFE9D6; border-color: var(--ws-border); color: var(--ws-ink); }
.wsm-alert--warning { background: #F7EAD0; border-color: #E6CB97; color: #5C3A06; }
.wsm-alert--error, .wsm-alert--danger { background: #F6DEDA; border-color: #E8B6AE; color: #6F1F16; }
.wsm-alert--brass { background: rgba(179, 155, 106, .18); border-color: var(--ws-brass); color: var(--ws-ink); }
.wsm-alert--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .wsm-alert--success { background: #1C3324; border-color: #2F5A3C; color: #CFE8D5; }
	:root:not([data-theme="light"]) .wsm-alert--info { background: #2A2B25; color: var(--ws-ink); }
	:root:not([data-theme="light"]) .wsm-alert--warning { background: #3A2E17; border-color: #6B5221; color: #F2DDB0; }
	:root:not([data-theme="light"]) .wsm-alert--error, :root:not([data-theme="light"]) .wsm-alert--danger { background: #3D1F1B; border-color: #6E2F27; color: #F3CFC9; }
}
.wsm-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 8px; margin: 0 0 18px; border-left: 5px solid; background: var(--ws-card); box-shadow: var(--ws-shadow); }
.wsm-banner p { margin: 0; flex: 1 1 220px; }
.wsm-banner--info { border-color: var(--ws-primary); }
.wsm-banner--warning { border-color: var(--ws-warning); }
.wsm-banner--danger { border-color: var(--ws-danger); }
.wsm-banner--neutral { border-color: var(--ws-muted); }
.wsm-banner--success { border-color: var(--ws-success); }
.wsm-banner .wsm-icon { color: var(--ws-primary); }
.wsm-banner--warning .wsm-icon { color: var(--ws-warning); }
.wsm-banner--danger .wsm-icon { color: var(--ws-danger); }
.wsm-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(94, 90, 78, .14); color: var(--ws-muted); vertical-align: middle; }
.wsm-pill--live { background: rgba(46, 125, 79, .15); color: var(--ws-success); }
.wsm-pill--danger { background: rgba(178, 59, 46, .14); color: var(--ws-danger); }
.wsm-pill--brass { background: var(--ws-brass); color: #1B1B18; }

/* Buttons ----------------------------------------------------------- */
.wsm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid var(--ws-border); border-radius: 8px; background: var(--ws-card); color: var(--ws-ink) !important; font: 700 1rem/1 var(--ws-font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.wsm-btn:hover { border-color: var(--ws-primary); }
.wsm-btn--primary { background: var(--ws-primary); border-color: var(--ws-primary); color: var(--ws-on-primary) !important; }
.wsm-btn--primary:hover { background: var(--ws-primary-dark); border-color: var(--ws-primary-dark); }
.wsm-btn--brass { background: var(--ws-brass); border-color: var(--ws-brass); color: #1B1B18 !important; }
.wsm-btn--danger { background: var(--ws-danger); border-color: var(--ws-danger); color: #fff !important; }
.wsm-btn--small { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.wsm-btn--block { width: 100%; }
.wsm-btn[disabled], .wsm-btn.is-busy { opacity: .6; cursor: progress; }
.wsm-link-btn { background: none; border: 0; padding: 8px 4px; min-height: 40px; color: var(--ws-primary); font: 600 .95rem var(--ws-font); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.wsm-link-btn--danger { color: var(--ws-danger); }
.wsm-form--inline, .wsm-form--link { display: inline; margin: 0; }
.wsm-form--link { display: block; text-align: center; margin-top: 8px; }
.wsm-form--danger { margin-top: 8px; text-align: center; }
.wsm-quick, .wsm-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms ------------------------------------------------------------- */
.wsm-form__errors { background: #F6DEDA; color: #6F1F16; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-weight: 600; }
.wsm-field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; position: relative; }
.wsm-field__label { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.wsm-optional { font-weight: 400; color: var(--ws-muted); font-size: .875rem; }
.wsm-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .wsm-field select, .wsm-field textarea {
	display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ws-border); border-radius: 8px;
	background: var(--ws-card); color: var(--ws-ink); font: 16px/1.4 var(--ws-font); -webkit-appearance: none; appearance: none;
}
.wsm-field select { background-image: linear-gradient(45deg, transparent 50%, var(--ws-muted) 50%), linear-gradient(135deg, var(--ws-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.wsm-field textarea { resize: vertical; min-height: 120px; }
.wsm-field input:focus, .wsm-field select:focus, .wsm-field textarea:focus { border-color: var(--ws-primary); outline: 3px solid rgba(30, 86, 49, .2); outline-offset: 0; }
.wsm-field--error input, .wsm-field--error select, .wsm-field--error textarea { border-color: var(--ws-danger) !important; }
.wsm-field__help { margin: 6px 0 0; font-size: .875rem; color: var(--ws-muted); }
.wsm-field__error { margin: 6px 0 0; font-size: .875rem; color: var(--ws-danger); font-weight: 600; }
.wsm-counter { position: absolute; right: 0; top: 0; font-size: .8rem; color: var(--ws-muted); }
.wsm-counter.is-over { color: var(--ws-danger); font-weight: 700; }
.wsm-form__actions { margin-top: 20px; }
.wsm-grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .wsm-grid-2 { grid-template-columns: 1fr 1fr; } }
.wsm-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.wsm-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ws-primary); }
.wsm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wsm-chip { position: relative; }
.wsm-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wsm-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ws-border); border-radius: 999px; background: var(--ws-card); font-weight: 600; }
.wsm-chip input:checked + span { background: var(--ws-primary); border-color: var(--ws-primary); color: var(--ws-on-primary); }
.wsm-chip input:focus-visible + span { outline: 3px solid var(--ws-brass); outline-offset: 2px; }
.wsm-chip input:disabled + span { opacity: .45; }
.wsm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wsm-savebar { position: sticky; bottom: calc(var(--ws-tab-h) + env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 8px -16px 0; padding: 12px 16px; background: var(--ws-surface); border-top: 1px solid var(--ws-border); }
.wsm-savebar__status { margin-right: auto; font-size: .875rem; color: var(--ws-muted); }
@media (min-width: 960px) { .wsm-savebar { bottom: 0; margin: 8px 0 0; border-radius: var(--ws-radius); } }

/* Signup ------------------------------------------------------------ */
.wsm-signup { max-width: 640px; margin: 0 auto; }
.wsm-signup__intro { text-align: center; margin: 8px 0 20px; }
.wsm-progress { display: flex; justify-content: space-between; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: s; position: relative; }
.wsm-progress::before { content: ""; position: absolute; left: 12%; right: 12%; top: 17px; height: 2px; background: var(--ws-border); }
.wsm-progress__step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; color: var(--ws-muted); text-align: center; }
.wsm-progress__dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ws-card); border: 2px solid var(--ws-border); font-weight: 700; }
.wsm-progress__step.is-current { color: var(--ws-ink); font-weight: 700; }
.wsm-progress__step.is-current .wsm-progress__dot { border-color: var(--ws-primary); color: var(--ws-primary); }
.wsm-progress__step.is-done .wsm-progress__dot { background: var(--ws-primary); border-color: var(--ws-primary); color: var(--ws-on-primary); }
.wsm-plans { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; border: 0; }
@media (min-width: 600px) { .wsm-plans { grid-template-columns: 1fr 1fr; } }
.wsm-plan { position: relative; display: block; cursor: pointer; }
.wsm-plan input { position: absolute; top: 18px; right: 18px; width: 22px; height: 22px; accent-color: var(--ws-primary); }
.wsm-plan__body { display: block; height: 100%; padding: 18px; border: 2px solid var(--ws-border); border-radius: var(--ws-radius); background: var(--ws-card); }
.wsm-plan input:checked + .wsm-plan__body { border-color: var(--ws-primary); box-shadow: 0 0 0 3px rgba(30, 86, 49, .15); }
.wsm-plan--heritage .wsm-plan__body { border-top: 6px solid var(--ws-brass); }
.wsm-plan__name { display: block; font-weight: 800; font-size: 1.1rem; padding-right: 30px; }
.wsm-plan__price { display: block; font: 400 1.6rem/1.3 var(--ws-font-display); margin: 6px 0 10px; color: var(--ws-primary); }
.wsm-plan__price small { font: 400 .9rem var(--ws-font); color: var(--ws-muted); }
.wsm-plan__price s { font: 400 .95rem var(--ws-font); margin-left: 6px; }
.wsm-plan__perks { margin: 0; padding-left: 1.1em; font-size: .9rem; }
.wsm-plan__perks li { margin-bottom: 4px; }
.wsm-summary { background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; }
.wsm-summary ul { margin: 0; padding-left: 1.1em; }
.wsm-summary li { margin-bottom: 6px; }
.wsm-summary--compact p { margin: 0 0 4px; }

/* Overview ---------------------------------------------------------- */
.wsm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
@media (min-width: 900px) { .wsm-stats { grid-template-columns: repeat(4, 1fr); } }
.wsm-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: var(--ws-radius); text-decoration: none; color: var(--ws-ink) !important; }
a.wsm-stat:hover { border-color: var(--ws-primary); }
.wsm-stat__label { font-size: .8rem; color: var(--ws-muted); font-weight: 600; }
.wsm-stat__value { font: 400 1.6rem/1.15 var(--ws-font-display); color: var(--ws-primary); }
.wsm-stat__value--text { font-size: 1.15rem; }
.wsm-stat__sub { font-size: .8rem; color: var(--ws-muted); }
.wsm-since { color: var(--ws-muted); }
.wsm-checklist ul { list-style: none; margin: 12px 0 0; padding: 0; }
.wsm-checklist li { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.wsm-checklist li.is-done { color: var(--ws-muted); text-decoration: line-through; }
.wsm-checklist li .wsm-icon { color: var(--ws-success); }
.wsm-checklist__dot { width: 18px; height: 18px; margin: 0 2px; border: 2px solid var(--ws-border); border-radius: 50%; }
.wsm-meter { height: 8px; border-radius: 99px; background: var(--ws-border); overflow: hidden; }
.wsm-meter span { display: block; height: 100%; background: var(--ws-primary); }
.wsm-empty { text-align: center; padding: 32px 20px; }
.wsm-empty .wsm-icon { width: 40px; height: 40px; color: var(--ws-brass); margin-bottom: 8px; }

/* Shop editor + preview --------------------------------------------- */
.wsm-editor { display: grid; gap: 16px; }
@media (min-width: 1100px) { .wsm-editor { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .wsm-editor__preview { position: sticky; top: 76px; } }
.wsm-preview { background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: var(--ws-radius); overflow: hidden; }
.wsm-preview__banner { aspect-ratio: 16 / 5; background: var(--ws-primary) center / cover no-repeat; }
.wsm-preview__head { display: flex; gap: 12px; padding: 0 16px; align-items: flex-start; }
.wsm-preview__logo { flex: none; width: 72px; height: 72px; margin-top: -28px; border-radius: 12px; border: 3px solid var(--ws-card); background: var(--ws-cream) center / cover no-repeat; }
.wsm-preview__head > div:last-child { padding-top: 10px; min-width: 0; }
.wsm-preview__name { font: 400 1.15rem/1.2 var(--ws-font-display); margin: 0; }
.wsm-preview__tagline { margin: 2px 0 0; font-size: .9rem; }
.wsm-preview__place { margin: 2px 0 0; font-size: .8rem; color: var(--ws-muted); }
.wsm-preview__story { padding: 12px 16px 16px; font-size: .9rem; white-space: pre-line; max-height: 220px; overflow: hidden; }

/* Photos ------------------------------------------------------------ */
.wsm-photos__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; list-style: none; margin: 8px 0 10px; padding: 0; }
.wsm-photos--single .wsm-photos__list { grid-template-columns: minmax(0, 200px); }
.wsm-photos--single#banner .wsm-photos__list { grid-template-columns: minmax(0, 1fr); }
.wsm-photos--single#banner .wsm-photo { aspect-ratio: 16 / 5; }
.wsm-photo { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--ws-border); }
.wsm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.wsm-photo.is-uploading::after { content: ""; position: absolute; inset: 0; background: rgba(247, 242, 228, .6) linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent) -100% 0 / 50% 100% no-repeat; animation: wsm-shimmer 1.1s infinite; }
@keyframes wsm-shimmer { to { background-position: 200% 0; } }
.wsm-photo__remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(27, 27, 24, .75); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.wsm-photo__cover { display: none; position: absolute; left: 4px; bottom: 4px; padding: 2px 8px; border-radius: 99px; background: var(--ws-primary); color: var(--ws-on-primary); font-size: .7rem; font-weight: 700; }
.wsm-photos__list li:first-child .wsm-photo__cover { display: block; }
.wsm-photo__drag { position: absolute; left: 4px; top: 4px; touch-action: none; cursor: grab; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: rgba(27, 27, 24, .55); color: #fff; }
.wsm-photo__drag .wsm-icon { width: 16px; height: 16px; }
.wsm-photos__add { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 2px dashed var(--ws-border); border-radius: 8px; font-weight: 700; color: var(--ws-primary); cursor: pointer; position: relative; }
.wsm-photos__add:hover { border-color: var(--ws-primary); }
.wsm-photos__add input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.wsm-photos__add:focus-within { outline: 3px solid var(--ws-brass); outline-offset: 2px; }
.wsm-photos__status { margin: 6px 0 0; font-size: .875rem; color: var(--ws-muted); }
.is-dragging { opacity: .5; }
.wsm-sort-ghost { outline: 2px dashed var(--ws-primary); outline-offset: -2px; }

/* Products ---------------------------------------------------------- */
.wsm-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.wsm-bulkbar__count { font-weight: 700; }
.wsm-bulkbar__hint { flex-basis: 100%; font-size: .85rem; }
.wsm-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .wsm-product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.wsm-product { position: relative; display: flex; flex-direction: column; background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: var(--ws-radius); overflow: hidden; }
.wsm-product.is-paused .wsm-product__media img { filter: grayscale(.7); opacity: .7; }
.wsm-product__select { position: absolute; top: 6px; left: 6px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; background: rgba(255, 253, 247, .9); border-radius: 8px; }
.wsm-product__select input { width: 20px; height: 20px; accent-color: var(--ws-primary); }
.wsm-product__drag { position: absolute; top: 6px; right: 6px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; background: rgba(255, 253, 247, .9); border-radius: 8px; color: var(--ws-muted); cursor: grab; touch-action: none; }
.wsm-product__media { display: block; aspect-ratio: 1; background: var(--ws-border); }
.wsm-product__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wsm-product__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 6px; }
.wsm-product__title { font-weight: 700; color: var(--ws-ink) !important; text-decoration: none; line-height: 1.3; }
.wsm-product__price { color: var(--ws-muted); }
.wsm-product__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.wsm-product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: .9rem; }
.wsm-product__actions a { padding: 8px 4px 8px 0; font-weight: 600; }
.wsm-product__actions .wsm-link-btn { font-size: .9rem; padding: 8px 2px; }
.wsm-linkcheck { margin: -10px 0 10px; font-size: .875rem; font-weight: 600; }
.wsm-linkcheck.is-ok { color: var(--ws-success); }
.wsm-linkcheck.is-bad { color: var(--ws-danger); }
.wsm-help { margin-top: 14px; border-top: 1px solid var(--ws-border); padding-top: 10px; }
.wsm-help summary { cursor: pointer; font-weight: 700; color: var(--ws-primary); min-height: 40px; display: flex; align-items: center; }
.wsm-help ol { padding-left: 1.2em; }

/* Plan -------------------------------------------------------------- */
.wsm-plan-summary { display: grid; gap: 16px; }
@media (min-width: 760px) { .wsm-plan-summary { grid-template-columns: 220px 1fr; } }
.wsm-plan-summary__name { font-size: 1.25rem; font-weight: 800; margin: 0; }
.wsm-plan-summary__price { font: 400 1.6rem/1.2 var(--ws-font-display); color: var(--ws-primary); margin: 4px 0 0; }
.wsm-dl { margin: 0; display: grid; gap: 10px; }
.wsm-dl div { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 600px) { .wsm-dl div { grid-template-columns: 170px 1fr; } }
.wsm-dl dt { color: var(--ws-muted); font-weight: 600; font-size: .9rem; }
.wsm-dl dd { margin: 0; }
.wsm-upsell { border-top: 6px solid var(--ws-brass); }
.wsm-confirm { margin: 10px 0; }
.wsm-confirm > summary { list-style: none; }
.wsm-confirm > summary::-webkit-details-marker { display: none; }
.wsm-confirm__body { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--ws-border); border-radius: 8px; background: var(--ws-surface); }
.wsm-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wsm-table th, .wsm-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--ws-border); }
.wsm-table th { color: var(--ws-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

/* Toasts ------------------------------------------------------------ */
.wsm-toast-region { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--ws-tab-h) + 16px + env(safe-area-inset-bottom)); z-index: 50; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.wsm-toast { padding: 12px 16px; border-radius: 8px; background: var(--ws-ink); color: var(--ws-surface); box-shadow: 0 6px 24px rgba(0, 0, 0, .2); font-weight: 600; pointer-events: auto; }
.wsm-toast--error { background: var(--ws-danger); color: #fff; }
@media (min-width: 960px) { .wsm-toast-region { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) { .wsm-portal-body * { animation: none !important; transition: none !important; } }

/* Square card form (Billing) */
.wsm-steps-next { margin: 16px 0 20px; padding-left: 1.3em; }
.wsm-steps-next li { margin-bottom: 8px; }
.wsm-pastdue { border-left: 5px solid var(--ws-warning); }
