/* Editorul de personalizare.
   Culorile sunt variabile: schimbi paleta aici, nu prin tot fisierul. */

:root {
	--dd-green: #7cb342;
	--dd-green-dark: #6ca236;
	--dd-green-glow: rgba(124, 179, 66, 0.35);
	--dd-teal: #1f8f97;
	--dd-teal-dark: #197a81;
	--dd-aqua: #64cad0;
	--dd-aqua-bg: #e3f5f6;
	--dd-red: #e7505a;
	--dd-red-bg: #fff5f5;
	--dd-orange: #f76f01;
	--dd-ink: #1d2b33;
	--dd-muted: #54656f;
	--dd-faint: #b8b8b8;
	--dd-line: #dfe8ea;
	--dd-line-soft: #eef2f4;
	--dd-canvas: #ededed;
	--dd-panel: #f7f7f7;
	--dd-radius: 10px;
}

html.dd-open,
html.dd-open body {
	overflow: hidden;
	overscroll-behavior: none;
}

/* ---------- Cadrul editorului ---------- */

.dd-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	background: var(--dd-canvas);
	color: var(--dd-ink);
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	padding-top: env(safe-area-inset-top, 0px);
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.dd-modal[hidden],
.dd-modal [hidden] {
	display: none !important;
}
.dd-modal *,
.dd-modal *::before,
.dd-modal *::after {
	box-sizing: border-box;
}
.dd-modal button {
	font-family: inherit;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
}
.dd-ico {
	width: 1.15em;
	height: 1.15em;
	flex: 0 0 auto;
	vertical-align: -0.2em;
}

/* ---------- Bara de sus ---------- */

.dd-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px;
	background: #fff;
	border-bottom: 1px solid #d3d3d3;
}
.dd-head-title {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--dd-ink);
	line-height: 38px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dd-head-actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.dd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 40px;
	padding: 9px 18px;
	border: 2px solid transparent;
	border-radius: var(--dd-radius);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.dd-btn--light {
	background: #fff;
	border-color: var(--dd-line);
	color: var(--dd-ink);
}
.dd-btn--light:hover,
.dd-btn--light:focus-visible {
	border-color: var(--dd-aqua);
}
.dd-btn--light .dd-ico {
	color: var(--dd-teal);
}
.dd-back .dd-ico {
	color: var(--dd-ink);
}
.dd-btn--green {
	background: var(--dd-green);
	border-color: var(--dd-green);
	color: #fff;
	box-shadow: 0 6px 18px var(--dd-green-glow);
}
.dd-btn--green:hover,
.dd-btn--green:focus-visible {
	background: var(--dd-green-dark);
	border-color: var(--dd-green-dark);
}
.dd-btn--danger {
	background: #fff;
	border-color: var(--dd-line);
	color: var(--dd-red);
}
.dd-btn--danger:hover {
	border-color: var(--dd-red);
	background: var(--dd-red-bg);
}

/* ---------- Fete ---------- */

.dd-sides-tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.dd-sides-tabs:empty {
	display: none;
}
.dd-sides-tabs::-webkit-scrollbar {
	display: none;
}
.dd-tab {
	flex: 0 0 auto;
	min-height: 38px;
	padding: 0 18px;
	border: 2px solid var(--dd-line);
	border-radius: var(--dd-radius);
	background: #fff;
	color: var(--dd-ink);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.dd-tab.is-active {
	border-color: var(--dd-red);
	color: var(--dd-red);
}

/* ---------- Produsul ---------- */

.dd-main {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
}
.dd-stage-wrap {
	position: relative;
	flex: 1;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	touch-action: none;
}
#dd-stage {
	position: absolute;
	inset: 0;
}

