/* The website chat (ADR-0269; from FileIt's live chat): the bubble, the greeting, the panel and
   the cards inside it. Theme tokens from styles.css (light / dark), logical properties so
   Arabic and Urdu mirror themselves. */
.hsc-root { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 140; font-family: inherit; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hsc-bubble {
  display: flex; align-items: center; gap: 9px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 13px 18px 13px 15px;
  font: 600 15px/1 sans-serif; font-family: inherit; box-shadow: 0 6px 22px rgba(12, 100, 174, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hsc-bubble:hover { transform: translateY(-1px); box-shadow: 0 9px 26px rgba(12, 100, 174, .42); }
.hsc-bubble:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 2px; }
.hsc-bubble i { font-size: 19px; }
.hsc-root.open .hsc-bubble, .hsc-root.open .hsc-tease { display: none; }
.hsc-root.open { z-index: 1000; }   /* over the cookie banner (150) once the visitor opens it */

/* the greeting beside the bubble */
.hsc-tease { position: relative; max-width: 290px; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); }
.hsc-tease[hidden] { display: none; }
.hsc-tease.hsc-in { animation: hsc-pop .28s ease-out; }
.hsc-tease-body { display: flex; flex-direction: column; gap: 3px; text-align: start; background: none; border: 0; cursor: pointer;
  padding: 12px 34px 12px 14px; color: inherit; font: 14px/1.45 sans-serif; font-family: inherit; }
.hsc-tease-body strong { font-size: 15px; }
.hsc-tease-x { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; }
.hsc-tease-x:hover { background: var(--bg); }
@keyframes hsc-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

.hsc-panel {
  display: none; flex-direction: column; width: 380px; max-width: calc(100vw - 24px);
  height: 600px; max-height: calc(100vh - 36px); background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.hsc-root.open .hsc-panel { display: flex; }
.hsc-head { display: flex; align-items: center; gap: 10px; padding: 13px 12px 12px 16px; background: var(--navy-900); color: #fff; }
.hsc-head .hsc-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fbf7f; flex: none; }
.hsc-head-text { min-width: 0; }
.hsc-head .hsc-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.hsc-head .hsc-sub { font-size: 12px; opacity: .8; margin-top: 2px; }
.hsc-demo-btn {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; flex: none;
  padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08); color: #fff; font: 600 12.5px/1 sans-serif; font-family: inherit; cursor: pointer;
}
.hsc-demo-btn:hover { background: rgba(255, 255, 255, .18); }
.hsc-demo-btn[hidden] { display: none; }
.hsc-head .hsc-x { margin-inline-start: auto; background: transparent; border: 0; color: #fff; cursor: pointer;
  font-size: 18px; width: 34px; height: 34px; border-radius: 8px; flex: none; }
.hsc-demo-btn:not([hidden]) + .hsc-x { margin-inline-start: 2px; }
.hsc-head .hsc-x:hover { background: rgba(255, 255, 255, .12); }

.hsc-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.hsc-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5;
  overflow-wrap: anywhere; }
.hsc-msg.me, .hsc-msg.note { white-space: pre-wrap; }
.hsc-msg a { color: inherit; text-decoration: underline; }
.hsc-msg.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-end-start-radius: 4px; }
.hsc-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-end-end-radius: 4px; }
.hsc-msg.note { align-self: center; max-width: 100%; background: transparent; color: var(--muted);
  font-size: 12.5px; text-align: center; padding: 2px 6px; }
.hsc-li { display: block; position: relative; padding-inline-start: 14px; margin: 2px 0; }
.hsc-li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.hsc-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; }
.hsc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4;
  animation: hsc-blink 1.2s infinite ease-in-out; }
.hsc-typing span:nth-child(2) { animation-delay: .15s; }
.hsc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hsc-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .9; } }

.hsc-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; }
.hsc-chips:empty { display: none; }
.hsc-chip { border: 1px solid var(--line); background: var(--card); color: var(--accent); border-radius: 999px;
  padding: 6px 11px; font: 500 13px/1.2 sans-serif; font-family: inherit; cursor: pointer; }
.hsc-chip:hover { border-color: var(--accent); }
.hsc-chip-demo { background: var(--accent); border-color: var(--accent); color: #fff; }

.hsc-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.hsc-form textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font: 14.5px/1.4 sans-serif; font-family: inherit; max-height: 110px; min-height: 42px; background: var(--card); color: var(--ink);
}
.hsc-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.hsc-send { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--accent);
  color: #fff; cursor: pointer; font-size: 16px; }
.hsc-send:disabled { opacity: .45; cursor: default; }
[dir="rtl"] .hsc-send i { transform: scaleX(-1); }

.hsc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 0 14px 11px; font-size: 11.5px; color: var(--muted); }
.hsc-foot a { color: var(--muted); text-decoration: underline; }
.hsc-person { background: none; border: 0; padding: 0; color: var(--accent); font: 600 12.5px/1.3 sans-serif; font-family: inherit; cursor: pointer; flex: none; }
.hsc-person:hover { text-decoration: underline; }

/* the booking and hand-off cards, inside the conversation */
.hsc-card { align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: 12px 13px;
  border: 1px solid var(--accent); border-radius: 14px; background: var(--card); }
.hsc-card p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.hsc-card .hsc-card-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.hsc-card .hsc-card-title i { color: var(--accent); }
.hsc-card label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hsc-card input, .hsc-card select, .hsc-card textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  font: 14px/1.4 sans-serif; font-family: inherit; background: var(--card); color: var(--ink); width: 100%; box-sizing: border-box; }
.hsc-card textarea { resize: vertical; min-height: 54px; }
.hsc-card input:focus, .hsc-card select:focus, .hsc-card textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.hsc-card .hsc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hsc-card .hsc-tz { font-size: 12px; color: var(--muted); margin-top: -2px; }
.hsc-card .hsc-optional { font-weight: 500; }
.hsc-card .hsc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hsc-card .hsc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hsc-card .hsc-err { color: var(--danger); font-size: 12.5px; min-height: 1em; }
.hsc-card .hsc-err:empty { display: none; }

@media (max-width: 520px) {
  .hsc-root.open { inset: 0; bottom: 0 !important; }   /* full screen: no lift above the cookie banner */
  .hsc-root.open .hsc-panel { width: 100vw; max-width: none; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .hsc-bubble .hsc-label { display: none; }
  .hsc-bubble { padding: 15px; }
  .hsc-demo-btn span { display: none; }
  .hsc-tease { max-width: calc(100vw - 36px); }
}
@media print { .hsc-root { display: none; } }
@media (prefers-reduced-motion: reduce) { .hsc-typing span, .hsc-tease.hsc-in { animation: none; } .hsc-bubble { transition: none; } }
