/* Luxline Project Concierge — isolated component styles */
:root {
  --lx-chat-navy: #0b1220;
  --lx-chat-navy-2: #111b2d;
  --lx-chat-ink: #151b24;
  --lx-chat-slate: #65707e;
  --lx-chat-gold: #cda35a;
  --lx-chat-gold-light: #e5c786;
  --lx-chat-cream: #f1ece3;
  --lx-chat-paper: #fbfaf7;
  --lx-chat-white: #fff;
  --lx-chat-line: rgba(21, 27, 36, .13);
  --lx-chat-shadow: 0 28px 90px rgba(4, 10, 20, .28);
  --lx-chat-ease: cubic-bezier(.22, .61, .36, 1);
}

.lx-chat-root,
.lx-chat-root * { box-sizing: border-box; }

.lx-chat-root {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 2200;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.lx-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  min-height: 58px;
  padding: 8px 18px 8px 9px;
  border: 1px solid rgba(229, 199, 134, .5);
  border-radius: 999px;
  background: var(--lx-chat-navy);
  color: var(--lx-chat-white);
  box-shadow: 0 14px 42px rgba(3, 8, 16, .28);
  cursor: pointer;
  transition: transform .25s var(--lx-chat-ease), background .25s, box-shadow .25s;
}

.lx-chat-launcher:hover,
.lx-chat-launcher:focus-visible {
  transform: translateY(-3px);
  background: var(--lx-chat-navy-2);
  box-shadow: 0 20px 52px rgba(3, 8, 16, .34);
}

.lx-chat-launcher:focus-visible,
.lx-chat-panel button:focus-visible,
.lx-chat-panel a:focus-visible,
.lx-chat-panel textarea:focus-visible {
  outline: 2px solid var(--lx-chat-gold-light);
  outline-offset: 3px;
}

.lx-chat-launcher-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--lx-chat-gold-light), var(--lx-chat-gold));
  color: var(--lx-chat-navy);
}

.lx-chat-launcher-icon svg { width: 21px; height: 21px; }
.lx-chat-launcher-label { display: grid; text-align: left; }
.lx-chat-launcher-label strong {
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.lx-chat-launcher-label span { color: rgba(255, 255, 255, .65); font-size: .68rem; }

.lx-chat-unread {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--lx-chat-navy);
  border-radius: 50%;
  background: var(--lx-chat-gold-light);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s, transform .2s;
}
.lx-chat-unread.is-visible { opacity: 1; transform: scale(1); }

.lx-chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  width: min(410px, calc(100vw - 30px));
  height: min(680px, calc(100dvh - 118px));
  overflow: hidden;
  border: 1px solid rgba(205, 163, 90, .36);
  border-radius: 22px;
  background: var(--lx-chat-paper);
  color: var(--lx-chat-ink);
  box-shadow: var(--lx-chat-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.975);
  transform-origin: bottom right;
  transition: opacity .24s var(--lx-chat-ease), transform .3s var(--lx-chat-ease), visibility 0s linear .3s;
}

.lx-chat-root.is-open .lx-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.lx-chat-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 76px;
  padding: 13px 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% -30%, rgba(205, 163, 90, .34), transparent 48%),
    linear-gradient(135deg, #101a2a, var(--lx-chat-navy));
  color: var(--lx-chat-white);
}

.lx-chat-header::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -52px;
  width: 135px;
  height: 135px;
  border: 1px solid rgba(229, 199, 134, .14);
  border-radius: 50%;
  pointer-events: none;
}

.lx-chat-brand-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(229, 199, 134, .44);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}
.lx-chat-brand-mark img { width: 31px; height: 31px; object-fit: contain; }

.lx-chat-heading { position: relative; z-index: 1; min-width: 0; }
.lx-chat-heading strong {
  display: block;
  overflow: hidden;
  color: var(--lx-chat-gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lx-chat-status {
  display: flex;
  align-items: center;
  gap: .42rem;
  margin-top: .32rem;
  color: rgba(255, 255, 255, .65);
  font-size: .66rem;
}
.lx-chat-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8bc59f;
  box-shadow: 0 0 0 3px rgba(139, 197, 159, .14);
}

.lx-chat-header-actions { position: relative; z-index: 1; display: flex; gap: 4px; }
.lx-chat-icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .76);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lx-chat-icon-button:hover { color: var(--lx-chat-white); background: rgba(255, 255, 255, .1); }
.lx-chat-icon-button svg { width: 18px; height: 18px; }

