/* LDL live chat widget (website + shop) */
.lc { --lc-red: #ed1c23; --lc-ink: #172033; --lc-muted: #6b7385; --lc-line: #e7eaf0; position: fixed; right: 20px; bottom: 20px; z-index: 1000; font-family: inherit; }
.lc__panel { position: fixed; right: 20px; bottom: 92px; width: 370px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 27, 51, .28); overflow: hidden; animation: lcIn .25s cubic-bezier(.2, .8, .2, 1); }
.lc__panel[hidden] { display: none; }
@keyframes lcIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lc__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; color: #fff; background: linear-gradient(135deg, #ff3b4a, #c8101a); }
.lc__av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--lc-red); font-weight: 900; font-size: 12px; letter-spacing: -.02em; }
.lc__ttl { flex: 1; min-width: 0; display: grid; }
.lc__ttl b { font-size: 15px; }
.lc__ttl small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.lc__ttl small i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.lc__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.lc__list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f6f7fa; }
.lc__m { max-width: 82%; display: grid; gap: 2px; }
.lc__m p { margin: 0; padding: 9px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.lc__m p a { color: inherit; text-decoration: underline; }
.lc__m time { font-size: 11px; color: var(--lc-muted); }
.lc__m.is-customer { align-self: flex-end; justify-items: end; }
.lc__m.is-customer p { background: var(--lc-red); color: #fff; border-bottom-right-radius: 5px; }
.lc__m.is-staff { align-self: flex-start; }
.lc__m.is-staff p { background: #fff; color: var(--lc-ink); border: 1px solid var(--lc-line); border-bottom-left-radius: 5px; }
.lc__who { font-size: 11.5px; font-weight: 700; color: var(--lc-muted); padding-left: 4px; }
.lc__m.is-system { align-self: center; max-width: 92%; text-align: center; }
.lc__m.is-system p { background: transparent; color: var(--lc-muted); font-size: 12.5px; padding: 2px 6px; }
.lc__m.is-system time { display: none; }
.lc__start { display: grid; gap: 9px; padding: 14px; border-top: 1px solid var(--lc-line); background: #fff; }
.lc__start[hidden], .lc__send[hidden] { display: none; }
.lc__hello { margin: 0 0 2px; font-size: 13.5px; color: var(--lc-ink); }
.lc__start input, .lc__start textarea, .lc__send textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--lc-line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14.5px; color: var(--lc-ink); background: #fff; resize: none; }
.lc__start input:focus, .lc__start textarea:focus, .lc__send textarea:focus { outline: 2px solid color-mix(in srgb, var(--lc-red) 35%, transparent); border-color: transparent; }
.lc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lc__go { height: 44px; border: 0; border-radius: 12px; background: var(--lc-red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.lc__go:disabled { opacity: .6; }
.lc__err { margin: 0; min-height: 0; color: var(--lc-red); font-size: 13px; }
.lc__send { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--lc-line); background: #fff; }
.lc__send textarea { max-height: 120px; }
.lc__send button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--lc-red); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lc__fab { position: relative; width: 58px; height: 58px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer; background: linear-gradient(135deg, #ff3b4a, #c8101a); box-shadow: 0 10px 26px rgba(200, 16, 26, .38); }
.lc.is-open .lc__fab svg { opacity: .85; }
.lc__badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #16a34a; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.lc__badge[hidden] { display: none; }
.chatw__ch.is-live { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.lc__chi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff3b4a, #c8101a); }
@media (max-width: 860px) {
  .lc.lc--nav { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; }
  .lc.is-open .lc__fab { display: none; }
  .lc__panel { right: 8px; left: 8px; width: auto; max-width: none; bottom: calc(8px + env(safe-area-inset-bottom)); height: min(620px, calc(100dvh - 16px)); }
}
