/**
 * GridMaster 2.0 — Redesigned Gutenberg Post Grid Builder Workspace Styles
 */

/* ==========================================================================
   1. Scoped Workspace Reset & Design Tokens
   ========================================================================== */

body.gridmaster_page_gridmaster-builder {
	--gm-workspace: #f6f7f9;
	--gm-surface: #ffffff;
	--gm-text: #1e1e1e;
	--gm-secondary: #646970;
	--gm-border: #dcdcde;
	--gm-accent: #2271b1;
	--gm-accent-hover: #135e96;
	--gm-accent-light: #f0f6fc;
	--gm-danger: #cc1818;
	--gm-success: #008a20;
	--gm-warning: #dba617;
	--gm-admin-bar-height: 32px;
	--gm-header-height: 96px;
}

@media screen and (max-width: 782px) {
	body.gridmaster_page_gridmaster-builder {
		--gm-admin-bar-height: 46px;
	}
}

/* Scoped specifically to GridMaster builder screen */
.gridmaster_page_gridmaster-builder #wpcontent {
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.gridmaster_page_gridmaster-builder #wpbody-content {
	padding-bottom: 0 !important;
}

.gridmaster_page_gridmaster-builder #wpfooter {
	display: none;
}

/* Focus Mode Support */
body.gm-focus-mode #adminmenumain,
body.gm-focus-mode #adminmenuwrap,
body.gm-focus-mode #wpfooter {
	display: none !important;
}

body.gm-focus-mode #wpcontent {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.gm-builder-root {
	background: var(--gm-workspace);
	min-height: calc(100vh - var(--gm-admin-bar-height));
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--gm-text);
}

.gm-builder-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 60vh;
	gap: 12px;
	color: var(--gm-secondary);
}

.gm-builder-workspace {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--gm-admin-bar-height));
	background: var(--gm-workspace);
}

/* ==========================================================================
   2. Two-Row Modern Header
   ========================================================================== */

/* Row 1: Identity & Primary Actions */
.gm-header-row-primary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 52px;
	padding: 0 16px;
	background: var(--gm-surface);
	border-bottom: 1px solid var(--gm-border);
	position: sticky;
	top: var(--gm-admin-bar-height);
	z-index: 99;
}

.gm-identity-cluster {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.gm-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--gm-secondary);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 8px;
	border-radius: 4px;
	transition: background 0.15s ease, color 0.15s ease;
}

.gm-back-btn:hover {
	background: var(--gm-workspace);
	color: var(--gm-text);
}

.gm-back-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.gm-header-divider {
	width: 1px;
	height: 20px;
	background: var(--gm-border);
}

.gm-title-container {
	min-width: 0;
	max-width: 320px;
}

.gm-title-display-cluster {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
}

.gm-grid-title-text {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--gm-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
}

.gm-rename-btn {
	color: var(--gm-secondary);
	opacity: 0.6;
	padding: 2px !important;
	height: 24px !important;
	min-width: 24px !important;
}

.gm-rename-btn:hover {
	opacity: 1;
	color: var(--gm-accent);
}

.gm-title-rename-box {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gm-title-input {
	margin: 0 !important;
}

.gm-title-input input {
	height: 30px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 2px 8px !important;
	border-radius: 4px !important;
	border-color: var(--gm-accent) !important;
	width: 180px !important;
}

/* Save Status Readout */
.gm-save-status-readout {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 4px;
	color: var(--gm-secondary);
	white-space: nowrap;
}

.gm-save-status-readout .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.gm-save-status-readout.is-saved .dashicons {
	color: var(--gm-success);
}

.gm-save-status-readout.is-dirty {
	color: #996800;
}

.gm-save-status-readout.is-dirty .dashicons {
	color: var(--gm-warning);
}

.gm-save-status-readout.is-error {
	color: var(--gm-danger);
}

.gm-save-status-readout.is-error .dashicons {
	color: var(--gm-danger);
}

.gm-retry-btn {
	color: var(--gm-accent) !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	padding: 0 !important;
	height: auto !important;
}

/* Right Primary Actions */
.gm-actions-cluster {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gm-copy-shortcode-btn,
.gm-preview-trigger-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	height: 36px !important;
	padding: 0 12px !important;
	font-size: 13px !important;
}

.gm-copy-shortcode-btn .dashicons,
.gm-preview-trigger-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
	display: inline-block;
	flex-shrink: 0;
	margin: 0;
}

.gm-copy-shortcode-btn {
	color: var(--gm-secondary) !important;
	border-color: var(--gm-border) !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gm-copy-shortcode-btn:hover {
	color: var(--gm-text) !important;
	border-color: var(--gm-secondary) !important;
}

.gm-copy-shortcode-btn.is-copied {
	background: #ecfdf5 !important;
	border-color: #a7f3d0 !important;
	color: #065f46 !important;
}

.gm-copy-shortcode-btn.is-copied .dashicons {
	color: #059669 !important;
}

.gm-shortcode-popover code {
	display: inline-block;
	padding: 6px 12px;
	background: #1e1e1e;
	color: #f6f7f9;
	border-radius: 4px;
	font-size: 12px;
	font-family: monospace;
}

.gm-preview-trigger-btn {
	border-color: var(--gm-border) !important;
	color: var(--gm-text) !important;
}

.gm-primary-save-btn {
	background: var(--gm-accent) !important;
	border-color: var(--gm-accent) !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	min-width: 110px;
	justify-content: center;
}

.gm-primary-save-btn:hover {
	background: var(--gm-accent-hover) !important;
}

/* Row 2: Navigation Tabs & Contextual Tools */
.gm-header-row-secondary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 44px;
	padding: 0 16px;
	background: var(--gm-surface);
	border-bottom: 1px solid var(--gm-border);
	position: sticky;
	top: calc(var(--gm-admin-bar-height) + 52px);
	z-index: 98;
}

.gm-workspace-tabs {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 100%;
}

.gm-tab-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 14px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--gm-secondary);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
}

.gm-tab-nav-btn:hover {
	color: var(--gm-text);
	background: var(--gm-workspace);
}

.gm-tab-nav-btn.is-active {
	color: var(--gm-accent);
	font-weight: 600;
	border-bottom-color: var(--gm-accent);
}

.gm-tab-nav-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Contextual Tools (Right) */
.gm-contextual-tools {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gm-history-group {
	margin-right: 6px;
}

.gm-tool-btn {
	color: var(--gm-secondary) !important;
	border-radius: 4px !important;
}

.gm-tool-btn:hover {
	color: var(--gm-text) !important;
	background: var(--gm-workspace) !important;
}

.gm-tool-btn.is-active {
	color: var(--gm-accent) !important;
	background: var(--gm-accent-light) !important;
}

.gm-save-error-notice {
	padding: 8px 16px;
	background: #fef2f2;
	border-bottom: 1px solid #fee2e2;
}

/* ==========================================================================
   3. Bounded Workspace Layout (Desktop & Drawers)
   ========================================================================== */

.gm-workspace-bounded-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: calc(100vh - var(--gm-admin-bar-height) - var(--gm-header-height));
}

.gm-card-studio-container {
	display: flex;
	flex: 1;
	height: calc(100vh - var(--gm-admin-bar-height) - var(--gm-header-height));
	overflow: hidden;
	position: relative;
}

