.visitor-modal-open{overflow:hidden}
.visitor-overlay{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:20px;background:rgba(2,15,22,.72);backdrop-filter:blur(6px)}
.visitor-dialog{position:relative;box-sizing:border-box;width:min(580px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;padding:52px 28px 26px;border:1px solid #d7e7eb;border-radius:22px;color:#13343f;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.3)}
.visitor-dialog h2{margin:14px 0 16px;padding-inline-end:22px;font-size:24px;line-height:1.45;overflow-wrap:anywhere}
.visitor-dialog .visitor-modal-close{position:absolute;top:12px;inset-inline-end:12px;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid #cde1e6;border-radius:50%;color:#285965;background:#eef8f9;font:500 26px/1 system-ui;cursor:pointer}
.visitor-test-badge{display:inline-flex;align-items:center;padding:7px 11px;border:1px solid #9ae1da;border-radius:999px;color:#086d70;background:#e9fbf8;font-size:12px;font-weight:700}
.visitor-welcome-message{margin:16px 0 22px;color:#3f5c65;font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.visitor-modal-actions{display:flex;flex-wrap:wrap;gap:10px}
.visitor-primary,.visitor-secondary{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:46px;padding:11px 18px;border:1px solid #087e83;border-radius:12px;font-family:inherit;font-size:14px;font-weight:700;line-height:1.5;text-decoration:none;cursor:pointer}
.visitor-primary{color:#fff;background:linear-gradient(110deg,#0bafa7,#176ee8)}
.visitor-secondary{color:#087e83;background:#eefafa}
.visitor-feedback-intro{margin:0 0 18px;color:#49656d;font-size:14px;line-height:1.8}
.visitor-feedback-form{display:grid;gap:12px}
.visitor-feedback-form label{display:grid;gap:7px;color:#244b57;font-size:13px;font-weight:700}
.visitor-feedback-form input,.visitor-feedback-form select,.visitor-feedback-form textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #bfd7de;border-radius:10px;color:#13343f;background:#fbfdfe;font-family:inherit;font-size:15px;font-weight:400;line-height:1.6}
.visitor-feedback-form textarea{min-height:138px;resize:vertical}
.visitor-feedback-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.visitor-feedback-count{color:#56717b;font-size:12px;direction:ltr;text-align:end}
.visitor-feedback-status{min-height:20px;margin:0;color:#087e55;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.visitor-feedback-status.is-error{color:#b4232c}
.visitor-feedback-form [disabled]{opacity:.65;cursor:wait}
.chat-panel .chat-feedback{box-sizing:border-box;width:100%;min-height:44px;margin:8px 0 0;border:1px solid #119b96;color:#086c71;background:#e9fbf8;font-family:inherit;font-size:13px;font-weight:700;line-height:1.5;cursor:pointer}
.chat-panel .chat-feedback[hidden],.visitor-feedback-form [hidden],.visitor-test-badge[hidden]{display:none!important}
html[data-theme="dark"] .visitor-dialog{border-color:#31545d;color:#effbfc;background:#0d2731}
html[data-theme="dark"] .visitor-dialog .visitor-modal-close{border-color:#42666e;color:#dff9fa;background:#153b47}
html[data-theme="dark"] .visitor-dialog h2{color:#effbfc}
html[data-theme="dark"] .visitor-test-badge{border-color:#26716e;color:#8beade;background:#123e40}
html[data-theme="dark"] .visitor-welcome-message,html[data-theme="dark"] .visitor-feedback-intro{color:#d0e5e9}
html[data-theme="dark"] .visitor-feedback-form label{color:#d0e5e9}
html[data-theme="dark"] .visitor-feedback-form input,html[data-theme="dark"] .visitor-feedback-form select,html[data-theme="dark"] .visitor-feedback-form textarea{border-color:#42666e;color:#effbfc;background:#102e39}
html[data-theme="dark"] .visitor-secondary,html[data-theme="dark"] .chat-panel .chat-feedback{border-color:#279a96;color:#a8f1e9;background:#113b41}
html[data-theme="dark"] .visitor-feedback-count{color:#bdd7dd}
html[data-theme="dark"] .visitor-feedback-status{color:#85ecc5}
html[data-theme="dark"] .visitor-feedback-status.is-error{color:#ffb8ba}
@media(max-width:600px){.visitor-overlay{padding:12px}.visitor-dialog{max-height:calc(100dvh - 24px);padding:48px 18px 20px;border-radius:18px}.visitor-dialog h2{font-size:21px;padding-inline-end:24px}.visitor-welcome-message{font-size:14px}.visitor-modal-actions>*{flex:1 1 140px}.visitor-feedback-contact{grid-template-columns:1fr}.visitor-feedback-form input,.visitor-feedback-form select,.visitor-feedback-form textarea{font-size:16px}}

.visitor-dialog :focus-visible{outline:3px solid #159cb8;outline-offset:3px}
