/* =========================================================
   Flyer Builder — Frontend Styles
   ========================================================= */

html,
body {
	height: 100%;
}

#page,
#content,
#primary {
	min-height: 100%;
}

#flyers-builder-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #333;
}

#flyers-list-view,
#flyers-new-form-wrap {
	max-width: 800px;
	margin: 0 auto;
}


/* ---------------------------------------------------------
   List view header
   --------------------------------------------------------- */

.flyers-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.flyers-list-header h2 {
	margin: 0;
	font-size: 1.5rem;
}

#flyers-add-new-btn {
	background: #3182ce;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 8px 20px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

#flyers-add-new-btn:hover {
	background: #2b6cb0;
}


/* ---------------------------------------------------------
   Flyers list
   --------------------------------------------------------- */

.flyers-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
}

.flyers-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	transition: background 0.15s ease;
	cursor: pointer;
}

.flyers-list-item:last-child {
	border-bottom: none;
}

.flyers-list-item:hover {
	background: #f7fafc;
}

.flyer-title {
	font-weight: 600;
	font-size: 0.975rem;
}

.flyer-date {
	font-size: 0.85rem;
	color: #718096;
	margin-right: auto;
	padding-left: 12px;
}

.flyers-delete-flyer-btn {
	background: none;
	border: none;
	padding: 4px 6px;
	cursor: pointer;
	color: #cbd5e0;
	line-height: 1;
	border-radius: 4px;
	flex-shrink: 0;
	margin-left: 8px;
}

.flyers-delete-flyer-btn:hover {
	color: #e53e3e;
	background: #fff5f5;
}

.flyers-delete-flyer-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.flyers-no-results {
	padding: 40px 0;
	text-align: center;
	color: #718096;
	font-style: italic;
}


/* ---------------------------------------------------------
   New flyer form
   --------------------------------------------------------- */

#flyers-new-form-wrap {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 28px 32px;
}

#flyers-new-form-wrap h2 {
	margin: 0 0 20px;
	font-size: 1.4rem;
}

#flyers-new-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
	color: #4a5568;
}

#flyers-new-form input[type="text"] {
	display: block;
	width: 100%;
	padding: 10px 12px;
	font-size: 1rem;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#flyers-new-form input[type="text"]:focus {
	outline: none;
	border-color: #4299e1;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.25);
}

.flyers-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.flyers-form-actions .button {
	padding: 9px 20px;
	font-size: 0.9rem;
	border-radius: 4px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.flyers-form-actions .button-primary {
	background: #3182ce;
	color: #fff;
	border-color: #3182ce;
}

.flyers-form-actions .button-primary:hover {
	background: #2b6cb0;
	border-color: #2b6cb0;
}

.flyers-form-actions .button-primary:disabled {
	background: #90cdf4;
	border-color: #90cdf4;
	cursor: not-allowed;
}

.flyers-form-actions .button:not(.button-primary) {
	background: #fff;
	color: #4a5568;
	border-color: #cbd5e0;
}

.flyers-form-actions .button:not(.button-primary):hover {
	background: #edf2f7;
}

.flyers-form-error,
.flyers-form-success {
	margin-top: 12px;
	font-size: 0.875rem;
}


/* ---------------------------------------------------------
   Edit view — top bar
   --------------------------------------------------------- */

#flyers-edit-view {
	display: flex;
	flex-direction: column;
	height: calc( 100vh - 30px );
	gap: 16px;
}

.flyers-edit-topbar {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.flyers-edit-topbar h2 {
	margin: 0;
	font-size: 1.4rem;
}

.flyers-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	margin-left: 12px;
	background: #3182ce;
	border: none;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #ffffff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.flyers-back-btn:hover {
	background: #2b6cb0;
	color: #ffffff;
	text-decoration: none;
}

.flyers-back-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* ---------------------------------------------------------
   Edit view — two-column layout
   --------------------------------------------------------- */

.flyers-edit-columns {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 20px;
	align-items: stretch;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

/* Left panel */

.flyers-edit-left {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow-y: auto;
	overflow-x: hidden;
}

/* Toolbar */

.flyers-editor-toolbar {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 6px 8px;
	border-bottom: 1px solid #e2e8f0;
	background: #f7fafc;
}

.flyers-toolbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: none;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #718096;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.flyers-toolbar-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
}

