/* ==========================================================================
   Stellar Mailer Builder — Builder UI styles  (v1.11.0)
   Stellar-branded: magenta #D50057 (primary) + navy #00205C (secondary).
   Used on BOTH the admin page and the frontend page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ----- Design tokens ---------------------------------------------------- */
:root {
	/* Surfaces */
	--smb-bg:           #F7F8FC;
	--smb-bg-soft:      #FAFBFD;
	--smb-card:         #FFFFFF;
	--smb-border:       #E4E7EE;
	--smb-border-soft:  #F1F3F8;

	/* Text */
	--smb-text:         #0F172A;
	--smb-text-2:       #475569;
	--smb-text-3:       #64748B;
	--smb-muted:        #94A3B8;

	/* Brand — Stellar palette (matches stellarmea.com exactly) */
	--smb-primary:      #D50057;   /* Stellar magenta — primary */
	--smb-primary-2:    #E60073;   /* Brighter magenta — hover */
	--smb-primary-dark: #9D0544;   /* Burgundy — pressed / depth */
	--smb-primary-soft: #FFE8F0;   /* Soft pink background */
	--smb-primary-50:   #FFF1F6;   /* Very soft pink */
	--smb-navy:         #00205C;   /* Stellar navy — secondary */
	--smb-navy-2:       #0A2D70;   /* Lighter navy variant */
	--smb-violet:       #00205C;   /* Aliased to navy (back-compat for old refs) */
	--smb-pink:         #FFB3D1;   /* Soft pink accent */

	/* Status */
	--smb-success:      #059669;
	--smb-success-2:    #10B981;
	--smb-success-soft: #ECFDF5;
	--smb-warning:      #D97706;
	--smb-warning-soft: #FFFBEB;
	--smb-error:        #DC2626;
	--smb-error-soft:   #FEF2F2;

	/* Geometry */
	--smb-radius:       12px;
	--smb-radius-sm:    8px;
	--smb-radius-lg:    16px;

	/* Shadows — coloured with brand magenta */
	--smb-shadow-xs:    0 1px 2px rgba(15, 23, 42, 0.04);
	--smb-shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
	--smb-shadow-md:    0 4px 12px rgba(213, 0, 87, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
	--smb-shadow-lg:    0 12px 24px -4px rgba(213, 0, 87, 0.18);

	/* Fonts */
	--smb-font:         'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
	--smb-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ==========================================================================
   WP MEDIA MODAL — defensive overrides (both contexts)
   ========================================================================== */
.media-modal .media-frame-router .media-router .media-menu-item,
.media-modal .media-router .media-menu-item {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	color: #000 !important;
}

/* ==========================================================================
   Diagnostic banner
   ========================================================================== */
.smb-diag-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	margin-bottom: 18px;
	background: var(--smb-card);
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
	font-size: 12px;
	font-family: var(--smb-font-mono);
	box-shadow: var(--smb-shadow-xs);
}

.smb-diag-label    { font-weight: 700; color: var(--smb-text-2); }
.smb-diag-item     {
	padding: 3px 9px;
	border-radius: 4px;
	background: var(--smb-bg);
	border: 1px solid var(--smb-border-soft);
	white-space: nowrap;
}
.smb-diag-item.ok      { background: var(--smb-success-soft); border-color: #86efac; color: #166534; }
.smb-diag-item.error   { background: var(--smb-error-soft);   border-color: #fca5a5; color: #991b1b; font-weight: 600; }
.smb-diag-item.pending { background: #fef3c7;                 border-color: #fcd34d; color: #92400e; }

#smb-diag-close {
	margin-left: auto;
	border: none;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--smb-muted);
	padding: 0 6px;
}
#smb-diag-close:hover                { color: var(--smb-text); }
.smb-diag-banner.smb-diag-hidden     { display: none; }

/* ==========================================================================
   Admin shell — the WP .wrap container
   ========================================================================== */
.smb-wrap {
	max-width: 1500px;
	font-family: var(--smb-font);
}

.smb-header { margin: 18px 0 22px; }

.smb-header h1 {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--smb-text);
}

.smb-tagline {
	color: var(--smb-text-2);
	font-size: 14px;
	margin: 0;
}

/* ==========================================================================
   Two-column layout
   ========================================================================== */
.smb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
@media (max-width: 1100px) {
	.smb-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.smb-card {
	background: var(--smb-card);
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius);
	padding: 24px 26px;
	margin-bottom: 18px;
	box-shadow: var(--smb-shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.smb-card:hover { box-shadow: var(--smb-shadow-md); }

.smb-card--sticky {
	position: sticky;
	top: 24px;
}

.smb-card h2 {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--smb-text);
}

/* Step badge */
.smb-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, var(--smb-primary) 0%, var(--smb-primary-2) 100%);
	color: #fff;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 2px 6px rgba(213, 0, 87, 0.25);
	flex-shrink: 0;
}

.smb-help {
	color: var(--smb-text-3);
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 16px;
}

.smb-muted-label {
	color: var(--smb-muted);
	font-weight: 400;
	font-size: 12px;
	margin-left: 4px;
}

/* ==========================================================================
   Form fields
   ========================================================================== */
.smb-field          { margin-bottom: 16px; }
.smb-field:last-child { margin-bottom: 0; }

.smb-field > label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--smb-text);
	letter-spacing: -0.005em;
}

/* Required-field markers + error states */
.smb-required {
	color: var(--smb-error);
	font-weight: 700;
	margin-left: 3px;
}

.smb-field-error {
	margin: 8px 0 0;
	padding: 10px 14px;
	font-size: 13px;
	color: #991b1b;
	background: var(--smb-error-soft);
	border: 1px solid #fca5a5;
	border-radius: var(--smb-radius-sm);
	font-weight: 500;
	line-height: 1.5;
}

.smb-field--missing .smb-bg-image-preview-wrap,
.smb-field--missing .smb-bg-image-controls {
	box-shadow: 0 0 0 2px #fca5a5;
	border-radius: var(--smb-radius-sm);
}

.smb-field--missing #smb-bg-image-btn {
	background: var(--smb-error-soft);
	border-color: #fca5a5;
	color: #991b1b;
}

.smb-field--missing #smb-bg-image-btn:hover {
	background: #fee2e2;
}

/* Plain text inputs inside a missing field (e.g. preheader) */
.smb-field--missing > .smb-input {
	border-color: #fca5a5;
	background: #fef2f2;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.smb-field--missing > .smb-input:focus {
	border-color: var(--smb-error);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

/* Inputs */
.smb-input {
	font-family: var(--smb-font);
	font-size: 14px;
	padding: 11px 14px;
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
	background: var(--smb-card);
	color: var(--smb-text);
	transition: border-color 0.15s, box-shadow 0.15s;
	line-height: 1.5;
}

.smb-input::placeholder { color: var(--smb-muted); }

.smb-input:focus {
	outline: none;
	border-color: var(--smb-primary);
	box-shadow: 0 0 0 3px rgba(213, 0, 87, 0.12);
}

.smb-input--full  { width: 100%; }
.smb-input--small { width: 110px; }

/* Background controls */
.smb-bg-image-controls {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.smb-btn-ghost {
	color: var(--smb-error) !important;
}

#smb-bg-image-preview {
	max-width: 240px;
	max-height: 140px;
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
	background:
		linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
		linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
		linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
	background-size: 16px 16px;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
	margin-top: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.smb-page .button,
.smb-wrap .button,
.smb-page .smb-button,
.smb-wrap .smb-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--smb-font);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	padding: 9px 16px;
	border: 1px solid var(--smb-border);
	background: var(--smb-card);
	color: var(--smb-text);
	border-radius: var(--smb-radius-sm);
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
	box-shadow: var(--smb-shadow-xs);
}

