/* Native V2 Template library (js/template-library.js). Prefix tl-. Xpert Group FZE-LLC. */
.tl { position: absolute; inset: 0; overflow: auto; background: var(--wk-bg, #f4faf5); font-family: var(--wk-font, Poppins, sans-serif); color: var(--wk-ink, #2d2c2c); }
.tl.off { visibility: hidden; pointer-events: none; }
.tl-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 24px 48px; }
.tl-hero, .mch .tl-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 26px 28px; border-radius: 22px; color: #fff; background: radial-gradient(520px 240px at 100% 0, rgba(150, 201, 62, .4), transparent 60%), linear-gradient(140deg, #133f22, #1f6f35 70%, #2a9245); }
.tl-eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; color: #c9ec8f; }
.tl-hero h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.tl-lead { margin: 6px 0 0; max-width: 640px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.tl-searchwrap { display: flex; align-items: center; gap: 8px; min-width: 300px; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; color: #6b7a70; }
.tl-searchwrap .wk-i { width: 18px; height: 18px; flex: none; }
.tl-search.wk-field { border: 0 !important; outline: 0; box-shadow: none !important; padding: 0; height: 40px; width: 100%; background: none; }
.tl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; margin-top: 22px; align-items: start; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tl-ind { display: grid; gap: 8px; justify-items: start; text-align: left; padding: 20px; border: 1px solid var(--wk-border, #e7eee8); border-radius: 18px; background: #fff; font: inherit; color: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tl-ind:hover, .tl-ind:focus-visible { transform: translateY(-3px); border-color: #b9e0c3; box-shadow: 0 12px 26px rgba(31, 60, 38, .1); }
.tl-ind b { font-size: 16px; }
.tl-inddes { font-size: 13px; line-height: 1.5; color: #6b7a70; }
.tl-indart { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.tl-indart.sm { width: 46px; height: 46px; border-radius: 14px; }
.tl-art { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tl-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--wk-green, #2a9245); }
.tl-more .wk-i { width: 16px; height: 16px; }
.tl-indhead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.tl-indhead h2 { margin: 0; font-size: 20px; } .tl-indhead p { margin: 2px 0 0; font-size: 13px; color: #6b7a70; }
.tl-back { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; padding: 8px 12px; border: 1px solid var(--wk-border, #e7eee8); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--wk-green, #2a9245); cursor: pointer; }
.tl-back .wk-i { width: 16px; height: 16px; }
.tl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tl-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--wk-border, #e7eee8); border-radius: 18px; background: #fff; }
.tl-cardtop { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tl-card h3 { margin: 0; font-size: 15.5px; } .tl-use { margin: 2px 0 0; font-size: 12.5px; color: #6b7a70; }
.tl-cat { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; }
.tl-utility { background: #e4f4e8; color: #1f6f35; } .tl-marketing { background: #fff1dc; color: #9a5b00; }
.tl-phone { flex: 1; padding: 14px; border-radius: 14px; background: #e9efe6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23d3dccf'/%3E%3C/svg%3E"); }
.tl-bubble { display: grid; gap: 4px; max-width: 100%; padding: 10px 12px 8px; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); font-size: 13px; line-height: 1.5; }
.tl-head { font-size: 13.5px; } .tl-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; } .tl-foot { color: #8a958d; font-size: 11.5px; }
.tl-btns { display: grid; gap: 4px; margin-top: 4px; }
.tl-qbtn { display: block; padding: 7px; border-radius: 8px; background: #fff; text-align: center; font-size: 12.5px; font-weight: 600; color: #0b8fd6; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.tl-cardfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-have { font-size: 12px; color: #1f6f35; font-weight: 600; }
.tl-use-btn { display: inline-flex; align-items: center; gap: 6px; }
.tl-count { margin: 0 0 12px; font-size: 13.5px; color: #6b7a70; }
.tl-tips { position: sticky; top: 16px; display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--wk-border, #e7eee8); font-size: 13px; line-height: 1.55; }
.tl-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: #4f5d54; }
.tl-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdf4e1; color: #8a5a00; }
/* editor */
.tl-dialog { width: min(980px, 96vw); }
.tl-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
.tl-form { display: grid; gap: 12px; }
.tl-row { display: grid; grid-template-columns: 1fr 200px; gap: 12px; }
.tl-f { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.tl-f small { font-weight: 400; color: #6b7a70; font-size: 11.5px; }
.tl-f textarea { resize: vertical; min-height: 110px; }
.tl-catline { margin: 0; font-size: 12.5px; color: #6b7a70; display: flex; align-items: center; gap: 6px; }
.tl-samples { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #f4faf5; }
.tl-samples > b { font-size: 12.5px; }
.tl-sample { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; }
.tl-sample code { font-size: 12.5px; color: #1f6f35; font-weight: 700; }
.tl-btnnote { margin: 0; font-size: 12.5px; color: #6b7a70; }
.tl-errs { margin: 0; padding-left: 18px; color: #c93c3c; font-size: 12.5px; display: grid; gap: 3px; }
.tl-errs:empty { display: none; }
.tl-submit { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.tl-submit:disabled { opacity: .55; cursor: not-allowed; }
.tl-prevcol { display: grid; gap: 8px; align-content: start; } .tl-prevcol > b { font-size: 13px; }
@media (max-width: 980px) { .tl-layout { grid-template-columns: minmax(0, 1fr); } .tl-tips { position: static; } .tl-edit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .tl-wrap { padding: 14px 10px 32px; } .tl-hero { padding: 20px 18px; } .tl-hero h1 { font-size: 21px; } .tl-searchwrap { min-width: 0; width: 100%; } .tl-cards { grid-template-columns: minmax(0, 1fr); } .tl-row { grid-template-columns: 1fr; } }
.tl-dialog .wk-field, .tl .tl-search.wk-field ~ x { box-sizing: border-box; }
.tl-dialog input.wk-field, .tl-dialog select.wk-field, .tl-dialog textarea.wk-field { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--wk-border-strong, #d3e2d5); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 400; color: var(--wk-ink, #2d2c2c); }
.tl-dialog textarea.wk-field { line-height: 1.55; }
.tl-dialog .wk-field:focus { outline: 2px solid var(--wk-green, #2a9245); outline-offset: 0; border-color: transparent; }
.tl .tl-use-btn, .tl-dialog .tl-submit { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--wk-green, #2a9245); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 14px rgba(42, 146, 69, .22); }
.tl .tl-use-btn:hover, .tl-dialog .tl-submit:not(:disabled):hover { background: #23803b; }
.tl .tl-use-btn .wk-i, .tl-dialog .tl-submit .wk-i { width: 18px; height: 18px; stroke: currentColor; }

/* Tabs: message templates | chatbot templates */
.tl-tabs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tl-tab .wk-i { width: 18px; height: 18px; }
.tl-tab:hover { background: rgba(255, 255, 255, .16); }
.tl-tab.on { background: #fff; color: var(--wk-green-dark, #1f6f36); border-color: #fff; }
.tl-tab:focus-visible { outline: 2px solid #c9ec8f; outline-offset: 2px; }
.tl-tabn { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; text-align: center; }
.tl-tab.on .tl-tabn { background: #e8f6ea; }
/* Chatbot cards and dialog */
.tl-cat.tl-bot { background: #eef2ff; color: #4338ca; }
.tl-listbtn { border-style: dashed; }
.tl-goal, .tl-goalline { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 12.5px; line-height: 1.5; color: #35553f; }
.tl-goal .wk-i, .tl-goalline .wk-i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--wk-green, #2a9245); }
.tl-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--wk-green, #2a9245); cursor: pointer; }
.tl-link .wk-i { width: 16px; height: 16px; }
.tl-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #f3f8f4; font-size: 12.5px; line-height: 1.5; color: #4b5d50; }
.tl-botedit .tl-prevcol { max-height: 62vh; overflow: auto; }
.tl-steps { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: st; }
.tl-step { position: relative; padding: 12px 12px 12px 40px; border: 1px solid var(--wk-border, #e7eee8); border-radius: 12px; background: #fff; counter-increment: st; }
.tl-step::before { content: counter(st); position: absolute; left: 10px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: #e8f6ea; color: #1f6f36; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tl-steptype { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .3px; background: #f1f5f9; color: #475569; }
.tl-st-buttons { background: #fff4e5; color: #b45309; } .tl-st-list { background: #eef2ff; color: #4338ca; } .tl-st-input { background: #e0f2fe; color: #0369a1; }
.tl-steptext { margin: 6px 0 0; white-space: pre-line; font-size: 13px; line-height: 1.5; }
.tl-stepopts { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: #4b5d50; }
.tl-stepopts b { color: #1f2d24; }
.tl-botedit .tl-form { align-content: start; align-self: start; }
.tl-botedit .tl-submit { justify-self: start; }