.flyers-toolbar-btn:hover {
	background: #edf2f7;
	color: #2d3748;
	border-color: #cbd5e0;
}

.flyers-toolbar-btn.is-active {
	background: #ebf8ff;
	color: #3182ce;
	border-color: #bee3f8;
}

/* CSV section (collapsible) */

#flyers-csv-section {
	padding: 16px 20px;
	border-bottom: 1px solid #e2e8f0;
	background: #f7fafc;
}

/* ---------------------------------------------------------
   Pages list
   --------------------------------------------------------- */

#flyers-pages-view {
	display: flex;
	flex-direction: column;
}

.flyers-pages-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e2e8f0;
}

.flyers-pages-header h3 {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #718096;
}

.flyers-add-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #4a5568;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.flyers-add-page-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 1;
}

.flyers-add-page-btn:hover {
	background: #edf2f7;
	border-color: #a0aec0;
}

#flyers-pages-list {
	padding: 8px 0;
}

.flyers-pages-ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.flyers-page-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	border-bottom: 1px solid #f0f4f8;
	transition: background 0.12s ease;
}

.flyers-page-item:last-child {
	border-bottom: none;
}

.flyers-page-item:hover {
	background: #f7fafc;
}

.flyers-page-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.flyers-page-num {
	font-size: 0.875rem;
	font-weight: 600;
	color: #2d3748;
}

.flyers-page-tpl {
	font-size: 0.775rem;
	color: #a0aec0;
}

.flyers-page-actions {
	display: flex;
	gap: 4px;
}

.flyers-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: none;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #a0aec0;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.flyers-icon-btn .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	line-height: 1;
}

.flyers-icon-btn:hover {
	background: #edf2f7;
	color: #4a5568;
	border-color: #cbd5e0;
}

.flyers-page-delete:hover {
	background: #fff5f5;
	color: #e53e3e;
	border-color: #feb2b2;
}

/* ---------------------------------------------------------
   Template picker
   --------------------------------------------------------- */

#flyers-template-picker {
	display: flex;
	flex-direction: column;
}

.flyers-picker-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e2e8f0;
}

.flyers-picker-topbar h3 {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #718096;
}

#flyers-template-list {
	padding: 12px 16px;
}

.flyers-template-options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.flyers-template-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
	background: #fff;
}

.flyers-template-option .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #a0aec0;
	flex-shrink: 0;
}

.flyers-template-option:hover {
	background: #ebf8ff;
	border-color: #bee3f8;
}

.flyers-template-option:hover .dashicons {
	color: #3182ce;
}

.flyers-template-option.is-selected {
	background: #ebf8ff;
	border-color: #3182ce;
}

.flyers-template-option.is-selected .dashicons {
	color: #3182ce;
}

.flyers-template-option-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: #2d3748;
}

/* Active page */

.flyers-page-item.is-active {
	background: #ebf8ff;
	border-left: 3px solid #3182ce;
}

/* Loading state */

.flyers-loading {
	padding: 20px;
	text-align: center;
	font-size: 0.875rem;
	color: #a0aec0;
}

/* ---------------------------------------------------------
   Page content editor
   --------------------------------------------------------- */

.flyers-panel-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	border-bottom: 1px solid #e2e8f0;
	background: #f7fafc;
}

.flyers-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #3182ce;
	border: none;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #ffffff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.flyers-back-link:hover {
	background: #2b6cb0;
	color: #ffffff;
	text-decoration: none;
}

.flyers-back-link .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

#flyers-page-editor-label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #a0aec0;
}

.flyers-editor-label-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.flyers-save-defaults-btn {
	color: #a0aec0;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.flyers-save-defaults-btn:hover {
	color: #3182ce;
	background: #ebf4ff;
}

.flyers-page-editor-body {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.flyers-page-editor-body {
	gap: 0;
	padding: 0;
}

#flyers-fields-container {
	padding: 0;
}

/* ---------------------------------------------------------
   Collapsible blocks
   --------------------------------------------------------- */

.flyers-block {
	border-bottom: 1px solid #e2e8f0;
}

.flyers-block:last-child {
	border-bottom: none;
}

.flyers-block-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 20px;
	background: #f0f4f8;
	border: none;
	border-bottom: 1px solid transparent;
	text-align: left;
	cursor: pointer;
	font-size: 0.775rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #4a5568;
	transition: background 0.15s ease;
}

.flyers-block-toggle:hover {
	background: #e2e8f0;
}

