/* Evodesk chat — the Service Hub widget's placement on every page, and the
 * Help & Support portal on the contact page (.sp-*). Brand tokens below are
 * the site's own colours; the widget itself is themed in the hub. */
:root {
  --sp-accent: #ec785c;
  --sp-ink: #20304a;
  --sp-muted: #6b7280;
  --sp-bg: #ffffff;
  --sp-bg-soft: #f6f7f9;
  --sp-line: #e5e7eb;
  --sp-radius: 14px;
  --sp-head-font: Montserrat, sans-serif;
}

/* ---- the widget's launcher (bottom right; the hub's own pill) ---- */
[data-shp-chat] { --shp-bottom: 20px; --shp-side: 20px; }
@media (max-width: 640px) { [data-shp-chat] { --shp-bottom: 16px; --shp-side: 12px; } }
body.desk-chat-hide [data-shp-chat] { display: none !important; }

/* a plain chat button where an old LiveChat button stood */
.desk-chat-btn { cursor: pointer; }

/* ---- the portal ---- */
.sp-hero { background: linear-gradient(180deg, var(--sp-bg) 0%, var(--sp-bg-soft) 100%); padding: 2.5rem 1rem 2rem; border-bottom: 1px solid var(--sp-line); color: var(--sp-ink); }
.sp-portal { max-width: 920px; margin: 0 auto; text-align: center; }
.sp-faces { display: flex; justify-content: center; gap: 12px; margin: 0 0 .75rem; }
.sp-faces img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); background: #eee; }
.sp-welcome-line { margin: 0 0 .5rem; color: var(--sp-muted); font-size: 15px; }
.sp-welcome-line strong { color: var(--sp-ink); font-weight: 600; }
.sp-online { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: #15803d; font-weight: 600; }
.sp-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.sp-portal h1 { font-family: var(--sp-head-font); font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 1rem; color: var(--sp-ink); line-height: 1.15; text-transform: none; }
.sp-ask { display: flex; gap: 8px; max-width: 640px; margin: 0 auto 1.25rem; }
.sp-ask input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 1px solid #cfd4da; border-radius: 999px; font-size: 15px; background: #fff; color: var(--sp-ink); margin: 0; box-shadow: none; }
.sp-ask input:focus { outline: none; border-color: var(--sp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-accent) 20%, transparent); }
.sp-ask button { height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--sp-accent); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; margin: 0; text-transform: none; }
.sp-ask button:hover { filter: brightness(.93); }
.sp-stage { text-align: left; }
.sp-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .sp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-actions .sp-action:last-child:nth-child(odd) { grid-column: span 2; } }
.sp-action { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 14px; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); background: #fff; color: var(--sp-ink); font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; margin: 0; line-height: 1.25; text-transform: none; }
.sp-action:hover { border-color: var(--sp-accent); box-shadow: 0 4px 14px rgba(0,0,0,.07); transform: translateY(-1px); }
.sp-action svg { width: 22px; height: 22px; flex: none; stroke: var(--sp-accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-action--accent { background: var(--sp-accent); border-color: var(--sp-accent); color: #fff; }
.sp-action--accent svg { stroke: #fff; }
.sp-reach { margin: 1rem 0 0; text-align: center; color: var(--sp-muted); font-size: 14px; }
.sp-reach a, .sp-reach button { color: var(--sp-accent); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.sp-view-head { display: flex; align-items: center; gap: 12px; margin: 0 0 .75rem; }
.sp-view-head h2 { font-family: var(--sp-head-font); font-size: 1.3rem; margin: 0; color: var(--sp-ink); text-transform: none; }
.sp-back { border: 1px solid var(--sp-line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--sp-ink); margin: 0; }
.sp-symptoms, .sp-steplist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 .75rem; }
@media (max-width: 640px) { .sp-symptoms, .sp-steplist { grid-template-columns: 1fr; } }
.sp-symptom, .sp-stepbtn { text-align: left; padding: 10px 12px; border: 1px solid var(--sp-line); border-radius: 10px; background: #fff; color: var(--sp-ink); font-size: 14px; cursor: pointer; margin: 0; line-height: 1.3; text-transform: none; }
.sp-symptom[aria-pressed="true"], .sp-stepbtn[aria-current="step"] { border-color: var(--sp-accent); background: color-mix(in srgb, var(--sp-accent) 8%, #fff); font-weight: 600; }
.sp-steps { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 14px 16px; margin: 0 0 .5rem; }
.sp-steps h3 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--sp-ink); font-family: var(--sp-head-font); text-transform: none; }
.sp-steps ol, .sp-steps ul { margin: 0 0 .5rem 1.1rem; padding: 0; font-size: 14.5px; line-height: 1.5; color: #374151; }
.sp-steps li { margin: 0 0 .3rem; }
.sp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .5rem; }
.sp-link-btn { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--sp-line); border-radius: 999px; background: #fff; color: var(--sp-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; margin: 0; text-transform: none; line-height: 1.2; }
.sp-link-btn--accent { background: var(--sp-accent); border-color: var(--sp-accent); color: #fff; }
.sp-note { margin: .75rem 0 0; font-size: 13.5px; color: var(--sp-muted); }
.sp-inline-link { background: none; border: 0; padding: 0; color: var(--sp-accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---- the LiveChat look (bottom right): the minimized bar + the eye-catcher photo ----
 * What xdesk.com shows today with LiveChat, drawn by the site: the white
 * "Questions? We can help!" bar flush with the bottom right, the photo above
 * it. The widget draws no launcher; both open the chat. */
.desk-lc-bar { position: fixed; right: 15px; bottom: 0; z-index: 2147482999; display: flex; align-items: center; gap: 14px; height: 56px; width: 300px; min-width: 0; margin: 0; padding: 0 18px 0 20px; box-sizing: border-box; background: #f1f1f3; color: #1c1c1e; border: 0; border-radius: 10px 10px 0 0; box-shadow: 0 -2px 18px rgba(0,0,0,.16), 0 0 1px rgba(0,0,0,.25); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-transform: none; cursor: pointer; text-align: left; -webkit-font-smoothing: antialiased; transition: background .15s; }
.desk-lc-bar:hover { background: #e8e8eb; color: #1c1c1e; }
.desk-lc-bar:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 2px; }
.desk-lc-bar .lcb-text { flex: 1; white-space: nowrap; }
.desk-lc-bar .lcb-icon { flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.desk-lc-bar .lcb-icon svg { width: 24px; height: 24px; fill: #6e6e73; display: block; }
.desk-lc-eyecatcher { position: fixed; right: 15px; bottom: 68px; z-index: 2147482999; width: 300px; max-width: calc(100vw - 30px); margin: 0; cursor: pointer; animation: desk-lc-rise .35s cubic-bezier(.2,.8,.2,1); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.desk-lc-eyecatcher img { display: block; width: 100%; height: auto; aspect-ratio: 320 / 135; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.22), 0 1px 3px rgba(0,0,0,.15); margin: 0; }
.desk-lc-eyecatcher:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 3px; border-radius: 8px; }
.desk-lc-eyecatcher .lce-x { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); background: #f1f1f3; color: #3a3a3c; font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin: 0; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.desk-lc-eyecatcher .lce-x:hover { background: #f2f2f2; }
.desk-lc-bar.is-hidden, .desk-lc-eyecatcher.is-hidden, body.desk-chat-hide .desk-lc-bar, body.desk-chat-hide .desk-lc-eyecatcher { display: none !important; }
@keyframes desk-lc-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .desk-lc-bar { right: 8px; width: auto; min-width: 0; height: 48px; font-size: 14px; padding: 0 14px 0 16px; gap: 10px; } .desk-lc-eyecatcher { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .desk-lc-eyecatcher { animation: none; } }

/* the header's search icon (Analytics Center search): a quiet round button in the nav's navy */
.evo-search-btn { width: 36px; height: 36px; border-radius: 50%; background: none; border: 0; padding: 0; margin: 0; color: #20304a; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; vertical-align: middle; transition: background .15s; }
.evo-search-btn:hover { background: rgba(32,48,74,.08); color: #000; }
.evo-search-btn svg { width: 20px; height: 20px; display: block; }
#main-menu-right li .evo-search-btn { margin-right: .75rem; }
.header-menu > .cell:first-child { position: relative; }
#search-button-small { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
@media (min-width: 64em) { #search-button-small { display: none; } }
/* the Analytics Center search (tiles theme): the site's global svg { width: 100% } blew its icons up to the panel's width — back to the sizes the widget draws them at */
.flts svg[width="20"] { width: 20px; height: 20px; }
.flts svg[width="16"] { width: 16px; height: 16px; }
.flts svg[width="14"] { width: 14px; height: 14px; }
.flts svg[width="12"] { width: 12px; height: 12px; }
.flts.flts-t2 .flts-in { font-size: 17px; }
.flts.flts-t2 .flts-lb { letter-spacing: .1em; }
.flts.flts-t2 .flts-help-main { display: flex; align-items: center; width: 100%; gap: 12px; }
.flts.flts-t2 .flts-help-main > span:not(.flts-help-ic) { display: flex; flex-direction: column; min-width: 0; }
.flts.flts-t2 .flts-help-main small { color: #6e6e73; }
.flts.flts-t2 .flts-help-main::after { content: "Chat now"; margin-left: auto; flex: none; padding: 9px 18px; border-radius: 999px; background: #f1f1f3; border: 1px solid #e2e2e6; color: #20304a; font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.flts.flts-t2 .flts-help-main:hover::after { background: #e8e8eb; }