.smb-page .button:hover,
.smb-wrap .button:hover,
.smb-page .smb-button:hover,
.smb-wrap .smb-button:hover {
	background: var(--smb-primary-soft);
	border-color: var(--smb-primary);
	color: var(--smb-primary);
	transform: translateY(-1px);
	box-shadow: var(--smb-shadow-md);
}

.smb-page .button:focus,
.smb-wrap .button:focus,
.smb-page .smb-button:focus,
.smb-wrap .smb-button:focus {
	outline: 3px solid rgba(213, 0, 87, 0.18);
	outline-offset: 1px;
}

.smb-page .button-primary,
.smb-wrap .button-primary,
.smb-page .smb-button-primary,
.smb-wrap .smb-button-primary {
	background: linear-gradient(135deg, var(--smb-primary) 0%, var(--smb-primary-2) 100%);
	border-color: transparent;
	color: #fff !important;
	box-shadow: 0 2px 6px rgba(213, 0, 87, 0.25);
}

.smb-page .button-primary:hover,
.smb-wrap .button-primary:hover {
	background: linear-gradient(135deg, var(--smb-primary-dark) 0%, var(--smb-primary) 100%);
	color: #fff;
	box-shadow: 0 8px 18px rgba(213, 0, 87, 0.35);
}

.smb-page .button-hero,
.smb-wrap .button-hero {
	font-size: 14px;
	padding: 12px 22px;
	font-weight: 700;
}

/* ==========================================================================
   Image rows
   ========================================================================== */
.smb-image-row {
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius);
	padding: 16px;
	margin-bottom: 14px;
	background: var(--smb-bg-soft);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.smb-image-row:hover {
	border-color: #cbd5e1;
	box-shadow: var(--smb-shadow-sm);
}

.smb-image-row h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--smb-text);
	display: flex;
	align-items: center;
	gap: 8px;
}

.smb-image-row h3::before { content: '🖼'; }

.smb-row-content {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 16px;
	align-items: start;
}

@media (max-width: 640px) {
	.smb-row-content { grid-template-columns: 1fr; }
}

.smb-image-preview-wrap {
	width: 140px;
	min-height: 90px;
	border: 1px dashed #cbd5e1;
	border-radius: var(--smb-radius-sm);
	background: var(--smb-card);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.smb-image-preview { max-width: 100%; height: auto; display: block; }

.smb-image-placeholder {
	color: var(--smb-muted);
	font-size: 11px;
	text-align: center;
	padding: 8px;
}

.smb-image-controls {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.smb-image-btn-row { display: flex; gap: 6px; flex-wrap: wrap; }

.smb-hyperlink-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--smb-text);
	margin-top: 6px;
	cursor: pointer;
	user-select: none;
	font-weight: 500;
}

.smb-hyperlink-toggle input { accent-color: var(--smb-primary); }

.smb-hyperlink-input-wrap { margin-top: 8px; }

.smb-hyperlink-input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
	font-size: 13px;
	font-family: var(--smb-font);
}

.smb-hyperlink-input:focus {
	outline: none;
	border-color: var(--smb-primary);
	box-shadow: 0 0 0 3px rgba(213, 0, 87, 0.12);
}

/* ==========================================================================
   Preview frame — looks like a desktop email window
   ========================================================================== */
.smb-preview-frame {
	margin-top: 12px;
	border-radius: var(--smb-radius);
	overflow: hidden;
	box-shadow:
		0 10px 25px -10px rgba(15, 23, 42, 0.18),
		0 0 0 1px rgba(15, 23, 42, 0.06);
	background: var(--smb-card);
}

.smb-preview-frame__bar {
	height: 32px;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	border-bottom: 1px solid var(--smb-border);
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	position: relative;
}