/* Left Panel: List View */
.gm-list-view-panel {
	width: 240px;
	flex-shrink: 0;
	background: var(--gm-surface);
	border-right: 1px solid var(--gm-border);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	z-index: 80;
}

.gm-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	border-bottom: 1px solid var(--gm-border);
	background: var(--gm-surface);
	position: sticky;
	top: 0;
	z-index: 2;
}

.gm-panel-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--gm-text);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gm-panel-title .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--gm-secondary);
}

.gm-list-view-tree {
	padding: 8px 0;
}

.gm-list-view-item {
	width: 100%;
	border: 0;
	background: transparent;
	text-align: start;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	font-size: 12px;
	color: var(--gm-text);
	cursor: pointer;
	transition: background 0.15s ease;
	position: relative;
}

.gm-list-view-item:hover {
	background: var(--gm-workspace);
}

.gm-list-view-item.is-selected {
	background: var(--gm-accent-light);
	color: var(--gm-accent);
	font-weight: 600;
}

.gm-list-icon {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: var(--gm-secondary);
}

.gm-list-active-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gm-accent);
	margin-left: auto;
}

.gm-empty-notice {
	padding: 16px;
	text-align: center;
	color: var(--gm-secondary);
	font-size: 12px;
	margin: 0;
}

/* Center Stage: Card Canvas */
.gm-card-canvas-stage {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: var(--gm-workspace);
	overflow-y: auto;
}

.gm-card-toolbar {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--gm-surface);
	border-bottom: 1px solid var(--gm-border);
	position: sticky;
	top: 0;
	z-index: 10;
}

.gm-quick-add-group {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gm-quick-add-btn {
	font-size: 12px !important;
	border-color: var(--gm-border) !important;
	color: var(--gm-text) !important;
	border-radius: 4px !important;
}

.gm-quick-add-btn:hover {
	border-color: var(--gm-accent) !important;
	color: var(--gm-accent) !important;
}

.gm-more-blocks-btn {
	font-size: 12px !important;
	border-color: var(--gm-border) !important;
	color: var(--gm-secondary) !important;
	border-radius: 4px !important;
}

.gm-more-blocks-btn.is-active {
	border-color: var(--gm-accent) !important;
	color: var(--gm-accent) !important;
	background: var(--gm-accent-light) !important;
}

.gm-card-templates-btn {
	font-size: 12px !important;
	border-color: var(--gm-border) !important;
	color: var(--gm-secondary) !important;
	border-radius: 4px !important;
}

.gm-card-templates-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	margin-right: 4px;
	vertical-align: text-bottom;
}

.gm-card-templates-btn.is-active {
	border-color: var(--gm-accent) !important;
	color: var(--gm-accent) !important;
	background: var(--gm-accent-light) !important;
}

/* ==========================================================================
   Modern Mega Popovers: More Blocks & Card Layouts
   ========================================================================== */

.gm-popover-mega .components-popover__content {
	border: 1px solid var(--gm-border, #dcdcde);
	border-radius: 12px;
	box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.22), 0 8px 20px -4px rgba(15, 23, 42, 0.1);
	background: var(--gm-surface, #ffffff);
	padding: 0 !important;
	overflow: hidden !important;
	display: flex;
	flex-direction: column;
}

.gm-more-blocks-popover .components-popover__content {
	width: 620px;
	max-width: calc(100vw - 32px);
	max-height: 590px;
}

.gm-card-templates-popover .components-popover__content {
	width: 790px;
	max-width: calc(100vw - 32px);
	max-height: 640px;
}

.gm-popover-mega-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	background: var(--gm-surface, #ffffff);
}

/* Header */
.gm-popover-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px 10px;
	border-bottom: 1px solid #f1f5f9;
	background: #ffffff;
	flex-shrink: 0;
}

.gm-popover-header-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gm-popover-header-title-row .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: var(--gm-accent, #2271b1);
}

.gm-popover-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
	color: var(--gm-text, #1e1e1e);
	letter-spacing: -0.2px;
}

.gm-popover-count-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 12px;
	background: #f1f5f9;
	color: var(--gm-secondary, #646970);
}

.gm-popover-scope-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 12px;
	background: #eff6ff;
	color: #2563eb;
	border: 1px solid #bfdbfe;
	letter-spacing: 0.1px;
}

.gm-popover-close-btn {
	color: #94a3b8 !important;
	min-width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	border-radius: 6px !important;
}

.gm-popover-close-btn:hover {
	color: #0f172a !important;
	background: #f1f5f9 !important;
}

/* Search Bar */
.gm-popover-search-wrap {
	padding: 10px 18px;
	background: #ffffff;
	position: relative;
	flex-shrink: 0;
}

.gm-popover-search-wrap .gm-search-icon {
	position: absolute;
	left: 28px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #94a3b8;
	pointer-events: none;
}

.gm-popover-search-wrap .gm-search-input {
	width: 100%;
	height: 38px;
	padding: 0 32px 0 34px !important;
	font-size: 13px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	background: #f8fafc !important;
	color: var(--gm-text, #1e1e1e) !important;
	box-sizing: border-box;
	transition: all 0.15s ease;
}

.gm-popover-search-wrap .gm-search-input:focus {
	background: #ffffff !important;
	border-color: var(--gm-accent, #2271b1) !important;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12) !important;
	outline: none !important;
}

.gm-search-clear-btn {
	position: absolute;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
	background: #e2e8f0;
	border: none;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 11px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: all 0.15s ease;
}

.gm-search-clear-btn:hover {
	background: #cbd5e1;
	color: #0f172a;
}

/* Category Filter Tabs Bar */
.gm-popover-tabs-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 4px 18px 12px;
	border-bottom: 1px solid #f1f5f9;
	background: #ffffff;
	flex-shrink: 0;
}

.gm-tab-pill {
	padding: 4px 9px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #ffffff;
	color: #64748b;
	font-size: 11.5px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1.3;
	transition: all 0.15s ease;
}

.gm-tab-pill:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: var(--gm-text, #1e1e1e);
}

.gm-tab-pill.is-active {
	background: var(--gm-accent, #2271b1);
	border-color: var(--gm-accent, #2271b1);
	color: #ffffff;
}

.gm-tab-count {
	font-size: 10px;
	font-weight: 600;
	padding: 1px 5px;
	border-radius: 10px;
	background: #f1f5f9;
	color: #64748b;
}

.gm-tab-pill.is-active .gm-tab-count {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

/* Scrollable Body */
.gm-popover-scrollable-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 18px 20px;
	background: #f8fafc;
	min-height: 240px;
}

.gm-popover-scrollable-body::-webkit-scrollbar {
	width: 6px;
}

.gm-popover-scrollable-body::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.gm-popover-scrollable-body::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* Empty State */
.gm-popover-empty-state {
	text-align: center;
	padding: 48px 16px;
	color: #64748b;
}

.gm-popover-empty-state .dashicons {
	font-size: 36px;
	width: 36px;
	height: 36px;
	color: #cbd5e1;
	margin-bottom: 8px;
}

.gm-empty-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--gm-text, #1e1e1e);
	margin: 0 0 4px;
}

.gm-empty-hint {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 16px;
}

/* ==========================================================================
   More Blocks 2-Column Grid
   ========================================================================== */

.gm-category-section {
	margin-bottom: 18px;
}

.gm-category-section:last-child {
	margin-bottom: 0;
}

.gm-category-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid #e2e8f0;
}

.gm-category-section-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #64748b;
}

