/* ทนายโซเชียล legal calculators */
.tnst{--n:#13254a;--g:#c9a24a;--soft:#f4f6fa;color:var(--n);font-size:16px;line-height:1.55;margin:20px 0}
.tnst *{box-sizing:border-box}
.tnst-card{background:#fff;border:1px solid #e3e6ec;border-top:5px solid var(--g);border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(19,37,74,.08)}
.tnst-h{font-size:21px;font-weight:700;margin:0 0 12px}
.tnst-h2{font-size:18px;font-weight:700;margin:0 0 10px}
.tnst-f{display:block;margin:0 0 14px;font-weight:600;font-size:15.5px;border:0;padding:0}
.tnst-f legend{font-weight:600;margin-bottom:6px;padding:0}
.tnst-f input[type=date],.tnst-f input[type=text],.tnst-f select{display:block;width:100%;margin-top:6px;padding:12px 12px;border:1px solid #cfd6e2;border-radius:10px;font:inherit;font-weight:400;background:#fff;color:var(--n);min-height:48px}
.tnst-f select{appearance:auto}
.tnst-be{display:block;margin-top:4px;color:#9a7424;font-weight:600;font-size:14px;min-height:1em}
.tnst-hint{display:block;margin-top:6px;color:#5a6478;font-weight:400;font-size:14px}
.tnst-r{display:block;margin:8px 0;font-weight:400}
.tnst-r small{display:block;margin-left:24px;color:#5a6478}
.tnst-own{display:inline-block!important;width:90px!important;min-height:40px!important;margin:0 6px!important;padding:6px 10px!important}
.tnst-more{margin:4px 0 14px;background:var(--soft);border-radius:10px;padding:10px 12px}
.tnst-more summary{cursor:pointer;font-weight:600;font-size:15px}
.tnst-more .tnst-f{margin-top:10px}
.tnst-go{display:block;width:100%;background:var(--n);color:#fff;border:0;border-radius:12px;padding:14px;font:inherit;font-size:17px;font-weight:700;cursor:pointer}
.tnst-out:empty{display:none}
.tnst-out{margin-top:16px}
.tnst-err{color:#b4372d;font-weight:600;margin:0}
.tnst-res{background:var(--soft);border-radius:14px;padding:16px}
.tnst-k{margin:0;color:#5a6478;font-size:15px}
.tnst-big{margin:2px 0 8px;font-size:24px;font-weight:700;line-height:1.3}
.tnst-ok{margin:0 0 10px;color:#1e6b3a}
.tnst-bad{margin:0 0 10px;color:#b4372d}
.tnst-why{margin:0 0 10px;padding-left:20px;font-size:15px}
.tnst-why li{margin:4px 0}
.tnst-tip{margin:0 0 12px;background:#fff8e6;border-left:4px solid var(--g);padding:8px 12px;border-radius:8px;font-size:15px}
.tnst-cta{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.tnst-btn{flex:1 1 220px;display:block;text-align:center;background:var(--g);color:var(--n)!important;text-decoration:none!important;font-weight:700;border-radius:10px;padding:12px}
.tnst-btn.tnst-line{background:#06c755;color:#fff!important}
.tnst-copy{margin-top:10px;background:none;border:1px solid #cfd6e2;color:var(--n);border-radius:10px;padding:9px 14px;font:inherit;font-size:15px;cursor:pointer}
.tnst-ref{margin-top:22px}
.tnst-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tnst table{width:100%;border-collapse:collapse;font-size:14.5px;margin:6px 0 10px;background:#fff}
.tnst th,.tnst td{border:1px solid #e3e6ec;padding:8px 10px;text-align:left;vertical-align:top}
.tnst th{background:var(--n);color:#fff;font-weight:600}
.tnst-ref table{min-width:560px}
.tnst-list{padding-left:20px;margin:0 0 10px}
.tnst-list li{margin:6px 0}
.tnst-small{font-size:13.5px;color:#5a6478;margin:6px 0}
@media print{.tnst-go,.tnst-copy,.tnst-cta{display:none}}
.tnst-r{display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:4px 8px}
.tnst-r input[type=radio],.tnst-r input[type=checkbox]{display:inline-block!important;width:20px!important;height:20px!important;min-height:0!important;margin:3px 0 0!important;flex:0 0 20px;accent-color:#13254a}
.tnst-r small{flex:1 1 100%;margin-left:28px}
.tnst-r .tnst-own{flex:0 0 90px}
.tnst-r > span{flex:1 1 0;min-width:0}
.tnst-r > span.tnst-nw{flex:0 0 auto;white-space:nowrap;margin-left:28px}
.tnst-r > span.tnst-nw .tnst-own{margin:0 6px 0 0!important}