.smb-preview-frame__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	display: inline-block;
}
.smb-preview-frame__dot--r { background: #ff5f57; }
.smb-preview-frame__dot--y { background: #ffbd2e; }
.smb-preview-frame__dot--g { background: #28c941; }

.smb-preview-frame__title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	color: var(--smb-text-3);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

#smb-preview {
	width: 100%;
	height: 460px;
	border: 0;
	background: var(--smb-bg);
	display: block;
}

/* ==========================================================================
   Copy block — refined success palette with subtle gradient halo
   ========================================================================== */
.smb-copy-block {
	margin-top: 20px;
	padding: 22px 20px;
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
	border: 1px solid #86efac;
	border-radius: var(--smb-radius);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.smb-copy-block::before {
	content: '';
	position: absolute;
	top: -60%; right: -30%;
	width: 70%; height: 200%;
	background: radial-gradient(circle, rgba(16, 185, 129, 0.10) 0%, transparent 70%);
	pointer-events: none;
}

.smb-copy-block > * { position: relative; z-index: 1; }

.smb-copy-block__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.smb-copy-block #smb-copy-email-btn {
	font-size: 15px;
	font-weight: 700;
	padding: 13px 26px;
	background: linear-gradient(135deg, var(--smb-success) 0%, var(--smb-success-2) 100%);
	border: 0;
	color: #fff !important;
	border-radius: var(--smb-radius-sm);
	box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
	letter-spacing: -0.01em;
}

.smb-copy-block #smb-copy-email-btn:hover {
	background: linear-gradient(135deg, #047857 0%, var(--smb-success) 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(5, 150, 105, 0.4);
}

.smb-download-btn {
	font-size: 14px !important;
	font-weight: 600;
	padding: 13px 20px !important;
	background: #fff !important;
	border-color: #86efac !important;
	color: #166534 !important;
}

.smb-download-btn:hover {
	background: #f0fdf4 !important;
	border-color: #4ade80 !important;
	color: #14532d !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(5, 150, 105, 0.18);
}

/* Offline-ZIP button — distinct treatment so it doesn't look like "another Download HTML" */
.smb-download-zip-btn {
	font-size: 14px !important;
	font-weight: 600;
	padding: 13px 20px !important;
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
	border: 1px solid #34d399 !important;
	color: #065f46 !important;
}

.smb-download-zip-btn:hover {
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
	border-color: #10b981 !important;
	color: #064e3b !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(5, 150, 105, 0.22);
}

.smb-download-zip-btn:disabled {
	background: #e5e7eb !important;
	border-color: #d1d5db !important;
	color: #6b7280 !important;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.smb-copy-instructions {
	margin: 14px 0 0;
	font-size: 13px;
	color: #166534;
	line-height: 1.6;
	font-weight: 500;
}

.smb-copy-instructions kbd {
	display: inline-block;
	padding: 1px 6px;
	font-family: var(--smb-font-mono);
	font-size: 11px;
	background: #fff;
	border: 1px solid #c3c8d1;
	border-bottom-width: 2px;
	border-radius: 4px;
	color: var(--smb-text);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Send block — distinct indigo for action contrast
   ========================================================================== */
.smb-send-block {
	margin-top: 18px;
	padding: 22px 20px;
	background: linear-gradient(135deg, var(--smb-primary-50) 0%, var(--smb-primary-soft) 100%);
	border: 1px solid #c7d2fe;
	border-radius: var(--smb-radius);
	position: relative;
	overflow: hidden;
}

.smb-send-block::before {
	content: '';
	position: absolute;
	top: -50%; left: -25%;
	width: 70%; height: 200%;
	background: radial-gradient(circle, rgba(213, 0, 87, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

.smb-send-block > * { position: relative; z-index: 1; }

.smb-send-block__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--smb-primary-dark);
	letter-spacing: -0.01em;
}

.smb-send-block .smb-field { margin-bottom: 12px; }

.smb-send-block label {
	font-size: 12px;
	font-weight: 600;
	display: block;
	margin-bottom: 5px;
	color: var(--smb-primary-dark);
	letter-spacing: -0.005em;
}

.smb-send-block .smb-input {
	font-size: 13px;
	padding: 9px 11px;
	border-color: #c7d2fe;
	background: rgba(255, 255, 255, 0.92);
}

.smb-send-block .smb-input:focus {
	background: #fff;
	border-color: var(--smb-primary);
}

.smb-send-btn {
	margin-top: 10px;
	font-size: 14px !important;
	font-weight: 700 !important;
	padding: 12px 24px !important;
	background: linear-gradient(135deg, var(--smb-primary) 0%, var(--smb-primary-2) 50%, var(--smb-violet) 100%) !important;
	border: 0 !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(213, 0, 87, 0.32) !important;
}

.smb-send-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(213, 0, 87, 0.42) !important;
	filter: brightness(1.04);
}

.smb-send-btn:disabled {
	background: #cbd5e1 !important;
	box-shadow: none !important;
	cursor: not-allowed;
	transform: none;
}

.smb-send-msg {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

/* ==========================================================================
   Advanced disclosure (HTML source)
   ========================================================================== */
.smb-advanced {
	margin-top: 18px;
	border: 1px dashed var(--smb-border);
	border-radius: var(--smb-radius-sm);
	padding: 14px 16px;
	background: var(--smb-bg-soft);
}

.smb-advanced summary {
	cursor: pointer;
	font-size: 13px;
	color: var(--smb-text-3);
	font-weight: 600;
	user-select: none;
	outline: none;
	list-style: none;
	padding-left: 18px;
	position: relative;
}

.smb-advanced summary::-webkit-details-marker { display: none; }

.smb-advanced summary::before {
	content: '▸';
	position: absolute;
	left: 0;
	transition: transform 0.15s ease;
	color: var(--smb-muted);
}

.smb-advanced[open] summary::before { transform: rotate(90deg); }
.smb-advanced summary:hover         { color: var(--smb-text); }

#smb-html-output {
	width: 100%;
	font-family: var(--smb-font-mono);
	font-size: 12px;
	line-height: 1.5;
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
	padding: 10px;
	background: #f8fafc;
	color: var(--smb-text);
	resize: vertical;
	margin-top: 10px;
}

.smb-copy-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.smb-copy-msg {
	font-size: 13px;
	color: #137333;
	font-weight: 600;
	display: none;
}

/* WP color picker fine-tune so its label aligns with our type system */
.wp-picker-container { display: inline-block; }

/* ==========================================================================
   Send confirmation modal  (v1.7.0)
   ========================================================================== */
.smb-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.smb-modal-backdrop[hidden] { display: none !important; }

.smb-modal {
	background: #fff;
	border-radius: var(--smb-radius-lg);
	padding: 32px 32px 26px;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow:
		0 25px 50px -12px rgba(15, 23, 42, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.1);
	animation: smb-modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: var(--smb-font);
}

@keyframes smb-modal-pop {
	from { opacity: 0; transform: translateY(16px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.smb-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: var(--smb-muted);
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.15s, color 0.15s;
}

.smb-modal-close:hover {
	background: var(--smb-bg);
	color: var(--smb-text);
}

.smb-modal-icon {
	font-size: 36px;
	text-align: center;
	margin-bottom: 6px;
	filter: drop-shadow(0 4px 10px rgba(213, 0, 87, 0.2));
}

.smb-modal-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--smb-text);
	text-align: center;
}

.smb-modal-lead {
	margin: 0 0 22px;
	font-size: 14px;
	color: var(--smb-text-3);
	text-align: center;
	font-weight: 500;
	line-height: 1.55;
}

/* Confirmation summary list */
.smb-confirm-summary {
	margin: 0 0 18px;
	padding: 18px 20px;
	background: var(--smb-bg-soft);
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius);
}

.smb-confirm-row {
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 12px;
	padding: 6px 0;
	font-size: 13.5px;
	line-height: 1.55;
	border-bottom: 1px dashed var(--smb-border-soft);
}

.smb-confirm-row:last-child { border-bottom: 0; }
.smb-confirm-row[hidden]    { display: none; }

.smb-confirm-row dt {
	font-weight: 700;
	color: var(--smb-text-3);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
	padding-top: 2px;
}

.smb-confirm-row dd {
	margin: 0;
	color: var(--smb-text);
	font-weight: 500;
	word-break: break-word;
}

/* Background image confirmation card */
.smb-confirm-bg {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--smb-success-soft);
	border: 1px solid #86efac;
	border-radius: var(--smb-radius);
	margin-bottom: 22px;
}

.smb-confirm-bg__check {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	font-size: 13.5px;
	color: #166534;
}

.smb-confirm-bg__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: var(--smb-success);
	color: #fff;
	border-radius: 50%;
	font-weight: 800;
	font-size: 12px;
	flex-shrink: 0;
}

#smb-confirm-bg-preview {
	width: 70px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #86efac;
	background: #fff;
	flex-shrink: 0;
}

/* Modal actions */
.smb-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.smb-modal-cancel {
	font-size: 14px !important;
	padding: 11px 20px !important;
	font-weight: 600 !important;
}

.smb-modal-confirm {
	font-size: 14px !important;
	font-weight: 700 !important;
	padding: 12px 24px !important;
	background: linear-gradient(135deg, var(--smb-primary) 0%, var(--smb-primary-2) 50%, var(--smb-violet) 100%) !important;
	border: 0 !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(213, 0, 87, 0.35) !important;
}

.smb-modal-confirm:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(213, 0, 87, 0.45) !important;
	filter: brightness(1.04);
}

@media (max-width: 540px) {
	.smb-modal { padding: 24px 22px 22px; }
	.smb-modal-title { font-size: 19px; }
	.smb-confirm-row { grid-template-columns: 60px 1fr; gap: 10px; }
}

/* ==========================================================================
   v1.9.0 — Autosave status bar + Restore notice + Bordered color swatch
   ========================================================================== */

/* Status bar: persistent strip above the form with autosave indicator
   on the left and the destructive Clear All button on the right. */
.smb-statusbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 16px;
	margin: 0 0 14px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius);
	font-family: var(--smb-font);
}

.smb-statusbar__save {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--smb-text-3);
	transition: color 0.2s;
}

.smb-save-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--smb-success);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
	transition: background 0.2s, box-shadow 0.2s;
}

.smb-statusbar__save[data-state="saving"] .smb-save-dot {
	background: var(--smb-primary);
	box-shadow: 0 0 0 3px rgba(213, 0, 87, 0.18);
	animation: smb-pulse 1s ease-in-out infinite;
}