.lx-chat-progress-wrap {
  min-height: 0;
  border-bottom: 1px solid var(--lx-chat-line);
  background: var(--lx-chat-white);
}
.lx-chat-progress-wrap[hidden] { display: none; }
.lx-chat-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 9px 15px 7px;
  color: var(--lx-chat-slate);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lx-chat-progress-track { height: 3px; background: #ece7df; }
.lx-chat-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lx-chat-gold), var(--lx-chat-gold-light));
  transition: width .35s var(--lx-chat-ease);
}

.lx-chat-transcript {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 15px 10px;
  background:
    linear-gradient(rgba(251, 250, 247, .94), rgba(251, 250, 247, .94)),
    radial-gradient(circle at 100% 0%, rgba(205, 163, 90, .12), transparent 35%);
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 18, 32, .25) transparent;
}

.lx-chat-message {
  display: grid;
  grid-template-columns: 28px minmax(0, auto);
  align-items: end;
  justify-content: start;
  gap: 8px;
  margin: 0 0 12px;
  animation: lx-chat-message-in .26s var(--lx-chat-ease) both;
}
.lx-chat-message.is-user {
  grid-template-columns: minmax(0, auto);
  justify-content: end;
  padding-left: 42px;
}

@keyframes lx-chat-message-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

.lx-chat-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--lx-chat-navy);
}
.lx-chat-avatar img { width: 19px; height: 19px; object-fit: contain; }

.lx-chat-bubble {
  max-width: 305px;
  padding: 10px 12px;
  border: 1px solid var(--lx-chat-line);
  border-radius: 15px 15px 15px 4px;
  background: var(--lx-chat-white);
  box-shadow: 0 5px 18px rgba(11, 18, 32, .045);
  color: #343c47;
  font-size: .78rem;
  white-space: pre-line;
}
.lx-chat-message.is-user .lx-chat-bubble {
  border-color: var(--lx-chat-navy);
  border-radius: 15px 15px 4px 15px;
  background: var(--lx-chat-navy);
  color: var(--lx-chat-white);
  white-space: pre-wrap;
}
.lx-chat-bubble a { color: #8e6527; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.lx-chat-typing .lx-chat-bubble { display: flex; gap: 4px; min-width: 50px; padding-block: 13px; }
.lx-chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #89919c;
  animation: lx-chat-dot 1s infinite ease-in-out;
}
.lx-chat-typing span:nth-child(2) { animation-delay: .15s; }
.lx-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes lx-chat-dot { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-3px); opacity: 1; } }

.lx-chat-summary {
  margin: 4px 0 14px 36px;
  overflow: hidden;
  border: 1px solid rgba(205, 163, 90, .35);
  border-radius: 16px;
  background: var(--lx-chat-white);
  box-shadow: 0 8px 28px rgba(11, 18, 32, .06);
  animation: lx-chat-message-in .26s var(--lx-chat-ease) both;
}
.lx-chat-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 11px 13px;
  background: #111b2d;
  color: var(--lx-chat-white);
}
.lx-chat-summary-head strong {
  color: var(--lx-chat-gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
}
.lx-chat-summary-head span { color: rgba(255, 255, 255, .58); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.lx-chat-summary-list { margin: 0; padding: 6px 13px 10px; }
.lx-chat-summary-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--lx-chat-line);
  font-size: .7rem;
}
.lx-chat-summary-row:last-child { border-bottom: 0; }
.lx-chat-summary-row dt { color: #926c31; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lx-chat-summary-row dd { margin: 0; color: #39414c; overflow-wrap: anywhere; }

.lx-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 168px;
  overflow: auto;
  padding: 8px 15px 12px 51px;
  border-top: 1px solid rgba(21, 27, 36, .07);
  background: var(--lx-chat-paper);
}
.lx-chat-options:empty { display: none; }
.lx-chat-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(11, 18, 32, .2);
  border-radius: 999px;
  background: var(--lx-chat-white);
  color: var(--lx-chat-navy);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.lx-chat-option:hover,