.dd-badge {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	z-index: 5;
	max-width: 92%;
	padding: 10px 16px;
	border-radius: var(--dd-radius);
	background: var(--dd-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	box-shadow: 0 10px 30px rgba(31, 80, 90, 0.2);
}
.dd-badge--warn {
	background: var(--dd-red);
}

.dd-progress {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	width: 70%;
	max-width: 280px;
	padding: 16px;
	border-radius: 14px;
	background: rgba(29, 43, 51, 0.92);
	color: #fff;
	text-align: center;
	font-size: 13px;
}
.dd-progress-bar {
	height: 6px;
	width: 0;
	margin-bottom: 8px;
	border-radius: 3px;
	background: var(--dd-green);
	transition: width 0.2s;
}

/* ---------- Panoul "Pozitionare" ---------- */

.dd-pos {
	flex: 0 0 380px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 10px 12px 16px;
	background: #fff;
	box-shadow: 0 0 10px 5px rgba(204, 204, 204, 0.6);
	overflow-y: auto;
	z-index: 20;
	touch-action: auto;
}
.dd-pos > * {
	flex-shrink: 0;
}
.dd-pos-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}
.dd-crop {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	min-height: 200px;
	background: var(--dd-canvas);
}
.dd-crop-inner {
	position: relative;
	overflow: hidden;
	touch-action: none;
}
.dd-crop-img {
	position: relative;
	z-index: 0;
	display: block;
}
.dd-crop-box {
	position: absolute;
	z-index: 1;
	cursor: move;
	outline: 1px solid #fff;
	box-shadow: 0 0 0 999px rgba(2, 2, 2, 0.5);
	touch-action: none;
}
.dd-crop-box.is-circle {
	border-radius: 50%;
}
/* Colturile: unghiuri negre conturate cu alb, ca sa se vada pe orice poza. */
.dd-crop-h {
	position: absolute;
	width: 22px;
	height: 22px;
	border: 0 solid #000;
	filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}
.dd-crop-h::before {
	content: '';
	position: absolute;
	inset: -10px;
}
.dd-crop-h[data-h='nw'] {
	top: -4px;
	left: -4px;
	border-top-width: 6px;
	border-left-width: 6px;
	cursor: nwse-resize;
}
.dd-crop-h[data-h='ne'] {
	top: -4px;
	right: -4px;
	border-top-width: 6px;
	border-right-width: 6px;
	cursor: nesw-resize;
}
.dd-crop-h[data-h='sw'] {
	bottom: -4px;
	left: -4px;
	border-bottom-width: 6px;
	border-left-width: 6px;
	cursor: nesw-resize;
}
.dd-crop-h[data-h='se'] {
	bottom: -4px;
	right: -4px;
	border-bottom-width: 6px;
	border-right-width: 6px;
	cursor: nwse-resize;
}

.dd-tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}
.dd-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--dd-line);
	border-radius: var(--dd-radius);
	background: #fff;
	color: var(--dd-teal);
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}
.dd-tool .dd-ico {
	width: 26px;
	height: 26px;
}
.dd-tool:hover,
.dd-tool:focus-visible {
	border-color: var(--dd-aqua);
	background: var(--dd-aqua-bg);
	outline: none;
}
.dd-tool--dark {
	color: var(--dd-muted);
}
.dd-tool.is-disabled {
	color: #b5b5b5;
}

.dd-filters {
	display: flex;
	gap: 8px;
	justify-content: center;
	overflow-x: auto;
	padding-bottom: 4px;
}
.dd-filters::-webkit-scrollbar {
	height: 6px;
}
.dd-filters::-webkit-scrollbar-track {
	background: var(--dd-line-soft);
	border-radius: 999px;
}
.dd-filters::-webkit-scrollbar-thumb {
	background: #b8c6cb;
	border-radius: 999px;
}
.dd-filter {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--dd-muted);
	font-size: 11px;
	cursor: pointer;
}
.dd-filter-thumb {
	width: 46px;
	height: 46px;
	border: 2px solid var(--dd-line);
	border-radius: var(--dd-radius);
	background: var(--dd-canvas) center / cover no-repeat;
}
.dd-filter[data-filter='bw'] .dd-filter-thumb {
	filter: grayscale(1);
}
.dd-filter[data-filter='sepia'] .dd-filter-thumb {
	filter: sepia(1);
}
.dd-filter.is-active .dd-filter-thumb {
	border-color: var(--dd-aqua);
	box-shadow: 0 0 0 2px var(--dd-aqua-bg);
}
.dd-filter.is-active {
	color: var(--dd-teal);
	font-weight: 700;
}