.smb-statusbar__save[data-state="saved"] {
	color: #047857;
}
.smb-statusbar__save[data-state="saved"] .smb-save-dot {
	background: var(--smb-success);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.smb-statusbar__save[data-state="error"] {
	color: #b32d2e;
}
.smb-statusbar__save[data-state="error"] .smb-save-dot {
	background: var(--smb-error);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

@keyframes smb-pulse {
	0%, 100% { transform: scale(1);   opacity: 1;   }
	50%      { transform: scale(1.3); opacity: 0.7; }
}

.smb-statusbar__clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: #fff;
	border: 1px solid #fecaca;
	border-radius: var(--smb-radius-sm);
	color: #b32d2e;
	font-family: var(--smb-font);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
}

.smb-statusbar__clear:hover {
	background: #fef2f2;
	border-color: #fca5a5;
	color: #991b1b;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(220, 38, 38, 0.12);
}

.smb-statusbar__clear:active {
	transform: translateY(0);
}

/* Restore notice — appears briefly when a draft is loaded on page open. */
.smb-restore-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	margin: 0 0 14px;
	background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
	border: 1px solid #c7d2fe;
	border-left: 4px solid var(--smb-primary);
	border-radius: var(--smb-radius);
	font-family: var(--smb-font);
	font-size: 13px;
	color: #3730a3;
	font-weight: 500;
}

.smb-restore-notice__icon {
	font-size: 18px;
	flex-shrink: 0;
}

.smb-restore-notice__text {
	flex: 1;
	line-height: 1.5;
}

.smb-restore-notice__close {
	background: transparent;
	border: 0;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	font-size: 18px;
	line-height: 1;
	color: #D50057;
	cursor: pointer;
	flex-shrink: 0;
}

.smb-restore-notice__close:hover {
	background: rgba(213, 0, 87, 0.12);
}

/* Bordered colour swatch — appears next to the colour input so the chosen
   value is obvious BEFORE the bg image is picked. */
.smb-bg-color-swatch {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
	width: 44px;
	height: 32px;
	border-radius: var(--smb-radius-sm);
	/* Heavy double-border: outer dark ring + inner white ring → swatch reads
	   clearly even when the colour is white / very light. */
	border: 2px solid var(--smb-text);
	box-shadow:
		inset 0 0 0 2px #fff,
		0 1px 3px rgba(0, 0, 0, 0.12);
	transition: transform 0.15s, box-shadow 0.15s;
}

.smb-bg-color-swatch:hover {
	transform: scale(1.06);
	box-shadow:
		inset 0 0 0 2px #fff,
		0 3px 8px rgba(0, 0, 0, 0.18);
}

/* Mobile: status bar stacks vertically. */
@media (max-width: 540px) {
	.smb-statusbar {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.smb-statusbar__clear {
		justify-content: center;
	}
}

/* ==========================================================================
   v1.10.0 — Share with client block + share modal
   ========================================================================== */

/* Share block — sits between Copy block and Send block in the right column.
   Distinct purple/indigo treatment so it's clearly separate from "copy out"
   (green) and "send out" (indigo). */
.smb-share-block {
	margin-top: 16px;
	padding: 20px 22px;
	background: linear-gradient(135deg, #FFF1F6 0%, #FFE8F0 100%);
	border: 1px solid #FFB3D1;
	border-radius: var(--smb-radius);
	position: relative;
	overflow: hidden;
}

.smb-share-block::before {
	content: '';
	position: absolute;
	top: -50%; left: -20%;
	width: 60%; height: 200%;
	background: radial-gradient(circle, rgba(213, 0, 87, 0.10) 0%, transparent 70%);
	pointer-events: none;
}

.smb-share-block > * { position: relative; z-index: 1; }

.smb-share-block__header { margin-bottom: 14px; }

.smb-share-block__title {
	margin: 0 0 6px;
	font-family: var(--smb-font);
	font-size: 15px;
	font-weight: 800;
	color: #9D0544;
	letter-spacing: -0.01em;
}

.smb-share-block__help {
	margin: 0;
	font-size: 12.5px;
	color: #D50057;
	line-height: 1.55;
	font-weight: 500;
}

.smb-share-btn {
	width: 100%;
	font-size: 14px !important;
	font-weight: 700 !important;
	padding: 12px 22px !important;
	background: linear-gradient(135deg, #D50057 0%, #E60073 50%, #9D0544 100%) !important;
	border: 0 !important;
	color: #fff !important;
	border-radius: var(--smb-radius-sm) !important;
	box-shadow: 0 4px 12px rgba(213, 0, 87, 0.40) !important;
	letter-spacing: -0.01em;
	transition: transform 0.15s, box-shadow 0.15s, filter 0.15s !important;
}

.smb-share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(213, 0, 87, 0.50) !important;
	filter: brightness(1.06);
}

.smb-share-btn:active { transform: translateY(0); }

.smb-share-msg {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

/* Share modal — extends the base modal with share-specific layouts. */
.smb-share-modal {
	max-width: 560px;
}

.smb-share-field {
	margin-bottom: 16px;
	text-align: left;
}

.smb-share-field label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--smb-font);
	font-size: 13px;
	font-weight: 700;
	color: var(--smb-text);
	letter-spacing: -0.01em;
}

/* URL display row with inline copy button. */
.smb-share-url-wrap {
	display: flex;
	gap: 0;
	margin: 18px 0 8px;
	border-radius: var(--smb-radius-sm);
	overflow: hidden;
	border: 1px solid var(--smb-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.smb-share-url-input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	background: var(--smb-bg-soft);
	border: 0;
	font-family: ui-monospace, 'SF Mono', Menlo, monospace;
	font-size: 13px;
	color: var(--smb-text);
	outline: none;
	user-select: all;
	-webkit-user-select: all;
}

.smb-share-url-input:focus {
	background: #fff;
	box-shadow: inset 0 0 0 2px var(--smb-primary);
}

.smb-share-copy-btn {
	font-size: 13px !important;
	padding: 12px 18px !important;
	background: linear-gradient(135deg, var(--smb-primary) 0%, var(--smb-primary-2) 100%) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-weight: 700 !important;
	white-space: nowrap;
	flex-shrink: 0;
}

.smb-share-copy-btn:hover {
	filter: brightness(1.08);
}

.smb-share-url-msg {
	display: block;
	margin: 4px 0 14px;
	font-size: 13px;
	font-weight: 600;
	min-height: 18px;
	text-align: left;
}

.smb-share-actions-row {
	text-align: center;
	margin: 10px 0 18px;
}

.smb-share-open-link {
	display: inline-block;
	font-size: 13px;
	color: var(--smb-primary);
	text-decoration: none;
	font-weight: 600;
}

.smb-share-open-link:hover {
	text-decoration: underline;
	color: var(--smb-primary-2);
}

@media (max-width: 540px) {
	.smb-share-url-wrap { flex-direction: column; }
	.smb-share-copy-btn { width: 100%; padding: 11px !important; }
}

/* ==========================================================================
   v1.12.0 — Share management UI
   ========================================================================== */

/* Edit-mode pill at the top of the builder when editing an existing share */
.smb-edit-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 18px;
	margin: 0 0 14px;
	background: linear-gradient(135deg, #FFE8F0 0%, #FFD0E0 100%);
	border: 1px solid #FFB3D1;
	border-left: 4px solid var(--smb-primary);
	border-radius: var(--smb-radius);
	font-family: var(--smb-font);
	font-size: 13px;
	color: var(--smb-primary-dark);
	font-weight: 600;
}

.smb-edit-pill--error {
	background: var(--smb-error-soft);
	border-color: #fca5a5;
	border-left-color: var(--smb-error);
	color: #991b1b;
}

.smb-edit-pill__text {
	flex: 1;
	line-height: 1.45;
}

.smb-edit-pill__cancel {
	color: var(--smb-primary);
	font-weight: 700;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 6px;
	transition: background 0.15s;
	white-space: nowrap;
}

.smb-edit-pill__cancel:hover {
	background: rgba(213, 0, 87, 0.12);
}

/* When in apply mode, give the share button a slightly different feel
   (still magenta, but with a "saving" undertone). */
.smb-share-btn--apply {
	background: linear-gradient(135deg, #9D0544 0%, #D50057 50%, #E60073 100%) !important;
	box-shadow: 0 4px 14px rgba(157, 5, 68, 0.45) !important;
}

/* ----- Shares admin page ----- */
.smb-shares-wrap .smb-header { margin-bottom: 18px; }

.smb-shares-toolbar {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
	align-items: center;
}

.smb-shares-toolbar #smb-shares-search {
	flex: 1;
	max-width: 420px;
}

.smb-shares-status {
	margin: 0 0 14px;
	padding: 8px 14px;
	background: var(--smb-bg-soft);
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
	font-size: 13px;
	color: var(--smb-text-3);
	font-weight: 500;
}

.smb-shares-status.is-error {
	background: var(--smb-error-soft);
	border-color: #fca5a5;
	color: #991b1b;
}

.smb-shares-table-wrap {
	background: #fff;
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius);
	overflow: hidden;
	box-shadow: var(--smb-shadow-sm);
}

table.smb-shares-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--smb-font);
	font-size: 13px;
}