.lx-chat-option:focus-visible {
  border-color: var(--lx-chat-gold);
  background: var(--lx-chat-gold);
  color: var(--lx-chat-navy);
  transform: translateY(-1px);
}
.lx-chat-option.is-primary { border-color: var(--lx-chat-gold); background: var(--lx-chat-gold); }
.lx-chat-option.is-primary:hover { background: var(--lx-chat-gold-light); }
.lx-chat-option.is-link::after { content: "↗"; margin-left: .42rem; font-size: .82rem; }
.lx-chat-option.is-muted { color: #5e6875; background: transparent; }

.lx-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
  padding: 10px 11px 8px;
  border-top: 1px solid var(--lx-chat-line);
  background: var(--lx-chat-white);
}
.lx-chat-input {
  width: 100%;
  min-height: 42px;
  max-height: 100px;
  resize: none;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid rgba(11, 18, 32, .17);
  border-radius: 13px;
  background: #f8f6f1;
  color: var(--lx-chat-ink);
  font: inherit;
  font-size: .76rem;
  line-height: 1.35;
}
.lx-chat-input::placeholder { color: #87909a; }
.lx-chat-send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lx-chat-gold);
  border-radius: 13px;
  background: var(--lx-chat-gold);
  color: var(--lx-chat-navy);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lx-chat-send:hover { background: var(--lx-chat-gold-light); transform: translateY(-1px); }
.lx-chat-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.lx-chat-send svg { width: 18px; height: 18px; }

.lx-chat-legal {
  padding: 0 12px 9px;
  background: var(--lx-chat-white);
  color: #7a838e;
  font-size: .56rem;
  line-height: 1.45;
  text-align: center;
}
.lx-chat-legal a { color: #7d5a25; text-decoration: underline; text-underline-offset: 2px; }

.lx-chat-invite {
  position: absolute;
  right: 0;
  bottom: 75px;
  width: min(300px, calc(100vw - 30px));
  padding: 15px 42px 15px 16px;
  border: 1px solid rgba(205, 163, 90, .4);
  border-radius: 16px 16px 4px 16px;
  background: var(--lx-chat-white);
  box-shadow: 0 18px 55px rgba(3, 8, 16, .2);
  color: var(--lx-chat-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility 0s linear .25s;
}
.lx-chat-invite.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lx-chat-invite strong { display: block; margin-bottom: 2px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.14rem; }
.lx-chat-invite span { display: block; color: var(--lx-chat-slate); font-size: .7rem; }
.lx-chat-invite-open { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; }
.lx-chat-invite-close {
  position: absolute;
  z-index: 2;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f1eee8;
  color: #56606d;
  cursor: pointer;
}

.lx-chat-toast {
  position: absolute;
  right: 0;
  bottom: 76px;
  max-width: 310px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--lx-chat-navy);
  color: var(--lx-chat-white);
  box-shadow: 0 12px 35px rgba(3, 8, 16, .25);
  font-size: .68rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.lx-chat-toast.is-visible { opacity: 1; transform: none; }

.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--gold-light, #e5c786); }

@media (max-width: 620px) {
  body.lx-chat-open { overflow: hidden; }
  .lx-chat-root {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .lx-chat-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateY(24px);
    transform-origin: center;
  }
  .lx-chat-root.is-open .lx-chat-launcher { opacity: 0; pointer-events: none; }
  .lx-chat-header { padding-top: max(13px, env(safe-area-inset-top)); min-height: calc(76px + env(safe-area-inset-top)); }
  .lx-chat-transcript { padding-inline: 12px; }
  .lx-chat-options { max-height: 180px; padding-left: 47px; padding-bottom: 10px; }
  .lx-chat-legal { padding-bottom: max(9px, env(safe-area-inset-bottom)); }
  .lx-chat-launcher-label { display: none; }
  .lx-chat-launcher { min-height: 56px; width: 56px; padding: 6px; }
  .lx-chat-launcher-icon { width: 42px; height: 42px; }
  .lx-chat-invite { right: 0; bottom: 69px; }
}

@media (max-height: 650px) and (min-width: 621px) {
  .lx-chat-panel { height: calc(100dvh - 95px); bottom: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .lx-chat-panel,
  .lx-chat-launcher,
  .lx-chat-message,
  .lx-chat-summary,
  .lx-chat-typing span,
  .lx-chat-invite,
  .lx-chat-toast,
  .lx-chat-progress-bar { animation: none !important; transition-duration: .01ms !important; }
}

@media (max-width: 420px) {
  .lx-chat-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: .55rem;
    padding-inline: 10px;
  }
  .lx-chat-brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .lx-chat-brand-mark img { width: 28px; height: 28px; }
  .lx-chat-heading strong { font-size: 1.05rem; }
  .lx-chat-status { margin-top: .22rem; font-size: .58rem; }
  .lx-chat-header-actions { gap: 0; }
  .lx-chat-icon-button { width: 34px; height: 34px; }
}
