/* ---------- Live support chat ---------- */
.lc { position: fixed; z-index: 58; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 20px; }
.lc-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--navy-800); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(6,12,51,.35); position: relative; transition: transform .2s; }
.lc-btn:hover { transform: translateY(-2px); }
.lc-btn svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lc-btn .lc-ic-close, .lc.is-open .lc-ic-open { display: none; }
.lc.is-open .lc-ic-close { display: block; }
.lc-badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 20px; height: 20px; border-radius: 10px; background: #e5484d; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.lc-badge[hidden] { display: none; }
.lc-panel { color: #1b2140; text-align: start; position: absolute; bottom: 64px; inset-inline-end: 0; width: 360px; max-width: calc(100vw - 24px); height: min(540px, calc(100vh - 190px)); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(6,12,51,.28); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.lc-panel[hidden] { display: none; }
.lc-head { background: var(--navy-800); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-bottom: 2px solid var(--gold); }
.lc-head b { display: block; font-size: 1rem; }
.lc-head small { display: block; opacity: .8; font-size: .78rem; margin-top: 2px; line-height: 1.35; }
.lc-x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .8; padding: 0 2px; }
.lc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f7f8fc; }
.lc-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.lc-msg time { display: block; font-size: .68rem; opacity: .6; margin-top: 3px; }
.lc-msg.admin { color: #1b2140; background: #fff; border: 1px solid var(--line); align-self: flex-start; border-end-start-radius: 4px; }
.lc-msg.me { background: var(--navy-800); color: #fff; align-self: flex-end; border-end-end-radius: 4px; }
.lc-form { padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.lc-form[hidden] { display: none; }
.lc-intro { display: grid; gap: 8px; }
.lc-intro input, .lc-intro textarea, .lc-compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: .9rem; resize: none; }
.lc-note { font-size: .72rem; color: var(--muted); margin: 0; text-align: center; }
.lc-compose { display: flex; gap: 8px; align-items: flex-end; }
.lc-compose textarea { min-height: 42px; height: 42px; max-height: 120px; padding-block: 10px; color: #1b2140; background: #fff; }
.lc-intro input, .lc-intro textarea { color: #1b2140; background: #fff; min-height: 0; }
.lc-intro textarea { height: 84px; }
.lc-send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-800); display: grid; place-items: center; cursor: pointer; }
.lc-send svg { width: 20px; height: 20px; fill: currentColor; }
[dir="rtl"] .lc-send svg { transform: scaleX(-1); }
.lc-error { margin: 0; padding: 6px 12px 10px; color: #c0353a; font-size: .8rem; background: #fff; }
.lc-error[hidden] { display: none; }
@media (max-width: 760px) {
  .lc { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; }
  .lc-btn { width: 46px; height: 46px; }
  .lc.is-open { inset: 0; bottom: 0; z-index: 120; }
  .lc.is-open .lc-btn { display: none; }
  .lc-panel { position: fixed; inset: 0; width: auto; max-width: none; height: 100%; height: 100dvh; border-radius: 0; bottom: 0; }
}
@media print { .lc { display: none !important; } }

/* heritage touches */
.lc-btn { border-radius: 0; background: var(--navy-800); outline: 1px solid var(--gold); outline-offset: -5px; width: 56px; height: 56px; }
.lc-panel { border-radius: 0; border-top: 2px solid var(--gold); }
.lc-head b { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.lc-send { border-radius: 0; background: var(--gold); color: #fff; }
.lc-intro input, .lc-intro textarea, .lc-compose textarea { border-radius: 0; }
.lc-msg { border-radius: 0; } .lc-msg.me { background: var(--navy-800); }