.dd-pos-warn {
	margin: 0;
	color: red;
	font-size: 13px;
	text-align: center;
}
.dd-pos-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 4px;
}
.dd-pos-actions .dd-btn {
	padding: 10px 22px;
	font-size: 15px;
}

/* ---------- Pasul final ---------- */

.dd-final {
	flex: 0 0 380px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 20px;
	background: #fff;
	box-shadow: 0 0 10px 5px rgba(204, 204, 204, 0.6);
	overflow-y: auto;
	-webkit-user-select: text;
	user-select: text;
}
.dd-final-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}
.dd-final-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--dd-red);
}
.dd-final-warn {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border: 1px solid #f7dcae;
	border-radius: var(--dd-radius);
	background: #fff7e8;
	color: var(--dd-ink);
	font-size: 14px;
	line-height: 1.5;
}
.dd-final-warn .dd-ico {
	color: #d98c00;
	margin-top: 2px;
}
.dd-addcart {
	width: 100%;
	height: 50px;
	border: 0;
	border-radius: var(--dd-radius);
	background: var(--dd-green);
	box-shadow: 0 6px 18px var(--dd-green-glow);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.dd-addcart:hover {
	background: var(--dd-green-dark);
}
.dd-modal.is-final .dd-edit-only {
	display: none !important;
}

/* ---------- Panoul "Pozele mele" ---------- */

.dd-panel {
	flex: 0 0 auto;
	position: relative;
	z-index: 15;
	border-top: 1px solid #d3d3d3;
	background: var(--dd-panel);
	box-shadow: 0 -2px 35px -8px #616161;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dd-panel-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 60px;
	padding: 0 16px;
	border: 0;
	background: var(--dd-panel);
	color: var(--dd-red);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}
.dd-panel-icon .dd-ico,
.dd-panel-chevron .dd-ico {
	width: 28px;
	height: 28px;
}
.dd-panel-count {
	font-size: 14px;
	font-weight: 400;
	color: var(--dd-muted);
}
.dd-panel-chevron {
	display: inline-flex;
	transition: transform 0.2s;
}
.dd-panel.is-collapsed .dd-panel-chevron {
	transform: rotate(180deg);
}
.dd-panel.is-collapsed .dd-panel-body {
	display: none;
}
.dd-panel-body {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 16px 14px;
}

.dd-library {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 140px;
	padding: 8px 2px 12px;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
}
.dd-library::-webkit-scrollbar {
	height: 8px;
}
.dd-library::-webkit-scrollbar-track {
	background: var(--dd-line-soft);
	border-radius: 999px;
}
.dd-library::-webkit-scrollbar-thumb {
	background: #b8c6cb;
	border-radius: 999px;
}
.dd-library.is-empty {
	align-items: center;
	justify-content: center;
}
.dd-lib-empty {
	text-align: center;
	white-space: normal;
}
.dd-lib-empty-title {
	margin: 0;
	color: var(--dd-faint);
	font-size: 17px;
	text-transform: uppercase;
}
.dd-lib-empty-note {
	margin: 12px 0 0;
	color: var(--dd-faint);
	font-size: 13px;
}
.dd-lib-item {
	position: relative;
	flex: 0 0 auto;
	box-shadow: 0 0 5px -1px rgba(0, 0, 0, 0.54);
	background: #fff;
	line-height: 0;
}
.dd-lib-item img {
	display: block;
	height: 120px;
	width: auto;
	max-width: 240px;
	object-fit: cover;
	cursor: pointer;
}
.dd-lib-item.is-active {
	outline: 3px solid var(--dd-red);
	outline-offset: -3px;
}
.dd-lib-item.is-active img {
	opacity: 0.85;
}
.dd-lib-count {
	position: absolute;
	top: 6px;
	right: 6px;
	min-width: 25px;
	height: 25px;
	padding: 0 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 15px;
	background: var(--dd-orange);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	opacity: 0.95;
}
.dd-lib-more {
	position: absolute;
	right: 7px;
	bottom: 7px;
	width: 36px;
	height: 36px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--dd-line);
	border-radius: 50%;
	background: #fff;
	color: var(--dd-teal);
	box-shadow: 0 4px 14px rgba(31, 80, 90, 0.16);
	cursor: pointer;
}
.dd-lib-more:hover {
	border-color: var(--dd-aqua);
	background: var(--dd-aqua-bg);
}