.smb-shares-table thead th {
	background: linear-gradient(135deg, #00102E 0%, #00205C 100%);
	color: #fff;
	font-weight: 700;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 12px 14px;
	text-align: left;
	border: 0;
}

.smb-shares-table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--smb-border-soft);
	vertical-align: top;
}

.smb-shares-table tbody tr:hover { background: var(--smb-primary-50); }

.smb-shares-table tr.is-expired {
	background: #FEF2F2;
	opacity: 0.7;
}

.smb-shares-table tr.is-expired:hover { background: #FEE2E2; }

.smb-share-name-text {
	font-weight: 700;
	color: var(--smb-text);
	margin-bottom: 3px;
	line-height: 1.4;
}

.smb-share-preheader {
	font-size: 12px;
	color: var(--smb-text-3);
	font-weight: 500;
	font-style: italic;
	line-height: 1.4;
}

.smb-share-tag {
	display: inline-block;
	margin-top: 5px;
	padding: 2px 8px;
	background: var(--smb-warning-soft);
	color: #92400e;
	font-size: 10.5px;
	font-weight: 700;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.smb-share-expired {
	color: #991b1b;
	font-weight: 700;
}

.smb-share-action {
	margin-right: 6px !important;
	font-size: 12px !important;
	padding: 4px 10px !important;
	height: auto !important;
	line-height: 1.5 !important;
	transition: all 0.15s;
}

.smb-share-action.is-success {
	background: var(--smb-success-soft) !important;
	border-color: #86efac !important;
	color: #14532d !important;
}

.smb-share-action.is-error {
	background: var(--smb-error-soft) !important;
	border-color: #fca5a5 !important;
	color: #991b1b !important;
}

.smb-share-action.disabled,
.smb-share-action[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.smb-action-revoke {
	color: #991b1b !important;
	border-color: #fca5a5 !important;
}

.smb-action-revoke:hover:not([disabled]) {
	background: #FEE2E2 !important;
	color: #7f1d1d !important;
}

.smb-shares-no-match {
	text-align: center;
	color: var(--smb-text-3);
	padding: 28px 14px !important;
	font-style: italic;
}

.smb-shares-empty {
	margin-top: 18px;
	padding: 24px;
	text-align: center;
	background: var(--smb-bg-soft);
	border: 1px dashed var(--smb-border);
	border-radius: var(--smb-radius);
	color: var(--smb-text-3);
}

.smb-shares-footer {
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid var(--smb-border);
	color: var(--smb-text-3);
	font-size: 12px;
	text-align: center;
}

.smb-shares-footer a {
	color: var(--smb-primary);
	font-weight: 700;
	text-decoration: none;
}

.smb-shares-footer a:hover { text-decoration: underline; }

/* Responsive column hiding for narrow screens */
@media (max-width: 900px) {
	.smb-shares-table .col-lastviewed { display: none; }
	.smb-shares-table .col-views      { width: 50px; }
}
@media (max-width: 720px) {
	.smb-shares-table .col-created { display: none; }
}

/* ==========================================================================
   v1.13.0 — Background image mode toggle
   ========================================================================== */

.smb-bg-mode {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--smb-bg-soft);
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
}

.smb-bg-mode__label {
	font-size: 12px;
	font-weight: 700;
	color: var(--smb-text-2);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}

.smb-bg-mode__opt {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
	cursor: pointer;
	transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

.smb-bg-mode__opt:last-of-type { margin-bottom: 0; }

.smb-bg-mode__opt:hover {
	border-color: var(--smb-primary);
	background: var(--smb-primary-50);
}

.smb-bg-mode__opt:has(input:checked) {
	border-color: var(--smb-primary);
	background: var(--smb-primary-soft);
	box-shadow: 0 0 0 3px rgba(213, 0, 87, 0.10);
}

.smb-bg-mode__opt input[type="radio"] {
	margin-top: 2px;
	accent-color: var(--smb-primary);
	flex-shrink: 0;
}

.smb-bg-mode__title {
	font-weight: 700;
	color: var(--smb-text);
	font-size: 13.5px;
	display: block;
	line-height: 1.3;
}

.smb-bg-mode__desc {
	display: block;
	font-size: 12px;
	color: var(--smb-text-3);
	line-height: 1.45;
	margin-top: 3px;
	font-weight: 500;
}

.smb-bg-mode__warn {
	margin: 10px 0 0;
	padding: 10px 12px;
	border: 1px solid;
	border-left: 4px solid;
	border-radius: var(--smb-radius-sm);
	font-size: 12.5px;
	line-height: 1.5;
}

/* v1.14.3 — Strong tone: image is narrower than 898px → real risk of visible
   tiling seams in Outlook on Windows. */
.smb-bg-mode__warn--danger {
	background: var(--smb-warning-soft);
	border-color: #fde68a;
	border-left-color: var(--smb-warning);
	color: #92400e;
}
.smb-bg-mode__warn--danger strong { color: #78350f; }

/* v1.14.3 — Soft info tone: image is wider than 898px → right edge cropped in
   Outlook Windows but invisible for gradient/pattern backgrounds. Uses Stellar
   navy as the accent so the tone is informational, not alarming. */
.smb-bg-mode__warn--info {
	background: #F8FAFC;
	border-color: #E2E8F0;
	border-left-color: var(--smb-navy);
	color: var(--smb-text-2);
}
.smb-bg-mode__warn--info strong { color: var(--smb-navy); }

/* ==========================================================================
   v1.13.2 — Field hint + refined mode descriptions
   Hint uses Stellar NAVY (secondary brand) so it doesn't compete visually
   with the magenta selection state on the mode toggle below.
   ========================================================================== */

.smb-field-hint {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 6px 0 12px;
	padding: 10px 12px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-left: 3px solid var(--smb-navy);
	border-radius: var(--smb-radius-sm);
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--smb-text-2);
}

.smb-field-hint__icon {
	font-size: 14px;
	line-height: 1.4;
	flex-shrink: 0;
}

.smb-field-hint strong {
	color: var(--smb-navy);
	font-weight: 700;
}

/* Refined sub-label inside the mode title (e.g. "— solid-colour seams") */
.smb-bg-mode__sub {
	font-weight: 500;
	color: var(--smb-text-3);
	font-size: 12.5px;
}

/* Strong inside the desc (only for inline emphasis — no awkward block rules) */
.smb-bg-mode__desc strong {
	color: var(--smb-text);
	font-weight: 700;
}

/* ==========================================================================
   v1.15.0 — PDF Upload tool
   Compact card in the builder that lets the team upload a PDF and get a
   viewer URL they can paste into any image's hyperlink field.
   ========================================================================== */

.smb-pdf-tool-card .smb-step {
	background: linear-gradient(135deg, #00205C 0%, #0A2D70 100%);
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #fff;
	border-radius: 50%;
}

.smb-pdf-tool__controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.smb-pdf-tool__hint {
	font-size: 12.5px;
	color: var(--smb-text-3);
	flex: 1;
	min-width: 200px;
}

.smb-pdf-tool__result {
	margin-top: 14px;
	padding: 14px 16px;
	background: var(--smb-bg-soft);
	border: 1px solid var(--smb-border);
	border-left: 4px solid var(--smb-navy);
	border-radius: var(--smb-radius-sm);
}

.smb-pdf-tool__filename {
	font-size: 13px;
	font-weight: 600;
	color: var(--smb-text);
	margin-bottom: 10px;
	word-break: break-all;
}

.smb-pdf-tool__url-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
	flex-wrap: wrap;
}

.smb-pdf-tool__url-input {
	flex: 1;
	min-width: 220px;
	padding: 8px 12px;
	font-family: ui-monospace, 'SF Mono', Menlo, monospace;
	font-size: 12.5px;
	background: #fff;
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
	color: var(--smb-text);
}

.smb-pdf-tool__url-input:focus {
	outline: none;
	border-color: var(--smb-primary);
	box-shadow: 0 0 0 3px rgba(213, 0, 87, 0.10);
}

#smb-pdf-tool-copy {
	white-space: nowrap;
}

.smb-pdf-tool__actions {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 12.5px;
	flex-wrap: wrap;
}

.smb-pdf-tool__preview {
	color: var(--smb-primary);
	text-decoration: none;
	font-weight: 600;
}

.smb-pdf-tool__preview:hover { text-decoration: underline; }

.smb-pdf-tool__copy-msg {
	font-weight: 600;
	font-size: 12.5px;
	display: none;
}

/* ==========================================================================
   v1.16.0 — Video Upload tool
   Mirrors the PDF tool card. Step icon uses a deeper red to visually
   distinguish video from PDF (📎) without departing from neutral.
   ========================================================================== */

.smb-video-tool-card .smb-step {
	background: linear-gradient(135deg, #7c1d2e 0%, #9d0544 100%);
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #fff;
	border-radius: 50%;
}

.smb-video-tool__controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.smb-video-tool__hint {
	font-size: 12.5px;
	color: var(--smb-text-3);
	flex: 1;
	min-width: 200px;
}

/* Progress bar shown during upload. */
.smb-video-tool__progress {
	margin-top: 14px;
	padding: 14px 16px;
	background: var(--smb-bg-soft);
	border: 1px solid var(--smb-border);
	border-radius: var(--smb-radius-sm);
}

.smb-video-tool__progress-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--smb-text);
	margin-bottom: 8px;
}

.smb-video-tool__progress-bar {
	height: 10px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 6px;
}

.smb-video-tool__progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--smb-navy) 0%, var(--smb-primary) 100%);
	border-radius: 999px;
	transition: width 0.2s ease-out;
}

