/**
 * Canvas Design Editor — Abstract Realisms
 * Full-screen Printify-style editor with AR brand tokens
 */

/* ── Google Fonts for text tool ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Dancing+Script:wght@400;700&family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700;800&family=Oswald:wght@300;400;500;600;700&family=Pacifico&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Editor overlay (full-screen) ───────────────────────────── */
.ar-editor-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	background: var(--ar-deeper-night, #12151C);
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	color: #EEEDEA;
	overflow: hidden;
}

.ar-editor-overlay.is-open {
	display: flex;
	flex-direction: column;
	animation: arEditorFadeIn 0.3s ease;
}

@keyframes arEditorFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ── Top toolbar ────────────────────────────────────────────── */
.ar-editor-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 52px;
	padding: 0 16px;
	background: var(--ar-midnight, #1C2030);
	border-bottom: 1px solid rgba(184, 190, 200, 0.12);
	flex-shrink: 0;
	gap: 12px;
}

.ar-editor-toolbar-left,
.ar-editor-toolbar-center,
.ar-editor-toolbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ar-editor-toolbar-left {
	flex: 0 0 auto;
}

.ar-editor-toolbar-center {
	flex: 1 1 auto;
	justify-content: center;
	gap: 12px;
}

.ar-editor-toolbar-right {
	flex: 0 0 auto;
}

.ar-editor-back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(184, 190, 200, 0.2);
	background: transparent;
	color: #EEEDEA;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.ar-editor-back-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(184, 190, 200, 0.4);
}

.ar-editor-toolbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	border: 1px solid rgba(184, 190, 200, 0.15);
	background: transparent;
	color: var(--ar-mist, #8E95A3);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	padding: 0;
}

.ar-editor-toolbar-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #EEEDEA;
	border-color: rgba(184, 190, 200, 0.3);
}

.ar-editor-toolbar-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.ar-editor-toolbar-sep {
	width: 1px;
	height: 24px;
	background: rgba(184, 190, 200, 0.15);
	margin: 0 4px;
}