.flyers-block.is-open .flyers-block-toggle {
	border-bottom-color: #e2e8f0;
}

.flyers-block-chevron {
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	color: #a0aec0;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.flyers-block:not(.is-open) .flyers-block-chevron {
	transform: rotate( -90deg );
}

.flyers-block-fields {
	overflow: hidden;
	max-height: 4000px;
	transition: max-height 0.25s ease;
	padding: 12px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.flyers-block:not(.is-open) .flyers-block-fields {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
}

/* ---------------------------------------------------------
   Field rows
   --------------------------------------------------------- */

.flyers-field-group {
	background: #f7f9fc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 10px 10px 8px;
	margin-bottom: 8px;
}

.flyers-field-group:last-child {
	margin-bottom: 0;
}

.flyers-field-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.flyers-field-row label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #4a5568;
	text-transform: capitalize;
}

.flyers-field-input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	font-size: 0.875rem;
	font-family: inherit;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flyers-field-input:focus {
	outline: none;
	border-color: #4299e1;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.25);
}

textarea.flyers-field-input {
	resize: vertical;
	line-height: 1.5;
}

/* Field options row (text color, font family, weight, size) */

.flyers-field-options {
	display: flex;
	gap: 1px;
	padding-top: 5px;
	margin-top: 5px;
	border-top: 1px solid #f0f4f8;
}

.flyers-field-opt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: none;
	border: 1px solid transparent;
	border-radius: 3px;
	color: #a0aec0;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.flyers-field-opt-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 1;
}

.flyers-field-opt-btn:hover {
	background: #edf2f7;
	color: #4a5568;
	border-color: #cbd5e0;
}

.flyers-field-opt-btn.is-active {
	background: #ebf8ff;
	color: #3182ce;
	border-color: #bee3f8;
}

.flyers-transform-trigger {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.flyers-opt-color-input {
	-webkit-appearance: none;
	appearance: none;
	width: 26px !important;
	height: 26px;
	padding: 2px;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	cursor: pointer;
	flex-shrink: 0;
	background: none;
}

.flyers-opt-color-input::-webkit-color-swatch-wrapper {
	padding: 0;
}

.flyers-opt-color-input::-webkit-color-swatch {
	border: none;
	border-radius: 2px;
}

.flyers-opt-color-input::-moz-color-swatch {
	border: none;
	border-radius: 2px;
}

/* Font options panel */

.flyers-font-panel {
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 4px 4px;
	padding: 8px 10px 10px;
	display: grid;
	grid-template-columns: 60px 1fr;
	align-items: center;
	gap: 5px 8px;
	margin-bottom: 4px;
}

.flyers-padding-row {
	display: flex;
	gap: 4px;
}

.flyers-pad-input {
	flex: 1;
	min-width: 0;
	text-align: center;
	padding: 2px 2px !important;
}

.flyers-font-panel-label {
	font-size: 11px;
	color: #718096;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.flyers-font-select,
.flyers-font-size-input {
	width: 100%;
	font-size: 12px;
	padding: 3px 5px;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	background: #fff;
	color: #2d3748;
	height: 26px;
	box-sizing: border-box;
}

.flyers-font-size-input {
	width: 70px;
}

/* Color picker field */

.flyers-color-field-row {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 3px 0;
	border-top: 1px solid #f0f4f8;
}

.flyers-color-field-row:first-child {
	border-top: none;
}

.flyers-color-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #4a5568;
	text-transform: capitalize;
	cursor: pointer;
	flex: 1;
	min-width: 0;
}

.flyers-color-label .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #a0aec0;
	flex-shrink: 0;
}

.flyers-color-input {
	width: 36px !important;
	height: 28px;
	padding: 2px 3px;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	cursor: pointer;
	background: none;
	flex-shrink: 0;
}

/* Background color field */

.flyers-bgcolor-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.flyers-bgcolor-opts-panel {
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 4px 4px;
	padding: 8px 10px 10px;
	display: grid;
	grid-template-columns: 60px 1fr;
	align-items: center;
	gap: 5px 8px;
	margin-bottom: 4px;
}

.flyers-bgcolor-panel-label {
	font-size: 11px;
	color: #718096;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.flyers-bgcolor-opt-input {
	width: 80px !important;
	height: 26px;
	padding: 3px 5px;
	font-size: 12px;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	background: #fff;
	color: #2d3748;
	box-sizing: border-box;
}

