/* SuiteMkt3k admin design system - Divi-inspired clean & modern */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/Inter-Bold.woff2') format('woff2');
}

:root {
	--wmk-primary: #2ab2e5;
	--wmk-primary-dark: #1d8fb8;
	--wmk-secondary: #2ab2e5;
	--wmk-gradient: linear-gradient(135deg, #9bc6d6, #2ab2e5);
	--wmk-success: #10B981;
	--wmk-warning: #F59E0B;
	--wmk-danger: #EF4444;
	--wmk-text: #0F172A;
	--wmk-text-muted: #475569;
	--wmk-text-subtle: #94A3B8;
	--wmk-border: #E2E8F0;
	--wmk-bg: #F4F4F7;
	--wmk-card: #FFFFFF;
	--wmk-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	--wmk-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08);
	--wmk-radius: 12px;
	--wmk-radius-sm: 8px;
}

.wmk-wrap { margin: 20px 20px 60px 0; }
.wmk-wrap, .wmk-wrap * { box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--wmk-text); }
.wmk-wrap a { color: var(--wmk-primary); text-decoration: none; }
.wmk-wrap a:hover { color: var(--wmk-primary-dark); }

.wmk-app { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .wmk-app { grid-template-columns: 1fr; } }

.wmk-sidebar {
	background: var(--wmk-card);
	border-radius: var(--wmk-radius);
	box-shadow: var(--wmk-shadow);
	padding: 20px 14px;
	min-height: 480px;
	display: flex;
	flex-direction: column;
}
.wmk-logo { display: flex; gap: 10px; align-items: center; padding: 8px 6px 18px; border-bottom: 1px solid var(--wmk-border); margin-bottom: 14px; }
.wmk-logo-text { display: flex; flex-direction: column; gap: 2px; }
.wmk-logo-text strong { display: block; font-weight: 600; font-size: 22px; color: var(--wmk-text); letter-spacing: -0.01em; line-height: 1; }
.wmk-logo-text strong .wmk-logo-accent {
	background: var(--wmk-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-weight: 700;
}
.wmk-logo-text small { color: var(--wmk-text-subtle); font-size: 11px; }

.wmk-nav { display: flex; flex-direction: column; gap: 6px; }
.wmk-nav-item { display: flex; align-items: center; gap: 10px; padding: 15px 12px; border-radius: 10px; color: var(--wmk-text-muted); transition: background .15s ease, color .15s ease; font-size: 13px; font-weight: 500; }
.wmk-nav-item:hover { background: rgba(42,178,229,0.08); color: var(--wmk-primary); }
.wmk-nav-item.is-active { background: var(--wmk-gradient); color: #fff; box-shadow: 0 4px 12px rgba(42,178,229,0.28); }
.wmk-nav-item.is-active * { color: #fff !important; }
.wmk-nav-icon svg { width: 18px; height: 18px; }
.wmk-nav-footer { padding-top: 10px; color: var(--wmk-text-subtle); font-size: 11px; }
.wmk-nav-footer small { line-height: 1.4; display: block; }

/* Language switcher (sidebar, below help). The sidebar lays itself out so the
   switcher pushes against the footer without visible separator lines. */
.wmk-lang-switcher { margin-top: auto; position: relative; padding: 12px 0 6px; }
.wmk-lang-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: transparent; border: 1px solid var(--wmk-border); border-radius: 10px; color: var(--wmk-text); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; text-align: left; transition: background .12s ease, border-color .12s ease; }
.wmk-lang-button:hover { background: rgba(42,178,229,0.08); border-color: var(--wmk-primary); }
.wmk-lang-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(15,23,42,0.06); }
.wmk-lang-button span { flex: 1; }
.wmk-lang-caret { width: 14px; height: 14px; transition: transform .15s ease; flex-shrink: 0; }
.wmk-lang-caret.is-open { transform: rotate(180deg); }
.wmk-lang-menu { position: absolute; left: 0; right: 0; bottom: calc(100% - 4px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--wmk-border); border-radius: 10px; box-shadow: 0 12px 28px rgba(15,23,42,0.12); z-index: 50; }
.wmk-lang-menu li { margin: 0; }
.wmk-lang-menu form { margin: 0; }
.wmk-lang-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: transparent; border: 0; border-radius: 8px; color: var(--wmk-text); cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; text-align: left; }
.wmk-lang-option:hover { background: rgba(42,178,229,0.08); }
.wmk-lang-option.is-active { background: rgba(42,178,229,0.14); color: var(--wmk-primary); font-weight: 700; }
.wmk-author-link { color: var(--wmk-primary); text-decoration: none; font-weight: 600; }
.wmk-author-link:hover { color: var(--wmk-primary-dark); text-decoration: underline; }