.dd-lib-menu {
	position: fixed;
	z-index: 60;
	width: 190px;
	padding: 4px 6px;
	border: 1px solid var(--dd-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(31, 80, 90, 0.16);
}
.dd-lib-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--dd-ink);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.dd-lib-menu-item .dd-ico {
	width: 22px;
	height: 22px;
	color: var(--dd-teal);
}
.dd-lib-menu-item:hover {
	background: #f1f7f8;
}
.dd-lib-menu-item.is-danger,
.dd-lib-menu-item.is-danger .dd-ico {
	color: var(--dd-red);
}
.dd-lib-menu-item.is-danger:hover {
	background: var(--dd-red-bg);
}
.dd-lib-menu-sep {
	display: block;
	height: 1px;
	margin: 4px 6px;
	background: var(--dd-line-soft);
}

/* ---------- Butoanele mari ---------- */

.dd-actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.dd-big {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 46px;
	padding: 6px 10px 7px;
	border: 2px solid transparent;
	border-radius: var(--dd-radius);
	cursor: pointer;
	text-align: center;
	line-height: 1.25;
	transition: background-color 0.15s, border-color 0.15s;
}
.dd-big strong {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 700;
}
.dd-big small {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
}
.dd-big--green {
	background: var(--dd-green);
	border-color: var(--dd-green);
	color: #fff;
	box-shadow: 0 6px 18px var(--dd-green-glow);
}
.dd-big--green:hover {
	background: var(--dd-green-dark);
	border-color: var(--dd-green-dark);
}
.dd-big--teal {
	background: var(--dd-teal);
	border-color: var(--dd-teal);
	color: #fff;
}
.dd-big--teal:hover {
	background: var(--dd-teal-dark);
	border-color: var(--dd-teal-dark);
}
.dd-big--light {
	background: #fff;
	border-color: var(--dd-line);
	color: var(--dd-ink);
}
.dd-big--light:hover {
	border-color: var(--dd-aqua);
}
.dd-big--danger {
	background: #fff;
	border-color: var(--dd-line);
	color: var(--dd-red);
}
.dd-big[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}
.dd-free-tools {
	margin-top: 10px;
}

.dd-skip-wrap {
	display: flex;
	justify-content: center;
	margin-top: 10px;
}
.dd-dashed {
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc((100% - 24px) / 3);
	min-height: 46px;
	padding: 6px 10px;
	border: 2px dashed #b8c6cb;
	border-radius: var(--dd-radius);
	background: #fff;
	color: var(--dd-muted);
	cursor: pointer;
	line-height: 1.1;
}
.dd-dashed > span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}
.dd-dashed strong {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
}
.dd-dashed small {
	font-size: 11px;
	font-weight: 400;
}
.dd-dashed:hover {
	border-color: var(--dd-aqua);
	color: var(--dd-ink);
}
.dd-dashed .dd-skip-on,
.dd-dashed.is-on .dd-skip-off {
	display: none;
}
.dd-dashed.is-on .dd-skip-on {
	display: flex;
}
.dd-dashed.is-on {
	border-style: solid;
	border-color: var(--dd-aqua);
	background: var(--dd-aqua-bg);
	color: var(--dd-teal);
}

/* ---------- Ferestre (texte, poza mare, cod QR) ---------- */

