/* Configurator editor styles (layout shell lives in the theme's components.css) */
.lp-cfg-poster { position: relative; width: min(100%, 380px); max-height: 100%; aspect-ratio: 1 / 1.414; background: #fff; box-shadow: 0 40px 80px rgba(28, 27, 25, .18), 0 0 0 1px rgba(0, 0, 0, .06); overflow: hidden; transition: background .25s; outline: none; user-select: none; }
.lp-cfg-poster.is-landscape { aspect-ratio: 1.414 / 1; width: min(100%, 540px); }
.lp-cfg-poster.is-empty::after { content: attr(data-empty); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(0, 0, 0, .35); font-size: 15px; padding: 24px; pointer-events: none; white-space: pre-line; }
.lp-el { position: absolute; box-sizing: border-box; cursor: move; outline: 2px solid transparent; outline-offset: 4px; touch-action: none; z-index: 1; }
.lp-el.is-selected { outline-color: #e2432b; z-index: 5; }
.lp-el__text { line-height: .95; white-space: pre-wrap; overflow-wrap: normal; word-break: normal; outline: none; min-height: 1em; }
.lp-el.is-editing { cursor: text; }
.lp-el.is-editing .lp-el__text { user-select: text; cursor: text; }
.lp-el__img { position: relative; width: 100%; background: rgba(0, 0, 0, .06); overflow: hidden; display: grid; place-items: center; }
.lp-el__img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.lp-el__img .lp-el__ph { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 12px; color: rgba(0, 0, 0, .45); text-align: center; padding: 8px; pointer-events: none; }
.lp-el__img.is-light .lp-el__ph { color: rgba(255, 255, 255, .7); }
.lp-el__hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 5px 10px; background: rgba(28, 27, 25, .85); color: #fbfaf7; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; pointer-events: none; font-family: 'Instrument Sans', system-ui, sans-serif; }
.lp-el__remove { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; background: #1c1b19; color: #fbfaf7; display: grid; place-items: center; font-size: 14px; line-height: 1; z-index: 7; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); cursor: pointer; }
.lp-el__remove:hover { background: #e2432b; }
.lp-el__handle { position: absolute; width: 24px; height: 24px; z-index: 6; }
.lp-el__handle::after { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; background: #fff; border: 2px solid #e2432b; border-radius: 2px; }
.lp-el__handle--tl { left: -12px; top: -12px; cursor: nwse-resize; }
.lp-el__handle--tr { right: -12px; top: -12px; cursor: nesw-resize; }
.lp-el__handle--bl { left: -12px; bottom: -12px; cursor: nesw-resize; }
.lp-el__handle--br { right: -12px; bottom: -12px; cursor: nwse-resize; }

/* Panel widgets */
.lp-cfg-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lp-cfg-preset { display: flex; flex-direction: column; gap: 6px; }
.lp-cfg-preset__thumb { width: 100%; aspect-ratio: 1.414 / 1; border: 1.5px solid rgba(0, 0, 0, .1); outline: 2px solid transparent; outline-offset: 2px; padding: 8px; display: flex; align-items: flex-end; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: -.02em; overflow: hidden; box-sizing: border-box; }
.lp-cfg-preset.is-active .lp-cfg-preset__thumb { outline-color: #1c1b19; }
.lp-cfg-preset__label { font-size: 12px; color: #77736d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-cfg-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lp-cfg-row-head__btns { display: flex; gap: 6px; }
.lp-cfg-row-head__btns .lp-chip { padding: 7px 12px; font-weight: 600; border-color: #1c1b19; }
.lp-cfg-row-head__btns .lp-chip:hover { background: #1c1b19; color: #fbfaf7; }
.lp-cfg-els { display: flex; flex-direction: column; border-top: 1px solid rgba(0, 0, 0, .12); }
.lp-cfg-el-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.lp-cfg-el-row.is-active { background: #fff; }
.lp-cfg-el-row__main { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 8px; min-width: 0; }
.lp-cfg-el-row__kind { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #77736d; width: 38px; flex: none; }
.lp-cfg-el-row__preview { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-cfg-el-row__x { padding: 8px 10px; font-size: 18px; line-height: 1; color: #77736d; }
.lp-cfg-el-row__x:hover { color: #e2432b; }
.lp-cfg-editor { margin: 24px 36px 0; padding: 20px; background: #fff; border: 1.5px solid #1c1b19; border-radius: 4px; display: flex; flex-direction: column; gap: 18px; }
.lp-cfg-editor__head { display: flex; justify-content: space-between; align-items: center; }
.lp-cfg-editor textarea.lp-input { padding: 12px 14px; background: #fbfaf7; font-size: 16px; line-height: 1.4; resize: none; width: 100%; }
.lp-cfg-editor .lp-field + .lp-field, .lp-cfg-editor [data-editor-text] > * + * { margin-top: 18px; }
.lp-cfg-range-label { display: flex; justify-content: space-between; }
.lp-cfg-editor input[type="range"] { width: 100%; accent-color: #1c1b19; }
.lp-cfg-fonts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lp-cfg-font { padding: 12px 8px 10px; border: 1.5px solid rgba(0, 0, 0, .18); border-radius: 4px; display: flex; flex-direction: column; gap: 6px; transition: all .15s; }
.lp-cfg-font:hover { border-color: #1c1b19; }
.lp-cfg-font.is-active { border-color: #1c1b19; background: #fbfaf7; }
.lp-cfg-font__sample { font-size: 22px; line-height: 1; }
.lp-cfg-font__label { font-size: 11px; color: #77736d; }
.lp-cfg-swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 2px; }
.lp-cfg-swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.lp-cfg-swatches--lg { gap: 10px; }
.lp-cfg-swatches--lg .lp-cfg-swatch { width: 36px; height: 36px; outline-offset: 3px; }
.lp-cfg-swatch.is-active { outline-color: #1c1b19; }
.lp-cfg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-cfg-iconbtns { display: flex; gap: 6px; }
.lp-cfg-iconbtns button { width: 34px; height: 34px; border-radius: 4px; border: 1.5px solid rgba(0, 0, 0, .18); display: grid; place-items: center; font-size: 15px; color: #1c1b19; background: transparent; }
.lp-cfg-iconbtns button.is-active { background: #1c1b19; color: #fbfaf7; border-color: #1c1b19; }
.lp-cfg-align { display: flex; flex-direction: column; gap: 3px; width: 14px; }
.lp-cfg-align i { display: block; height: 2px; background: currentColor; }
.lp-cfg-align i:nth-child(1) { width: 14px; } .lp-cfg-align i:nth-child(2) { width: 9px; } .lp-cfg-align i:nth-child(3) { width: 12px; }
.lp-cfg-align--center { align-items: center; } .lp-cfg-align--right { align-items: flex-end; }
.lp-cfg-kinds { display: flex; flex-direction: column; gap: 8px; }
.lp-cfg-kinds .lp-radio-card__price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.lp-cfg-designs { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-cfg-designs .lp-pill { padding: 6px 10px; }
.lp-size-list__row--radio { width: 100%; }
.lp-hint { font-size: 13px; color: #e2432b; margin-top: 10px; }
@media (max-width: 860px) {
	.lp-cfg-editor { margin: 24px 20px 0; }
	.lp-cfg-presets { grid-template-columns: repeat(4, 1fr); }
}

/* Icons and cut-outs as editor elements */
.lp-el__icon { width: 100%; }
.lp-el__icon svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.lp-el__img.is-cutout { background: transparent; }
.lp-el__img.is-cutout img { object-fit: contain; }
.lp-cfg-editor textarea.lp-input:disabled { opacity: .5; cursor: not-allowed; }
[data-ph-block] .lp-input { font-size: 17px; font-weight: 600; }