.smb-video-tool__progress-detail {
	font-size: 12px;
	color: var(--smb-text-3);
	font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

.smb-video-tool__error {
	margin-top: 14px;
	padding: 12px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-left: 4px solid #dc2626;
	border-radius: var(--smb-radius-sm);
	font-size: 13px;
	line-height: 1.5;
	color: #991b1b;
}

.smb-video-tool__note {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--smb-text-3);
	line-height: 1.55;
	padding: 8px 10px;
	background: #f8fafc;
	border-left: 3px solid var(--smb-navy);
	border-radius: 0 var(--smb-radius-sm) var(--smb-radius-sm) 0;
}


/* ==========================================================================
   v1.16.0 — Settings page (admin-only, currently houses the Vimeo token form)
   ========================================================================== */

.smb-settings-wrap {
	max-width: 880px;
}

.smb-settings-card {
	background: #fff;
	border: 1px solid var(--smb-border);
	border-radius: 12px;
	padding: 24px 28px;
	margin-top: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.smb-settings-card__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: var(--smb-text);
}

.smb-settings-card__intro {
	margin: 0 0 18px;
	font-size: 13.5px;
	color: var(--smb-text-2);
	line-height: 1.55;
}

.smb-settings-steps {
	margin: 0 0 20px;
	padding: 14px 16px 14px 36px;
	background: var(--smb-bg-soft);
	border: 1px solid var(--smb-border);
	border-left: 4px solid var(--smb-navy);
	border-radius: var(--smb-radius-sm);
	font-size: 13px;
	line-height: 1.7;
	color: var(--smb-text-2);
}

.smb-settings-steps li { margin: 2px 0; }
.smb-settings-steps code {
	background: #fff;
	padding: 1px 6px;
	border: 1px solid var(--smb-border);
	border-radius: 4px;
	font-size: 12px;
	color: var(--smb-primary-dark);
}

.smb-settings-field {
	margin-bottom: 20px;
}

.smb-settings-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 13.5px;
	color: var(--smb-text);
}

.smb-settings-input-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
	flex-wrap: wrap;
}

.smb-settings-input-row .smb-input {
	flex: 1;
	min-width: 240px;
	font-family: ui-monospace, 'SF Mono', Menlo, monospace;
	font-size: 12.5px;
}

.smb-settings-info {
	margin-top: 24px;
	padding: 14px 16px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-left: 4px solid var(--smb-navy);
	border-radius: var(--smb-radius-sm);
}

.smb-settings-info h3 {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--smb-navy);
}

.smb-settings-info ul {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--smb-text-2);
}

.smb-settings-info code {
	background: #fff;
	padding: 1px 6px;
	border: 1px solid var(--smb-border);
	border-radius: 4px;
	font-size: 12px;
	color: var(--smb-navy);
}

/* ==========================================================================
   v1.17.0 — Assets management page (PDFs + videos)
   Inherits most styling from .smb-shares-* (table, toolbar, header) so the
   look matches. These are additive rules for asset-specific UI bits.
   ========================================================================== */

.smb-asset-type {
	display: inline-block;
	padding: 4px 10px;
	background: var(--smb-bg-soft);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.smb-asset-url-cell code {
	display: inline-block;
	max-width: 320px;
	padding: 2px 6px;
	font-size: 11.5px;
	background: var(--smb-bg-soft);
	border: 1px solid var(--smb-border);
	border-radius: 4px;
	color: var(--smb-text-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
}

.smb-asset-name-cell {
	font-weight: 600;
	color: var(--smb-text);
	max-width: 200px;
}

.smb-asset-target-cell {
	color: var(--smb-text-2);
	font-size: 13px;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.smb-asset-actions {
	white-space: nowrap;
}
.smb-asset-actions .button {
	margin-right: 4px;
	margin-bottom: 2px;
	font-size: 12px;
	padding: 2px 8px;
	min-height: 28px;
}

#smb-assets-search {
	flex: 1;
	min-width: 220px;
}

#smb-assets-filter-type {
	min-width: 140px;
}

@media (max-width: 900px) {
	.smb-asset-url-cell code { max-width: 180px; }
	.smb-asset-name-cell, .smb-asset-target-cell { max-width: 140px; }
}

/* ==========================================================================
   v1.18.0 — In-place video replace progress (inline inside the assets table row)
   When the team clicks 🔄 Replace on a video, the action buttons in that
   row are temporarily replaced by this progress display. Compact + readable
   even in the cramped Actions cell.
   ========================================================================== */

.smb-asset-progress {
	min-width: 180px;
	font-size: 12px;
}

.smb-asset-progress__label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
	font-weight: 600;
	color: var(--smb-text);
}

