/* ============================================================
 * EZ Lettering Designer — editor UI
 * Self-contained; namespaced .ezld-*. No theme dependency.
 * ============================================================ */
.ezld-wrap, .ezld-wrap * { box-sizing: border-box; }
.ezld-wrap {
	--c-blue: #1a5fb4; --c-blue-d: #114e9e; --c-navy: #0d2b4e;
	--c-green: #2e9e44; --c-ink: #16233a; --c-line: #e6e9ee; --c-muted: #6b7785;
	font-family: 'Archivo', system-ui, -apple-system, sans-serif;
	width: 100%;
	display: flex; align-items: center; justify-content: center;
	padding: 0;
	background: transparent;
	border-radius: 16px;
}
.ezld-card {
	width: 100%; max-width: 1240px;
	height: var(--ezld-h, 700px); min-height: 560px;
	background: #fff; border-radius: 16px;
	border: 1px solid var(--c-line);
	box-shadow: 0 18px 50px -24px rgba(13,43,78,.35);
	overflow: hidden; display: flex; flex-direction: column;
}

/* top bar */
.ezld-topbar { height: 54px; flex: none; background: #2b3543; display: flex; align-items: center; padding: 0 8px 0 4px; }
.ezld-tabs { display: flex; align-items: center; gap: 2px; flex: 1; height: 100%; overflow-x: auto; }
.ezld-tab { height: 100%; padding: 0 18px; background: transparent; border: none; border-bottom: 2px solid transparent; color: #9fb0c2; font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: .3px; cursor: pointer; white-space: nowrap; }
.ezld-tab.is-active { color: #fff; border-bottom-color: #4a90e2; }
.ezld-tools { display: flex; align-items: center; gap: 4px; padding-right: 8px; }
.ezld-tool { width: 34px; height: 34px; border: none; background: transparent; color: #9fb0c2; border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ezld-tool:hover:not(:disabled) { background: #3a4757; color: #dce4ee; }
.ezld-tool:disabled { color: #566375; cursor: default; }
.ezld-tool svg { width: 18px; height: 18px; }
.ezld-divider { width: 1px; height: 22px; background: #3a4757; margin: 0 4px; }
.ezld-sharebtn { height: 34px; padding: 0 13px; border: none; background: #3a4757; color: #dce4ee; border-radius: 7px; cursor: pointer; display: flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 700; }
.ezld-sharebtn svg { width: 16px; height: 16px; }

/* body */
.ezld-body { flex: 1; display: flex; min-height: 0; }
.ezld-center { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #f4f6f9; }
.ezld-stage-wrap { flex: 1; position: relative; min-height: 0; overflow: hidden; }
.ezld-stage { position: absolute; inset: 18px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); overflow: hidden; background: #fbfbfc; }
.ezld-surface { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ezld-photo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #eef1f4; cursor: pointer; }
.ezld-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ezld-photo-hint { font-size: 13px; font-weight: 700; color: #8a96a4; }
.ezld-canvas { position: absolute; inset: 0; }
.ezld-canvas svg { width: 100%; height: 100%; display: block; touch-action: none; }
.ezld-hint { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; pointer-events: none; font-size: 14px; font-weight: 700; letter-spacing: .5px; color: #9aa6b4; }
.ezld-zoom { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.ezld-zoom button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; border: 1px solid #d7dce3; background: #fff; color: #3a4757; font-family: inherit; font-size: 19px; font-weight: 700; line-height: 1; text-align: center; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,.08); }
.ezld-draghint { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.85); border: 1px solid #e2e6ec; border-radius: 20px; padding: 6px 12px; }
.ezld-draghint svg { width: 14px; height: 14px; stroke: #6b7785; }
.ezld-draghint span { font-size: 11.5px; font-weight: 600; color: #6b7785; }

.ezld-textbar { flex: none; padding: 14px 26px; border-top: 1px solid var(--c-line); background: #fff; display: flex; align-items: center; gap: 12px; }
.ezld-textlbl { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--c-muted); text-transform: uppercase; white-space: nowrap; }
.ezld-textbar textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 14px; border: 1.5px solid #d9dee6; border-radius: 9px; font: inherit; font-size: 15px; color: var(--c-ink); outline: none; line-height: 1.4; }
.ezld-textbar textarea:focus { border-color: var(--c-blue); }

/* panel */
.ezld-panel { width: 312px; flex: none; background: #fff; border-left: 1px solid var(--c-line); display: flex; flex-direction: column; min-height: 0; }
.ezld-panelbody { flex: 1; overflow-y: auto; padding: 20px 20px 8px; }
.ezld-h { font-size: 12px; font-weight: 800; letter-spacing: .6px; color: var(--c-navy); text-transform: uppercase; margin-bottom: 12px; }
.ezld-sub { font-size: 12px; font-weight: 700; color: #3a4757; margin: 18px 0 7px; }

.ezld-fontgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ezld-fontgrid button { padding: 11px 6px; border: 1px solid #e2e6ec; background: #fff; border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--c-ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ezld-fontgrid button.is-active { border: 2px solid var(--c-blue); background: #eaf2fb; }
.ezld-viewall { width: 100%; margin-top: 10px; padding: 11px; border: 1.5px solid var(--c-blue); background: #fff; color: var(--c-blue); border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .4px; }

.ezld-bi { display: flex; gap: 10px; margin-top: 16px; }
.ezld-toggle { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid #d9dee6; background: #fff; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--c-ink); }
.ezld-toggle b { font-weight: 800; } .ezld-toggle i { font-style: italic; }
.ezld-toggle input { display: none; }
.ezld-toggle.is-active { border: 2px solid var(--c-blue); background: #eaf2fb; }

.ezld-aligns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ezld-aligns button { display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid #e2e6ec; background: #fff; border-radius: 8px; cursor: pointer; color: var(--c-ink); }
.ezld-aligns button.is-active { border: 2px solid var(--c-blue); background: #eaf2fb; }
.ezld-aligns svg { width: 18px; height: 18px; }

.ezld-slider-row { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: #3a4757; margin: 18px 0 6px; }
.ezld-val { color: var(--c-blue); }
.ezld-wrap input[type="range"] { width: 100%; accent-color: var(--c-blue); }

.ezld-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--c-ink); cursor: pointer; margin: 14px 0 8px; }
.ezld-check input { width: 17px; height: 17px; accent-color: var(--c-blue); }
.ezld-subblock { padding: 4px 0 14px 26px; }
.ezld-swatches { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.ezld-swatches.sm { gap: 6px; margin-bottom: 10px; }
.ezld-swatches button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.ezld-swatches.sm button { width: 22px; height: 22px; border-radius: 5px; }
.ezld-swatches button.is-active { outline: 2px solid var(--c-blue); outline-offset: 1px; }
.ezld-dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.ezld-dirs button { padding: 7px 4px; border: 1px solid #e2e6ec; background: #fff; border-radius: 6px; cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--c-ink); }
.ezld-dirs button.is-active { border: 2px solid var(--c-blue); background: #eaf2fb; }
.ezld-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; font-weight: 700; color: #3a4757; }
.ezld-row select { flex: 1; padding: 7px; border: 1px solid #d9dee6; border-radius: 6px; font: inherit; font-size: 13px; }
.ezld-grad-colors { display: flex; gap: 18px; }
.ezld-grad-colors label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #3a4757; }
.ezld-grad-colors input[type="color"] { width: 34px; height: 28px; border: 1px solid #d9dee6; border-radius: 6px; background: none; cursor: pointer; }

.ezld-custom { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #3a4757; padding: 10px; border: 1px dashed #cfd6df; border-radius: 8px; cursor: pointer; }
.ezld-custom input[type="color"] { width: 36px; height: 30px; border: none; border-radius: 6px; background: none; cursor: pointer; }
.ezld-hex { margin-left: auto; color: var(--c-ink); text-transform: uppercase; font-size: 13px; }

.ezld-sizes { display: flex; gap: 12px; margin-bottom: 8px; }
.ezld-sizes label { flex: 1; font-size: 12px; font-weight: 700; color: #3a4757; display: flex; flex-direction: column; gap: 5px; }
.ezld-sizes input { padding: 9px; border: 1.5px solid #d9dee6; border-radius: 7px; font: inherit; font-size: 14px; }
.ezld-guides { display: flex; justify-content: space-between; font-size: 10.5px; color: #9aa6b4; margin-top: 4px; }

.ezld-surfaces { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.ezld-surfaces button { padding: 10px 6px; border: 1px solid #e2e6ec; background: #fff; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: #3a4757; }
.ezld-surfaces button.is-active { border: 2px solid var(--c-blue); background: #eaf2fb; color: var(--c-navy); }
.ezld-qtyrow { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid #eef1f4; font-size: 13px; font-weight: 700; color: #3a4757; }
.ezld-qty { display: flex; align-items: center; border: 1.5px solid #d9dee6; border-radius: 8px; overflow: hidden; }
.ezld-qty button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none; background: #f4f6f9; font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1; text-align: center; cursor: pointer; color: #3a4757; }
.ezld-qty span { width: 40px; text-align: center; font-weight: 700; font-size: 15px; color: var(--c-ink); }

.ezld-foot { flex: none; border-top: 1px solid var(--c-line); padding: 16px 20px; background: #fafbfc; }
.ezld-pricerow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.ezld-pricerow > span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--c-muted); text-transform: uppercase; }
.ezld-price { font-size: 26px; font-weight: 900; color: var(--c-navy); }
.ezld-add { width: 100%; padding: 14px; background: var(--c-green); border: none; border-radius: 10px; color: #fff; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .5px; cursor: pointer; box-shadow: 0 6px 16px -4px rgba(46,158,68,.5); }
.ezld-add:hover { background: #278a3b; }
.ezld-add:disabled { opacity: .55; cursor: default; }

/* modals */
.ezld-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ezld-modal[hidden] { display: none !important; }
.ezld-sec[hidden] { display: none !important; }
.ezld-subblock[hidden] { display: none !important; }
.ezld-toast[hidden] { display: none !important; }
.ezld-modal-bg { position: absolute; inset: 0; background: rgba(8,18,34,.55); }
.ezld-modal-card { position: relative; width: min(900px,100%); max-height: 88vh; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden; }
.ezld-modal-card.sm { width: min(480px,100%); }
.ezld-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px 0; font-size: 19px; font-weight: 800; color: var(--c-navy); }
.ezld-modal-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 600; color: #9aa6b4; }
.ezld-modal-x { width: 34px; height: 34px; border: none; background: #f4f6f9; border-radius: 8px; cursor: pointer; color: #3a4757; font-size: 17px; line-height: 1; }
.ezld-modal-search { padding: 14px 26px 0; }
.ezld-modal-search input { width: 100%; padding: 13px 16px; border: 1.5px solid #d9dee6; border-radius: 10px; font: inherit; font-size: 14.5px; color: var(--c-ink); outline: none; }
.ezld-modal-cats { display: flex; gap: 4px; padding: 14px 26px 0; border-bottom: 1px solid #eef1f4; overflow-x: auto; }
.ezld-modal-cats button { padding: 8px 14px; background: transparent; border: none; border-bottom: 2px solid transparent; color: #6b7785; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ezld-modal-cats button.is-active { color: var(--c-blue); border-bottom-color: var(--c-blue); font-weight: 700; }
.ezld-modal-grid { flex: 1; overflow-y: auto; padding: 18px 26px 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; align-content: start; }
.ezld-modal-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 12px; border: 1.5px solid #e6e9ee; background: #fff; border-radius: 11px; cursor: pointer; overflow: hidden; min-height: 104px; }
.ezld-modal-grid button.is-active { border: 2px solid var(--c-blue); background: #eef5fd; }
.ezld-loading { grid-column: 1 / -1; text-align: center; padding: 40px; color: #9aa6b4; font-weight: 700; }
.ezld-fontupload { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border: 1.5px dashed #cfd6df; border-radius: 11px; cursor: pointer; color: var(--c-blue); font-weight: 700; font-size: 13.5px; }
.ezld-fontupload input { display: none; }
.ezld-modal-grid .fs { font-size: 34px; line-height: 1; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ezld-modal-grid .fl { font-size: 11.5px; font-weight: 600; color: #7e8a99; }

.ezld-share-body { padding: 14px 24px 24px; }
.ezld-share-body p { font-size: 13.5px; line-height: 1.55; color: var(--c-muted); margin: 6px 0 16px; }
.ezld-share-row { display: flex; gap: 8px; }
.ezld-share-row input { flex: 1; padding: 12px 14px; border: 1.5px solid #d9dee6; border-radius: 9px; font: inherit; font-size: 12.5px; color: #3a4757; background: #f8fafc; outline: none; }
.ezld-copybtn { flex: none; padding: 0 18px; background: var(--c-blue); border: none; border-radius: 9px; color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }

.ezld-toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); background: var(--c-navy); color: #fff; padding: 13px 24px; border-radius: 30px; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.3); z-index: 99999; }

/* narrow (mobile) */
.ezld-wrap[data-narrow="1"] { padding: 0; border-radius: 0; }
.ezld-wrap[data-narrow="1"] .ezld-card { height: var(--ezld-h, 100vh); border-radius: 0; }
.ezld-wrap[data-narrow="1"] .ezld-body { flex-direction: column; }
.ezld-wrap[data-narrow="1"] .ezld-center { flex: 1 1 auto; min-height: 0; }
.ezld-wrap[data-narrow="1"] .ezld-panel { width: 100%; border-left: none; border-top: 1px solid var(--c-line); max-height: 47vh; flex: none; }
.ezld-wrap[data-narrow="1"] .ezld-sharelbl { display: none; }
.ezld-wrap[data-narrow="1"] .ezld-modal-grid { grid-template-columns: 1fr 1fr; }

/* ============================================================
 * Designer page intro (hero + steps + gallery) — sits above editor
 * ============================================================ */
.ezld-intro { font-family: 'Archivo', system-ui, sans-serif; color: #16233a; max-width: 1240px; margin: 0 auto 26px; }
.ezld-intro * { box-sizing: border-box; }

.ezld-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; background: linear-gradient(135deg, #0d2b4e 0%, #114e9e 100%); border-radius: 18px; padding: 40px 44px; overflow: hidden; position: relative; }
.ezld-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 90% 0, rgba(255,255,255,.12), transparent 55%); pointer-events: none; }
.ezld-hero-tx { position: relative; z-index: 2; color: #fff; }
.ezld-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7fc9ff; margin-bottom: 12px; }
.ezld-hero h1 { margin: 0 0 14px; font-size: 40px; line-height: 1.08; font-weight: 900; letter-spacing: -.5px; color: #fff; }
.ezld-hero p { margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: #cfe0f4; font-weight: 500; max-width: 520px; }
.ezld-hero-cta { display: inline-flex; align-items: center; gap: 10px; background: #2e9e44; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 15px 26px; border-radius: 10px; text-decoration: none; box-shadow: 0 8px 20px -6px rgba(46,158,68,.6); transition: .15s; }
.ezld-hero-cta:hover { background: #278a3b; color: #fff; }
.ezld-hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.ezld-hero-trust span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #dbe7f5; }
.ezld-hero-trust svg { width: 18px; height: 18px; color: #7ed957; flex: none; }
.ezld-hero-img { position: relative; z-index: 2; }
.ezld-hero-img img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.55); display: block; }

.ezld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.ezld-step { background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.ezld-step .n { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #eaf2fb; color: #1a5fb4; font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.ezld-step b { display: block; font-size: 15px; color: #0d2b4e; margin-bottom: 4px; }
.ezld-step span { font-size: 13.5px; color: #5a6b7b; font-weight: 500; line-height: 1.5; }

.ezld-gallery { margin: 22px 0 4px; }
.ezld-gallery h2 { text-align: center; font-size: 22px; font-weight: 900; color: #0d2b4e; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .02em; }
.ezld-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ezld-gcard { border-radius: 14px; overflow: hidden; border: 1px solid #e6e9ee; background: #fff; }
.ezld-gcard img { width: 100%; height: 210px; object-fit: cover; display: block; }
.ezld-gcard b { display: block; padding: 14px 18px; font-size: 14px; font-weight: 800; color: #0d2b4e; }
.ezld-gcard b span { display: block; font-weight: 600; font-size: 12.5px; color: #5a6b7b; margin-top: 2px; }

@media (max-width: 900px) {
	.ezld-hero { grid-template-columns: 1fr; padding: 30px 26px; }
	.ezld-hero h1 { font-size: 30px; }
	.ezld-steps, .ezld-gallery-grid { grid-template-columns: 1fr; }
}
