/**
 * TrustLens on the WooCommerce order screen.
 *
 * The order screen is WooCommerce's, not the plugin's, so none of the TrustLens
 * page styles load there. The three panels TrustLens adds — the Customer Trust
 * metabox, the Refund Risk Preview and the dispute indicator — used to each
 * print their own <style> into WooCommerce's markup. They share this sheet
 * instead, which is registered, cached, and reads the token layer like every
 * other TrustLens stylesheet.
 */

/* Customer Trust metabox. */
.wstl-ct{--seg:var(--wstl-neutral);margin:-6px -12px -12px;padding:14px 12px 12px;font-size:var(--wstl-text-base);color:var(--wstl-ink);-webkit-font-smoothing:antialiased}
.wstl-ct--vip{--seg:var(--wstl-success)}.wstl-ct--trusted{--seg:var(--wstl-segment-trusted)}.wstl-ct--normal{--seg:var(--wstl-neutral)}
.wstl-ct--caution{--seg:var(--wstl-warning)}.wstl-ct--risk{--seg:var(--wstl-segment-risk)}.wstl-ct--critical{--seg:var(--wstl-danger)}
.wstl-ct.is-risky{background:color-mix(in srgb,var(--seg) 6%,#fff);border-top:3px solid var(--seg)}
.wstl-ct__top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.wstl-ct__score{line-height:1;font-variant-numeric:tabular-nums}
.wstl-ct__score b{font-size:30px;font-weight:800;color:var(--seg)}
.wstl-ct__score i{font-size:var(--wstl-text-base);font-style:normal;font-weight:600;color:var(--wstl-ink-faint)}
.wstl-ct__track{height:6px;border-radius:999px;background:#eef1f4;margin:11px 0 0;overflow:hidden}
.wstl-ct__track span{display:block;height:100%;border-radius:999px;background:var(--seg)}
.wstl-ct__stats{display:flex;margin:13px 0 0;text-align:center}
.wstl-ct__stats div{flex:1;border-left:1px solid var(--wstl-line-soft)}
.wstl-ct__stats div:first-child{border-left:0}
.wstl-ct__stats b{display:block;font-size:var(--wstl-text-lg);font-weight:700;color:var(--wstl-ink);font-variant-numeric:tabular-nums}
.wstl-ct__stats i{display:block;margin-top:2px;font-size:10px;font-style:normal;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
.wstl-ct__flag{margin:13px 0 0;padding:7px 10px;border-radius:5px;background:color-mix(in srgb,var(--seg) 12%,#fff);color:var(--seg);font-size:var(--wstl-text-sm);font-weight:600}
.wstl-ct__foot{margin:13px 0 0}
.wstl-ct__link{color:var(--wstl-success);font-weight:600;text-decoration:none}
.wstl-ct__link:hover{text-decoration:underline}

/* Refund Risk Preview metabox (Pro). */
.wstl-rd{--risk:#2271b1;margin:-6px -12px -12px;padding:13px 12px;border-top:3px solid var(--risk);font-size:var(--wstl-text-sm)}.wstl-rd--medium{--risk:var(--wstl-warning)}.wstl-rd--high{--risk:var(--wstl-segment-risk)}.wstl-rd--critical{--risk:#b32d2e}.wstl-rd__head{display:flex;align-items:center;justify-content:space-between}.wstl-rd__score{font-size:25px;font-weight:800;color:var(--risk)}.wstl-rd__decision{margin:8px 0;padding:7px 9px;background:var(--wstl-surface-sunken);border-left:3px solid var(--risk);font-weight:700}.wstl-rd__grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:8px 0}.wstl-rd__grid span{padding:5px;background:var(--wstl-surface-sunken)}.wstl-rd ul{margin:7px 0 10px;padding-left:17px}.wstl-rd__act{border-top:1px solid var(--wstl-line);padding-top:9px;margin-top:9px}.wstl-rd label{display:block;margin:6px 0}.wstl-rd input[type=text],.wstl-rd input[type=number],.wstl-rd select{width:100%}.wstl-rd__status{display:inline-block;padding:3px 7px;border-radius:var(--wstl-radius-card);background:#e9eef4;font-weight:700}.wstl-rd__error{color:#b32d2e;font-weight:600}.wstl-rd__audit{max-height:110px;overflow:auto;color:#646970}.wstl-rd .button{margin:3px 3px 0 0}

/* Dispute indicator under the billing address. */
.wstl-cb{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:10px 12px;border-radius:6px;background:var(--wstl-danger-soft);border:1px solid #f3c2cb;border-left:3px solid var(--wstl-danger)}
.wstl-cb .dashicons{flex:none;margin-top:1px;color:var(--wstl-danger);font-size:18px;width:18px;height:18px}
.wstl-cb__t{display:block;font-size:var(--wstl-text-base);font-weight:700;color:#8a2733;line-height:1.4}
.wstl-cb__m{display:block;margin-top:1px;font-size:var(--wstl-text-sm);color:#9b4751}