.flyers-bgcolor-input {
	-webkit-appearance: none;
	appearance: none;
	width: 48px !important;
	height: 32px;
	padding: 2px 3px;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	cursor: pointer;
	background: none;
	flex-shrink: 0;
}

.flyers-bgcolor-input::-webkit-color-swatch-wrapper {
	padding: 0;
}

.flyers-bgcolor-input::-webkit-color-swatch {
	border: none;
	border-radius: 2px;
}

.flyers-bgcolor-input::-moz-color-swatch {
	border: none;
	border-radius: 2px;
}

/* Border color input inside the options panel */

.flyers-bordercolor-input {
	-webkit-appearance: none;
	appearance: none;
	width: 48px !important;
	height: 26px;
	padding: 2px 3px;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	cursor: pointer;
	background: none;
	box-sizing: border-box;
}

.flyers-bordercolor-input::-webkit-color-swatch-wrapper {
	padding: 0;
}

.flyers-bordercolor-input::-webkit-color-swatch {
	border: none;
	border-radius: 1px;
}

.flyers-bordercolor-input::-moz-color-swatch {
	border: none;
	border-radius: 1px;
}

/* Custom color picker */

.flyers-cpicker {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.flyers-cpicker-btn {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 2px solid rgba( 0, 0, 0, 0.18 );
	border-radius: 4px;
	cursor: pointer;
	flex-shrink: 0;
	background: transparent;
	transition: border-color 0.15s ease;
}

.flyers-cpicker-btn:hover {
	border-color: rgba( 0, 0, 0, 0.4 );
}

.flyers-opt-color-picker .flyers-cpicker-btn {
	width: 26px;
	height: 26px;
	border-radius: 3px;
}

.flyers-bgcolor-picker .flyers-cpicker-btn,
.flyers-bordercolor-picker .flyers-cpicker-btn {
	width: 42px;
	height: 28px;
}

.flyers-cpicker-pop {
	position: fixed;
	z-index: 100200;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.15 );
	padding: 10px;
	width: 168px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.flyers-cpicker-hex-row {
	display: flex;
	align-items: stretch;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	overflow: hidden;
	background: #fff;
}

.flyers-cpicker-hash {
	padding: 0 4px 0 6px;
	font-size: 0.8rem;
	font-family: monospace;
	color: #718096;
	background: #f7fafc;
	border-right: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	user-select: none;
	flex-shrink: 0;
}

.flyers-cpicker-hex {
	flex: 1;
	min-width: 0;
	padding: 5px 6px;
	font-size: 0.8rem;
	font-family: monospace;
	border: none;
	outline: none;
	color: #2d3748;
	background: #fff;
	letter-spacing: 0.05em;
}

.flyers-cpicker-palette {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
}

.flyers-cpicker-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 2px;
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	cursor: pointer;
	flex-shrink: 0;
	transition: transform 0.1s ease, box-shadow 0.1s ease;
	position: relative;
}

.flyers-cpicker-swatch:hover {
	transform: scale( 1.3 );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.3 );
	z-index: 1;
}

.flyers-cpicker-wheel {
	-webkit-appearance: none;
	appearance: none;
	width: 32px;
	height: auto;
	padding: 2px;
	border: none;
	border-right: 1px solid #e2e8f0;
	border-radius: 0;
	cursor: pointer;
	flex-shrink: 0;
	background: none;
	align-self: stretch;
}

.flyers-cpicker-wheel::-webkit-color-swatch-wrapper { padding: 0; height: 100%; }
.flyers-cpicker-wheel::-webkit-color-swatch { border: none; border-radius: 0; height: 100%; }
.flyers-cpicker-wheel::-moz-color-swatch { border: none; border-radius: 0; }

/* Divider row between section groups in the options panel */

.flyers-bgcolor-panel-divider {
	display: block;
	border-top: 1px solid #e2e8f0;
	margin: 2px 0;
}

/* Image picker field */

.flyers-image-picker-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.flyers-image-picker-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.flyers-image-status {
	font-size: 0.8rem;
	color: #a0aec0;
	font-style: italic;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.flyers-image-status.has-image {
	color: #2d3748;
	font-style: normal;
}

.flyers-clear-image-btn {
	display: none;
	flex-shrink: 0;
}

.flyers-image-picker-row.has-image .flyers-clear-image-btn,
.flyers-repeater-sf-image-row.has-image .flyers-clear-image-btn {
	display: inline-flex;
}

/* ── Image picker modal ─────────────────────────────────── */

#flyers-image-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flyers-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.flyers-modal-dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	width: 860px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 60px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.flyers-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.flyers-modal-header h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.flyers-modal-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #718096;
	padding: 4px;
	line-height: 1;
	border-radius: 4px;
	transition: background 0.15s ease, color 0.15s ease;
}

