/* Tromso trip assistant widget. Uses the site's own tokens from styles.css, with fallbacks. */
.tc-launch {
  position: fixed; left: 16px; bottom: 16px; z-index: 80;
  display: flex; align-items: center; gap: .55rem; max-width: min(320px, calc(100vw - 32px));
  padding: .7rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand, #24548c); color: #fff; font: inherit; font-size: .9rem; line-height: 1.25; text-align: left;
  box-shadow: 0 6px 22px rgba(20,44,72,.28); transition: bottom .2s ease, transform .15s ease;
}
.tc-launch:hover { transform: translateY(-1px); background: #1d4675; }
.tc-launch:focus-visible { outline: 3px solid var(--brand-soft, #7fb2d9); outline-offset: 2px; }
.tc-launch svg { flex: 0 0 auto; }
.tc-launch b { font-weight: 750; white-space: nowrap; }
.tc-launch.tc-mini { padding: 0; width: 52px; height: 52px; justify-content: center; border-radius: 50%; }
.tc-launch.tc-mini span { display: none; }
.tc-launch.tc-mini svg { width: 24px; height: 24px; }
.tc-launch[hidden], .tc-panel[hidden] { display: none !important; }

.tc-panel {
  position: fixed; left: 16px; bottom: 16px; z-index: 95;
  width: 380px; height: min(620px, calc(100vh - 32px)); max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper, #fff); color: var(--ink, #16202e);
  border: 1px solid var(--line, #dfe5ec); border-radius: var(--r, 14px);
  box-shadow: 0 2px 6px rgba(20,44,72,.08), 0 22px 54px rgba(20,44,72,.24); font-size: .93rem;
}
.tc-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; background: var(--brand, #24548c); color: #fff; }
.tc-head strong { font-size: 1rem; }
.tc-x { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.tc-log { flex: 1 1 auto; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; background: var(--sand, #f4f7fa); }
.tc-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 12px; line-height: 1.45; }
.tc-msg p { margin: 0; } .tc-msg p + p { margin-top: .45rem; }
.tc-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line, #dfe5ec); }
.tc-user { align-self: flex-end; background: var(--brand, #24548c); color: #fff; }
.tc-wait { color: var(--stone, #64748b); letter-spacing: .2em; }
.tc-starters { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.tc-chip { background: #fff; border: 1px solid var(--brand-soft, #7fb2d9); color: var(--brand, #24548c); border-radius: 999px; padding: .45rem .8rem; font: inherit; font-size: .86rem; cursor: pointer; text-align: left; }
.tc-chip:hover { background: #eaf2fa; }
.tc-cards { display: flex; flex-direction: column; gap: .5rem; }
.tc-card { display: flex; gap: .6rem; background: #fff; border: 1px solid var(--line, #dfe5ec); border-radius: 10px; overflow: hidden; }
.tc-card img { width: 84px; flex: 0 0 84px; object-fit: cover; }
.tc-cbody { padding: .5rem .6rem .55rem 0; display: flex; flex-direction: column; gap: .25rem; min-width: 0; flex: 1; }
.tc-ctitle { font-weight: 700; color: var(--ink, #16202e); text-decoration: none; font-size: .88rem; line-height: 1.3; }
.tc-ctitle:hover { text-decoration: underline; }
.tc-meta { font-size: .78rem; color: var(--stone, #64748b); }
.tc-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tc-price { font-weight: 750; font-size: .88rem; }
.tc-book { background: var(--accent, #047857); color: #fff; text-decoration: none; font-weight: 700; font-size: .82rem; padding: .4rem .7rem; border-radius: 8px; white-space: nowrap; }
.tc-book:hover { background: #036148; }
.tc-read { font-size: .84rem; color: var(--stone, #64748b); }
.tc-read a { color: var(--brand, #24548c); }
.tc-form { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid var(--line, #dfe5ec); background: #fff; }
.tc-form textarea { flex: 1; resize: none; border: 1px solid var(--line, #dfe5ec); border-radius: 10px; padding: .55rem .7rem; font: inherit; font-size: 16px; line-height: 1.3; max-height: 6rem; }
.tc-form textarea:focus { outline: 2px solid var(--brand-soft, #7fb2d9); border-color: transparent; }
.tc-send { background: var(--brand, #24548c); color: #fff; border: 0; border-radius: 10px; padding: 0 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.tc-send:disabled { opacity: .55; cursor: default; }

@media (max-width: 30em) {
  .tc-launch { left: 12px; font-size: .8rem; padding: .5rem .8rem; gap: .45rem; }
  .tc-launch span { white-space: nowrap; }
  .tc-panel { left: 0; bottom: 0; width: 100vw; max-width: none; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
}
.tc-msg ul { margin: .35rem 0 0; padding-left: 1.1rem; } .tc-msg li + li { margin-top: .25rem; } .tc-msg p + ul, .tc-msg ul + p { margin-top: .45rem; }
.tc-bot a.tc-ilink { color: var(--brand, #24548c); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.tc-bot a.tc-see { color: var(--brand, #24548c); text-decoration: underline; font-size: .92em; }
.tc-seew { white-space: nowrap; }
.tc-lead { align-self: flex-start; background: var(--accent, #047857); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: .55rem .9rem; border-radius: 10px; }
@media (max-width: 480px) { .tc-launch b { white-space: normal; } }
