/* CodeSignCert chat widget */
.cscbot { --cscbot-primary: #0d6efd; --cscbot-bg: #fff; --cscbot-muted: #6c757d; --cscbot-bot: #f1f4f9; --cscbot-border: #dee2e6;
  position: fixed; right: 20px; bottom: 20px; z-index: 1080; font-family: Inter, system-ui, sans-serif; font-size: 14px; }
.cscbot-launcher { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--cscbot-primary); color: #fff;
  box-shadow: 0 6px 20px rgba(13, 110, 253, .35); display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.cscbot-launcher:focus-visible { outline: 3px solid #86b7fe; outline-offset: 2px; }
.cscbot.is-open .cscbot-launcher { display: none; }
.cscbot-panel { width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 40px); background: var(--cscbot-bg);
  border: 1px solid var(--cscbot-border); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; overflow: hidden; }
.cscbot-panel[hidden] { display: none; }
.cscbot-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--cscbot-primary); color: #fff; }
.cscbot-header small { display: block; opacity: .85; font-size: 12px; }
.cscbot-header-actions button { background: transparent; border: 0; color: #fff; font-size: 20px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.cscbot-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cscbot-msg { display: flex; flex-direction: column; max-width: 90%; }
.cscbot-msg-user { align-self: flex-end; align-items: flex-end; }
.cscbot-msg-bot { align-self: flex-start; }
.cscbot-bubble { padding: 9px 12px; border-radius: 12px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.cscbot-msg-user .cscbot-bubble { background: var(--cscbot-primary); color: #fff; border-bottom-right-radius: 4px; }
.cscbot-msg-bot .cscbot-bubble { background: var(--cscbot-bot); color: #212529; border-bottom-left-radius: 4px; }
.cscbot-bubble p { margin: 0; }
.cscbot-steps { margin: 6px 0 0; padding-left: 18px; }
.cscbot-steps li { margin-bottom: 4px; }
.cscbot-links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.cscbot-link { color: var(--cscbot-primary); font-weight: 600; text-decoration: underline; }
.cscbot-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cscbot-chip { border: 1px solid var(--cscbot-primary); background: #fff; color: var(--cscbot-primary); border-radius: 16px; padding: 5px 11px;
  font-size: 13px; cursor: pointer; text-align: left; }
.cscbot-chip:hover, .cscbot-chip:focus-visible { background: var(--cscbot-primary); color: #fff; }
.cscbot-typing .cscbot-bubble { color: var(--cscbot-muted); letter-spacing: 2px; }
.cscbot-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--cscbot-border); }
.cscbot-input { flex: 1; min-width: 0; border: 1px solid var(--cscbot-border); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.cscbot-input:focus { outline: 2px solid #86b7fe; border-color: #86b7fe; }
.cscbot-send { border: 0; background: var(--cscbot-primary); color: #fff; border-radius: 8px; padding: 0 14px; font-weight: 600; cursor: pointer; }
.cscbot-send:disabled { opacity: .6; cursor: default; }
.cscbot-note { margin: 0; padding: 0 12px 8px; font-size: 11px; color: var(--cscbot-muted); }
@media (max-width: 480px) {
  .cscbot { right: 12px; bottom: 12px; }
  .cscbot.is-open { left: 12px; }
  .cscbot-panel { width: 100%; height: calc(100vh - 24px); }
}
