.csp-editor { margin: 0 0 1.5em; width: 100%; }
.csp-title { margin: 0 0 .6em; }
.csp-canvas { display: block; width: 100%; height: auto; max-width: 100%; border: 1px solid #ddd; background: #fff; touch-action: none; cursor: move; }
.csp-hint { font-size: .85em; opacity: .75; margin: .5em 0; }
.csp-buttons { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: .8em; }
.csp-add-image { cursor: pointer; }
.csp-panel { border: 1px solid #e2e2e2; border-radius: 6px; padding: .8em; background: #fafafa; }
.csp-panel[hidden] { display: none; }
.csp-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; margin-bottom: .6em; }
.csp-row:last-child { margin-bottom: 0; }
.csp-row label { display: flex; align-items: center; gap: .6em; width: 100%; }
.csp-row input[type=range] { flex: 1; }
.csp-text { flex: 1 1 100%; width: 100%; }
.csp-font { flex: 1; min-width: 0; }
.csp-color { width: 44px; height: 36px; padding: 0; border: 1px solid #ccc; }
.csp-msg { color: #b32d2e; min-height: 1em; margin: .5em 0 0; font-size: .9em; }

/* Oldalválasztó fülek */
.csp-tabs { display: flex; gap: .4em; margin-bottom: .6em; }
.csp-tab { flex: 1; padding: .6em 1em; border: 1px solid #ccc; background: #f5f5f5; cursor: pointer; border-radius: 4px; font: inherit; }
.csp-tab.is-active { background: #222; color: #fff; border-color: #222; }

/* Az eredeti termékgaléria elrejtése, ha a szerkesztő a helyére került */
.csp-hidden-gallery { display: none !important; }
.csp-editor.csp-in-gallery { margin-bottom: 1em; }

/* Felár-jelzés és vezérlők a Kosárba gomb fölött */
.csp-fee { margin: 0 0 .6em; font-size: .9em; }
.csp-controls { margin: 0 0 1.2em; width: 100%; }
.csp-gallery { margin-bottom: .8em; }
.csp-gal-title { margin: 0 0 .4em; font-weight: 600; font-size: .9em; }
.csp-gal-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; padding: 2px; }
.csp-gal-item { width: 64px; height: 64px; padding: 2px; border: 1px solid #ddd; border-radius: 4px; background: #fff; cursor: pointer; }
.csp-gal-item:hover { border-color: #2271b1; }
.csp-gal-item img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Mobilon a grafikák a szerkesztőpanel (szöveg, méret, forgatás) alá kerülnek */
@media (max-width: 768px) {
	.csp-controls { display: flex; flex-direction: column; }
	.csp-buttons { order: 1; }
	.csp-panel { order: 2; margin-bottom: .8em; }
	.csp-gallery { order: 3; }
	.csp-msg { order: 4; }
	#csp-fields { order: 5; }
}

/* Kiemelt hozzáadás gombok (+ ikonnal) */
.csp-controls .csp-buttons { gap: .6em; }
.csp-controls .csp-add { flex: 1 1 160px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1em; border: 2px solid var(--csp-accent, #552800); border-radius: 999px; background: var(--csp-accent, #552800); color: #fff; font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: center; transition: transform .1s, box-shadow .1s; }
.csp-controls .csp-add:hover { box-shadow: 0 3px 10px rgba(0,0,0,.2); transform: translateY(-1px); }
.csp-controls .csp-plus { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #fff; color: var(--csp-accent, #552800); font-size: 1.15em; font-weight: 800; line-height: 1; }