.flyers-modal-close:hover {
	background: #edf2f7;
	color: #2d3748;
}

.flyers-modal-tabs-bar {
	display: flex;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.flyers-modal-tab {
	padding: 10px 20px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: 0.875rem;
	font-weight: 600;
	color: #718096;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
	margin-bottom: -1px;
}

.flyers-modal-tab:hover {
	color: #2d3748;
}

.flyers-modal-tab.is-active {
	color: #3182ce;
	border-bottom-color: #3182ce;
}

.flyers-modal-body {
	flex: 1;
	overflow: hidden;
	display: flex;
}

.flyers-modal-panel {
	display: none;
	flex: 1;
	overflow: hidden;
}

.flyers-modal-panel.is-active {
	display: flex;
}

/* Library panel */

#flyers-library-panel {
	overflow: hidden;
}

.flyers-folder-sidebar {
	width: 200px;
	flex-shrink: 0;
	border-right: 1px solid #e2e8f0;
	overflow-y: auto;
	background: #f7fafc;
}

#flyers-folder-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.flyers-folder-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	font-size: 0.825rem;
	color: #4a5568;
	cursor: pointer;
	transition: background 0.12s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.flyers-folder-item .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: #a0aec0;
}

.flyers-folder-item:hover {
	background: #edf2f7;
}

.flyers-folder-item.is-active {
	background: #ebf8ff;
	color: #2b6cb0;
	font-weight: 600;
}

.flyers-folder-item.is-active .dashicons {
	color: #3182ce;
}

.flyers-folder-loading {
	padding: 12px 14px;
	font-size: 0.8rem;
	color: #a0aec0;
	list-style: none;
}

.flyers-image-grid-wrap {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
}

#flyers-image-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 110px, 1fr ) );
	gap: 10px;
}

.flyers-grid-thumb {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 5px;
	border: 2px solid transparent;
	cursor: pointer;
	background: #f0f4f8;
	transition: border-color 0.15s ease, transform 0.12s ease;
}

.flyers-grid-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.flyers-grid-thumb:hover {
	border-color: #3182ce;
	transform: scale( 1.03 );
}

.flyers-grid-loading,
.flyers-grid-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 0;
	font-size: 0.875rem;
	color: #a0aec0;
}

/* Upload panel */

#flyers-upload-panel {
	padding: 40px;
	align-items: center;
	justify-content: center;
}

.flyers-upload-area form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: 360px;
}

.flyers-upload-drop-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 32px 24px;
	border: 2px dashed #cbd5e0;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	font-size: 0.875rem;
	color: #718096;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.flyers-upload-drop-label .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #a0aec0;
}

.flyers-upload-drop-label:hover {
	border-color: #4299e1;
	background: #ebf8ff;
}

.flyers-upload-drop-label input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

body.flyers-modal-open {
	overflow: hidden;
}

#flyers-editor-actions {
	padding: 12px 20px;
	border-top: 1px solid #e2e8f0;
	margin-top: 4px;
	position: sticky;
	bottom: 0;
	left: 0;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	z-index: 10;
}

#flyers-editor-actions #flyers-save-page-content {
	width: 100%;
}

/* Alignment button & popup */

.flyers-align-wrap {
	position: relative;
	display: inline-block;
}

.flyers-align-popup {
	position: fixed;
	transform: translateX( -50% );
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.12 );
	display: flex;
	gap: 2px;
	padding: 4px;
	z-index: 9999;
	white-space: nowrap;
}

.flyers-align-option {
	background: none;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	padding: 4px 6px;
	line-height: 1;
	color: #555;
}

.flyers-align-option:hover {
	background: #f0f4f8;
	border-color: #c8d3de;
}

.flyers-align-option.is-active {
	background: #e8f0fe;
	border-color: #4f7cd1;
	color: #2853a6;
}

.flyers-page-editor-body .flyers-form-error,
.flyers-page-editor-body .flyers-form-success {
	margin: 0 20px 12px;
}