.dd-dialog {
	position: absolute;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 30px 12px;
	background: rgba(0, 0, 0, 0.5);
	overflow-y: auto;
}
.dd-dialog-box {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0;
	border: 1px solid var(--dd-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(31, 80, 90, 0.12);
	overflow: visible;
}
.dd-dialog-title {
	margin: 0;
	padding: 16px 48px 16px 20px;
	border-bottom: 1px solid var(--dd-line-soft);
	font-size: 20px;
	font-weight: 700;
	color: var(--dd-ink);
}
.dd-texts .dd-dialog-title {
	padding-right: 20px;
	text-align: center;
}
.dd-qr .dd-dialog-title {
	font-size: 16px;
}
.dd-dialog-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--dd-muted);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.dd-dialog-body {
	padding: 16px 20px;
	-webkit-user-select: text;
	user-select: text;
}
.dd-dialog-foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid var(--dd-line-soft);
}
.dd-dialog-foot .dd-btn {
	padding: 10px 20px;
}
.dd-viewer .dd-dialog-body {
	text-align: center;
}
.dd-viewer-img {
	max-width: 100%;
	max-height: 70vh;
}

/* Textele */
.dd-texts-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-bottom: 14px;
}
.dd-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.dd-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--dd-green);
}
.dd-texts-rows.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}
.dd-trow {
	margin-bottom: 10px;
}
.dd-tgroup {
	display: flex;
	align-items: stretch;
	height: 42px;
	border: 1px solid var(--dd-line);
	border-radius: var(--dd-radius);
	background: #fff;
}
.dd-tgroup:focus-within {
	border-color: var(--dd-aqua);
}
.dd-trow.has-error .dd-tgroup {
	border-color: var(--dd-red);
}
.dd-tx {
	flex: 0 0 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-right: 1px solid var(--dd-line);
	border-radius: var(--dd-radius) 0 0 var(--dd-radius);
	background: #f6f8f9;
	color: var(--dd-muted);
	cursor: pointer;
}
.dd-tx:hover {
	color: var(--dd-red);
}
.dd-trow.is-off .dd-tx {
	background: var(--dd-aqua-bg);
	color: var(--dd-teal);
}
.dd-tin {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 10px;
	border: 0;
	border-radius: var(--dd-radius) 0 0 var(--dd-radius);
	background: transparent;
	color: var(--dd-ink);
	font-family: inherit;
	font-size: 16px; /* sub 16px, iOS face zoom la focus */
	outline: none;
}
.dd-tx + .dd-tin {
	border-radius: 0;
}
.dd-tin:disabled {
	background: #f6f8f9;
	text-decoration: line-through;
}
.dd-tcount {
	display: flex;
	align-items: center;
	padding: 0 8px;
	color: #999;
	font-size: 12px;
}
.dd-tfont {
	flex: 0 0 auto;
	width: 104px;
	height: 100%;
	padding: 0 6px;
	border: 0;
	border-left: 1px solid var(--dd-line);
	background: #fff;
	color: var(--dd-ink);
	font-size: 15px;
	cursor: pointer;
}
.dd-tcolor {
	position: relative;
	flex: 0 0 auto;
}
.dd-tcolor-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 100%;
	padding: 0 8px;
	border: 0;
	border-left: 1px solid var(--dd-line);
	border-radius: 0 var(--dd-radius) var(--dd-radius) 0;
	background: #fff;
	color: var(--dd-muted);
	cursor: pointer;
}
.dd-tcolor-sw {
	width: 22px;
	height: 22px;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.dd-tcolor-pop {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 5;
	display: grid;
	grid-template-columns: repeat(5, 30px);
	gap: 6px;
	padding: 10px;
	border: 1px solid var(--dd-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(31, 80, 90, 0.16);
}
.dd-terr {
	margin: 4px 0 0;
	color: var(--dd-red);
	font-size: 12px;
}

.dd-swatch {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 6px;
	box-shadow: 0 0 0 1px var(--dd-line);
	cursor: pointer;
}
.dd-swatch.is-active {
	box-shadow: 0 0 0 2px var(--dd-aqua);
}

/* Cod QR */
.dd-qr .dd-dialog-box {
	max-width: 420px;
}
.dd-qr .dd-dialog-body {
	text-align: center;
}
.dd-qr-code {
	display: flex;
	justify-content: center;
	min-height: 200px;
}
.dd-qr-code img,
.dd-qr-code canvas {
	width: 200px;
	height: 200px;
	image-rendering: pixelated;
}
.dd-qr-link {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	color: var(--dd-teal);
}
.dd-qr-status {
	margin: 10px 0 0;
	min-height: 18px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dd-green-dark);
}
.dd-qr .dd-dialog-foot {
	justify-content: center;
}

/* ---------- Panou pentru modul liber ---------- */

.dd-sheet {
	position: relative;
	flex: 0 0 auto;
	max-height: 40vh;
	overflow-y: auto;
	padding: 12px 56px 12px 16px;
	background: #fff;
	border-top: 1px solid var(--dd-line);
	box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
	touch-action: auto;
}
.dd-sheet-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--dd-line);
	border-radius: 50%;
	background: #fff;
	color: var(--dd-muted);
	cursor: pointer;
}
.dd-text-input {
	width: 100%;
	min-height: 58px;
	padding: 10px;
	border: 1px solid var(--dd-line);
	border-radius: var(--dd-radius);
	font-size: 16px;
	font-family: inherit;
	resize: none;
}
.dd-text-input:focus {
	border-color: var(--dd-aqua);
	outline: none;
}
.dd-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 10px 0;
	scrollbar-width: none;
}
.dd-chips::-webkit-scrollbar {
	display: none;
}
.dd-chip {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 0 16px;
	border: 2px solid var(--dd-line);
	border-radius: var(--dd-radius);
	background: #fff;
	color: var(--dd-ink);
	font-size: 14px;
	cursor: pointer;
}
.dd-chip.is-active {
	border-color: var(--dd-aqua);
	background: var(--dd-aqua-bg);
	color: var(--dd-teal);
	font-weight: 700;
}

