/* helper.css — the Trip desk: launcher pill, contact bubble, chat drawer. Loaded next to helper.js on every page.
   Colours are the client's: forest #243d32 on cream #fffbf5. Everything prefixed hd-. */
.hd-launch { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 95; display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 1.1rem 0.35rem 0.35rem; border: 0; border-radius: 999px; background: #fffbf5; color: #1a221c; font-family: inherit; cursor: pointer; box-shadow: 0 0 0 1px rgb(26 34 28 / 0.12), 0 18px 40px -14px rgb(26 34 28 / 0.45); transition: transform 200ms ease-out, box-shadow 200ms ease-out; }
.hd-launch:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(26 34 28 / 0.2), 0 22px 44px -14px rgb(26 34 28 / 0.5); }
.hd-av { display: block; width: 2.6rem; height: 2.6rem; flex: none; }
.hd-av svg { width: 100%; height: 100%; display: block; }
.hd-launch__t { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.hd-launch__t b { font-size: 0.875rem; font-weight: 600; }
.hd-launch__t small { font-size: 0.72rem; color: #6e736c; font-weight: 500; }

.hd-contact { position: fixed; right: 1.25rem; bottom: 5.25rem; z-index: 110; width: min(20rem, 92vw); }
.hd-contact[hidden] { display: none; }
.hd-contact__box { position: relative; overflow: hidden; border-radius: 1.1rem; background: #fffbf5; box-shadow: 0 0 0 1px rgb(26 34 28 / 0.12), 0 24px 60px -20px rgb(26 34 28 / 0.5); }
.hd-contact__head { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem 0.75rem; border-bottom: 1px solid #ddd6c8; }
.hd-contact__head b { font-size: 0.9rem; font-weight: 600; }
.hd-contact__head button { border: 0; background: none; font-size: 1.25rem; line-height: 1; color: #6e736c; cursor: pointer; }
.hd-row { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.75rem 1rem; border: 0; border-bottom: 1px solid #ddd6c8; background: none; color: #1a221c; font-family: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.hd-row:last-child { border-bottom: 0; }
.hd-row:hover { background: #f3efe6; }
.hd-ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 999px; background: #e8e2d6; font-size: 0.95rem; }
.hd-ic--mark { background: none; }
.hd-ic--mark svg { width: 2.1rem; height: 2.1rem; }
.hd-rt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.hd-rt b { font-size: 0.85rem; font-weight: 600; }
.hd-rt span, .hd-rt code { font-size: 0.78rem; color: #6e736c; font-family: inherit; }
.hd-rt code { color: #1a221c; word-break: break-all; }
.hd-copy { flex: none; padding: 0.35rem 0.6rem; border: 1px solid #ddd6c8; border-radius: 999px; background: #fffbf5; font-family: inherit; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.hd-copy:hover { border-color: #243d32; }

.hd-chat { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; display: flex; flex-direction: column; width: min(26rem, 92vw); background: #fffbf5; color: #1a221c; box-shadow: -30px 0 80px rgb(26 34 28 / 0.3); transform: translateX(105%); transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.hd-chat.is-open { transform: none; }
.hd-chat__head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid #ddd6c8; }
.hd-chat__head b { display: block; font-size: 0.95rem; font-weight: 600; }
.hd-chat__head span { font-size: 0.75rem; color: #6e736c; }
.hd-x { margin-left: auto; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: #6e736c; cursor: pointer; }
.hd-chat__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.7rem; padding: 1.25rem; }
.hd-msg { max-width: 86%; padding: 0.7rem 0.9rem; border-radius: 0.9rem; font-size: 0.875rem; line-height: 1.5; }
.hd-msg--desk { align-self: flex-start; background: #f3efe6; border-bottom-left-radius: 0.25rem; }
.hd-msg--user { align-self: flex-end; background: #243d32; color: #f3efe6; border-bottom-right-radius: 0.25rem; }
.hd-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hd-chip { padding: 0.5rem 0.85rem; border: 1px solid #ddd6c8; border-radius: 999px; background: #fffbf5; font-family: inherit; font-size: 0.78rem; font-weight: 500; color: #1a221c; cursor: pointer; transition: border-color 200ms, background 200ms; }
.hd-chip:hover { border-color: #243d32; background: #f3efe6; }
.hd-chat__foot { display: flex; gap: 0.6rem; padding: 0.85rem 1rem; border-top: 1px solid #ddd6c8; }
.hd-chat__foot input { flex: 1; min-width: 0; height: 2.75rem; padding: 0 0.85rem; border: 1px solid #ddd6c8; border-radius: 0.75rem; background: #fffbf5; font-family: inherit; font-size: 0.9rem; color: #1a221c; outline: none; }
.hd-chat__foot input:focus { border-color: #243d32; }
.hd-chat__foot button { height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 0.75rem; background: #243d32; color: #f3efe6; font-family: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; }
.hd-chat__foot button:hover { background: #3d5c4e; }
.hd-chat__note { padding: 0 0 0.7rem; text-align: center; font-size: 0.68rem; color: #6e736c; }

@media (max-width: 900px) {
  .hd-launch { right: 0.85rem; bottom: 0.85rem; padding: 0.2rem; gap: 0; }
  .hd-launch .hd-av { width: 2.5rem; height: 2.5rem; }
  .hd-launch__t { display: none; }
  .hd-contact { right: 0.85rem; bottom: 4.25rem; }
}
@media (prefers-reduced-motion: reduce) { .hd-chat { transition: none; } }