.wmk-main { display: flex; flex-direction: column; gap: 20px; }

/* WordPress / third-party admin notices (relocated after .wp-header-end by core JS) */
.wmk-wrap .wp-header-end { display: none; }
.wmk-main > .notice,
.wmk-main > .updated,
.wmk-main > .error,
.wmk-main > .update-nag,
.wmk-wrap > .notice,
.wmk-wrap > .updated,
.wmk-wrap > .error,
.wmk-wrap > .update-nag {
	color: #1d2327 !important;
	margin: 0 0 4px !important;
	box-shadow: var(--wmk-shadow);
}
.wmk-header-banner .notice,
.wmk-header-banner .updated,
.wmk-header-banner .error,
.wmk-header-banner .update-nag {
	/* Safety: never style foreign notices as part of the blue hero */
	color: #1d2327 !important;
}

.wmk-header-banner {
	background: var(--wmk-gradient);
	color: #fff;
	border-radius: var(--wmk-radius);
	padding: 28px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	box-shadow: var(--wmk-shadow-lg);
	flex-wrap: wrap;
}
.wmk-header-title { margin: 0; font-size: 24px; letter-spacing: -0.01em; color: #fff; font-weight: 700; line-height: 1.25; }
.wmk-header-subtitle { margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,0.85); }
.wmk-header-actions { display: flex; gap: 8px; }

.wmk-card { background: var(--wmk-card); border-radius: var(--wmk-radius); box-shadow: var(--wmk-shadow); padding: 28px 32px; border: 1px solid var(--wmk-border); }
.wmk-card-soft { background: #F8FAFC; border: 1px dashed var(--wmk-border); }
.wmk-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.wmk-card-header h3, .wmk-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.wmk-card-header small { color: var(--wmk-text-subtle); font-size: 12px; }
.wmk-card + .wmk-card { margin-top: 4px; }
.wmk-card h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; }

.wmk-card-builder { padding: 28px 32px; }
.wmk-builder-loading { padding: 60px; text-align: center; color: var(--wmk-text-subtle); }
.wmk-settings-card { padding: 32px; }

/* Two-column designer layout (designer + live preview) */
.wmk-designer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start; }
.wmk-designer-grid > .wmk-card { margin: 0; }
.wmk-designer-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wmk-designer-send { display: flex; flex-direction: column; gap: 16px; }
.wmk-designer-send .wmk-card { margin: 0; }
.wmk-designer-preview { position: sticky; top: 32px; }
.wmk-preview-frame { background: #F8FAFC; border: 1px solid var(--wmk-border); border-radius: 12px; padding: 20px; min-height: 320px; display: flex; align-items: stretch; justify-content: center; }
.wmk-preview-frame > * { width: 100%; }
@media (max-width: 1100px) { .wmk-designer-grid { grid-template-columns: 1fr; } .wmk-designer-preview { position: static; } }

.wmk-grid { display: grid; gap: 16px; }
.wmk-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.wmk-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.wmk-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.wmk-grid-2-3 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .wmk-grid-2-3, .wmk-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px)  { .wmk-grid-2, .wmk-grid-3, .wmk-grid-4, .wmk-grid-2-3 { grid-template-columns: 1fr; } }