.ar-editor-position-info {
	font-size: 12px;
	font-weight: 500;
	color: var(--ar-mist, #8E95A3);
	letter-spacing: 0.02em;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	border: 1px solid rgba(184, 190, 200, 0.1);
}

.ar-editor-mode-toggle {
	display: flex;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(184, 190, 200, 0.2);
}

.ar-editor-mode-btn {
	padding: 7px 18px;
	border: none;
	background: transparent;
	color: var(--ar-mist, #8E95A3);
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.ar-editor-mode-btn:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #EEEDEA;
}

.ar-editor-mode-btn.is-active {
	background: var(--ar-azure, #2E5AA8);
	color: #fff;
}

/* ── Main body layout ───────────────────────────────────────── */
.ar-editor-body {
	display: flex;
	flex: 1;
	overflow: hidden;
	min-height: 0;
}

/* ── Left sidebar ───────────────────────────────────────────── */
.ar-editor-sidebar {
	width: 64px;
	background: var(--ar-midnight, #1C2030);
	border-right: 1px solid rgba(184, 190, 200, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 0;
	gap: 4px;
	flex-shrink: 0;
}

.ar-editor-sidebar-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 8px;
	border: none;
	background: transparent;
	color: var(--ar-mist, #8E95A3);
	cursor: pointer;
	border-radius: 10px;
	width: 56px;
	transition: background 0.2s, color 0.2s;
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
}

.ar-editor-sidebar-tab svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.ar-editor-sidebar-tab span {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
}

.ar-editor-sidebar-tab:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #EEEDEA;
}

.ar-editor-sidebar-tab.is-active {
	background: rgba(46, 90, 168, 0.2);
	color: var(--ar-aqua, #5FA6C4);
}

/* ── Left panel (expands when sidebar tab is active) ────────── */
.ar-editor-panel {
	width: 0;
	background: var(--ar-midnight, #1C2030);
	border-right: 1px solid rgba(184, 190, 200, 0.1);
	overflow: hidden;
	transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
}

.ar-editor-panel.is-open {
	width: 280px;
}

.ar-editor-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(184, 190, 200, 0.1);
	flex-shrink: 0;
}

.ar-editor-panel-title {
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 14px;
	font-weight: 700;
	color: #EEEDEA;
	margin: 0;
}

.ar-editor-panel-close {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: var(--ar-mist, #8E95A3);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
	padding: 0;
}

.ar-editor-panel-close:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #EEEDEA;
}

.ar-editor-panel-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
}

/* Panel content sections */
.ar-editor-panel-section {
	display: none;
}

.ar-editor-panel-section.is-active {
	display: block;
}

/* ── Upload panel ───────────────────────────────────────────── */
.ar-editor-upload-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px 16px;
	border: 2px dashed rgba(184, 190, 200, 0.25);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	margin-bottom: 16px;
}

.ar-editor-upload-zone:hover,
.ar-editor-upload-zone.is-dragover {
	border-color: var(--ar-azure, #2E5AA8);
	background: rgba(46, 90, 168, 0.08);
}

.ar-editor-upload-zone svg {
	color: var(--ar-aqua, #5FA6C4);
}

.ar-editor-upload-zone-label {
	font-size: 13px;
	font-weight: 600;
	color: #EEEDEA;
}

.ar-editor-upload-zone-hint {
	font-size: 11px;
	color: var(--ar-mist, #8E95A3);
}

.ar-editor-upload-source {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid rgba(184, 190, 200, 0.12);
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	margin-bottom: 8px;
	width: 100%;
	color: #EEEDEA;
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 13px;
	font-weight: 500;
}

.ar-editor-upload-source:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(184, 190, 200, 0.25);
}

.ar-editor-upload-source svg {
	color: var(--ar-mist, #8E95A3);
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.ar-editor-file-reqs {
	margin-top: 16px;
	padding: 14px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 10px;
	border: 1px solid rgba(184, 190, 200, 0.08);
}

.ar-editor-file-reqs h4 {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ar-mist, #8E95A3);
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
}

.ar-editor-file-reqs ul {
	margin: 0;
	padding: 0 0 0 16px;
	list-style: disc;
}

.ar-editor-file-reqs li {
	font-size: 11px;
	color: var(--ar-mist, #8E95A3);
	line-height: 1.7;
}

/* ── Text panel ─────────────────────────────────────────────── */
.ar-editor-text-add-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px;
	border-radius: 10px;
	border: 1px solid rgba(184, 190, 200, 0.2);
	background: rgba(46, 90, 168, 0.12);
	color: var(--ar-aqua, #5FA6C4);
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	margin-bottom: 20px;
}

.ar-editor-text-add-btn:hover {
	background: rgba(46, 90, 168, 0.2);
	border-color: var(--ar-azure, #2E5AA8);
}

.ar-editor-text-add-btn svg {
	width: 18px;
	height: 18px;
}

.ar-editor-field-group {
	margin-bottom: 16px;
}

.ar-editor-field-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ar-mist, #8E95A3);
	margin-bottom: 8px;
}

.ar-editor-text-input {
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid rgba(184, 190, 200, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: #EEEDEA;
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.ar-editor-text-input:focus {
	border-color: var(--ar-azure, #2E5AA8);
}

.ar-editor-font-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	max-height: 200px;
	overflow-y: auto;
	padding-right: 4px;
}

.ar-editor-font-grid::-webkit-scrollbar {
	width: 4px;
}

.ar-editor-font-grid::-webkit-scrollbar-thumb {
	background: rgba(184, 190, 200, 0.2);
	border-radius: 2px;
}

.ar-editor-font-option {
	padding: 10px 10px;
	border-radius: 8px;
	border: 1px solid rgba(184, 190, 200, 0.12);
	background: rgba(255, 255, 255, 0.03);
	color: #EEEDEA;
	cursor: pointer;
	font-size: 13px;
	text-align: center;
	transition: background 0.2s, border-color 0.2s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ar-editor-font-option:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(184, 190, 200, 0.3);
}

.ar-editor-font-option.is-active {
	background: rgba(46, 90, 168, 0.2);
	border-color: var(--ar-azure, #2E5AA8);
	color: var(--ar-aqua, #5FA6C4);
}

.ar-editor-text-controls {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.ar-editor-text-controls input[type="number"] {
	width: 70px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(184, 190, 200, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: #EEEDEA;
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 13px;
	outline: none;
	box-sizing: border-box;
}

.ar-editor-text-controls input[type="number"]:focus {
	border-color: var(--ar-azure, #2E5AA8);
}

.ar-editor-text-controls input[type="color"] {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(184, 190, 200, 0.2);
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	padding: 2px;
}

/* ── Layers panel ───────────────────────────────────────────── */
.ar-editor-layers-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ar-editor-layer-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(184, 190, 200, 0.08);
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.ar-editor-layer-item:hover {
	background: rgba(255, 255, 255, 0.06);
}

.ar-editor-layer-item.is-selected {
	background: rgba(46, 90, 168, 0.15);
	border-color: var(--ar-azure, #2E5AA8);
}

.ar-editor-layer-thumb {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.ar-editor-layer-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ar-editor-layer-thumb svg {
	width: 16px;
	height: 16px;
	color: var(--ar-mist, #8E95A3);
}

.ar-editor-layer-name {
	font-size: 12px;
	font-weight: 500;
	color: #EEEDEA;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ar-editor-layer-delete {
	width: 26px;
	height: 26px;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: var(--ar-mist, #8E95A3);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
	padding: 0;
	flex-shrink: 0;
	opacity: 0;
}

.ar-editor-layer-item:hover .ar-editor-layer-delete {
	opacity: 1;
}

.ar-editor-layer-delete:hover {
	background: rgba(200, 60, 60, 0.2);
	color: #E85555;
}

/* ── Canvas stage (center) ──────────────────────────────────── */
.ar-editor-stage {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EFEDE8;
	position: relative;
	overflow: auto;
	min-width: 0;
	padding: 24px;
}

.ar-editor-stage::-webkit-scrollbar {
	height: 8px;
	width: 8px;
}

.ar-editor-stage::-webkit-scrollbar-thumb {
	background: rgba(28, 32, 48, 0.18);
	border-radius: 4px;
}

.ar-editor-stage::-webkit-scrollbar-track {
	background: transparent;
}

.ar-editor-canvas-wrap {
	position: relative;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
	border-radius: 4px;
	overflow: visible;
	transform-origin: center center;
	transition: transform 0.15s ease;
	flex-shrink: 0;
}

.ar-editor-canvas-wrap canvas {
	display: block;
	cursor: crosshair;
	max-width: none;
}

/* Printable area dashed outline on canvas (rendered by JS) */

/* Selection handles (rendered as absolutely positioned divs over canvas) */
.ar-editor-handle {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #fff;
	border: 2px solid var(--ar-azure, #2E5AA8);
	border-radius: 2px;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.ar-editor-handle-rotate {
	position: absolute;
	width: 20px;
	height: 20px;
	background: #fff;
	border: 2px solid var(--ar-azure, #2E5AA8);
	border-radius: 50%;
	cursor: grab;
	z-index: 10;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ar-editor-handle-rotate svg {
	width: 12px;
	height: 12px;
	color: var(--ar-azure, #2E5AA8);
}

/* ── Bottom bar ─────────────────────────────────────────────── */
.ar-editor-bottombar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding: 0 16px;
	background: var(--ar-midnight, #1C2030);
	border-top: 1px solid rgba(184, 190, 200, 0.12);
	flex-shrink: 0;
}

.ar-editor-bottombar-left,
.ar-editor-bottombar-center,
.ar-editor-bottombar-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ar-editor-bottombar-left {
	flex: 0 0 auto;
}

.ar-editor-bottombar-center {
	flex: 1 1 auto;
	justify-content: center;
}

.ar-editor-bottombar-right {
	flex: 0 0 auto;
}

/* Zoom controls */
.ar-editor-zoom-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ar-editor-zoom-btn {
	width: 30px;
	height: 30px;
	border-radius: 6px;
	border: 1px solid rgba(184, 190, 200, 0.2);
	background: transparent;
	color: var(--ar-mist, #8E95A3);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
	padding: 0;
}

.ar-editor-zoom-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #EEEDEA;
}

.ar-editor-zoom-level {
	font-size: 12px;
	font-weight: 600;
	color: var(--ar-mist, #8E95A3);
	min-width: 48px;
	text-align: center;
	padding: 5px 10px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	border: 1px solid rgba(184, 190, 200, 0.1);
}

/* View switcher (mockup views) */
.ar-editor-view-switcher {
	display: flex;
	gap: 12px;
	align-items: center;
}

.ar-editor-view-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	border-radius: 10px;
	border: 2px solid transparent;
	background: transparent;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.ar-editor-view-btn:hover {
	background: rgba(255, 255, 255, 0.05);
}

.ar-editor-view-btn.is-active {
	border-color: var(--ar-azure, #2E5AA8);
}

.ar-editor-view-thumb {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.ar-editor-view-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ar-editor-view-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ar-success, #2E8B85);
	position: absolute;
	bottom: -2px;
}

.ar-editor-view-label {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ar-mist, #8E95A3);
}

.ar-editor-view-btn.is-active .ar-editor-view-label {
	color: #EEEDEA;
}

/* Save button */
.ar-editor-save-btn {
	padding: 10px 28px;
	border-radius: 10px;
	border: none;
	background: var(--ar-azure, #2E5AA8);
	color: #fff;
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
	box-shadow: 0 4px 16px rgba(46, 90, 168, 0.3);
}

.ar-editor-save-btn:hover {
	background: #2550A0;
	box-shadow: 0 6px 24px rgba(46, 90, 168, 0.4);
	transform: translateY(-1px);
}

.ar-editor-save-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.ar-editor-save-btn.is-saving {
	pointer-events: none;
}

/* ── "Start Designing" CTA on product page ──────────────────── */
.ar-start-design-wrap {
	margin: 1em 0 1.5em;
}

.ar-start-design-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 28px;
	border-radius: var(--ar-radius, 12px);
	border: 2px solid var(--ar-midnight, #1C2030);
	background: var(--ar-midnight, #1C2030);
	color: var(--ar-ether, #FAFAF8);
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
	box-shadow: 0 4px 20px rgba(28, 32, 48, 0.12);
}

.ar-start-design-btn:hover {
	background: var(--ar-deeper-night, #12151C);
	box-shadow: 0 8px 32px rgba(28, 32, 48, 0.2);
	transform: translateY(-1px);
}

.ar-start-design-btn svg {
	width: 20px;
	height: 20px;
}

.ar-design-confirmed-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: var(--ar-radius-sm, 8px);
	background: rgba(46, 139, 133, 0.08);
	border: 1px solid rgba(46, 139, 133, 0.2);
	color: var(--ar-success, #2E8B85);
	font-size: 13px;
	font-weight: 600;
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	margin-top: 10px;
}

.ar-design-confirmed-badge svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ── Empty state on canvas ──────────────────────────────────── */
.ar-editor-empty-state {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	pointer-events: none;
	z-index: 5;
}

.ar-editor-empty-state svg {
	color: rgba(28, 32, 48, 0.2);
}

.ar-editor-empty-state span {
	font-size: 14px;
	font-weight: 500;
	color: rgba(28, 32, 48, 0.35);
}

/* ── Delete selected layer floating button ──────────────────── */
.ar-editor-delete-selected {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 20;
	padding: 8px 14px;
	border-radius: 8px;
	border: none;
	background: rgba(200, 60, 60, 0.9);
	color: #fff;
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: none;
	align-items: center;
	gap: 6px;
	backdrop-filter: blur(8px);
	transition: background 0.2s;
}

.ar-editor-delete-selected.is-visible {
	display: inline-flex;
}

.ar-editor-delete-selected:hover {
	background: rgba(180, 40, 40, 0.95);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
	.ar-editor-sidebar {
		width: 52px;
	}

	.ar-editor-panel.is-open {
		width: 240px;
	}

	.ar-editor-toolbar-center {
		display: none;
	}

	.ar-editor-view-switcher {
		gap: 6px;
	}

	.ar-editor-view-btn {
		padding: 4px 6px;
	}

	.ar-editor-view-thumb {
		width: 28px;
		height: 28px;
	}
}

@media (max-width: 480px) {
	.ar-editor-panel.is-open {
		position: absolute;
		left: 52px;
		top: 0;
		bottom: 0;
		z-index: 50;
		box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
	}

	.ar-editor-save-btn {
		padding: 10px 18px;
		font-size: 12px;
	}

	.ar-editor-zoom-controls {
		display: none;
	}
}

/* ── Selected Image Controls ────────────────────────────────── */
.ar-editor-preset-btn {
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(184, 190, 200, 0.15);
	background: rgba(255, 255, 255, 0.04);
	color: #EEEDEA;
	font-family: var(--ar-font-body, 'Manrope', sans-serif);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
	text-align: center;
}

.ar-editor-preset-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(184, 190, 200, 0.3);
	color: #fff;
}

.ar-editor-preset-btn:active {
	background: rgba(46, 90, 168, 0.2);
	border-color: var(--ar-azure, #2E5AA8);
}

