.hcrm-widget { position: relative; z-index: 1; box-sizing: border-box; width: 100%; max-width: 100%; margin: 1.25rem 0; border: 1px solid #dce4ef; border-radius: 20px; background: #fff; box-shadow: 0 12px 35px #233c6410; overflow: hidden; }
.hcrm-widget--left { float: left; width: min(var(--widget-width,420px), 48%); margin: .3rem 1.75rem 1.25rem 0; }
.hcrm-widget--right { float: right; width: min(var(--widget-width,420px), 48%); margin: .3rem 0 1.25rem 1.75rem; }
.hcrm-widget [hidden] { display: none !important; }
.hcrm-widget-chat { display: block; width: 100%; height: 250px; border: 0; background: #fff; }
.hcrm-widget-dialog { width: min(780px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #dce4ef; border-radius: 20px; color: #23324d; background: #fff; box-shadow: 0 24px 100px #13274740; }
.hcrm-widget-dialog::backdrop { background: #10213f99; backdrop-filter: blur(3px); }
.hcrm-widget-dialog[open] { display: flex; flex-direction: column; }
.hcrm-widget-dialog > header, .hcrm-widget-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; flex: 0 0 auto; }
.hcrm-widget-dialog > header { border-bottom: 1px solid #e4eaf3; }
.hcrm-widget-dialog > header h2 { font: 650 19px/1.4 system-ui,sans-serif; color: #23324d; margin: 0; }
.hcrm-widget-dialog button { background: #f2f5fa; border: 1px solid #dce4ef; border-radius: 9px; color: #23324d; padding: 7px 12px; cursor: pointer; font: 500 14px/1.4 system-ui,sans-serif; }
.hcrm-widget-dialog .hcrm-widget-close { font-size: 25px; padding: 0; width: 36px; height: 36px; }
.hcrm-widget-dialog > footer { border-top: 1px solid #e4eaf3; font: 12px/1.5 system-ui,sans-serif; color: #62728c; }
.hcrm-widget-dialog-status { padding: 10px 22px; margin: 0; color: #3a5278; background: #f3f7fd; font: 14px/1.5 system-ui,sans-serif; }
.hcrm-widget-dialog-status:empty { display: none; }
.hcrm-widget-auth-frame { display: block; width: 100%; height: 650px; min-height: 200px; max-height: calc(100dvh - 180px); border: 0; }
.hcrm-widget-frame, .hcrm-widget-frame body { margin: 0; padding: 0; background: #fff; color: #23324d; }
.hcrm-widget-frame body.contentpane { padding: 0; }
.hcrm-widget-frame .hcrm-auth { display: block; min-height: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.hcrm-widget-frame .hcrm-auth__story, .hcrm-widget-frame .hcrm-account-bar { display: none; }
.hcrm-widget-frame .hcrm-auth__panel { padding: 24px; }
.hcrm-widget-frame .hcrm-customer-page { margin: 0; padding: 20px; width: 100%; min-height: 0; }
.hcrm-widget-frame [data-portal-section="company_lookup"] { display: block; }
.hcrm-widget-frame [data-portal-section="company_lookup"] .hcrm-portal-sidebar { display: none; }
.hcrm-widget-frame .hcrm-portal-content { padding: 0; }
.hcrm-widget-content { font: 15px/1.55 system-ui,sans-serif; overflow-wrap: anywhere; background: #fff; color: #23324d; color-scheme: light; }
.hcrm-widget-gate { padding: 24px; background: linear-gradient(130deg,#f2f7ff,#fff 75%); }
.hcrm-widget-gate h2 { font-size: 22px; line-height: 1.3; color: #213554; margin: 12px 0 8px; }
.hcrm-widget-gate p { color: #596a83; margin: 0 0 18px; }
.hcrm-widget-icon { display: inline-flex; padding: 9px; color: #245ed0; background: #e5edff; border-radius: 12px; }
.hcrm-widget-icon svg { width: 22px; height: 22px; }
.hcrm-widget-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hcrm-widget-actions .btn { white-space: normal; max-width: 100%; overflow-wrap: anywhere; border-radius: 10px; padding: 9px 15px; }
.hcrm-widget-company { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 16px; margin: 0; color: #415674; background: #f2f6fc; font-size: 12px; border-bottom: 1px solid #e3eaf4; }
.hcrm-widget-company a { font-weight: 650; color: #245ac6; }
.hcrm-widget-content .heavenlycrm-assist.heavenlycrm-assist--module { display: flex; height: var(--widget-chat-height,560px); min-height: 0; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.hcrm-widget-content .heavenlycrm-assist.heavenlycrm-assist--gate { height: auto; }
.hcrm-widget-content .heavenlycrm-assist__identity > div { min-width: 0; }
.hcrm-widget-content .heavenlycrm-assist__identity strong { font-size: 15px; }
.hcrm-widget-content .heavenlycrm-assist__identity span { font-size: 11px; }
.hcrm-widget-content .heavenlycrm-assist__top-actions { flex-shrink: 0; gap: 2px; }
.hcrm-widget-content .heavenlycrm-assist__top-actions .btn { padding: 6px; }
.hcrm-widget-content .heavenlycrm-assist__top-actions svg { width: 18px; height: 18px; }
.hcrm-widget-content .heavenlycrm-assist__main { padding: 16px; min-height: 0; overflow-y: auto; }
.hcrm-widget-content .heavenlycrm-assist__stage, .hcrm-widget-content .is-active .heavenlycrm-assist__stage { flex: 1 0 140px; min-height: 140px; max-height: none; overflow-y: auto; }
.hcrm-widget-content .heavenlycrm-assist__empty { padding: 12px 0; }
.hcrm-widget-content .heavenlycrm-assist__heading { font-size: 24px; line-height: 1.25; margin: 12px 0; }
.hcrm-widget-content .heavenlycrm-assist__intro { font-size: 14px; }
.hcrm-widget-content .heavenlycrm-assist__welcome-icon { width: 40px; height: 40px; }
.hcrm-widget-content .heavenlycrm-assist__composer-help { font-size: 10px; }
.hcrm-widget-content .heavenlycrm-assist__composer-help > span:first-child { display: none; }
.hcrm-widget-content .heavenlycrm-assist__dock { padding-top: 10px; flex-shrink: 0; }
.hcrm-widget-starters { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
.hcrm-widget-starters button { border: 1px solid #d6e1f2; background: #f5f8fe; border-radius: 16px; padding: 6px 10px; color: #2f527f; font: 500 12px/1.4 system-ui,sans-serif; cursor: pointer; }
.hcrm-widget-starters button:hover { background: #e8f0ff; border-color: #a5bfe9; }
.hcrm-widget-starters button:focus-visible, .hcrm-widget-dialog button:focus-visible { outline: 3px solid #90b4f6; outline-offset: 2px; }
/* A page can supply the heading and account navigation for its embedded chat. */
.hcrm-widget-content--minimal .hcrm-widget-gate { padding: 4px 0; background: #fff; }
.hcrm-widget-content--minimal .heavenlycrm-assist:not(.is-active) { height: auto; }
.hcrm-widget-content--minimal .heavenlycrm-assist__topbar { justify-content: flex-end; padding: 6px 0; border: 0; }
.hcrm-widget-content--minimal .heavenlycrm-assist:not(.is-active) .heavenlycrm-assist__topbar { display: none; }
.hcrm-widget-content--minimal .heavenlycrm-assist__top-actions .btn { display: inline-flex; align-items: center; gap: 6px; color: #315484; font-size: 12px; }
.hcrm-widget-content.hcrm-widget-content--minimal .heavenlycrm-assist__main { padding: 4px 0; }
.hcrm-widget-content--minimal .heavenlycrm-assist:not(.is-active) .heavenlycrm-assist__stage { flex: 0 0 auto; min-height: 0; overflow: visible; }
.hcrm-widget-content--minimal .heavenlycrm-assist__empty { padding: 0; }
.hcrm-widget-content--minimal .heavenlycrm-assist__intro { text-align: left; margin: 0 0 12px; }
.hcrm-widget-content--minimal .heavenlycrm-assist__intro:empty { display: none; }
.hcrm-widget-content--minimal .heavenlycrm-assist__dock { padding-top: 4px; }
.hcrm-widget-content--minimal .heavenlycrm-assist__pill { border-radius: 14px; }
.hcrm-widget-content--minimal .hcrm-widget-starters button { font-size: 13px; padding: 8px 11px; }
.hcrm-widget-content--minimal .hcrm-widget-actions .btn { display: inline-flex; text-decoration: none; font-weight: 600; border: 1px solid #b9c9e4; }
.hcrm-widget-content--minimal .hcrm-widget-actions .btn-primary { background: #315bd6; border-color: #315bd6; color: #fff; }
.hcrm-widget-content--minimal .hcrm-widget-actions .btn-outline-primary { background: #fff; color: #244b87; }
.hcrm-widget-content--minimal .hcrm-widget-actions .btn:hover { filter: brightness(.95); }
.hcrm-widget-content--minimal .hcrm-widget-actions .btn:focus-visible { outline: 3px solid #8dacf2; outline-offset: 3px; }
.hcrm-widget-content--minimal .heavenlycrm-assist__service-context { padding: 0; border: 0; }
.hcrm-widget-content--minimal .heavenlycrm-assist__service-context h2 { font-size: 18px; line-height: 1.4; margin: 0 0 14px; letter-spacing: normal; }
.hcrm-widget-content--minimal .heavenlycrm-assist__service-context > .hcrm-eyebrow { margin: 0 0 8px; text-align: right; }
.hcrm-widget-content--minimal [data-context-clear] { font-size: 12px; padding: 3px 0; color: #315484; }
.hcrm-widget-content--minimal .heavenlycrm-assist__service-choices { gap: 7px; }
.hcrm-widget-content--minimal .heavenlycrm-assist__service-choices .btn { padding: 8px 11px; font-size: 13px; line-height: 1.4; border: 1px solid #cbd9ec; border-radius: 12px; background: #f5f8fe; color: #2f527f; }
.hcrm-widget-content--minimal .heavenlycrm-assist__service-choices .btn:hover { background: #e8f0ff; border-color: #8caddc; color: #2f527f; }
.hcrm-widget-content--minimal .heavenlycrm-assist__service-choices .btn:focus-visible { outline: 3px solid #8dacf2; outline-offset: 2px; color: #2f527f; background: #f5f8fe; }
.hcrm-widget-content--minimal [data-context-question] > p { font-size: 12px; color: #596a83; line-height: 1.5; }
@media (max-width: 700px) {
  .hcrm-widget--left, .hcrm-widget--right { float: none; width: 100%; margin: 1.25rem 0; }
  .hcrm-widget-frame .hcrm-auth__panel { padding: 18px; }
  .hcrm-widget-dialog > footer span { display: none; }
}