.wmk-stat { display: flex; flex-direction: column; gap: 4px; }
.wmk-stat-label { font-size: 12px; color: var(--wmk-text-subtle); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.wmk-stat-value { font-size: 28px; font-weight: 700; color: var(--wmk-text); letter-spacing: -0.02em; }
.wmk-stat-meta { font-size: 12px; color: var(--wmk-success); }

.wmk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1; transition: all .15s ease; text-decoration: none; min-height: 40px; }
.wmk-btn:hover { transform: translateY(-1px); }
.wmk-btn-primary { background: var(--wmk-primary); color: #fff !important; }
.wmk-btn-primary:hover { background: var(--wmk-primary-dark); color: #fff !important; box-shadow: 0 6px 18px rgba(42,178,229,0.32); }
.wmk-btn-secondary { background: rgba(42,178,229,0.1); color: var(--wmk-primary); border-color: rgba(42,178,229,0.3); }
.wmk-btn-secondary:hover { background: rgba(42,178,229,0.15); }
.wmk-btn-ghost { background: #fff; color: var(--wmk-text-muted); border-color: var(--wmk-border); }
.wmk-btn-ghost:hover { color: var(--wmk-primary); border-color: var(--wmk-primary); }
.wmk-btn-danger { background: var(--wmk-danger); color: #fff !important; }

.wmk-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; background: transparent; border: 1px solid var(--wmk-border); border-radius: 8px; color: var(--wmk-text-muted); cursor: pointer; transition: all .15s ease; }
.wmk-icon-btn:hover { color: var(--wmk-primary); border-color: var(--wmk-primary); background: rgba(42,178,229,0.06); }
.wmk-icon-btn-danger:hover { color: var(--wmk-danger); border-color: var(--wmk-danger); background: rgba(239,68,68,0.05); }

.wmk-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.wmk-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wmk-text-subtle); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--wmk-border); }
.wmk-table td { padding: 14px; border-bottom: 1px solid var(--wmk-border); font-size: 13px; color: var(--wmk-text); vertical-align: middle; }
.wmk-table tr:last-child td { border-bottom: none; }
.wmk-table tr:hover td { background: #F8FAFC; }
.wmk-table-compact th, .wmk-table-compact td { padding: 10px 12px; font-size: 12px; }
.wmk-table-actions { white-space: nowrap; }
.wmk-table-actions form { margin-left: 6px; }
.wmk-col-actions { text-align: right; white-space: nowrap; }
.wmk-empty { text-align: center; color: var(--wmk-text-subtle); padding: 48px !important; font-size: 13px; }

.wmk-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--wmk-border); color: var(--wmk-text-muted); }
.wmk-pill-active, .wmk-pill-sent, .wmk-pill-recovered { background: rgba(16,185,129,0.12); color: var(--wmk-success); }
.wmk-pill-draft, .wmk-pill-paused, .wmk-pill-completed { background: rgba(148,163,184,0.18); color: var(--wmk-text-muted); }
.wmk-pill-scheduled, .wmk-pill-sending, .wmk-pill-pending, .wmk-pill-emailed { background: rgba(42,178,229,0.14); color: var(--wmk-primary-dark); }
.wmk-pill-expired, .wmk-pill-deleted, .wmk-pill-bounced, .wmk-pill-unsubscribed { background: rgba(239,68,68,0.1); color: var(--wmk-danger); }