/* Right panel — preview */

.flyers-edit-right {
	overflow-y: auto;
	overflow-x: hidden;
}

.flyers-preview-panel {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	min-height: 400px;
}

.flyers-preview-header {
	padding: 12px 20px;
	background: #f7fafc;
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #718096;
}

#flyers-preview-content {
	padding: 0;
	position: relative;
}

.flyers-page-wrap {
	width: 100%;
	aspect-ratio: 2313 / 3155;
	overflow: hidden;
	position: relative;
	background: #fff;
}

.flyers-preview-img {
	display: block;
	width: 100%;
	height: auto;
}

.flyers-preview-empty {
	margin: 0;
	font-size: 0.875rem;
	color: #a0aec0;
	text-align: center;
	padding: 60px 20px;
}

/* Block click-to-navigate overlay on preview image */

.flyers-block-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.flyers-block-zone {
	position: absolute;
	left: 0;
	width: 100%;
	box-sizing: border-box;
	border: 2px solid transparent;
	pointer-events: all;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.flyers-block-zone:hover {
	background: rgba( 49, 130, 206, 0.1 );
	border-color: rgba( 49, 130, 206, 0.45 );
}

.flyers-block-zone-label {
	display: none;
	position: absolute;
	top: 4px;
	left: 4px;
	background: rgba( 49, 130, 206, 0.88 );
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 2px 7px;
	border-radius: 3px;
	white-space: nowrap;
	pointer-events: none;
}

.flyers-block-zone:hover .flyers-block-zone-label {
	display: block;
}

/* ---------------------------------------------------------
   File input row
   --------------------------------------------------------- */

.flyers-file-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.flyers-file-label {
	position: relative;
	display: inline-block;
	padding: 7px 14px;
	background: #edf2f7;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #4a5568;
	cursor: pointer;
	transition: background 0.15s ease;
}

.flyers-file-label:hover {
	background: #e2e8f0;
}

.flyers-file-label input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.flyers-file-name {
	font-size: 0.825rem;
	color: #718096;
	word-break: break-all;
}

/* ---------------------------------------------------------
   Product grid (preview)
   --------------------------------------------------------- */

.flyers-product-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
	gap: 12px;
}

.flyers-product-card {
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 0.85rem;
}

.flyers-product-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 6px;
}

.flyers-product-field:last-child {
	margin-bottom: 0;
}

.flyers-field-label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #a0aec0;
	margin-bottom: 2px;
}

.flyers-field-value {
	color: #2d3748;
	font-weight: 500;
}

/* ---------------------------------------------------------
   Responsive — stack columns on narrow screens
   --------------------------------------------------------- */

@media ( max-width: 700px ) {
	#flyers-edit-view {
		height: auto;
	}

	.flyers-edit-columns {
		grid-template-columns: 1fr;
		flex: none;
	}

	.flyers-edit-left,
	.flyers-edit-right {
		overflow-y: visible;
	}
}

/* ---------------------------------------------------------
   Color swatches
   --------------------------------------------------------- */

.flyers-color-picker-wrap {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
}

.flyers-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	max-width: 130px;
}

/* Inside font panel: span both grid columns */
.flyers-font-panel .flyers-swatches {
	grid-column: 1 / -1;
	max-width: 100%;
	margin-bottom: 2px;
}

.flyers-swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 2px;
	border: 1px solid rgba( 0, 0, 0, 0.18 );
	cursor: pointer;
	flex-shrink: 0;
	transition: transform 0.1s ease, box-shadow 0.1s ease;
	position: relative;
}

.flyers-swatch:hover {
	transform: scale( 1.35 );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.35 );
	z-index: 1;
}

/* ---------------------------------------------------------
   Repeater editor
   --------------------------------------------------------- */

.flyers-repeater-editor {
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
}

.flyers-repeater-item {
	border-bottom: 1px solid #e2e8f0;
}

.flyers-repeater-item:last-child {
	border-bottom: none;
}

.flyers-repeater-item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f7fafc;
}

.flyers-repeater-item-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	padding: 7px 10px;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 600;
	color: #4a5568;
	transition: background 0.12s ease;
}

.flyers-repeater-item-toggle:hover {
	background: #edf2f7;
}

.flyers-repeater-chevron {
	font-size: 14px !important;
	width: 14px !important;
	height: 14px !important;
	color: #a0aec0;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.flyers-repeater-item.is-open .flyers-repeater-chevron {
	transform: rotate( 90deg );
}