.smb-asset-progress__text {
	color: var(--smb-navy);
}

.smb-asset-progress__pct {
	font-family: ui-monospace, 'SF Mono', Menlo, monospace;
	color: var(--smb-text);
}

.smb-asset-progress__bar {
	height: 6px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 4px;
}

.smb-asset-progress__fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--smb-navy) 0%, var(--smb-primary) 100%);
	border-radius: 999px;
	transition: width 0.2s ease-out;
}

.smb-asset-progress__detail {
	font-size: 10.5px;
	font-family: ui-monospace, 'SF Mono', Menlo, monospace;
	color: var(--smb-text-3);
}

/* ==========================================================================
   v1.18.2 — Assets table horizontal-scroll fix
   The shared .smb-shares-table-wrap uses overflow:hidden (fine for the
   6-column shares table). The assets table has 9 columns, which overflows
   the page width on typical laptop screens — Actions column was getting
   clipped. Scope the scroll override to the assets table specifically so
   the shares page is unaffected.
   ========================================================================== */

/* Wrapper that contains the assets table: allow horizontal scroll. */
.smb-shares-table-wrap:has(#smb-assets-table) {
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

/* Fallback for older browsers without :has() — scope by id on the table. */
.smb-shares-table-wrap > #smb-assets-table {
	min-width: 1320px;     /* enough for all 9 columns at comfortable widths */
}

/* The :has() rule above doesn't fire on older Safari/Firefox; this
   sibling-of-table override applies the scroll behaviour without :has(). */
#smb-assets-table {
	min-width: 1320px;
}
#smb-assets-table ~ * { /* no-op anchor */ }

/* Apply overflow on any wrapper that DIRECTLY contains the assets table. */
.smb-frontend-body .smb-shares-table-wrap {
	overflow-x: auto;
}

/* Make the action buttons in the assets table tighter so they take less
   horizontal space (4 buttons = lots of width otherwise). */
#smb-assets-table .smb-share-action {
	font-size: 11.5px;
	padding: 2px 7px;
	margin-right: 2px;
}

/* Subtle scroll-hint shadow on the right edge when content overflows. */
.smb-frontend-body .smb-shares-table-wrap {
	background:
		linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center,
		linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%) right center,
		radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0)) left center,
		radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0)) right center;
	background-repeat: no-repeat;
	background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
	background-attachment: local, local, scroll, scroll;
}

/* ==========================================================================
   v1.18.6 — Output-action lock banner + button locked-state styling
   ========================================================================== */

.smb-lock-banner {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 18px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
	border: 1px solid #facc15;
	border-left: 4px solid #ca8a04;
	border-radius: var(--smb-radius-sm);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.smb-lock-banner__icon {
	font-size: 22px;
	line-height: 1.2;
	flex-shrink: 0;
	animation: smb-lock-pulse 2s ease-in-out infinite;
}
@keyframes smb-lock-pulse {
	0%, 100% { opacity: 0.85; transform: scale(1); }
	50%      { opacity: 1;    transform: scale(1.05); }
}

.smb-lock-banner__body {
	flex: 1;
	min-width: 0;
}

.smb-lock-banner__title {
	font-weight: 700;
	font-size: 14px;
	color: #713f12;
	margin-bottom: 4px;
}

.smb-lock-banner__text {
	font-size: 13px;
	line-height: 1.55;
	color: #92400e;
}

/* Disabled state for output buttons while uploads are in flight. The native
   :disabled gives them a faded look; smb-locked-by-upload adds a subtle
   lock icon so it's visually clear *why* they're disabled. */
.smb-locked-by-upload {
	cursor: not-allowed !important;
	opacity: 0.55 !important;
	position: relative;
}
.smb-locked-by-upload::after {
	content: '🔒';
	font-size: 11px;
	margin-left: 6px;
	opacity: 0.7;
}

/* ==========================================================================
   v1.19.0 — Cancel button on the video upload progress display
   ========================================================================== */

.smb-video-tool__progress-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.smb-video-tool__cancel-btn {
	flex-shrink: 0;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: inherit;
}

.smb-video-tool__cancel-btn:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #7f1d1d;
}

.smb-video-tool__cancel-btn:active {
	transform: scale(0.97);
}

/* ==========================================================================
   v1.19.1 — Processing state on the video result block.
   URL is visible immediately after upload (so team can copy-paste into
   hyperlinks while building) but the Copy button is disabled + a soft
   yellow tint makes it obvious the video isn't fully ready yet.
   ========================================================================== */

.smb-video-result--processing {
	background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important;
	border: 1px solid #facc15 !important;
	border-left: 4px solid #ca8a04 !important;
}

.smb-video-result--processing .smb-pdf-tool__url-input {
	background: #fffbeb;
	border-color: #fcd34d;
}

/* ==========================================================================
   v1.20.0 — Bulk CSV send UI
   ========================================================================== */

.smb-bulk-block {
	margin: 0 0 18px;
	padding: 16px;
	background: #f8fafc;
	border: 1px dashed #94a3b8;
	border-radius: 8px;
}

.smb-bulk-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}

.smb-bulk-block__title {
	font-weight: 700;
	font-size: 14px;
	color: #1e293b;
}

.smb-bulk-block__sample-link {
	font-size: 12px;
	color: #2563eb;
	text-decoration: none;
}
.smb-bulk-block__sample-link:hover { text-decoration: underline; }

