/* Chat is centered in the fixed footer and placed above all controls on narrow screens. */
.ulm-chat-entry{padding:22px 26px!important;margin:12px auto 25px;border:1px solid var(--ulm-chat-border,#b0b2b4);border-radius:16px;background:var(--ulm-book-bg,#e0e2e4);color:var(--ulm-book-fg,#000);line-height:1.8}
.ulm-chat-entry strong{font-size:1.1rem}.ulm-chat-entry p{margin:7px 0}.ulm-chat-entry button,.ulm-chat-dialog button{cursor:pointer;border:1px solid #9dbbb0;border-radius:10px;background:#fff;color:#214a3e;padding:9px 14px;font:inherit;line-height:1.5}
.ulm-chat-entry button:disabled,.ulm-chat-dialog button:disabled{opacity:.5;cursor:wait}.ulm-chat-staff-login{font-size:12px;margin-left:16px}.ulm-chat-feedback{color:#953d22}
.ulm-fixed-nav.ulm-has-chat{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:end}
.ulm-fixed-nav.ulm-has-chat>.ulm-nav-tools{grid-column:1;grid-row:1;justify-self:start}
.ulm-fixed-nav.ulm-has-chat>.ulm-book-button,.ulm-fixed-nav.ulm-has-chat>.ucb-brand-stack{grid-column:3;grid-row:1;justify-self:end}
.ulm-fixed-nav .ulm-chat-button{grid-column:2;grid-row:1;pointer-events:auto!important;background:var(--ulm-book-bg,#cfe9df)!important;color:var(--ulm-book-fg,#000)!important;border:1px solid var(--ulm-book-bg,#cfe9df)!important;border-radius:999px!important;padding:13px 20px!important;min-height:49px;font-size:14px!important;font-weight:800!important;line-height:1.5!important;box-shadow:0 7px 24px #05271c38;white-space:normal;cursor:pointer}
.ulm-chat-stack[hidden],.ulm-chat-brand-logo[hidden],.ulm-chat-button[hidden],.ulm-chat-dialog [hidden]{display:none!important}.ulm-chat-button:focus-visible,.ulm-chat-dialog button:focus-visible,.ulm-chat-entry button:focus-visible{outline:3px solid #e4a62e;outline-offset:3px}
.ulm-chat-dialog{box-sizing:border-box;color:#253e36;font:15px/1.65 system-ui,sans-serif;background:var(--ulm-chat-surface,#f7fbf9);border:1px solid var(--ulm-chat-border,#a7c4b8);border-radius:18px;padding:20px;width:min(920px,calc(100vw - 28px));max-width:100%;max-height:90dvh;overflow:auto;box-shadow:0 24px 90px #173e3a33}
dialog.ulm-chat-dialog{margin:auto}dialog.ulm-chat-dialog::backdrop{background:#132e2a99}.ulm-chat-dialog *{box-sizing:border-box}.ulm-chat-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.ulm-chat-head h2{font-size:21px;margin:0}.ulm-chat-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.ulm-chat-status{min-height:1.65em;margin:5px 0 12px;color:#5a4934}
.ulm-chat-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px}.ulm-chat-list{max-height:55dvh;overflow:auto;border-right:1px solid #d2e0d9;padding-right:12px}.ulm-chat-thread{display:flex;flex-direction:column;width:100%;align-items:flex-start;text-align:left;margin:0 0 8px;overflow-wrap:anywhere}.ulm-chat-thread span{font-size:12px}.ulm-chat-unread{background:#ffe8b9;border-radius:10px;padding:1px 8px;color:#66430c}
.ulm-chat-conversation{min-width:0}.ulm-chat-conversation h3{font-size:17px;margin:0 0 5px;overflow-wrap:anywhere}.ulm-chat-recipient{font-size:13px;margin:2px 0 10px}.ulm-chat-messages{height:min(36dvh,360px);min-height:100px;overflow:auto;padding:10px;background:var(--ulm-chat-surface,#f7fbf9);border:1px solid var(--ulm-chat-border,#a7c4b8);border-radius:10px;overscroll-behavior:contain}.ulm-chat-message{border-radius:12px;background:var(--ulm-book-bg,#cfe9df);color:var(--ulm-book-fg,#000);padding:10px 14px;margin-bottom:10px;max-width:94%;overflow-wrap:anywhere}.ulm-chat-message.is-reader{margin-left:auto;background:var(--ulm-chat-soft,#e9f5ef);color:var(--ulm-chat-soft-fg,#000)}.ulm-chat-message strong{font-size:12px}.ulm-chat-message p{white-space:pre-wrap;margin:3px 0}.ulm-chat-message time{font-size:11px;color:inherit}.ulm-chat-form{margin-top:10px}.ulm-chat-form label{font-size:13px;display:block}.ulm-chat-form textarea{width:100%;max-width:100%;display:block;font:inherit;line-height:1.5;background:#fff;color:#233c32;border:1px solid #90ada0;border-radius:9px;padding:10px;resize:vertical;margin:5px 0 9px}.ulm-chat-form>button{background:var(--ulm-book-bg,#cfe9df);color:var(--ulm-book-fg,#000);min-width:100px}.ulm-chat-small{font-size:11px;color:#5b6c63;margin:9px 0}
@media(max-width:1100px) and (min-width:901px){.ulm-fixed-nav.ulm-has-chat .ulm-nav-tools>button,.ulm-fixed-nav .ulm-chat-button{font-size:12px!important;padding:10px 13px!important}.ulm-has-chat .ulm-book-category{max-width:6em}}
@media(max-width:900px){
 .ulm-fixed-nav.ulm-has-chat{display:flex;flex-direction:column;align-items:stretch;gap:7px}
 .ulm-fixed-nav.ulm-has-chat>.ulm-chat-button{order:-3;width:100%;min-height:45px;align-self:stretch}
 .ulm-fixed-nav.ulm-has-chat>.ulm-book-button,.ulm-fixed-nav.ulm-has-chat>.ucb-brand-stack{order:-1;width:100%;max-width:100%;align-self:stretch}
 .ulm-fixed-nav.ulm-has-chat>.ulm-nav-tools{order:1;width:100%;display:flex;align-items:stretch;gap:7px}
 .ulm-fixed-nav.ulm-has-chat .ulm-nav-tools>button{width:100%;min-height:44px}
 .ulm-chat-ready{padding-bottom:350px!important}
}
@media(max-width:620px){.ulm-chat-layout{grid-template-columns:1fr;gap:10px}.ulm-chat-list{max-height:19dvh;border:0;border-bottom:1px solid #d2e0d9;padding:0 0 6px}.ulm-chat-thread{margin-bottom:5px;padding:6px 9px!important}.ulm-chat-dialog{padding:14px;max-height:94dvh;width:calc(100vw - 18px);border-radius:12px}.ulm-chat-messages{height:26dvh}.ulm-chat-entry{padding:18px!important}.ulm-chat-staff-login{display:block;margin:10px 0 0}.ulm-chat-tabs button{font-size:12px;padding:7px 10px}}
@media(prefers-reduced-motion:reduce){.ulm-chat-dialog *{scroll-behavior:auto!important}}

/* Company identity travels with the chat action, independently of the booking recipient. */
.ulm-fixed-nav>.ulm-chat-stack{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:7px;max-width:280px;min-width:0;justify-self:center;pointer-events:auto}
.ulm-chat-brand,.ulm-chat-organization{display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;color:#1b4139;border:1px solid #c8e0d5;border-radius:14px;padding:7px 12px;font-size:12px;font-weight:750;line-height:1.35;min-width:0;max-width:100%;box-shadow:0 5px 18px #05271c14}
.ulm-chat-brand-company{min-width:0;overflow-wrap:anywhere}.ulm-chat-brand-logo{width:28px;height:28px;object-fit:contain;flex-shrink:0;border-radius:4px}
.ulm-chat-brand-company{white-space:pre-line;text-align:center}
.ulm-chat-organization{justify-content:flex-start;margin-top:12px;font-size:14px;overflow-wrap:anywhere;border-color:var(--ulm-chat-border,#c8e0d5)}
.ulm-chat-stack>.ulm-chat-button{width:100%}
@media(max-width:900px){.ulm-fixed-nav.ulm-has-chat>.ulm-chat-stack{order:-3;width:100%;max-width:100%;align-self:stretch}.ulm-chat-stack>.ulm-chat-button{min-height:45px}.ulm-chat-brand-logo{width:24px;height:24px}}

/* The question invitation is owned by the displayed article, including its setup controls. */
.ulm-chat-entry strong,.ulm-chat-entry p{color:inherit}.ulm-chat-entry button{color:#111;border-color:var(--ulm-chat-border,#b0b2b4)}.ulm-chat-entry a{color:inherit;text-decoration:underline}

/* v1.22.0: One company plaque on a narrow screen when booking and chat
   belong to the same company. Preserve the booking button and chat plaque.
   If the companies differ, show both so the recipients remain identifiable. */
@media screen and (max-width:767px) {
  .ulm-fixed-nav.ulm-mobile-duplicate-company .ucb-brand-stack .ucb-brand-identity {
    display:none!important;
  }
}