.flyers-repeater-item-num {
	font-size: 0.8rem;
}

.flyers-repeater-item-fields {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fff;
	border-top: 1px solid #e2e8f0;
}

.flyers-repeater-drag-handle {
	padding: 7px 6px 7px 8px;
	color: #cbd5e0;
	cursor: grab;
	flex-shrink: 0;
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
}

.flyers-repeater-drag-handle:hover {
	color: #a0aec0;
}

.flyers-repeater-sort-placeholder {
	height: 36px;
	background: #ebf8ff;
	border: 1px dashed #90cdf4;
	border-radius: 2px;
	margin: 2px 0;
}

.ui-sortable-helper {
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	opacity: 0.95;
}

.flyers-repeater-sf-row {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.flyers-repeater-sf-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: #718096;
}

.flyers-repeater-sf-row input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 5px 8px;
	font-size: 0.825rem;
	font-family: inherit;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flyers-repeater-sf-row input[type="text"]:focus {
	outline: none;
	border-color: #4299e1;
	box-shadow: 0 0 0 2px rgba( 66, 153, 225, 0.2 );
}

.flyers-repeater-sf-image-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.flyers-repeater-add-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	padding: 7px;
	background: #f7fafc;
	border: none;
	border-top: 1px solid #e2e8f0;
	color: #4a5568;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.flyers-repeater-add-btn .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: #3182ce;
}

.flyers-repeater-add-btn:hover {
	background: #ebf8ff;
	color: #2b6cb0;
}

/* ---------------------------------------------------------
   Footer settings section
   --------------------------------------------------------- */

#flyers-footer-section {
	border-top: 1px solid #e2e8f0;
}

.flyers-footer-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 20px;
	background: #f0f4f8;
	border: none;
	border-bottom: 1px solid transparent;
	text-align: left;
	cursor: pointer;
	font-size: 0.775rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #4a5568;
	transition: background 0.15s ease;
}

.flyers-footer-toggle:hover {
	background: #e2e8f0;
}

#flyers-footer-toggle.is-open {
	border-bottom-color: #e2e8f0;
}

.flyers-footer-chevron {
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	color: #a0aec0;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

#flyers-footer-toggle.is-open .flyers-footer-chevron {
	transform: rotate( 180deg );
}

#flyers-footer-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px 20px;
}

.flyers-footer-actions {
	padding: 0 20px 12px;
}

.flyers-footer-error,
.flyers-footer-success {
	margin: 0 20px 8px;
	font-size: 0.875rem;
}

#flyers-footer-body {
	border-top: none;
}

/* Footer preview bar — rendered inside .flyers-page-wrap */

.flyers-footer-preview-bar {
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

/* =========================================================
   Product Picker Modal
   ========================================================= */

#flyers-product-picker {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flyers-product-picker-dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.3);
	width: 620px;
	max-width: 95vw;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
}

.flyers-product-picker-body {
	overflow-y: auto;
	flex: 1;
	padding: 0;
}

.flyers-product-picker-category {
	border-bottom: 1px solid #e2e8f0;
}

.flyers-product-picker-cat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px;
	background: #f7fafc;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #718096;
	border-bottom: 1px solid #e2e8f0;
}

.flyers-picker-select-all-btn {
	padding: 2px 7px;
	border: 1px solid #bee3f8;
	border-radius: 10px;
	background: #ebf8ff;
	color: #2b6cb0;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: none;
	cursor: pointer;
	flex-shrink: 0;
	line-height: 1.6;
	transition: background 0.12s, border-color 0.12s;
}

.flyers-picker-select-all-btn:hover {
	background: #bee3f8;
	border-color: #90cdf4;
}

.flyers-product-picker-item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	width: 100%;
	padding: 10px 16px;
	border: none;
	border-bottom: 1px solid #f0f0f0;
	background: #fff;
	text-align: left;
	cursor: pointer;
	font-size: 0.8125rem;
	line-height: 1.4;
	transition: background 0.1s;
}

.flyers-product-picker-item:hover {
	background: #ebf8ff;
}

.flyers-product-picker-item:last-child {
	border-bottom: none;
}

.flyers-picker-item-brand {
	font-size: 0.7rem;
	color: #718096;
	white-space: nowrap;
	flex-shrink: 0;
}