.smb-bulk-block__upload {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.smb-bulk-block__clear-btn {
	background: #fef2f2 !important;
	border-color: #fecaca !important;
	color: #991b1b !important;
}

.smb-bulk-block__filename {
	font-size: 13px;
	color: #475569;
	font-style: italic;
}

.smb-bulk-block__error {
	margin-top: 10px;
	padding: 10px 14px;
	background: #fef2f2;
	border-left: 3px solid #dc2626;
	border-radius: 4px;
	color: #991b1b;
	font-size: 13px;
}

/* Preview */
.smb-bulk-preview {
	margin-top: 14px;
	padding: 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.smb-bulk-preview__stats {
	font-size: 13.5px;
	color: #0f172a;
	margin-bottom: 10px;
}

.smb-bulk-preview__placeholders {
	margin: 8px 0 14px;
	font-size: 12px;
	color: #475569;
}
.smb-bulk-preview__ph-label {
	font-weight: 700;
	margin-bottom: 4px;
	font-size: 11px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #64748b;
}
.smb-bulk-preview__placeholders code {
	display: inline-block;
	margin: 0 4px 4px 0;
	padding: 2px 8px;
	background: #eff6ff;
	color: #1e40af;
	border-radius: 4px;
	font-size: 12px;
	font-family: ui-monospace, monospace;
}

.smb-bulk-preview__table-wrap {
	overflow-x: auto;
	max-width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
}
.smb-bulk-preview__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}
.smb-bulk-preview__table th,
.smb-bulk-preview__table td {
	padding: 6px 10px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	white-space: nowrap;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.smb-bulk-preview__table th {
	background: #f1f5f9;
	font-weight: 600;
	color: #334155;
}

.smb-bulk-preview__warnings {
	margin-top: 10px;
	padding: 10px 14px;
	background: #fefce8;
	border-left: 3px solid #ca8a04;
	border-radius: 4px;
	color: #713f12;
	font-size: 12px;
	line-height: 1.5;
}
.smb-bulk-preview__warnings code {
	background: #fef3c7;
	padding: 1px 5px;
	border-radius: 3px;
	font-family: ui-monospace, monospace;
}

/* Test + progress + summary */
.smb-bulk-actions { margin-top: 10px; }

.smb-bulk-progress {
	margin-top: 14px;
	padding: 14px;
	background: #f1f5f9;
	border-radius: 6px;
}
.smb-bulk-progress__label {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 6px;
}
.smb-bulk-progress__bar {
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
}
.smb-bulk-progress__fill {
	height: 100%;
	background: linear-gradient(90deg, #D50057 0%, #9D0544 100%);
	transition: width 0.3s ease-out;
	width: 0%;
}
.smb-bulk-progress__log {
	margin-top: 10px;
	max-height: 220px;
	overflow-y: auto;
	font-family: ui-monospace, monospace;
	font-size: 11px;
}
.smb-bulk-log-line { padding: 2px 4px; border-radius: 3px; }
.smb-bulk-log-line.ok  { color: #059669; }
.smb-bulk-log-line.err { color: #b91c1c; }

.smb-bulk-summary {
	margin-top: 14px;
	padding: 16px;
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	border-radius: 8px;
}
.smb-bulk-summary__title {
	font-weight: 700;
	font-size: 16px;
	color: #064e3b;
	margin-bottom: 10px;
}
.smb-bulk-summary__stats {
	display: flex;
	gap: 24px;
	font-size: 13px;
	color: #065f46;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

/* ==========================================================================
   v1.20.5 — CSV upload loading indicator
   ========================================================================== */

.smb-bulk-block__loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: #fef9c3;
	border: 1px solid #facc15;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #713f12;
}

.smb-bulk-block__spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(202, 138, 4, 0.25);
	border-top-color: #ca8a04;
	border-radius: 50%;
	animation: smb-bulk-spin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes smb-bulk-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   v1.20.6 — Cancel button on bulk send progress
   ========================================================================== */

.smb-bulk-progress__controls {
	margin-top: 10px;
	display: flex;
	justify-content: flex-end;
}

.smb-bulk-progress__cancel-btn {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: inherit;
}
.smb-bulk-progress__cancel-btn:hover:not(:disabled) {
	background: #fee2e2;
	border-color: #f87171;
}
.smb-bulk-progress__cancel-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   v1.20.7 — Per-row skip/dedupe details in CSV preview
   ========================================================================== */

.smb-bulk-preview__warn-block {
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.5;
}

.smb-bulk-preview__warn-block--skipped {
	background: #fef2f2;
	border-left: 3px solid #dc2626;
	color: #991b1b;
}

.smb-bulk-preview__warn-block--deduped {
	background: #fffbeb;
	border-left: 3px solid #d97706;
	color: #92400e;
}

.smb-bulk-preview__warn-title {
	font-weight: 700;
	margin-bottom: 6px;
}

.smb-bulk-preview__warn-list {
	margin: 0;
	padding: 0 0 0 18px;
	list-style: disc;
}

.smb-bulk-preview__warn-list li {
	margin: 2px 0;
}

.smb-bulk-preview__warn-list code {
	background: rgba(0,0,0,0.05);
	padding: 1px 6px;
	border-radius: 3px;
	font-family: ui-monospace, monospace;
	font-size: 11.5px;
}

/* v1.20.9 — Unknown placeholder warning (composed alongside skip/dedupe) */
.smb-bulk-preview__warn-block--unknown-ph {
	background: #fffbeb;
	border-left: 3px solid #ca8a04;
	color: #713f12;
}
.smb-bulk-preview__warn-block--unknown-ph code {
	background: #fef3c7;
	padding: 1px 5px;
	border-radius: 3px;
	font-family: ui-monospace, monospace;
}

/* ==========================================================================
   v1.20.10 — Multi-state result banner (info / success / error)
   Reuses .smb-bulk-block__error as the container.
   ========================================================================== */

.smb-bulk-block__error--error {
	background: #fef2f2 !important;
	border-left: 3px solid #dc2626 !important;
	color: #991b1b !important;
}
.smb-bulk-block__error--success {
	background: #ecfdf5 !important;
	border-left: 3px solid #10b981 !important;
	color: #064e3b !important;
}
.smb-bulk-block__error--info {
	background: #fef9c3 !important;
	border-left: 3px solid #facc15 !important;
	color: #713f12 !important;
}

/* ==========================================================================
   v1.20.11 — Inline filter chips in the stats line
   Always-visible summary of what was filtered: invalid emails, duplicates.
   Sits right under the "X recipients" line so PMs see it immediately.
   ========================================================================== */

.smb-bulk-preview__filter-line {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.smb-bulk-preview__filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.smb-bulk-preview__filter-chip--skipped {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.smb-bulk-preview__filter-chip--deduped {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fcd34d;
}

.smb-bulk-preview__filter-hint {
	font-size: 11.5px;
	color: #94a3b8;
	font-style: italic;
}

/* ==========================================================================
   v1.21.0 — Attachments section
   Works for both single send and bulk send. PMs add files from WP media
   library, see list with size/name/icon, can remove. Limits enforced both
   client-side and server-side: max 5 files, max 20MB total.
   ========================================================================== */

.smb-attach-block {
	margin: 0 0 18px;
	padding: 16px;
	background: #fafafa;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
}

.smb-attach-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}

.smb-attach-block__title {
	font-weight: 700;
	font-size: 14px;
	color: #1e293b;
}

.smb-attach-block__limits {
	font-size: 12px;
	color: #64748b;
	padding: 3px 10px;
	background: #f1f5f9;
	border-radius: 999px;
}
.smb-attach-block__limits.smb-attach-limits--warn {
	background: #fef9c3;
	color: #92400e;
}
.smb-attach-block__limits.smb-attach-limits--danger {
	background: #fef2f2;
	color: #991b1b;
	font-weight: 700;
}

.smb-attach-block__controls {
	margin: 6px 0 10px;
}

.smb-attach-list {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.smb-attach-list:empty { display: none; }

.smb-attach-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	margin: 4px 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 13px;
}

.smb-attach-item__icon {
	font-size: 16px;
	flex-shrink: 0;
}

.smb-attach-item__name {
	flex: 1;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smb-attach-item__size {
	color: #64748b;
	font-size: 12px;
	flex-shrink: 0;
}

.smb-attach-item__remove {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #991b1b;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 11px;
	padding: 0;
	transition: all 0.15s ease;
	flex-shrink: 0;
}
.smb-attach-item__remove:hover {
	background: #fee2e2;
	border-color: #f87171;
}

.smb-attach-block__warning,
.smb-attach-block__error {
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.5;
}
.smb-attach-block__warning {
	background: #fef9c3;
	border-left: 3px solid #ca8a04;
	color: #713f12;
}
.smb-attach-block__error {
	background: #fef2f2;
	border-left: 3px solid #dc2626;
	color: #991b1b;
}


/* ==========================================================================
   v1.22.14 — Native HTML5 color input styling
   Used by the fallback path when wpColorPicker isn't available. The input
   itself shows the chosen color as a button; the border makes it look
   intentional and matches the rest of the form's input styling.
   ========================================================================== */
input[type="color"]#smb-bg-color {
	border: 2px solid #cbd5e1;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	background: #fff;
}
input[type="color"]#smb-bg-color:hover {
	border-color: #00205C;
}
input[type="color"]#smb-bg-color:focus {
	outline: none;
	border-color: #D50057;
	box-shadow: 0 0 0 3px rgba(213, 0, 87, 0.15);
}
