/* =========================================================
   H Holdings: live chat widget styles
   Same chat as HXA Agro Products, in H Holdings colours.
   The colour names below are only used inside the chat.
   ========================================================= */
.chat-fab, .chat-panel {
  --gold: #ed1c24;          /* H Holdings red: chat button and header */
  --gold-hover: #c8141b;
  --ink: #171717;
  --paper: #fbfbfb;
  --line: rgba(23, 23, 23, 0.12);
  --display: "Raleway", "Source Sans Pro", sans-serif;
  font-family: "Source Sans Pro", system-ui, -apple-system, sans-serif;
  line-height: 1.4;
}
/* the site's own button and heading styles must not leak into the chat */
.chat-fab, .chat-panel button { border: 0; font: inherit; cursor: pointer; }
.chat-panel p { margin: 0; }
.chat-panel textarea { font: inherit; }

/* keep the scroll-to-top button above the chat button */
.scrollTop.active { bottom: 100px; }

.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
  transition: transform .3s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #4caf50; border: 2px solid var(--gold); }
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 70;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  background: var(--paper); color: var(--ink); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right; transition: .3s;
}
.chat-open .chat-panel { opacity: 1; visibility: visible; transform: none; }
.chat-panel--team { height: auto; }
.chat-panel.lc { height: auto; max-height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden; }
.lc-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--gold); color: #fff; flex: none; }
.lc-avatars { display: flex; }
.lc-avatars span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--gold); font-weight: 700; font-size: 12px; border: 2px solid var(--gold); margin-left: -8px; }
.lc-avatars span:first-child { margin-left: 0; }
.lc-title { flex: 1; min-width: 0; }
.lc-title strong { display: block; font-size: 15px; }
.lc-title small { font-size: 12px; opacity: .9; }
.lc-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8fd08a; margin-right: 4px; box-shadow: 0 0 0 0 rgba(143,208,138,.7); animation: lcPulse 2s infinite; }
.lc-x { width: 34px; height: 34px; border-radius: 50%; font-size: 22px; color: #fff; background: rgba(255,255,255,.15); flex: none; }
.lc-form { padding: 18px 18px 16px; display: grid; gap: 14px; overflow-y: auto; overscroll-behavior: contain; }
.lc-hello { display: flex; gap: 10px; align-items: flex-end; animation: lcTip .5s cubic-bezier(.2,.8,.2,1) both; }
.lc-hello-av { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: contain; padding: 5px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.lc-bubble { background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 11px 14px; font-size: 14px; line-height: 1.5; color: #3d3b33; box-shadow: 0 6px 18px rgba(18,19,15,.05); }
.lc-bubble strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.lc-topics { border: 0; padding: 0; margin: 0; min-width: 0; }
.lc-topics legend, .lc-field > label { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 7px; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.lc-chip { position: relative; cursor: pointer; }
.lc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.lc-chip span { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(18,19,15,.16); background: #fff; font-size: 13px; font-weight: 500; color: #3d3b33; transition: background .2s, border-color .2s, color .2s, transform .15s; user-select: none; }
.lc-chip:hover span { border-color: var(--gold); color: var(--gold); }
.lc-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; }
.lc-chip input:checked + span::before { content: ""; width: 10px; height: 6px; margin-right: 7px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.lc-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.lc-chip:active span { transform: scale(.96); }
.lc-field { display: grid; }
.lc-field > label { display: flex; align-items: baseline; gap: 6px; }
.lc-opt-l { font-size: 11px; font-weight: 500; color: #8a8676; }
.lc-field input, .lc-field textarea { font: inherit; font-size: 16px;  line-height: 1.4; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(18,19,15,.16); background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.lc-field textarea { resize: none; min-height: 48px; }
.lc-field input::placeholder, .lc-field textarea::placeholder { color: #a19d8d; }
.lc-field input:focus, .lc-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(27,107,53,.14); }
.lc-hint { font-size: 12px; color: #8a8676; margin-top: 5px; }
.lc-ferr { font-size: 12.5px; color: #b3261e; margin-top: 5px; display: flex; gap: 5px; align-items: center; }
.lc-ferr:empty { display: none; }
.lc-ferr::before { content: "!"; width: 15px; height: 15px; flex: none; border-radius: 50%; background: #b3261e; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.lc-field.bad input, .lc-field.bad textarea { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.1); }
.lc-field.bad .lc-hint { display: none; }
.lc-field.bad { animation: lcShake .35s; }
.lc-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 999px; background: var(--gold); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .02em; transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 8px 20px rgba(27,107,53,.25); }
.lc-btn:active { transform: scale(.98); }
.lc-form .lc-btn { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 8px 20px rgba(27,107,53,.25), 0 0 0 8px var(--paper); }
.lc-btn-i { transition: transform .2s; }
.lc-btn:hover .lc-btn-i { transform: translateX(3px); }
.lc-btn-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: frameSpin .7s linear infinite; }
.lc-btn.busy .lc-btn-i { display: none; }
.lc-btn.busy .lc-btn-spin { display: block; }
.lc-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #8a8676; margin-top: -6px; }
.lc-form .lc-others { margin-top: 2px; padding-top: 14px; border-top: 1px dashed var(--line); }
.lc-form .lc-others p::before, .lc-form .lc-others p::after { display: none; }
.lc-form .lc-o { padding: 9px 6px; font-size: 12.5px; }
.lc-err { color: #b3261e; font-size: 13px; }
.lc-err:empty { display: none; }
.lc-btn:hover { background: var(--gold-hover); }
.lc-btn:disabled { opacity: .7; }
.lc-alt { text-align: center; font-size: 13px; color: var(--gold); font-weight: 600; }
.lc-wait { padding: 16px 18px 10px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); flex: none; }
.lc-ring { position: relative; width: 84px; height: 84px; }
.lc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lc-ring circle { fill: none; stroke-width: 6; }
.lc-ring .r-bg { stroke: #ece6d8; }
.lc-ring .r-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.lc-pos { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; line-height: 1; }
.lc-pos b { font-family: var(--display); font-size: 30px; color: var(--gold); }
.lc-pos small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6b6859; margin-top: 2px; }
.lc-wait-text { display: grid; gap: 3px; }
.lc-wait-text strong { font-size: 16px; }
.lc-eta { font-size: 14px; color: #5f5c50; }
.lc-eta b { font-variant-numeric: tabular-nums; color: var(--ink); }
.lc-note { font-size: 12px; color: #6b6859; }
.lc-dots i { display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: var(--gold); animation: typ 1s infinite; }
.lc-dots i:nth-child(2) { animation-delay: .15s; }
.lc-dots i:nth-child(3) { animation-delay: .3s; }
.lc-tip { grid-column: 1 / -1; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(27,107,53,.07); color: var(--ink); }
.lc-tip.in { animation: lcTip .5s cubic-bezier(.2,.8,.2,1); }
.lc-tip-k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.lc-tip-t { font-size: 14px; }
.lc-tip-d { font-size: 12px; color: #6b6859; }
.lc-msgs { flex: 1; min-height: 120px; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.lc-m { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.lc-m.visitor { align-self: flex-end; background: var(--gold); color: #fff; border-bottom-right-radius: 4px; }
.lc-m.agent { align-self: flex-start; background: #ece6d8; border-bottom-left-radius: 4px; }
.lc-m.system { align-self: center; font-size: 12px; color: #6b6859; background: none; padding: 0 6px; text-align: center; }
.lc-compose { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; flex: none; }
.lc-compose textarea { flex: 1; resize: none; border: 0; font: inherit; font-size: 15px; padding: 9px; outline: none; color: var(--ink); background: transparent; max-height: 110px; }
.lc-compose button { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; flex: none; }
.lc-end { font-size: 12px; color: #6b6859; padding: 6px 0 10px; text-decoration: underline; flex: none; }
.lc-ended, .lc-off { padding: 18px; display: grid; gap: 10px; text-align: center; color: #5f5c50; flex: none; }
.lc-opt { display: grid; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-align: left; color: var(--ink); }
.lc-opt small { color: #6b6859; }
.lc-badge { position: absolute; top: -4px; left: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #d93025; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 480px) {
  .chat-panel.lc { right: 8px; left: 8px; width: auto; bottom: 88px; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
  .lc-form { padding: 16px 14px 14px; gap: 13px; }
  .lc-chip span { padding: 8px 13px; }
}
.chat-panel.lc [hidden] { display: none !important; }
.chat-fab .lc-badge[hidden] { display: none; }
.lc-others { display: grid; gap: 8px; margin-top: 4px; }
.lc-others p { position: relative; text-align: center; font-size: 12px; color: #6b6859; }
.lc-others p::before, .lc-others p::after { content: ""; position: absolute; top: 50%; width: 22%; height: 1px; background: var(--line); }
.lc-others p::before { left: 0; }
.lc-others p::after { right: 0; }
.lc-others-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lc-o { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 8px; border-radius: 12px; border: 1px solid rgba(18,19,15,.14); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.lc-o svg { color: var(--gold); flex: none; }
.lc-o:hover { border-color: var(--gold); background: rgba(27,107,53,.06); }
.lc-o--wa svg { color: #1fa855; }
.lc-ended .lc-others { text-align: left; }
.chat-panel.lc { height: min(560px, calc(100vh - 120px)); }
.chat-panel.lc[data-view="offline"], .chat-panel.lc[data-view="ended"] { height: auto; }
.lc-welcome { white-space: pre-line; }
.lc-typing-row { display: flex; align-items: center; gap: 8px; padding: 0 18px 10px; font-size: 12px; color: #6b6859; flex: none; }
.lc-typing-row[hidden] { display: none; }
.lc-typing-row .lc-dots { display: inline-flex; gap: 3px; }
.lc-typing-row .lc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: lcDot 1.2s infinite ease-in-out; }
.lc-typing-row .lc-dots i:nth-child(2) { animation-delay: .15s; }
.lc-typing-row .lc-dots i:nth-child(3) { animation-delay: .3s; }
@media (max-width: 760px) {
  .chat-panel.lc { height: calc(100dvh - 110px); }
}
.lc-m.bot { background: #e8f2ea; border: 1px solid rgba(27,107,53,.18); }
.lc-m .lc-who { display: block; margin-top: 4px; font-size: 10.5px; letter-spacing: .04em; color: #3f7a52; opacity: .85; }
.lc-human { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px 8px; font-size: 12.5px; color: #6b6859; flex: none; }
.lc-human[hidden], .lc-handoff-off[hidden] { display: none; }
.lc-human-btn { font: inherit; font-weight: 600; color: var(--gold); background: none; border: 1px solid rgba(27,107,53,.35); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.lc-human-btn:hover { background: rgba(27,107,53,.08); }
.lc-handoff-off { padding: 0 14px 10px; flex: none; }
@keyframes lcShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes lcDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes lcPulse { 70% { box-shadow: 0 0 0 7px rgba(143,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(143,208,138,0); } }
@keyframes lcTip { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* "Muhammad joined the chat" / "... ended the chat" notes in the conversation */
.lc-sys { align-self: center; max-width: 90%; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.05); color: #6b6b6b; font-size: 12px; line-height: 1.4; text-align: center; }
