/* Existing editor layout retained; controls and scroll are scoped to text fields. */
.visual-builder-header{position:sticky;top:0;z-index:5;flex-shrink:0}.visual-builder-workspace{min-height:0}.visual-inspector{overflow-y:auto;max-height:calc(100svh - 90px)}.inspector-controls [hidden]{display:none!important}.field-permissions{border:1px solid #e7ded6;border-radius:8px;padding:10px;min-width:0}.field-permissions legend{font-size:12px;font-weight:600}.field-permissions>div{display:flex;flex-wrap:wrap;gap:7px;max-height:160px;overflow:auto}.field-permissions label{display:flex!important;flex-direction:row!important;align-items:center;gap:5px;font-size:11px}.field-permissions input[type=checkbox]{width:15px;height:15px;margin:0}.field-permissions button{padding:5px 8px;border:1px solid #e2d9d0;border-radius:6px;background:white;font:inherit;font-size:11px}.field-permissions input[type=color]{width:38px;margin-top:8px}.text-field-resize{position:absolute;right:0;bottom:0;width:14px;height:14px;padding:0;border:1px solid white;background:#970c28;cursor:nwse-resize;touch-action:none}.visual-field{touch-action:none}.customer-field-control>label{display:block}.customer-field-control select{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #ded5ce;border-radius:8px;padding:8px;background:white;font:inherit}.customer-field-control>div>span,.customer-field-control>label>span{font-size:12px}.customer-color-swatches{display:flex;gap:7px;flex-wrap:wrap;margin-block:8px}.customer-field-control{margin-bottom:20px}#customerFieldLayer{pointer-events:none;user-select:none}.customer-render-field{pointer-events:none}#addTextField{width:100%;padding:12px;font:inherit}

/* Track is inset by the thumb radius: its visible ends coincide with thumb centers. */
.customer-size-control input[type="range"]{appearance:none;-webkit-appearance:none;box-sizing:border-box;padding:0!important;border:0!important;margin-inline:0;height:20px;border-radius:0;background:transparent;box-shadow:none!important;--size-progress:0%;--size-direction:to right;cursor:pointer}
[dir="rtl"] .customer-size-control input[type="range"]{--size-direction:to left}
.customer-size-control input[type="range"]::-webkit-slider-runnable-track{height:6px;border:0;border-radius:999px;background:linear-gradient(var(--size-direction),var(--red,#ac0d1b) var(--size-progress),#d9d2ca var(--size-progress));margin:0;background-size:calc(100% - 14px) 6px;background-position:center;background-repeat:no-repeat}
.customer-size-control input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border:0;border-radius:50%;background:var(--red,#ac0d1b);margin-top:-4px;box-shadow:none}
.customer-size-control input[type="range"]::-moz-range-track{height:6px;border:0;border-radius:999px;background:#d9d2ca}
.customer-size-control input[type="range"]::-moz-range-progress{height:6px;background:var(--red,#ac0d1b);border-radius:999px}
.customer-size-control input[type="range"]::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--red,#ac0d1b)}