.wmk-tabs { display: flex; gap: 4px; padding: 10px; background: var(--wmk-card); border: 1px solid var(--wmk-border); border-radius: 14px; box-shadow: var(--wmk-shadow); margin-bottom: 0; overflow-x: auto; }
.wmk-tab, button.wmk-tab { padding: 11px 18px; border-radius: 10px; color: var(--wmk-text-muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: all .15s ease; background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.wmk-tab.is-active, button.wmk-tab.is-active { background: var(--wmk-gradient); color: #fff; }
.wmk-tab.is-active *, button.wmk-tab.is-active * { color: #fff; }
.wmk-tab:focus, button.wmk-tab:focus { outline: 0; box-shadow: 0 0 0 3px rgba(42,178,229,0.18); }

/* Tooltip helper */
.wmk-tooltip { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; position: relative; cursor: help; }
.wmk-tooltip-trigger { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--wmk-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.wmk-tooltip-content { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #0F172A; color: #fff !important; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 400; line-height: 1.45; width: 260px; box-shadow: 0 8px 24px rgba(15,23,42,0.18); opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 20; }
.wmk-tooltip-content::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #0F172A; }
.wmk-tooltip:hover .wmk-tooltip-content, .wmk-tooltip:focus .wmk-tooltip-content, .wmk-tooltip:focus-within .wmk-tooltip-content { opacity: 1; pointer-events: auto; }

/* Consent checkbox inside popup preview */
.wmk-pc-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; margin: 10px 0; }
.wmk-pc-consent input { margin-top: 2px; flex-shrink: 0; }
.wmk-pc-consent span { line-height: 1.45; }
.wmk-tab:hover { color: var(--wmk-primary); background: rgba(42,178,229,0.06); }
.wmk-tab.is-active { background: var(--wmk-gradient); color: #fff !important; box-shadow: 0 4px 12px rgba(42,178,229,0.28); }

.wmk-field { display: flex; flex-direction: column; gap: 6px; }
.wmk-field span { font-size: 12px; font-weight: 600; color: var(--wmk-text-muted); }
.wmk-field-full { grid-column: 1 / -1; }
.wmk-input { width: 100%; padding: 10px 12px; border: 1px solid var(--wmk-border); border-radius: 10px; background: #fff; font-size: 13px; color: var(--wmk-text); transition: border-color .15s ease, box-shadow .15s ease; }
.wmk-input:focus { outline: none; border-color: var(--wmk-primary); box-shadow: 0 0 0 3px rgba(42,178,229,0.18); }
textarea.wmk-input { font-family: inherit; resize: vertical; min-height: 80px; }
.wmk-help { color: var(--wmk-text-subtle); font-size: 12px; margin: 0 0 18px; }
.wmk-help-inline { display: block; font-weight: 400; color: var(--wmk-text-subtle); font-size: 11px; margin-top: 2px; }

.wmk-toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; padding: 4px 0; line-height: 1.45; font-size: 13px; color: var(--wmk-text); }
.wmk-toggle input { accent-color: var(--wmk-primary); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.wmk-toggle-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.wmk-toggle-row .wmk-toggle { padding: 0; }
.wmk-toggle-help { font-size: 11px; color: var(--wmk-text-subtle); margin-left: 28px; }

.wmk-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--wmk-border); }
.wmk-inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

/* Color input: picker + manual hex */
.wmk-color { position: relative; display: flex; align-items: stretch; gap: 8px; }
.wmk-color-swatch { position: relative; width: 44px; height: 40px; border: 1px solid var(--wmk-border); border-radius: 10px; overflow: hidden; cursor: pointer; flex-shrink: 0; background: #fff; }
.wmk-color-swatch input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; opacity: 0; }
.wmk-color-swatch::after { content: ''; position: absolute; inset: 4px; border-radius: 6px; background: var(--swatch, #2ab2e5); pointer-events: none; box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06); }
.wmk-color .wmk-input { flex: 1; font-family: 'SFMono-Regular', Consolas, Menlo, monospace; text-transform: uppercase; }

.wmk-flash { padding: 14px 18px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 500; }
.wmk-flash-success { background: rgba(16,185,129,0.1); color: var(--wmk-success); border: 1px solid rgba(16,185,129,0.2); }
.wmk-flash-error { background: rgba(239,68,68,0.1); color: var(--wmk-danger); border: 1px solid rgba(239,68,68,0.2); }
.wmk-flash-warning { background: rgba(245,158,11,0.1); color: var(--wmk-warning); border: 1px solid rgba(245,158,11,0.2); }

.wmk-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.wmk-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(2px); }
.wmk-modal-dialog { position: relative; background: var(--wmk-card); border-radius: 14px; padding: 24px; min-width: 420px; max-width: 90vw; box-shadow: var(--wmk-shadow-lg); }
.wmk-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wmk-modal-body { display: flex; flex-direction: column; gap: 14px; }
.wmk-modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--wmk-border); }
[x-cloak] { display: none !important; }
.wmk-preview-hidden { display: none !important; }
.wmk-designer-main.wmk-alpine-pending > .wmk-card { visibility: hidden; }

.wmk-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wmk-toolbar-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wmk-toolbar-form .wmk-input { min-width: 200px; }
.wmk-toolbar-actions { display: flex; gap: 8px; }

.wmk-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--wmk-border); }
.wmk-pagination a { padding: 8px 12px; border: 1px solid var(--wmk-border); border-radius: 8px; color: var(--wmk-text-muted); font-size: 13px; }
.wmk-pagination a.is-active { background: var(--wmk-primary); color: #fff !important; border-color: var(--wmk-primary); }

.wmk-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wmk-activity-item { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--wmk-border); }
.wmk-activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.wmk-activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wmk-primary); margin-top: 6px; flex-shrink: 0; }
.wmk-activity-error .wmk-activity-dot { background: var(--wmk-danger); }
.wmk-activity-warn .wmk-activity-dot { background: var(--wmk-warning); }
.wmk-activity-text { display: flex; flex-direction: column; gap: 2px; }
.wmk-activity-text strong { font-size: 13px; color: var(--wmk-text); }
.wmk-activity-text span { font-size: 12px; color: var(--wmk-text-muted); }
.wmk-activity-text small { font-size: 11px; color: var(--wmk-text-subtle); }

.wmk-notice { display: flex; gap: 14px; align-items: center; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); border-radius: 12px; padding: 16px 20px; }
.wmk-notice-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--wmk-warning); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.wmk-notice-body strong { color: var(--wmk-text); font-size: 14px; display: block; margin-bottom: 4px; }
.wmk-notice-body p { margin: 0; font-size: 12px; color: var(--wmk-text-muted); }
.wmk-notice-actions { margin-left: auto; }

