.wctpl-panel{border:1px solid #e5e5e5;padding:12px;border-radius:8px;margin:16px 0;background:#fafafa}
.wctpl-row{display:flex;gap:16px;align-items:center;margin-bottom:8px}
.wctpl-radio{display:flex;align-items:center;gap:6px;font-weight:600;cursor:pointer}
.wctpl-fields{display:none}
.wctpl-panel.is-on .wctpl-fields{display:block !important}
.wctpl-label{font-weight:700;margin-bottom:6px}
.wctpl-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.wctpl-font{border:1px solid #ddd;background:#fff;padding:8px;border-radius:8px;cursor:pointer}
.wctpl-font.is-active{outline:2px solid #333}
.wctpl-text input{width:100%;padding:8px;border:1px solid #ddd;border-radius:8px}
.wctpl-counter{display:block;margin-top:4px;color:#666}
.wctpl-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.wctpl-swatch{border:1px solid #ddd;background:#fff;border-radius:8px;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.wctpl-swatch span{display:block;width:28px;height:28px;border-radius:50%}
.wctpl-swatch.is-active{outline:2px solid #333}
#wctpl-preview{pointer-events:none}
.wctpl-preview-text{mix-blend-mode:normal}

/* Fallback: if theme overwrites display, force visible when .is-on */
#wctpl-panel.is-on .wctpl-fields{display:block !important;visibility:visible;opacity:1}

/* v1.4.0 UI tuning */
#wctpl-panel{font-family:inherit}
#wctpl-panel .wctpl-fields{gap:18px}
#wctpl-panel .wctpl-label,
#wctpl-panel .wctpl-text label{font-size:15px;font-weight:600;margin-bottom:8px}
#wctpl-panel .wctpl-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
#wctpl-panel .wctpl-font{padding:10px 12px;border-radius:10px;border:1px solid #e5e5e5;background:#fff;cursor:pointer;font-family:inherit;font-size:14px;line-height:1.1;transition:opacity .15s ease, box-shadow .15s ease, transform .02s}
#wctpl-panel .wctpl-font:hover{opacity:.85}
#wctpl-panel .wctpl-font.is-active{box-shadow:0 0 0 2px rgba(0,0,0,.08) inset;opacity:.75}
#wctpl-panel .wctpl-text input{height:44px;font-size:16px;border-radius:10px}
#wctpl-panel .wctpl-counter{margin-top:6px;display:block;font-size:12px;opacity:.75}
#wctpl-panel .wctpl-swatches{display:flex;flex-wrap:wrap;gap:14px}
#wctpl-panel .wctpl-swatch{width:44px;height:44px;border-radius:50%;border:1px solid #e5e5e5;background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .15s ease, box-shadow .15s ease}
#wctpl-panel .wctpl-swatch span{display:block;width:26px;height:26px;border-radius:50%}
#wctpl-panel .wctpl-swatch:hover{opacity:.85}
#wctpl-panel .wctpl-swatch.is-active{box-shadow:0 0 0 3px rgba(0,0,0,.08) inset;opacity:.75}
/* bigger spacing between sections */
#wctpl-panel .wctpl-fonts, #wctpl-panel .wctpl-text, #wctpl-panel .wctpl-colors{margin-top:16px}
/* preview visibility */
#wctpl-preview{position:absolute;z-index:3;opacity:0;transition:opacity .15s ease}
#wctpl-preview.is-visible{opacity:1}

/* v1.4.1 preview container safety */
.woocommerce-product-gallery__image a{position:relative}
#wctpl-preview{pointer-events:none}