.flyers-picker-item-name {
	font-weight: 600;
	color: #1a202c;
	flex: 1;
}

.flyers-picker-item-price {
	font-weight: 700;
	color: #c0392b;
	white-space: nowrap;
	flex-shrink: 0;
}

.flyers-picker-item-unit {
	font-size: 0.7rem;
	color: #718096;
	white-space: nowrap;
	flex-shrink: 0;
}

.flyers-import-block-btn {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 12px;
	padding: 5px 10px;
	background: #ebf8ff;
	color: #2b6cb0;
	border: 1px solid #bee3f8;
	border-radius: 3px;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	justify-content: center;
}

.flyers-import-block-btn:hover {
	background: #bee3f8;
}

.flyers-product-picker-empty {
	padding: 24px;
	text-align: center;
	color: #718096;
	font-style: italic;
}

.flyers-product-picker-footer {
	padding: 12px 16px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: flex-end;
	background: #f7fafc;
	border-radius: 0 0 4px 4px;
}

.flyers-picker-checkbox {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #cbd5e0;
	border-radius: 3px;
	flex-shrink: 0;
	margin-right: 4px;
	position: relative;
	transition: background 0.1s, border-color 0.1s;
}

.flyers-product-picker-item.is-selected {
	background: #ebf8ff;
}

.flyers-product-picker-item.is-selected .flyers-picker-checkbox {
	background: #2b6cb0;
	border-color: #2b6cb0;
}

.flyers-product-picker-item.is-selected .flyers-picker-checkbox::after {
	content: '';
	position: absolute;
	left: 2px;
	top: -1px;
	width: 8px;
	height: 5px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg);
}

/* ── Per-item text style override panel ─────────────────────── */

.flyers-ri-text-wrap {
	display: flex;
	align-items: center;
	gap: 4px;
}

.flyers-ri-text-wrap input[type="text"] {
	flex: 1;
	min-width: 0;
}

.flyers-ri-style-panel {
	background: #f0f5fa;
	border: 1px solid #d8e4ef;
	border-radius: 4px;
	padding: 7px 8px 8px;
	margin-top: 3px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.flyers-ri-top-row {
	display: flex;
	align-items: center;
	gap: 3px;
	flex-wrap: wrap;
}

.flyers-ri-color-picker .flyers-cpicker-btn {
	width: 26px;
	height: 26px;
	border-radius: 3px;
}

.flyers-ri-align-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: none;
	border: 1px solid transparent;
	border-radius: 3px;
	color: #a0aec0;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.flyers-ri-align-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 1;
}

.flyers-ri-align-btn:hover,
.flyers-ri-align-btn.is-active {
	background: #ebf8ff;
	color: #3182ce;
	border-color: #bee3f8;
}

.flyers-ri-style-grid {
	display: grid;
	grid-template-columns: 80px 1fr;
	align-items: center;
	gap: 4px 6px;
}

.flyers-ri-label {
	font-size: 10px;
	color: #718096;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.flyers-ri-select {
	width: 100%;
	font-size: 11px;
	padding: 2px 4px;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	background: #fff;
	color: #2d3748;
	height: 22px;
	box-sizing: border-box;
}

.flyers-ri-num-input {
	width: 100% !important;
	height: 22px;
	padding: 2px 4px;
	font-size: 11px;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	background: #fff;
	color: #2d3748;
	box-sizing: border-box;
}

.flyers-ri-spacing-grid {
	display: grid;
	grid-template-columns: 52px 1fr;
	align-items: center;
	gap: 5px 6px;
}

.flyers-ri-spacing-row {
	display: flex;
	gap: 3px;
}

.flyers-ri-spacing-row input {
	flex: 1;
	min-width: 0;
	text-align: center;
	height: 22px;
	padding: 2px 2px !important;
	font-size: 10px;
	border: 1px solid #cbd5e0;
	border-radius: 3px;
	background: #fff;
	color: #2d3748;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

.flyers-ri-spacing-row input::-webkit-outer-spin-button,
.flyers-ri-spacing-row input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ── Help modal ──────────────────────────────────────────── */

#flyers-help-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flyers-help-dialog {
	position: relative;
	z-index: 1;
	width: 80%;
	height: 80%;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.flyers-help-content {
	flex: 1;
	overflow-y: auto;
	padding: 28px 32px;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #2d3748;
}

.flyers-help-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 32px;
	height: 32px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border-radius: 50%;
	border: none;
}