/* ---------- Ecrane sub 1200px: panoul de pozitionare acopera editorul ---------- */

@media (max-width: 1199px) {
	.dd-head {
		flex-wrap: wrap;
		justify-content: center;
	}
	.dd-head-title {
		flex: 1 0 100%;
		text-align: center;
		line-height: 1.3;
		font-size: 15px;
	}
	.dd-pos {
		position: fixed;
		inset: 0;
		z-index: 40;
		padding-top: calc(10px + env(safe-area-inset-top, 0px));
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		box-shadow: none;
	}
	.dd-main {
		flex-direction: column;
	}
	.dd-final {
		flex: 0 0 auto;
		padding: 16px;
		gap: 10px;
	}
	.dd-final-title {
		display: none;
	}
}

/* ---------- Telefon ---------- */

@media (max-width: 767px) {
	.dd-head {
		padding: 8px 10px;
		gap: 0;
	}
	.dd-head-title {
		display: none;
	}
	.dd-head-actions {
		width: 100%;
		gap: 6px;
	}
	.dd-head-actions .dd-btn {
		flex: 1;
		padding: 8px 6px;
		font-size: 13px;
		gap: 4px;
	}
	.dd-panel-head {
		height: 50px;
		font-size: 16px;
	}
	.dd-panel-body {
		padding: 0 10px 10px;
	}
	.dd-library {
		height: 112px;
	}
	.dd-lib-item img {
		height: 92px;
		max-width: 180px;
	}
	.dd-lib-more {
		width: 30px;
		height: 30px;
		right: 5px;
		bottom: 5px;
	}
	.dd-actions {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.dd-big {
		min-height: 44px;
	}
	.dd-dashed {
		width: 100%;
	}
	.dd-dialog {
		padding: 12px 8px;
	}
	.dd-dialog-title {
		font-size: 17px;
	}
	.dd-tfont {
		width: 84px;
		font-size: 14px;
	}
	.dd-tcount {
		padding: 0 5px;
	}
}