.gm-category-section-count {
	font-size: 10px;
	font-weight: 600;
	color: #94a3b8;
}

.gm-blocks-grid-2col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.gm-block-grid-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
	position: relative;
	transition: all 0.15s ease;
	min-height: 58px;
	box-sizing: border-box;
}

.gm-block-grid-item:hover {
	background: #ffffff;
	border-color: var(--gm-accent, #2271b1);
	box-shadow: 0 4px 14px rgba(34, 113, 177, 0.09);
	transform: translateY(-1px);
}

.gm-block-grid-item:active {
	transform: translateY(0);
}

.gm-block-icon-badge {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.gm-block-grid-item:hover .gm-block-icon-badge {
	transform: scale(1.06);
}

.gm-block-icon-badge .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Category Badge Themes */
.gm-block-icon-badge.theme-editorial { background: #eff6ff; color: #2563eb; }
.gm-block-icon-badge.theme-media { background: #fef3c7; color: #d97706; }
.gm-block-icon-badge.theme-social { background: #ecfdf5; color: #059669; }
.gm-block-icon-badge.theme-advanced { background: #f1f5f9; color: #475569; }
.gm-block-icon-badge.theme-layout { background: #eef2ff; color: #4f46e5; }
.gm-block-icon-badge.theme-woo { background: #faf5ff; color: #7c3aed; }

.gm-block-content {
	flex: 1;
	min-width: 0;
}

.gm-block-title-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
}

.gm-block-title {
	font-size: 12.5px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gm-pro-badge-pill {
	font-size: 9px;
	font-weight: 700;
	padding: 1px 5px;
	border-radius: 4px;
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
	color: #ffffff;
	letter-spacing: 0.5px;
	line-height: 1.3;
	flex-shrink: 0;
}

.gm-block-desc {
	font-size: 11px;
	color: #64748b;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gm-block-add-affordance {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.85);
	transition: all 0.15s ease;
	flex-shrink: 0;
}

.gm-block-grid-item:hover .gm-block-add-affordance {
	opacity: 1;
	transform: scale(1);
	background: var(--gm-accent, #2271b1);
	color: #ffffff;
}

.gm-block-add-affordance .dashicons {
	font-size: 13px;
	width: 13px;
	height: 13px;
}

.gm-block-grid-item.is-pro-disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: #f8fafc;
}

.gm-block-grid-item.is-pro-disabled:hover {
	transform: none;
	border-color: #e2e8f0;
	box-shadow: none;
}

.gm-block-grid-item.is-pro-disabled .gm-block-add-affordance {
	display: none;
}

/* ==========================================================================
   Card Layouts Grid & Visual Wireframes
   ========================================================================== */

.gm-layouts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
	gap: 14px;
}

.gm-layout-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	box-sizing: border-box;
}

.gm-layout-card:hover {
	border-color: var(--gm-accent, #2271b1);
	box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.12);
	transform: translateY(-2px);
}

.gm-layout-card.is-pro-disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.gm-layout-card.is-pro-disabled:hover {
	transform: none;
	border-color: #e2e8f0;
	box-shadow: none;
}

/* Wireframe Container */
.gm-wf-box {
	height: 106px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

/* Image Elements */
.gm-wf-image-box {
	height: 38px;
	background: #e2e8f0;
	border: 1px dashed #cbd5e1;
	border-radius: 4px;
	margin-bottom: 5px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-sizing: border-box;
}

.gm-wf-image-box::before {
	content: "";
	display: block;
	width: 12px;
	height: 9px;
	border: 1.5px solid #94a3b8;
	border-radius: 2px;
	opacity: 0.6;
}

.gm-wf-image-tall {
	height: 58px;
	background: #e2e8f0;
	border: 1px dashed #cbd5e1;
	border-radius: 4px;
	margin-bottom: 5px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.gm-wf-image-tall::before {
	content: "";
	display: block;
	width: 14px;
	height: 10px;
	border: 1.5px solid #94a3b8;
	border-radius: 2px;
	opacity: 0.6;
}

/* Lines */
.gm-wf-line-title {
	height: 7px;
	background: #64748b;
	border-radius: 3px;
	width: 75%;
	margin-bottom: 3px;
	flex-shrink: 0;
}

.gm-wf-line-title-lg {
	height: 9px;
	background: #475569;
	border-radius: 3px;
	width: 85%;
	margin-bottom: 4px;
}

.gm-wf-line-sub {
	height: 5px;
	background: #94a3b8;
	border-radius: 3px;
	width: 90%;
	margin-bottom: 2px;
}

.gm-wf-line-short {
	height: 5px;
	background: #94a3b8;
	border-radius: 3px;
	width: 40%;
}

.gm-wf-line-link {
	font-size: 8.5px;
	font-weight: 600;
	color: #2563eb;
	margin-top: 3px;
}

.gm-wf-white {
	background: #ffffff !important;
}

.gm-wf-dim {
	background: rgba(255, 255, 255, 0.4) !important;
}

.gm-wf-row-space {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 3px;
}

/* Badges */
.gm-wf-badge-red { font-size: 8px; font-weight: 700; background: #ef4444; color: #fff; padding: 1px 5px; border-radius: 3px; display: inline-block; width: fit-content; margin-bottom: 3px; line-height: 1.3; }
.gm-wf-badge-blue { font-size: 8px; font-weight: 700; background: #3b82f6; color: #fff; padding: 1px 5px; border-radius: 3px; display: inline-block; width: fit-content; margin-bottom: 3px; line-height: 1.3; }
.gm-wf-badge-yellow { font-size: 8px; font-weight: 700; background: #eab308; color: #000; padding: 1px 5px; border-radius: 3px; display: inline-block; width: fit-content; margin-bottom: 3px; line-height: 1.3; }
.gm-wf-badge-purple { font-size: 8px; font-weight: 700; background: #8b5cf6; color: #fff; padding: 1px 5px; border-radius: 3px; display: inline-block; width: fit-content; margin-bottom: 3px; line-height: 1.3; }
.gm-wf-badge-green { font-size: 8px; font-weight: 700; background: #22c55e; color: #fff; padding: 1px 5px; border-radius: 3px; display: inline-block; width: fit-content; margin-bottom: 3px; line-height: 1.3; }
.gm-wf-badge-gray { font-size: 8px; font-weight: 700; background: #e2e8f0; color: #475569; padding: 1px 5px; border-radius: 3px; display: inline-block; width: fit-content; margin-bottom: 3px; line-height: 1.3; }
.gm-wf-badge-cyan { font-size: 8px; font-weight: 700; background: #06b6d4; color: #fff; padding: 1px 5px; border-radius: 3px; display: inline-block; width: fit-content; margin-bottom: 3px; line-height: 1.3; }

/* Buttons & Steppers */
.gm-wf-btn-quote { font-size: 8.5px; font-weight: 700; background: #2563eb; color: #fff; padding: 2px 7px; border-radius: 3px; line-height: 1.3; display: inline-block; }
.gm-wf-btn-cart { font-size: 8px; font-weight: 700; background: #2563eb; color: #fff; padding: 2px 6px; border-radius: 3px; line-height: 1.3; display: inline-block; }
.gm-wf-btn-quick { font-size: 8px; font-weight: 700; background: #1e293b; color: #fff; padding: 2px 6px; border-radius: 3px; line-height: 1.3; display: inline-block; }
.gm-wf-btn-full-blue { font-size: 8.5px; font-weight: 700; background: #2563eb; color: #fff; padding: 3px 6px; border-radius: 3px; text-align: center; width: 100%; box-sizing: border-box; line-height: 1.3; margin-top: 3px; }
.gm-wf-btn-red { font-size: 8px; font-weight: 700; background: #ef4444; color: #fff; padding: 2px 6px; border-radius: 3px; line-height: 1.3; display: inline-block; }
.gm-wf-btn-purple { font-size: 8px; font-weight: 700; background: #8b5cf6; color: #fff; padding: 2px 6px; border-radius: 3px; line-height: 1.3; display: inline-block; }
.gm-wf-btn-read-more { height: 9px; width: 44px; background: #cbd5e1; border-radius: 3px; margin-top: 3px; }
.gm-wf-btn-blue { height: 10px; width: 44px; background: #2563eb; border-radius: 3px; margin-top: 2px; }
.gm-wf-btn-pill-white { height: 11px; width: 48px; background: #ffffff; border-radius: 6px; margin-top: 4px; }

.gm-wf-stepper { font-size: 8px; font-weight: 700; background: #e2e8f0; color: #0f172a; padding: 2px 6px; border-radius: 3px; line-height: 1.3; display: inline-block; }
.gm-wf-stepper-green { font-size: 8px; font-weight: 700; background: #dcfce7; color: #16a34a; padding: 2px 6px; border-radius: 3px; line-height: 1.3; display: inline-block; }
.gm-wf-btn-group { display: flex; align-items: center; gap: 5px; margin-top: 2px; }

/* Special Wireframe Layouts */
/* 1. Reel 9:16 Mockup */
.gm-wf-reel { background: #18181b; align-items: center; justify-content: center; }
.gm-wf-reel-phone { width: 62px; height: 96px; background: #09090b; border: 1px solid #3f3f46; border-radius: 8px; padding: 5px; display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box; }
.gm-wf-play-circle { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; align-self: center; }
.gm-wf-reel-bottom { display: flex; align-items: center; gap: 4px; }
.gm-wf-avatar { width: 12px; height: 12px; border-radius: 50%; background: #a1a1aa; flex-shrink: 0; }
.gm-wf-avatar-mini { width: 14px; height: 14px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.gm-wf-lines-compact { flex: 1; }

/* 2. Dark Video */
.gm-wf-dark-video { background: #0b0e16; }
.gm-wf-video-hero { height: 50px; background: #181c2a; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.gm-wf-play-circle-red { width: 24px; height: 24px; border-radius: 50%; background: #ef4444; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; box-shadow: 0 0 10px rgba(239, 68, 68, 0.7); }
.gm-wf-video-info { display: flex; align-items: center; gap: 6px; }

/* 3. Video Card */
.gm-wf-video-thumb { height: 48px; background: #0f172a; border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; color: #94a3b8; }
.gm-wf-video-icon { font-size: 14px; width: 14px; height: 14px; color: #94a3b8; }
.gm-wf-play-pill { font-size: 8px; font-weight: 700; background: rgba(255, 255, 255, 0.15); color: #fff; padding: 2px 6px; border-radius: 3px; }
.gm-wf-content-row { display: flex; align-items: center; gap: 6px; }

/* 4. Hero Overlay */
.gm-wf-hero-overlay { background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); justify-content: space-between; }

/* 5. Dark Slate */
.gm-wf-dark-slate { background: #0f172a; }
.gm-wf-image-dark { height: 40px; background: #1e293b; border-radius: 4px; margin-bottom: 6px; }

/* 6. Side by Side Horizontal */
.gm-wf-row { flex-direction: row !important; gap: 10px !important; align-items: center !important; }
.gm-wf-side-media { width: 38%; height: 64px; background: #e2e8f0; border: 1px dashed #cbd5e1; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.gm-wf-side-media::before { content: ""; display: block; width: 12px; height: 9px; border: 1.5px solid #94a3b8; border-radius: 2px; opacity: 0.6; }

.gm-wf-side-media-sm { width: 44px; height: 44px; background: #e2e8f0; border: 1px dashed #cbd5e1; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.gm-wf-side-media-sm::before { content: ""; display: block; width: 10px; height: 8px; border: 1.5px solid #94a3b8; border-radius: 2px; opacity: 0.6; }

.gm-wf-side-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

/* 7. Split 50 */
.gm-wf-half-media { width: 50%; height: 68px; background: #e2e8f0; border: 1px dashed #cbd5e1; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.gm-wf-half-media::before { content: ""; display: block; width: 12px; height: 9px; border: 1.5px solid #94a3b8; border-radius: 2px; opacity: 0.6; }
.gm-wf-half-content { width: 50%; display: flex; flex-direction: column; gap: 3px; }

/* 8. Compact Row */
.gm-wf-thumb-square { width: 38px; height: 38px; background: #e2e8f0; border: 1px dashed #cbd5e1; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.gm-wf-thumb-square::before { content: ""; display: block; width: 10px; height: 8px; border: 1.5px solid #94a3b8; border-radius: 2px; opacity: 0.6; }
.gm-wf-compact-lines { flex: 1; }

/* 9. Minimalist */
.gm-wf-minimalist { background: #ffffff; padding: 12px; }

/* 10. Flash Sale */
.gm-wf-flash-sale { background: #fff5f5; border-color: #fecaca; }
.gm-wf-countdown-row { display: flex; gap: 4px; margin: 3px 0; }
.gm-wf-countdown-box { font-size: 8px; font-weight: 700; background: #1e293b; color: #fff; padding: 1px 4px; border-radius: 2px; }
.gm-wf-price-red { font-size: 10px; font-weight: 800; color: #ef4444; }

/* 11. Fashion Portrait */
.gm-wf-media-portrait { width: 44px; height: 64px; background: #e2e8f0; border: 1px dashed #cbd5e1; border-radius: 4px; position: relative; padding: 4px; box-sizing: border-box; flex-shrink: 0; }
.gm-wf-floating-bar { position: absolute; right: 3px; top: 3px; display: flex; flex-direction: column; gap: 2px; font-size: 7px; color: #fff; background: rgba(0, 0, 0, 0.4); border-radius: 6px; padding: 2px 3px; }
.gm-wf-swatches { display: flex; gap: 3px; }
.gm-wf-swatch-1 { width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; display: inline-block; }
.gm-wf-swatch-2 { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; display: inline-block; }
.gm-wf-swatch-3 { width: 7px; height: 7px; border-radius: 50%; background: #10b981; display: inline-block; }

/* 12. Floating & Centered */
.gm-wf-floating-wrap { position: relative; padding: 0 !important; background: #e2e8f0; }
.gm-wf-float-image { height: 60px; width: 100%; background: #cbd5e1; }
.gm-wf-float-card { position: absolute; bottom: 8px; left: 10px; right: 10px; background: #ffffff; border-radius: 6px; padding: 6px 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; gap: 3px; }

.gm-wf-centered { align-items: center; text-align: center; }
.gm-wf-image-centered { width: 44px; height: 44px; background: #e2e8f0; border: 1px dashed #cbd5e1; border-radius: 8px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; }
.gm-wf-image-centered::before { content: ""; display: block; width: 12px; height: 9px; border: 1.5px solid #94a3b8; border-radius: 2px; opacity: 0.6; }
.gm-wf-center { margin-left: auto; margin-right: auto; }

.gm-wf-date-row { font-size: 8px; font-weight: 600; color: #64748b; margin-bottom: 3px; }
.gm-wf-meta-bar { display: flex; align-items: center; justify-content: space-between; padding-top: 3px; margin-top: 3px; border-top: 1px solid #e2e8f0; }
.gm-wf-icon-comment { font-size: 8px; }

/* Misc */
.gm-wf-stars { font-size: 8px; color: #f59e0b; line-height: 1; margin-bottom: 3px; }
.gm-wf-price { font-size: 10px; font-weight: 700; color: #0f172a; }
.gm-wf-heart { color: #ef4444; font-size: 10px; }
.gm-wf-share-dots { font-size: 6px; color: #94a3b8; letter-spacing: 2px; margin-top: 3px; }

/* Card Info */
.gm-layout-info {
	padding: 12px 14px 8px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.gm-layout-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 3px;
}

.gm-layout-title {
	font-size: 12.5px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.3;
}

.gm-layout-cat-pill {
	font-size: 9.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 4px;
	width: fit-content;
	margin-bottom: 5px;
}

.gm-layout-desc {
	font-size: 11px;
	color: #64748b;
	line-height: 1.38;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gm-layout-action-wrap {
	padding: 6px 14px 12px;
	background: #ffffff;
}

.gm-layout-apply-btn {
	flex: 1;
	min-width: 0;
	padding: 6px 12px;
	font-size: 11.5px;
	font-weight: 600;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #334155;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
}

.gm-layout-card:hover .gm-layout-apply-btn {
	background: var(--gm-accent, #2271b1);
	border-color: var(--gm-accent, #2271b1);
	color: #ffffff;
}

.gm-layout-apply-btn.is-disabled {
	background: #f1f5f9 !important;
	border-color: #e2e8f0 !important;
	color: #94a3b8 !important;
	cursor: not-allowed;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 820px) {
	.gm-card-templates-popover .components-popover__content {
		width: calc(100vw - 24px) !important;
		max-height: 80vh !important;
	}
	.gm-layouts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.gm-popover-mega {
		position: fixed !important;
		top: 56px !important;
		left: 10px !important;
		right: 10px !important;
		bottom: auto !important;
		transform: none !important;
		width: calc(100vw - 20px) !important;
		max-width: calc(100vw - 20px) !important;
		z-index: 100000 !important;
	}
	.gm-popover-mega .components-popover__content {
		width: 100% !important;
		max-width: 100% !important;
		max-height: calc(100vh - 68px) !important;
		max-height: calc(100dvh - 68px) !important;
	}
	.gm-popover-mega-panel {
		max-height: calc(100vh - 70px);
		max-height: calc(100dvh - 70px);
		overflow: hidden;
	}
	.gm-popover-scrollable-body {
		min-height: 160px;
	}
	.gm-blocks-grid-2col {
		grid-template-columns: 1fr !important;
	}
	.gm-layouts-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Canvas Viewport & Paper */
.gm-card-canvas-viewport {
	flex: 1;
	padding: 32px 20px 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gm-card-canvas-hint {
	width: 100%;
	text-align: center;
	font-size: 12px;
	color: var(--gm-secondary);
	margin-bottom: 16px;
}

.gm-card-canvas-hint .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.gm-card-canvas-paper {
	width: 100%;
	max-width: 440px;
	background: transparent;
	transition: max-width 0.25s ease;
}

.gm-card-canvas-paper.gm-card-canvas-paper--horizontal,
.gm-card-canvas-paper:has(.gm-editor-card--horizontal),
.gm-card-canvas-paper:has(.gm-editor-card--horizontal-reverse) {
	max-width: 780px;
}

/* Right Panel: Contextual Inspector */
.gm-inspector-panel {
	width: 320px;
	flex-shrink: 0;
	background: var(--gm-surface);
	border-left: 1px solid var(--gm-border);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	z-index: 80;
}

.gm-breadcrumb-bar {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

.gm-breadcrumb-parent-btn {
	background: transparent;
	border: none;
	color: var(--gm-accent);
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

.gm-breadcrumb-parent-btn:hover {
	text-decoration: underline;
}

.gm-breadcrumb-current {
	color: var(--gm-text);
	font-weight: 600;
}

.gm-inspector-body {
	padding: 16px;
}

.gm-section-heading {
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: var(--gm-text);
}

.gm-control-field {
	margin-bottom: 16px;
}

.gm-field-label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--gm-text);
	margin-bottom: 6px;
}

/* ==========================================================================
   4. Settings Tabs (Content, Filters, Pagination, Layout)
   ========================================================================== */

.gm-tab-panel-container {
	max-width: 760px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 20px 48px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gm-settings-card {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: 8px;
	padding: 20px 24px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.gm-card-heading {
	margin: 0 0 16px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--gm-text);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.gm-card-heading .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: var(--gm-secondary);
}

.gm-guidance-callout {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: var(--gm-accent-light);
	border-left: 3px solid var(--gm-accent);
	padding: 10px 12px;
	border-radius: 0 4px 4px 0;
	margin-bottom: 16px;
}

.gm-guidance-callout .dashicons {
	font-size: 16px;
	color: var(--gm-accent);
	flex-shrink: 0;
	margin-top: 1px;
}

.gm-guidance-callout p {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #0c4a6e;
}

/* Filters Tab Styling */
.gm-tab-action-bar {
	display: flex;
	justify-content: flex-end;
}

.gm-add-filter-btn {
	background: var(--gm-accent) !important;
	border-color: var(--gm-accent) !important;
}

.gm-facet-picker-menu {
	padding: 6px;
	min-width: 200px;
}

.gm-facet-picker-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	background: transparent;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-align: left;
	font-size: 13px;
	color: var(--gm-text);
	transition: background 0.15s ease;
}

.gm-facet-picker-item:hover {
	background: var(--gm-workspace);
}

.gm-facet-picker-item.is-pro {
	color: var(--gm-accent);
	font-weight: 500;
}

.gm-empty-facets-card {
	background: var(--gm-surface);
	border: 1px dashed var(--gm-border);
	border-radius: 8px;
	padding: 40px 20px;
	text-align: center;
	color: var(--gm-secondary);
}

.gm-empty-facets-card .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	margin-bottom: 8px;
	opacity: 0.5;
}

.gm-empty-facets-card h4 {
	margin: 0 0 4px 0;
	font-size: 14px;
	color: var(--gm-text);
}

.gm-empty-facets-card p {
	margin: 0;
	font-size: 12px;
}

.gm-facet-row-card {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: 6px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gm-facet-row-card:hover {
	border-color: #cbd5e1;
}

.gm-facet-row-card.is-expanded {
	border-color: var(--gm-accent);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gm-facet-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	cursor: pointer;
	background: var(--gm-surface);
}

.gm-facet-summary-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gm-drag-handle {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #94a3b8;
	cursor: grab;
}

.gm-facet-chip {
	display: inline-block;
	background: var(--gm-workspace);
	border: 1px solid var(--gm-border);
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 11px;
	font-family: monospace;
	color: var(--gm-secondary);
}

.gm-facet-name {
	font-size: 13px;
	color: var(--gm-text);
}

.gm-facet-summary-right {
	display: flex;
	align-items: center;
	gap: 4px;
}

.gm-facet-detail-body {
	padding: 16px 20px;
	background: #fafafa;
	border-top: 1px solid var(--gm-border);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Pagination Radio Cards */
.gm-radio-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.gm-radio-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 14px;
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
	transition: all 0.15s ease;
}

.gm-radio-card:hover {
	border-color: #cbd5e1;
	background: #fdfdfd;
}

.gm-radio-card.is-selected {
	border-color: var(--gm-accent);
	background: var(--gm-accent-light);
	box-shadow: 0 0 0 1px var(--gm-accent);
}

.gm-radio-card-icon {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: var(--gm-secondary);
	margin-bottom: 8px;
}

.gm-radio-card.is-selected .gm-radio-card-icon {
	color: var(--gm-accent);
}

.gm-radio-card-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--gm-text);
	margin-bottom: 4px;
}

.gm-radio-card-desc {
	font-size: 11px;
	color: var(--gm-secondary);
	line-height: 1.3;
}

.gm-contextual-subfield {
	padding-top: 12px;
	border-top: 1px solid var(--gm-border);
}

/* Layout Columns */
.gm-responsive-columns-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Layout & Design Presets */
.gm-preset-intro {
	margin: 0 0 16px 0;
	font-size: 13px;
	color: var(--gm-secondary);
	line-height: 1.4;
}

.gm-layout-type-selector {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-top: 12px;
}

.gm-layout-type-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	background: var(--gm-surface, #ffffff);
	border: 1px solid #dcdcde;
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
	transition: all 0.15s ease;
}

.gm-layout-type-option:hover {
	border-color: #94a3b8;
	background: #f8fafc;
}

.gm-layout-type-option.is-active {
	border-color: var(--gm-accent, #2271b1);
	background: var(--gm-accent-light, #f0f6fc);
	box-shadow: 0 0 0 1px var(--gm-accent, #2271b1);
}

.gm-layout-type-icon {
	font-size: 26px;
	width: 26px;
	height: 26px;
	color: var(--gm-secondary, #64748b);
	flex-shrink: 0;
}

.gm-layout-type-option.is-active .gm-layout-type-icon {
	color: var(--gm-accent, #2271b1);
}

.gm-layout-type-info strong {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--gm-text, #1e293b);
	margin-bottom: 3px;
}

.gm-layout-type-info span {
	display: block;
	font-size: 11px;
	color: var(--gm-secondary, #64748b);
	line-height: 1.35;
}

.gm-presets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.gm-preset-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 14px;
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
	transition: all 0.15s ease;
	position: relative;
}

.gm-preset-card:hover {
	border-color: #cbd5e1;
	background: #fdfdfd;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gm-preset-card.is-active {
	border-color: var(--gm-accent);
	background: var(--gm-accent-light);
	box-shadow: 0 0 0 1px var(--gm-accent);
}

.gm-preset-card.is-pro {
	border-left: 3px solid var(--gm-accent);
}

.gm-preset-card-icon {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: var(--gm-secondary);
	margin-bottom: 8px;
}

.gm-preset-card.is-active .gm-preset-card-icon {
	color: var(--gm-accent);
}

.gm-preset-card-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--gm-text);
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.gm-preset-pro-chip {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--gm-accent);
	background: rgba(34, 113, 177, 0.12);
	padding: 1px 5px;
	border-radius: 3px;
}

.gm-preset-card-desc {
	font-size: 11px;
	color: var(--gm-secondary);
	line-height: 1.35;
	margin-bottom: 10px;
}

.gm-preset-card-pill {
	display: inline-block;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 500;
	color: var(--gm-secondary);
	margin-top: auto;
}

.gm-preset-card.is-active .gm-preset-card-pill {
	background: rgba(34, 113, 177, 0.15);
	color: var(--gm-accent);
}

/* ==========================================================================
   5. Isolated Responsive Iframe Preview Modal
   ========================================================================== */

.components-modal__frame.gm-preview-modal-dialog {
	width: min(1440px, calc(100vw - 48px)) !important;
	max-width: calc(100vw - 48px) !important;
	height: calc(100vh - 48px) !important;
	height: calc(100dvh - 48px) !important;
	max-height: calc(100vh - 48px) !important;
	max-height: calc(100dvh - 48px) !important;
	margin: auto !important;
	border: 1px solid #d6dce5;
	border-radius: 12px !important;
	overflow: hidden;
}

/* WordPress positions the header absolutely and offsets its scrolling content.
 * Keep both in normal flow so the preview iframe is the only vertical scroller. */
.gm-preview-modal-dialog .components-modal__content {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}
.gm-preview-modal-dialog .components-modal__header {
	position: static;
	flex: 0 0 72px;
	height: 72px;
	padding: 14px 24px;
	background: #fff;
	border-bottom: 1px solid #e4e8ee;
	gap: 16px;
}
.gm-preview-modal-dialog .components-modal__header-heading-container {
	flex: 0 1 260px;
	min-width: 0;
}
.gm-preview-modal-dialog .components-modal__header > .components-button {
	flex-shrink: 0;
}
.gm-preview-modal-dialog .components-modal__header > .components-spacer {
	display: none;
}
.gm-preview-modal-dialog .components-modal__header-heading {
	min-width: 0;
}
.gm-preview-heading {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.gm-preview-heading-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
}
.gm-preview-heading-grid {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	color: #646970;
}
.gm-preview-modal-dialog .components-modal__children-container,
.gm-preview-dialog-inner {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}
.gm-preview-toolbar {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0;
	background: #fff;
	min-width: 0;
}
.gm-preview-modal-dialog .gm-device-switcher {
	display: inline-flex;
	gap: 2px;
	padding: 4px;
	border: 1px solid #e4e8ee;
	border-radius: 8px;
	background: #f1f3f6;
}
.gm-preview-modal-dialog .components-button.gm-device-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 34px;
	min-width: 96px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: 5px;
	background: transparent;
	box-shadow: none;
	color: #505b6b;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
.gm-preview-modal-dialog .components-button.gm-device-btn[aria-pressed="true"] {
	border-color: #d9dfe8;
	background: #fff;
	box-shadow: 0 1px 3px rgba(22, 34, 51, 0.08);
	color: #135e96;
}
.gm-preview-modal-dialog .components-button.gm-device-btn:hover {
	color: #135e96;
}
.gm-preview-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.gm-preview-modal-dialog .components-button.gm-refresh-preview-btn,
.gm-preview-modal-dialog .components-button.gm-open-tab-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid #d6dce5;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(22, 34, 51, 0.03);
	color: #334155;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
.gm-preview-modal-dialog .gm-preview-toolbar .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}
.gm-preview-modal-dialog .gm-preview-toolbar .components-button:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
.gm-preview-modal-dialog .gm-preview-toolbar .components-button:disabled {
	opacity: 0.5;
	cursor: default;
}
.gm-preview-modal-dialog .gm-refresh-preview-btn:hover:not(:disabled),
.gm-preview-modal-dialog .gm-open-tab-btn:hover:not(:disabled) {
	border-color: #9aa9bc;
	background: #f8fafc;
}
.gm-preview-stale-banner {
	flex-shrink: 0;
	padding: 10px 24px;
	background: #fffbeb;
	color: #854d0e;
	font-size: 13px;
}
.gm-preview-viewport-stage {
	display: flex;
	flex: 1;
	min-height: 0;
	justify-content: safe center;
	padding: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	background: #eef1f5;
}
.gm-iframe-wrapper {
	position: relative;
	flex-shrink: 0;
	height: 100%;
	min-height: 0;
	border: 0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 0 0 1px #d9dfe8, 0 2px 8px rgba(22, 34, 51, 0.04);
	overflow: hidden;
	transition: width 0.2s ease;
}
.gm-preview-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.gm-iframe-loading {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.9);
}
.gm-preview-footer {
	display: flex;
	flex: 0 0 36px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 24px;
	border-top: 1px solid #e4e8ee;
	background: #fff;
	font-size: 12px;
	color: #646970;
}
.gm-preview-viewport-size {
	margin-inline-start: auto;
	font-variant-numeric: tabular-nums;
}
@media (min-width: 783px) and (max-width: 1100px) {
	.gm-preview-modal-dialog .components-modal__header-heading-container {
		flex-basis: 200px;
	}
	.gm-preview-toolbar .gm-preview-action-label {
		display: none;
	}
}
@media (max-width: 782px) {
	.components-modal__frame.gm-preview-modal-dialog {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		height: calc(100dvh - 24px) !important;
		max-height: calc(100dvh - 24px) !important;
	}
	.gm-preview-modal-dialog .components-modal__header {
		flex: 0 0 auto;
		flex-wrap: wrap;
		height: auto;
		gap: 12px;
		padding: 12px 16px;
	}
	.gm-preview-modal-dialog .components-modal__header-heading-container {
		flex: 1 1 calc(100% - 48px);
		order: 1;
	}
	.gm-preview-modal-dialog .components-modal__header > .components-button {
		order: 2;
	}
	.gm-preview-toolbar {
		order: 3;
		flex-basis: 100%;
		flex-wrap: wrap;
		gap: 10px;
	}
	.gm-preview-viewport-stage {
		padding: 12px;
	}
	.gm-preview-footer {
		padding-inline: 16px;
	}
}
@media (max-width: 560px) {
	.components-modal__frame.gm-preview-modal-dialog {
		width: 100vw !important;
		max-width: 100vw !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		border: 0;
		border-radius: 0 !important;
	}
	.gm-preview-modal-dialog .gm-device-switcher {
		width: 100%;
	}
	.gm-preview-modal-dialog .components-button.gm-device-btn {
		flex: 1;
		min-width: 0;
	}
	.gm-preview-toolbar-actions {
		margin-inline-start: auto;
	}
	.gm-preview-footer-note {
		display: none;
	}
	.gm-preview-viewport-stage {
		padding: 0;
	}
	.gm-iframe-wrapper {
		border-radius: 0;
		box-shadow: none;
	}
}

/* ==========================================================================
   6. Responsive Layout Breakpoints
   ========================================================================== */

/* 1280px & 1024px: Ensure primary save & actions remain fully visible without scroll */
@media screen and (max-width: 1280px) {
	.gm-title-container {
		max-width: 220px;
	}
	.gm-grid-title-text {
		font-size: 14px;
	}
}

@media screen and (max-width: 1100px) {
	.gm-identity-cluster {
		gap: 8px;
	}
	.gm-title-container {
		max-width: 180px;
	}
	.gm-back-label {
		display: none;
	}

	/* Drawers overlay behavior */
	.gm-list-view-panel {
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		z-index: 120;
		box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
	}

	.gm-inspector-panel {
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		z-index: 120;
		box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
	}
}

@media screen and (max-width: 782px) {
	.gm-header-row-primary {
		padding: 0 10px;
	}
	.gm-header-row-secondary {
		padding: 0 10px;
	}
	.gm-tab-nav-btn {
		padding: 0 8px;
		font-size: 12px;
	}
	.gm-tab-nav-btn .dashicons {
		display: none;
	}
	.gm-save-status-readout .gm-status-label {
		display: none;
	}
	.gm-primary-save-btn {
		min-width: 80px;
		font-size: 12px !important;
	}
	.gm-copy-shortcode-btn {
		display: none !important;
	}
}

/* Keep the editing surface usable with the WordPress menu and small viewports. */
.gm-builder-root *, .gm-builder-root *::before, .gm-builder-root *::after {
	box-sizing: border-box;
}
.gm-identity-cluster, .gm-title-display-cluster, .gm-grid-title-text {
	min-width: 0;
}
.gm-grid-title-text {
	text-overflow: ellipsis;
}
.gm-title-display-cluster {
	display: flex;
}
.gm-actions-cluster, .gm-rename-btn, .gm-contextual-tools {
	flex-shrink: 0;
}
.gm-title-rename-box {
	position: absolute;
	inset: 4px 12px;
	z-index: 2;
	background: var(--gm-surface);
}
.gm-title-rename-box .gm-title-input {
	flex: 1;
	min-width: 0;
}
.gm-panel-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(30, 30, 30, 0.18);
	z-index: 90;
}
.gm-list-view-panel, .gm-inspector-panel {
	max-width: calc(100% - 24px);
}
.gm-list-view-item:focus-visible, .gm-tab-nav-btn:focus-visible {
	outline: 2px solid var(--gm-accent);
	outline-offset: -2px;
}
@media screen and (max-width: 782px) {
	body.gridmaster_page_gridmaster-builder {
		--gm-header-height: 140px;
	}
	.gm-header-row-secondary {
		height: auto;
		min-height: 88px;
		flex-direction: column;
		align-items: stretch;
	}
	.gm-workspace-tabs {
		height: 44px;
		min-height: 44px;
		overflow-x: auto;
	}
	.gm-tab-nav-btn {
		flex: 1 0 auto;
		justify-content: center;
	}
	.gm-contextual-tools {
		height: 44px;
		justify-content: flex-end;
	}
	.gm-card-toolbar {
		justify-content: flex-start;
		overflow-x: auto;
		flex-shrink: 0;
		padding-inline: 12px;
	}
	.gm-quick-add-group, .gm-more-blocks-wrap {
		flex-shrink: 0;
	}
	.gm-card-canvas-viewport {
		padding: 20px 12px;
	}
	.gm-save-status-readout, .gm-header-divider {
		display: none;
	}
	.gm-identity-cluster {
		flex: 1;
	}
	.gm-title-container {
		flex: 1;
		max-width: 180px;
	}
	.gm-header-row-primary {
		gap: 8px;
	}
	.gm-actions-cluster {
		gap: 6px;
	}
	.gm-primary-save-btn, .gm-preview-trigger-btn {
		padding-inline: 8px !important;
	}
	.gm-preview-trigger-btn .dashicons {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.gm-builder-root *, .gm-iframe-wrapper {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
.gm-selected-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block: 12px;
}
.gm-meta-query-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}
.gm-meta-query-row {
	display: grid;
	grid-template-columns: 1fr 140px 1fr auto;
	gap: 10px;
	align-items: start;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}
.gm-meta-query-row .components-base-control {
	margin-bottom: 0;
}
.gm-builder-root, .gm-builder-workspace, .gm-workspace-bounded-body, .gm-card-studio-container {
	min-height: 0;
}
.gm-builder-workspace {
	height: calc(100vh - var(--gm-workspace-top, var(--gm-admin-bar-height)));
	height: calc(100dvh - var(--gm-workspace-top, var(--gm-admin-bar-height)));
	min-height: 280px;
}
.gm-header-row-primary, .gm-header-row-secondary {
	flex-shrink: 0;
}
.gm-workspace-bounded-body {
	overflow: hidden;
}
.gm-card-studio-container {
	height: auto;
}
.gm-tab-panel-container,
.gm-code-tab-container {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.gm-history-group, .gm-device-switcher {
	display: inline-flex;
	gap: 4px;
}

/* Style Gutenberg's actual drop target; never display guides at invalid positions. */
body.gridmaster_page_gridmaster-builder.gm-builder-dragging {
	position: fixed;
	top: var(--gm-drag-body-top);
	left: var(--gm-drag-body-left);
	width: var(--gm-drag-body-width);
	height: var(--gm-drag-body-height);
}
.gm-drop-guidance {
	height: 18px;
	margin-top: 4px;
	line-height: 18px;
	color: #505b6b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gm-card-canvas-paper [data-gm-drop-target="true"] {
	outline: 2px dashed #2271b1;
	outline-offset: 6px;
}
body.gridmaster_page_gridmaster-builder .block-editor-block-list__insertion-point-indicator {
	background: #2271b1;
	box-shadow: 0 0 0 2px #fff;
}
body.gridmaster_page_gridmaster-builder .block-editor-block-list__insertion-point-indicator::before,
body.gridmaster_page_gridmaster-builder .block-editor-block-list__insertion-point-indicator::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2271b1;
	box-shadow: 0 0 0 2px #fff;
}
body.gridmaster_page_gridmaster-builder .is-vertical > .block-editor-block-list__insertion-point-indicator::before {
	inset-inline-start: -3px;
	top: -2px;
}
body.gridmaster_page_gridmaster-builder .is-vertical > .block-editor-block-list__insertion-point-indicator::after {
	inset-inline-end: -3px;
	top: -2px;
}
body.gridmaster_page_gridmaster-builder .is-horizontal > .block-editor-block-list__insertion-point-indicator::before {
	inset-inline-start: -2px;
	top: -3px;
}
body.gridmaster_page_gridmaster-builder .is-horizontal > .block-editor-block-list__insertion-point-indicator::after {
	inset-inline-start: -2px;
	bottom: -3px;
}
body.gridmaster_page_gridmaster-builder .block-editor-block-popover__drop-zone-foreground {
	background: rgba(34, 113, 177, 0.08) !important;
	outline: 2px solid #2271b1;
}
/* Gutenberg remounts these at each new target. Avoid replaying their entrance
 * animation during a drag; leave the positioning popover's transform intact. */
.gm-card-block-tools.block-editor-block-tools--is-dragging .block-editor-block-list__insertion-point-indicator,
.gm-card-block-tools.block-editor-block-tools--is-dragging .block-editor-block-popover__drop-zone-foreground {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
}

/* ==========================================================================
   Custom Code Tab (CSS & Scripts)
   ========================================================================== */
.gm-code-tab-container {
	max-width: 860px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 20px 60px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	box-sizing: border-box;
}

.gm-code-intro-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #4f46e5;
	border-radius: 8px;
	padding: 16px 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gm-code-intro-title {
	margin: 0 0 6px 0;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.gm-code-intro-desc {
	margin: 0;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

.gm-code-editor-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.gm-code-editor-heading {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.gm-code-editor-heading .dashicons {
	color: #4f46e5;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.gm-code-toolbar-section {
	margin-bottom: 12px;
}

.gm-code-toolbar-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	margin-bottom: 6px;
	display: block;
}

.gm-code-chips-group {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gm-code-chip-btn {
	display: inline-flex;
	align-items: center;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	color: #334155;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11px;
	font-weight: 500;
	padding: 3px 8px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.gm-code-chip-btn:hover {
	background: #e2e8f0;
	border-color: #94a3b8;
	color: #0f172a;
}

.gm-code-preset-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gm-code-preset-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	color: #4338ca;
	font-size: 12px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.gm-code-preset-pill:hover {
	background: #e0e7ff;
	border-color: #a5b4fc;
	color: #3730a3;
}

.gm-code-preset-pill .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.gm-code-textarea-wrapper {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #1e293b;
	background: #0f172a;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gm-code-textarea {
	width: 100%;
	min-height: 220px;
	background: #0f172a !important;
	color: #e2e8f0 !important;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
	font-size: 13px !important;
	line-height: 1.6 !important;
	padding: 14px 16px !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	resize: vertical;
	tab-size: 2;
	box-sizing: border-box;
	display: block;
}

.gm-code-textarea:focus {
	box-shadow: inset 0 0 0 1px #6366f1 !important;
}

.gm-code-textarea::placeholder {
	color: #475569 !important;
	font-style: italic;
}

.gm-code-textarea:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: #1e293b !important;
}

.gm-code-footer-help {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
	font-size: 12px;
	color: #64748b;
}

.gm-code-tag-badge {
	display: inline-block;
	background: #f1f5f9;
	color: #334155;
	font-family: monospace;
	font-size: 11px;
	padding: 1px 5px;
	border-radius: 3px;
	border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Fixed Toast Notifications (Bottom-Right, Zero Layout Shift)
   ========================================================================== */
.gm-toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.gm-toast-notification {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 260px;
	max-width: 420px;
	padding: 12px 16px;
	background: #0f172a;
	color: #f8fafc;
	border-radius: 8px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	border: 1px solid rgba(255, 255, 255, 0.12);
	animation: gmToastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	backdrop-filter: blur(8px);
}

.gm-toast-notification.gm-toast-success {
	background: #0f172a;
	border-left: 4px solid #10b981;
}

.gm-toast-notification.gm-toast-success .gm-toast-icon {
	color: #10b981;
}

.gm-toast-notification.gm-toast-info {
	background: #0f172a;
	border-left: 4px solid #6366f1;
}

.gm-toast-notification.gm-toast-info .gm-toast-icon {
	color: #818cf8;
}

.gm-toast-notification.gm-toast-error {
	background: #0f172a;
	border-left: 4px solid #ef4444;
}

.gm-toast-notification.gm-toast-error .gm-toast-icon {
	color: #ef4444;
}

.gm-toast-icon {
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.gm-toast-message {
	flex: 1;
	word-break: break-word;
}

.gm-toast-close {
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 2px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease;
}

.gm-toast-close:hover {
	color: #ffffff;
}

.gm-toast-close .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

@keyframes gmToastSlideUp {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Starter Blueprints Modal */
.gm-blueprints-modal .components-modal__content {
	max-width: 780px;
}

.gm-blueprints-intro {
	margin: 0 0 16px;
	color: #475569;
	font-size: 13.5px;
}

.gm-blueprints-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
	gap: 14px;
}

.gm-blueprint-card {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gm-blueprint-card:hover:not(.is-locked) {
	border-color: #6366f1;
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}

.gm-blueprint-card.is-locked {
	opacity: 0.72;
	background: #f8fafc;
}

.gm-blueprint-card-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.gm-blueprint-card-head > .dashicons {
	font-size: 22px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #eef2ff;
	color: #4f46e5;
	flex-shrink: 0;
}

.gm-blueprint-card-head h4 {
	margin: 0 0 4px;
	font-size: 14.5px;
	color: #0f172a;
}

.gm-blueprint-card-head p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: #64748b;
}

.gm-blueprint-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gm-blueprint-tag {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 9999px;
	background: #f1f5f9;
	color: #334155;
}

.gm-blueprint-actions {
	display: flex;
	justify-content: flex-end;
}

.gm-layout-action-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gm-pattern-delete-btn {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 6px;
	color: #dc2626;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}

.gm-pattern-delete-btn:hover {
	background: #fee2e2;
}