/* Media picker (logo) */
.wmk-media { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.wmk-media img.wmk-media-preview { max-width: 160px; max-height: 80px; border-radius: 8px; border: 1px solid var(--wmk-border); padding: 6px; background: #fff; object-fit: contain; }
.wmk-media .wmk-btn { white-space: nowrap; }

/* Form preview styles (inside designer) */
.wmk-preview-form { font-family: 'Inter', sans-serif; padding: 22px; border-radius: 14px; max-width: 360px; margin: 0 auto; box-shadow: 0 4px 18px rgba(15,23,42,0.06); }
.wmk-preview-form h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.wmk-preview-form p { margin: 0 0 14px; font-size: 13px; opacity: 0.78; }
.wmk-preview-form .wmk-pf-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.wmk-preview-form .wmk-pf-field label { font-size: 11px; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.wmk-preview-form .wmk-pf-field input { padding: 10px 12px; border-radius: 8px; font-size: 13px; font-family: inherit; }
.wmk-preview-form .wmk-pf-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; opacity: 0.78; margin: 10px 0 14px; }
.wmk-preview-form .wmk-pf-cta { width: 100%; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }

/* Email preview (newsletter, cart) */
.wmk-preview-email { background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(15,23,42,0.06); font-family: 'Inter', sans-serif; max-width: 340px; margin: 0 auto; font-size: 13px; overflow: hidden; }
.wmk-preview-email .wmk-pe-logo-bar { background: #fff; padding: 18px 16px; text-align: center; display: flex; align-items: center; justify-content: center; }
.wmk-preview-email .wmk-pe-logo { max-height: 56px; max-width: 70%; object-fit: contain; display: block; }
.wmk-preview-email .wmk-pe-accent-bar { height: 6px; }
.wmk-preview-email .wmk-pe-header { padding: 18px 14px; color: #fff; text-align: center; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.wmk-preview-email .wmk-pe-image-wrap { background: #F1F5F9; }
.wmk-preview-email .wmk-pe-image { display: block; width: 100%; }
.wmk-preview-email .wmk-pe-body { padding: 26px 22px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.wmk-preview-email .wmk-pe-heading { margin: 0 0 14px; font-size: 19px; color: #0F172A; font-weight: 700; line-height: 1.3; text-align: center; }
.wmk-preview-email .wmk-pe-paragraph { margin: 0 0 18px; color: #475569; line-height: 1.6; font-size: 13px; white-space: pre-line; text-align: center; max-width: 100%; }
.wmk-preview-email .wmk-pe-cta-wrap { width: 100%; text-align: center; margin-top: 4px; }
.wmk-preview-email .wmk-pe-cta { display: inline-block; padding: 12px 26px; border-radius: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.wmk-preview-email .wmk-pe-footer { padding: 16px 18px 18px; border-top: 1px solid #F1F5F9; margin-top: 12px; font-size: 11px; color: #94A3B8; text-align: center; }
.wmk-preview-email .wmk-pe-footer-brand { display: block; color: #475569; font-size: 12px; margin-bottom: 6px; }
.wmk-preview-email .wmk-pe-footer-legal { display: block; white-space: pre-line; line-height: 1.5; margin-bottom: 8px; color: #94A3B8; }
.wmk-preview-email .wmk-pe-footer-line { display: block; opacity: 0.85; margin-bottom: 8px; line-height: 1.5; }
.wmk-preview-email .wmk-pe-unsub { font-size: 11px; }
.wmk-preview-email .wmk-pe-unsub a { color: var(--wmk-primary); text-decoration: underline; margin-left: 4px; }
.wmk-preview-email .wmk-pe-badge-wrap { width: 100%; margin-bottom: 12px; text-align: left; }
.wmk-preview-email .wmk-pe-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #ECFDF5; color: #059669; }
/* Template variations (newsletter) */
.wmk-pe-classic .wmk-pe-body { text-align: center; }
.wmk-pe-welcome .wmk-pe-body { text-align: left; align-items: flex-start; padding-top: 20px; border-left: 4px solid var(--wmk-pe-secondary, #10B981); margin: 0 14px 8px; padding-left: 18px; }
.wmk-pe-welcome .wmk-pe-heading { text-align: left; }
.wmk-pe-welcome .wmk-pe-paragraph { text-align: left; }
.wmk-pe-welcome .wmk-pe-cta-wrap { text-align: left; width: 100%; }
.wmk-pe-welcome .wmk-pe-badge-wrap { text-align: left; }
.wmk-pe-reminder .wmk-pe-body { margin: 12px 14px; padding: 22px 18px; background: #FFFBEB; border: 2px dashed var(--wmk-pe-secondary, #F59E0B); border-radius: 10px; text-align: center; align-items: center; }
.wmk-pe-reminder .wmk-pe-heading { text-align: center; }
.wmk-pe-reminder .wmk-pe-paragraph { text-align: center; color: #78350F; }
.wmk-pe-reminder .wmk-pe-badge-wrap { text-align: center; }
.wmk-pe-announce .wmk-pe-badge-wrap--announce { padding: 16px 18px 0; text-align: center; width: 100%; }
.wmk-pe-announce .wmk-pe-badge-wrap--announce .wmk-pe-badge { margin: 0 auto; }
.wmk-pe-announce .wmk-pe-announce-band { padding: 18px 16px; text-align: center; }
.wmk-pe-announce .wmk-pe-heading-band { margin: 0; font-size: 18px; color: #fff; font-weight: 800; text-align: center; }
.wmk-pe-announce .wmk-pe-body { text-align: center; }

/* Narrow field (Value, Usage limit) */
.wmk-field-narrow { max-width: 160px; }
@media (max-width: 720px) { .wmk-field-narrow { max-width: 100%; } }

/* Designer tabs (React-side) - same look as PHP wmk-tabs but inside card */
.wmk-designer-tabs { margin-bottom: 20px; }
.wmk-designer-tabs .wmk-tab { border: 0; cursor: pointer; background: transparent; }

/* Coupon preview elements */
.wmk-preview-coupon { display: flex; flex-direction: column; gap: 16px; padding: 16px; background: #F8FAFC; max-width: 380px; }
.wmk-pc-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-size: 12px; flex-wrap: wrap; transition: opacity .2s ease; }
.wmk-pc-banner-text { flex: 1; font-weight: 500; min-width: 0; }
.wmk-pc-banner-value { background: rgba(255,255,255,0.22); padding: 2px 8px; border-radius: 12px; font-weight: 700; font-size: 11px; }
.wmk-pc-cta-pill { background: rgba(0,0,0,0.22); color: inherit; border: 0; padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: 11px; cursor: pointer; }
/* Coupon designer popup preview — mirrors the real popup look & feel. */
.wmk-pc-popup { position: relative; overflow: hidden; padding: 30px 24px; border-radius: 18px; box-shadow: 0 8px 20px rgba(15,23,42,0.12); margin-top: 14px; transition: opacity .2s ease; }
.wmk-pc-preview-off { opacity: 0.28; pointer-events: none; filter: grayscale(0.15); }
.wmk-pc-popup-image { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; background-repeat: no-repeat; pointer-events: none; }
.wmk-pc-popup-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.wmk-pc-popup-content h4 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; color: inherit; }
.wmk-pc-popup-content p { margin: 0; opacity: 0.92; font-size: 14px; line-height: 1.45; max-width: 280px; }
.wmk-pc-popup-value { font-size: 36px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; margin: 4px 0; }
.wmk-pc-cta { padding: 12px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; border: 0; min-width: 200px; font-size: 14px; }
.wmk-pc-cta.wmk-cta-copy-code, .wmk-pc-cta-pill.wmk-cta-copy-code {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	white-space: nowrap;
}
.wmk-pc-cta .wmk-cta-code, .wmk-pc-cta-pill .wmk-cta-code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: 0.04em; font-weight: 800; }
.wmk-pc-cta .wmk-cta-copy-icon, .wmk-pc-cta-pill .wmk-cta-copy-icon { width: 1.15em; height: 1.15em; min-width: 1.15em; flex-shrink: 0; display: block; }
.wmk-pc-popup-step2 .wmk-pc-popup-content { align-items: stretch; text-align: left; gap: 8px; }
.wmk-pc-popup-step2 .wmk-pc-popup-content h4, .wmk-pc-popup-step2 .wmk-pc-popup-content p { text-align: center; }
.wmk-pc-form-field { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; font-size: 11px; }
.wmk-pc-form-field span { font-weight: 600; }
.wmk-pc-form-field input { padding: 6px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); font-size: 12px; }

/* Spacious grid (used inside the coupon designer) */
.wmk-grid-spacious { display: flex; flex-direction: column; gap: 18px; }
.wmk-grid-spacious .wmk-grid { gap: 18px; }
.wmk-grid.wmk-grid-spacious { gap: 18px; }
.wmk-grid-spacious .wmk-field { padding-bottom: 4px; }

/* Pagination + compact button */
.wmk-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--wmk-border); }
.wmk-pagination-info { font-size: 12px; color: var(--wmk-text-muted); }

.wmk-activity-toolbar { display: flex; align-items: center; gap: 8px; margin: 0; }
.wmk-activity-per-page { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--wmk-text-muted); margin: 0; }
.wmk-activity-per-page span { white-space: nowrap; }
.wmk-select,
.wmk-activity-per-page select {
	appearance: auto;
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid var(--wmk-border);
	border-radius: 8px;
	background: #fff;
	color: var(--wmk-text);
	font-size: 13px;
	font-family: inherit;
}
.wmk-select-sm,
.wmk-activity-per-page select { min-height: 32px; padding: 4px 8px; font-size: 12px; }
.wmk-activity-summary { margin: 0 0 14px; }
.wmk-btn-sm { padding: 6px 12px; font-size: 12px; }

/* Toolbar label for stacked filter rows */
.wmk-toolbar-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wmk-text-subtle); margin-bottom: 8px; }

/* Disabled-look field */
.wmk-field-disabled input { opacity: 0.55; }
.wmk-field-disabled span { opacity: 0.7; }

/* Help & documentation layout */
.wmk-help-layout { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: start; }
.wmk-help-side { position: sticky; top: 24px; }
.wmk-help-side h3 { margin: 0 0 6px; font-size: 15px; }
.wmk-help-side .wmk-help { margin: 0 0 14px; font-size: 12px; }
.wmk-help-tabs { display: flex; flex-direction: column; gap: 4px; }
.wmk-help-tab { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--wmk-text-muted); cursor: pointer; font-size: 13px; font-weight: 500; text-align: left; font-family: inherit; transition: background .15s ease, color .15s ease; }
.wmk-help-tab:hover { background: rgba(42,178,229,0.08); color: var(--wmk-primary); }
.wmk-help-tab.is-active { background: var(--wmk-gradient); color: #fff; box-shadow: 0 4px 12px rgba(42,178,229,0.28); }
.wmk-help-tab.is-active * { color: #fff; }
.wmk-help-tab-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; line-height: 1; }
.wmk-help-tab-icon svg { width: 18px; height: 18px; }
.wmk-help-content { line-height: 1.75; }
.wmk-help-content h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.01em; line-height: 1.3; }
.wmk-help-content h3 { margin: 26px 0 12px; font-size: 15px; line-height: 1.4; }
.wmk-help-content p { margin: 0 0 14px; line-height: 1.75; color: var(--wmk-text-muted); }
.wmk-help-content .wmk-help-lead { font-size: 15px; line-height: 1.7; color: var(--wmk-text-muted); margin: 0 0 18px; }
.wmk-help-content ul, .wmk-help-content ol { padding-left: 22px; margin: 0 0 16px; color: var(--wmk-text-muted); }
.wmk-help-content li { margin-bottom: 12px; line-height: 1.75; }
.wmk-help-content li strong { color: var(--wmk-text); }
@media (max-width: 900px) { .wmk-help-layout { grid-template-columns: 1fr; } .wmk-help-side { position: static; } }

/* Instructions card (form builder) */
.wmk-instructions { background: #F8FAFC; border-radius: 10px; padding: 16px; font-size: 12px; color: var(--wmk-text-muted); line-height: 1.55; }
.wmk-instructions code { background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--wmk-border); font-size: 12px; color: var(--wmk-primary-dark); }
.wmk-instructions strong { color: var(--wmk-text); }
.wmk-instructions p { margin: 0 0 8px; }
.wmk-instructions p:last-child { margin-bottom: 0; }

/* Coupon calendar (FullCalendar) */
#wmk-coupon-calendar .fc.fc-theme-standard,
#wmk-coupon-calendar .fc {
	--fc-button-bg-color: #fff;
	--fc-button-border-color: var(--wmk-border);
	--fc-button-text-color: var(--wmk-text-muted);
	--fc-button-hover-bg-color: rgba(42, 178, 229, 0.08);
	--fc-button-hover-border-color: var(--wmk-primary);
	--fc-button-hover-text-color: var(--wmk-primary);
	--fc-button-active-bg-color: rgba(42, 178, 229, 0.14);
	--fc-button-active-border-color: var(--wmk-primary);
	--fc-button-active-text-color: var(--wmk-primary);
	--fc-button-disabled-bg-color: #f8fafc;
	--fc-button-disabled-border-color: var(--wmk-border);
	--fc-button-disabled-text-color: var(--wmk-text-subtle);
	--fc-today-bg-color: rgba(42, 178, 229, 0.06);
	--fc-border-color: var(--wmk-border);
	--fc-page-bg-color: #fff;
	--fc-neutral-bg-color: #fff;
	--fc-neutral-text-color: var(--wmk-text-muted);
	font-family: inherit;
	font-size: 13px;
}

#wmk-coupon-calendar .fc .fc-button,
#wmk-coupon-calendar .fc .fc-button-primary,
#wmk-coupon-calendar .fc .fc-button-group > .fc-button {
	background: #fff !important;
	background-color: #fff !important;
	border: 1px solid var(--wmk-border) !important;
	color: var(--wmk-text-muted) !important;
	border-radius: 10px !important;
	padding: 8px 14px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	text-transform: none !important;
	line-height: 1.2 !important;
	opacity: 1 !important;
}

#wmk-coupon-calendar .fc .fc-button:hover,
#wmk-coupon-calendar .fc .fc-button-primary:hover,
#wmk-coupon-calendar .fc .fc-button-group > .fc-button:hover {
	background: rgba(42, 178, 229, 0.08) !important;
	background-color: rgba(42, 178, 229, 0.08) !important;
	border-color: var(--wmk-primary) !important;
	color: var(--wmk-primary) !important;
}

#wmk-coupon-calendar .fc .fc-button:focus,
#wmk-coupon-calendar .fc .fc-button:active,
#wmk-coupon-calendar .fc .fc-button-primary:focus,
#wmk-coupon-calendar .fc .fc-button-primary:active,
#wmk-coupon-calendar .fc .fc-button-group > .fc-button:focus,
#wmk-coupon-calendar .fc .fc-button-group > .fc-button:active {
	box-shadow: none !important;
	outline: none !important;
}

#wmk-coupon-calendar .fc .fc-button-primary:not(:disabled).fc-button-active,
#wmk-coupon-calendar .fc .fc-button-primary:not(:disabled):active,
#wmk-coupon-calendar .fc .fc-button-group > .fc-button.fc-button-active {
	background: rgba(42, 178, 229, 0.14) !important;
	background-color: rgba(42, 178, 229, 0.14) !important;
	border-color: var(--wmk-primary) !important;
	color: var(--wmk-primary) !important;
}

#wmk-coupon-calendar .fc .fc-button-group {
	border-radius: 10px;
	overflow: hidden;
	gap: 4px;
}

#wmk-coupon-calendar .fc .fc-button-group > .fc-button + .fc-button {
	margin-left: 4px !important;
}

