/* TiS Form Builder - shop styles (scoped to .tisf / .tisf-wrap) */
.tisf-wrap{--tisf-accent:#c8102e;--tisf-border:#d5dbe3;--tisf-text:#222;--tisf-muted:#6b7480;--tisf-bg:#fff;max-width:900px;margin:0 0 24px;color:var(--tisf-text);font-size:15px}
.tisf-intro{margin-bottom:14px}
.tisf-grid{display:flex;flex-wrap:wrap;margin:0 -8px}
.tisf-field{box-sizing:border-box;padding:0 8px;margin-bottom:16px;width:100%}
.tisf-field.tisf-w-half{width:50%}
.tisf-field.tisf-w-third{width:33.333%}
@media (max-width:640px){.tisf-field.tisf-w-half,.tisf-field.tisf-w-third{width:100%}}
.tisf-field.tisf-hidden{display:none!important}
.tisf-label{display:block;font-weight:600;margin-bottom:6px}
.tisf-star{color:var(--tisf-accent)}
.tisf input[type=text],.tisf input[type=email],.tisf input[type=tel],.tisf input[type=url],.tisf input[type=date],.tisf input[type=number],.tisf select,.tisf textarea{display:block;width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--tisf-border);border-radius:6px;background:var(--tisf-bg);font:inherit;color:inherit;line-height:1.4;min-height:44px}
.tisf textarea{min-height:120px;resize:vertical}
.tisf input:focus,.tisf select:focus,.tisf textarea:focus{outline:none;border-color:var(--tisf-accent);box-shadow:0 0 0 3px rgba(200,16,46,.12)}
.tisf input[type=file]{display:block;width:100%;padding:8px;border:1px dashed var(--tisf-border);border-radius:6px;background:#fafbfc}
.tisf-choices{display:flex;flex-wrap:wrap;gap:6px 18px}
.tisf-choice{display:inline-flex;align-items:flex-start;gap:8px;font-weight:normal;cursor:pointer;margin:0}
.tisf-choice input{margin-top:3px;width:18px;height:18px;flex:none;accent-color:var(--tisf-accent)}
.tisf-consent-label{display:flex}
.tisf-help{color:var(--tisf-muted);font-size:13px;margin-top:5px}
.tisf-heading{font-size:18px;font-weight:700;margin:10px 0 2px;padding-bottom:6px;border-bottom:2px solid var(--tisf-accent)}
.tisf-html{line-height:1.5;background:#f7f8fa;border-left:3px solid var(--tisf-border);padding:10px 14px;border-radius:4px;white-space:pre-line}
.tisf-step-title{font-size:20px;margin:0 0 14px}
.tisf-sig{border:1px solid var(--tisf-border);border-radius:6px;background:#fff;max-width:600px}
.tisf-sig canvas{display:block;width:100%;height:180px;touch-action:none;cursor:crosshair;border-bottom:1px dashed var(--tisf-border)}
.tisf-sig-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;font-size:13px;color:var(--tisf-muted)}
.tisf-sig-clear{background:none;border:1px solid var(--tisf-border);border-radius:4px;padding:3px 10px;cursor:pointer;font-size:13px}
.tisf-nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.tisf-btn{display:inline-block;background:var(--tisf-accent);color:#fff;border:0;border-radius:6px;padding:12px 26px;font-weight:700;font-size:15px;cursor:pointer;min-height:46px}
.tisf-btn:hover{filter:brightness(.92)}
.tisf-btn[disabled]{opacity:.6;cursor:wait}
.tisf-btn-light{background:#eef0f3;color:#333}
.tisf-progress{height:6px;background:#eef0f3;border-radius:3px;overflow:hidden;margin-bottom:6px}
.tisf-progress-bar{height:100%;width:0;background:var(--tisf-accent);transition:width .25s}
.tisf-stepinfo{color:var(--tisf-muted);font-size:13px;margin-bottom:14px}
.tisf-invalid input,.tisf-invalid select,.tisf-invalid textarea,input.tisf-invalid,select.tisf-invalid,textarea.tisf-invalid{border-color:#d93025!important}
.tisf-invalid .tisf-sig{border-color:#d93025}
.tisf-error{color:#d93025;font-size:13px;margin-top:5px}
.tisf-msg{padding:14px 16px;border-radius:6px;margin-bottom:16px;font-weight:600}
.tisf-msg.tisf-ok{background:#e7f6ec;color:#1e6b34;border:1px solid #b7e0c3}
.tisf-msg.tisf-err{background:#fdecea;color:#a1271b;border:1px solid #f3c1bb}