#wmk-coupon-calendar .fc .fc-toolbar-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--wmk-text);
}
#wmk-coupon-calendar .fc .fc-col-header-cell-cushion {
	padding: 6px 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--wmk-text-muted);
}
#wmk-coupon-calendar .fc .fc-daygrid-day-frame {
	min-height: 52px;
}
#wmk-coupon-calendar .fc .fc-daygrid-day-top {
	flex-direction: row;
}
#wmk-coupon-calendar .fc .fc-daygrid-day-number {
	padding: 4px 6px;
	font-size: 12px;
}
#wmk-coupon-calendar .fc .fc-daygrid-day-events {
	margin-bottom: 2px;
	min-height: 0;
}
#wmk-coupon-calendar .fc .fc-daygrid-event {
	font-size: 11px;
	border-radius: 4px;
}
#wmk-coupon-calendar .fc .fc-scrollgrid-sync-table {
	height: auto !important;
}

/* Floating donation popup (Settings) */
.wmk-donation-popup {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 100050;
	width: min(340px, calc(100vw - 32px));
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
	border: 1px solid var(--wmk-border, #e2e8f0);
	padding: 20px 22px 18px;
	transform: translateY(calc(100% + 32px));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0.4s;
}
.wmk-donation-popup.show {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.wmk-donation-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
	padding: 0;
}
.wmk-donation-close:hover {
	background: #f1f5f9;
	color: #0f172a;
}
.wmk-donation-content {
	padding-right: 8px;
}
.wmk-donation-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
}
.wmk-donation-text {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #475569;
}
.wmk-donation-qr {
	margin: 14px 0 10px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.wmk-donation-qr-link {
	display: block;
	line-height: 0;
}
.wmk-donation-qrcode {
	display: block;
	max-width: 160px;
	height: auto;
	border-radius: 8px;
}
.wmk-donation-paypal-btn {
	display: inline-block;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}
.wmk-donation-paypal-btn img {
	display: block;
	height: auto;
}
.wmk-donation-qr form {
	display: inline-block;
	margin: 0;
}
.wmk-donation-thanks {
	margin: 0;
	font-size: 12px;
	color: #00a32a;
	font-weight: 600;
	text-align: center;
}
