/* Site chatbot panel — design preview.

   Colours come from custom properties (--brand, --ap-navy, --ap-cream,
   --ap-ink...) that the PARTIAL declares on .sc-launcher / .sc-panel / .sc-scrim
   from BrandConfig — not from .anteprima-body.

   That indirection is the reason the panel is brand-correct on all six live
   brands AND on the three standalone pages. base.html sets those properties on
   the body; faq.html, business_travel.html and cookie_policy.html are separate
   documents that never have, so a panel inheriting them would render in the
   shared teal fallback on every brand — right on the landing, wrong on the FAQ.

   The fallbacks below are that same teal default, kept so the file still
   renders something sane if it is ever loaded without the partial. */

.sc-launcher {
    position: fixed; right: 20px; bottom: 20px; z-index: 1080;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .8rem 1.25rem .8rem 1.05rem;
    border: none; border-radius: 999px;
    background: var(--brand, #0e5c63); color: var(--ap-on-brand, #fff);
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 26px color-mix(in srgb, var(--brand, #0e5c63) 38%, transparent);
    transition: transform .16s ease, box-shadow .16s ease;
}
.sc-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--brand, #0e5c63) 45%, transparent); }
.sc-launcher:focus-visible { outline: 3px solid var(--ap-hero-accent, #ffd23f); outline-offset: 3px; }

.sc-launcher[hidden] { display: none; }

/* Inline SVG, sized here rather than by an icon font. See the partial: the
   four surfaces this panel mounts on ship Font Awesome 5, Font Awesome 6 and
   nothing, so no shared glyph name exists. */
.sc-i { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: -3px; }

/* A preview badge, because this panel is not live and a screenshot of it will
   outlive the conversation that explains it. */
.sc-scrim {
    position: fixed; inset: 0; z-index: 1090;
    background: color-mix(in srgb, var(--ap-navy, #0b3439) 38%, transparent);
    opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.sc-panel.is-open ~ .sc-scrim,
.sc-scrim.is-open { opacity: 1; pointer-events: auto; }

.sc-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1100;
    /* Over half the screen (owner, 2026-11-18: «50/55%», then «5% more»). */
    width: 60vw; max-width: 1200px; min-width: 380px;
    display: flex; flex-direction: column;
    background: var(--ap-cream, #f6f1e8);
    box-shadow: -18px 0 48px color-mix(in srgb, var(--ap-navy, #0b3439) 22%, transparent);
    transform: translateX(100%); transition: transform .26s cubic-bezier(.22, .61, .36, 1);
    font-family: inherit; color: var(--ap-ink, #182629);
}
.sc-panel.is-open { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .sc-panel, .sc-scrim, .sc-launcher { transition: none; }
}

/* Full-screen on mobile rather than a third rendering. There is already a
   templates/website/mobile/ tree and a django_user_agents split; the panel
   deliberately does not add a third one, so this is a width change and
   nothing else. */
@media (max-width: 768px) {
    .sc-panel { width: 100vw; max-width: none; min-width: 0; }
    .sc-launcher { right: 14px; bottom: 14px; }
}

/* ---- header ---------------------------------------------------------- */

.sc-head {
    flex: 0 0 auto; padding: 1.1rem 1.15rem 1rem;
    background: var(--ap-navy, #0b3439); color: #fff;
    display: flex; align-items: flex-start; gap: .75rem;
}
.sc-head-text { flex: 1 1 auto; min-width: 0; }
.sc-head h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sc-head p { margin: .25rem 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .78); }

.sc-close {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .26); background: transparent;
    color: #fff; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.sc-close:hover { background: rgba(255, 255, 255, .14); }
.sc-close:focus-visible { outline: 2px solid var(--ap-hero-accent, #ffd23f); outline-offset: 2px; }

.sc-preview-note {
    flex: 0 0 auto;
    padding: .5rem 1.15rem;
    background: var(--ap-hero-accent, #ffd23f);
    color: var(--ap-ink, #182629);
    font-size: 12px; font-weight: 700; letter-spacing: .01em;
    display: flex; align-items: center; gap: .45rem;
}

/* ---- body ------------------------------------------------------------ */

.sc-body { flex: 1 1 auto; overflow-y: auto; padding: 1.15rem; }

.sc-eyebrow {
    display: block; margin-bottom: .55rem;
    font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ap-ink-faint, #808e92);
}

/* Section chooser — the panel opens on this, not on a text box. Picking a
   section is what selects the agent and its tools, so the choice is explicit
   rather than inferred from what someone typed. */
.sc-sections { display: grid; gap: .7rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }

.sc-section {
    display: flex; align-items: flex-start; gap: .85rem; width: 100%;
    padding: .95rem 1rem; text-align: left;
    background: #fff; border: 1.5px solid var(--ap-cream-200, #ece2d0); border-radius: 14px;
    cursor: pointer; font-family: inherit; color: inherit;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sc-section:hover { border-color: var(--brand, #0e5c63); transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--ap-navy, #0b3439) 8%, transparent); }
.sc-section:focus-visible { outline: 2px solid var(--brand, #0e5c63); outline-offset: 2px; }

.sc-section-ic {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--brand, #0e5c63) 12%, #fff);
    color: var(--brand, #0e5c63);
}
.sc-section-t { flex: 1 1 auto; min-width: 0; }
.sc-section-t strong { display: block; font-size: 15px; font-weight: 700; }
.sc-section-t span { display: block; margin-top: .15rem; font-size: 13px; line-height: 1.45; color: var(--ap-ink-soft, #405256); }

/* ---- conversation ---------------------------------------------------- */

.sc-back {
    display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .9rem;
    background: none; border: none; padding: 0;
    color: var(--brand, #0e5c63); font-family: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer;
}
.sc-back:focus-visible { outline: 2px solid var(--brand, #0e5c63); outline-offset: 3px; }

.sc-thread { display: flex; flex-direction: column; gap: .8rem; }

.sc-msg { max-width: 86%; padding: .7rem .9rem; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.sc-msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--ap-cream-200, #ece2d0); border-bottom-left-radius: 5px; }
.sc-msg-me  { align-self: flex-end; background: var(--brand, #0e5c63); color: var(--ap-on-brand, #fff); border-bottom-right-radius: 5px; }

.sc-typing { align-self: flex-start; display: flex; gap: 4px; padding: .75rem .9rem; }
.sc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ap-ink-faint, #808e92); animation: sc-bounce 1.1s infinite; }
.sc-typing span:nth-child(2) { animation-delay: .16s; }
.sc-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes sc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sc-typing span { animation: none; } }

/* ---- cards ----------------------------------------------------------- */

/* One card contract, four kinds. The server decides `kind` — never the
   model's free text — because a card is rendered markup and letting a
   tool-calling model pick the renderer turns a text field into an injection
   surface. See docs/chatbot_design.md. */
.sc-cards { display: grid; gap: .7rem; margin-top: .2rem; }

.sc-card {
    display: flex; gap: .8rem; padding: .8rem;
    background: #fff; border: 1px solid var(--ap-cream-200, #ece2d0); border-radius: 13px;
}
.sc-card-img { flex: 0 0 auto; width: 78px; height: 78px; border-radius: 9px; object-fit: cover; background: var(--ap-cream-200, #ece2d0); }
.sc-card-b { flex: 1 1 auto; min-width: 0; }
.sc-card-b h4 { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.sc-card-sub { margin: .2rem 0 0; font-size: 13px; color: var(--ap-ink-soft, #405256); }

.sc-card-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .5rem; }
.sc-card-meta div { font-size: 12px; color: var(--ap-ink-soft, #405256); }
.sc-card-meta strong { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-ink-faint, #808e92); }

.sc-card-acts { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
/* Buttons, never underlined links (owner, 2026-11-18). */
.sc-card-act, .sc-card-ask {
    display: inline-flex; align-items: center; padding: .4rem .85rem; border-radius: 999px;
    font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.sc-card-act { background: var(--brand, #0e5c63); color: var(--ap-on-brand, #fff); border: 1px solid var(--brand, #0e5c63); }
/* Hover takes the brand's secondary colour, as the site's own yellow
   buttons do (owner, 2026-11-18). The panel prefix outranks the host page's
   `a:hover`, which turned the label blue and underlined it. */
.sc-panel .sc-card-act:hover, .sc-panel .sc-card-act:focus-visible {
    background: var(--ap-hero-accent, #ffd23f); border-color: var(--ap-hero-accent, #ffd23f);
    color: var(--ap-ink, #182629); text-decoration: none;
}
.sc-panel .sc-card-ask:hover { text-decoration: none; }

/* A receipt is a record of what was filed, not a progress report. The status
   line is deliberately flat — no colour ramp, no pill that reads as movement,
   because nothing on any plane stores a status yet and the card must not
   imply one. */
.sc-card-receipt { border-left: 3px solid var(--ap-ink-faint, #808e92); }
.sc-receipt-state { margin-top: .5rem; font-size: 12px; color: var(--ap-ink-faint, #808e92); font-style: italic; }

.sc-card-notice { background: color-mix(in srgb, var(--ap-hero-accent, #ffd23f) 18%, #fff); border-color: color-mix(in srgb, var(--ap-hero-accent, #ffd23f) 45%, #fff); }

/* The anonymous answer: a login card. What on.com does — search is open,
   your own data needs proof of who you are. */
.sc-card-login { display: block; text-align: center; padding: 1.4rem 1.1rem; }
.sc-card-login .sc-lock { width: 26px; height: 26px; color: var(--brand, #0e5c63); }
.sc-card-login h4 { margin: .55rem 0 .3rem; font-size: 15.5px; }
.sc-card-login p { margin: 0 auto; max-width: 34ch; font-size: 13.5px; line-height: 1.5; color: var(--ap-ink-soft, #405256); }
.sc-login-actions { display: flex; justify-content: center; gap: .6rem; margin-top: .95rem; flex-wrap: wrap; }
.sc-btn {
    padding: .55rem 1.15rem; border-radius: 9px; border: 1.5px solid var(--brand, #0e5c63);
    font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none;
}
.sc-btn-primary { background: var(--brand, #0e5c63); color: var(--ap-on-brand, #fff); }
.sc-panel .sc-btn-primary:hover { background: var(--ap-hero-accent, #ffd23f); border-color: var(--ap-hero-accent, #ffd23f); color: var(--ap-ink, #182629); text-decoration: none; }
.sc-btn-ghost { background: transparent; color: var(--brand, #0e5c63); }
.sc-btn:focus-visible { outline: 2px solid var(--brand, #0e5c63); outline-offset: 2px; }

/* ---- composer -------------------------------------------------------- */

.sc-foot { flex: 0 0 auto; padding: .85rem 1.15rem 1rem; background: #fff; border-top: 1px solid var(--ap-cream-200, #ece2d0); }

.sc-chips-row { position: relative; display: flex; align-items: center; gap: .3rem; margin-bottom: .7rem; }
.sc-chips-row:not(:has(.sc-chip)) { display: none; }
.sc-chips {
    flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; gap: .4rem;
    overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sc-chips::-webkit-scrollbar { display: none; }
.sc-chips-arrow {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--ap-cream-200, #ece2d0); background: #fff;
    color: var(--brand, #0e5c63); font-size: 18px; line-height: 1; cursor: pointer;
}
.sc-chips-arrow:hover { border-color: var(--brand, #0e5c63); }
.sc-chip {
    flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start;
    padding: .35rem .75rem; border-radius: 999px;
    border: 1px solid var(--ap-cream-200, #ece2d0); background: var(--ap-cream, #f6f1e8);
    font-size: 12.5px; font-family: inherit; color: var(--ap-ink-soft, #405256); cursor: pointer;
}
.sc-chip:hover { border-color: var(--brand, #0e5c63); color: var(--brand, #0e5c63); }
.sc-chip:focus-visible { outline: 2px solid var(--brand, #0e5c63); outline-offset: 2px; }

.sc-form { display: flex; gap: .55rem; align-items: flex-end; }
.sc-input {
    flex: 1 1 auto; resize: none; min-height: 44px; max-height: 120px;
    padding: .65rem .85rem; border-radius: 11px;
    border: 1.5px solid var(--ap-cream-200, #ece2d0);
    font-family: inherit; font-size: 14.5px; line-height: 1.45; color: inherit;
}
.sc-input:focus { outline: none; border-color: var(--brand, #0e5c63); }
.sc-input:disabled { background: var(--ap-cream, #f6f1e8); cursor: not-allowed; }

.sc-send {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; border: none;
    background: var(--brand, #0e5c63); color: var(--ap-on-brand, #fff); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.sc-send:disabled { opacity: .45; cursor: not-allowed; }
.sc-send:focus-visible { outline: 2px solid var(--brand, #0e5c63); outline-offset: 2px; }

.sc-disclaimer { margin: .6rem 0 0; font-size: 10.5px; line-height: 1.45; color: var(--ap-ink-faint, #808e92); text-align: center; }

.sc-section-ic .sc-i { width: 20px; height: 20px; vertical-align: 0; }
.sc-preview-note .sc-i { width: 15px; height: 15px; }
.sc-back .sc-i { width: 15px; height: 15px; }

/* Answers keep their line breaks (the FAQ answer opens with its title). */
.sc-msg { white-space: pre-line; }

/* ---- on.com logic, our style (owner, 2026-11-18) ------------------------ */
.sc-launcher.sc-launcher-off { display: none; }
.sc-welcome { margin: .4rem 0 1.3rem; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--ap-navy, #0b3439); }
/* Four equal tiles, two and two, whatever their text (owner, 2026-11-18). */
.sc-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.sc-sections li { display: flex; }
.sc-section { flex-direction: column; justify-content: flex-start; min-height: 150px; height: 100%; }
.sc-section-t span { font-size: 12.5px; }
.sc-card-img { width: 96px; height: 96px; }
.sc-disclaimer a { color: var(--brand, #0e5c63); font-weight: 700; text-decoration: none; }
@media (max-width: 480px) {
    .sc-sections { grid-template-columns: 1fr 1fr; }
    .sc-section { min-height: 118px; padding: .8rem; }
    .sc-section-t span { display: none; }
    .sc-welcome { font-size: 21px; }
}
.sc-card-ask { background: #fff; color: var(--brand, #0e5c63); border: 1px solid var(--ap-cream-200, #ece2d0); }
.sc-card-ask:hover { border-color: var(--brand, #0e5c63); }

/* Trips already viewed, as the quote modal's «Le tue ricerche» cards
   (.prev-idea-card in richiesta_preventivo_modal.html): same sizes, borders
   and colours, the brand colour where that modal uses main_color. */
.sc-picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.sc-pick {
    display: flex; gap: .6rem; align-items: flex-start; width: 100%; text-align: left;
    padding: .7rem .8rem; border: 2px solid #e5e7eb; border-radius: 11px;
    background: #fff; cursor: pointer; font: inherit; color: inherit;
    transition: border-color .12s, box-shadow .12s;
}
.sc-pick.has-img { align-items: center; }
.sc-pick:hover, .sc-pick:focus-visible { border-color: var(--brand, #0e5c63); box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.sc-pick-img { flex-shrink: 0; width: 96px; height: 72px; border-radius: 10px; background: #eef2f6 center / cover no-repeat; }
.sc-pick-body { display: block; min-width: 0; flex: 1; }
.sc-pick-top { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; }
.sc-pick-id { font-size: 16px; font-weight: 700; color: #94a3b8; font-family: ui-monospace, monospace; }
.sc-pick-price { font-size: 16px; font-weight: 800; color: var(--brand, #0e5c63); white-space: nowrap; }
.sc-pick-title { display: -webkit-box; margin-top: 2px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ap-navy, #0b2c56);
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .sc-picks { grid-template-columns: 1fr; } }

/* «Scegli» on a viewed trip, where the quote modal has «Rivedi». */
.sc-pick-topr { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.sc-pick-go { display: inline-flex; align-items: center; background: #fff; color: var(--brand, #0e5c63); border: 1px solid #dbe3ec;
    border-radius: 999px; padding: 3px 10px; font-size: 13.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.sc-pick:hover .sc-pick-go { background: var(--ap-hero-accent, #ffd23f); border-color: var(--ap-hero-accent, #ffd23f); color: var(--ap-ink, #182629); }

/* «Torna al menu» as a button too. */
.sc-back { padding: .35rem .8rem; border: 1px solid var(--ap-cream-200, #ece2d0); border-radius: 999px; background: #fff; }
.sc-back:hover { border-color: var(--brand, #0e5c63); }

/* The suggestion line shows the start of the next one and fades into the
   white where more are hidden (owner, 2026-11-18). */
.sc-chips-row.sc-fade-r .sc-chips { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.sc-chips-row.sc-fade-l .sc-chips { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
.sc-chips-row.sc-fade-l.sc-fade-r .sc-chips { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 82%, transparent); }

/* Answers with lists and bold (the small markdown slice in chatbot.js). */
.sc-md { white-space: normal; }
.sc-md p { margin: 0; }
.sc-md p + p, .sc-md p + ul, .sc-md p + ol, .sc-md ul + p, .sc-md ol + p { margin-top: .55rem; }
.sc-md ul, .sc-md ol { margin: .35rem 0 0; padding-left: 1.2rem; }
.sc-md li + li { margin-top: .25rem; }
.sc-md strong { font-weight: 800; }

/* The panel's bar under the header, where the test strip was. */
.sc-bar {
    flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem;
    padding: .55rem 1.15rem; background: #fff; border-bottom: 1px solid var(--ap-cream-200, #ece2d0);
    position: relative; z-index: 2;  /* the signed-out tooltip hangs over the body */
}
.sc-bar-btn {
    display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem;
    border: 1px solid var(--ap-cream-200, #ece2d0); border-radius: 999px; background: #fff;
    color: var(--brand, #0e5c63); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.sc-bar-btn:hover { border-color: var(--brand, #0e5c63); }
.sc-bar-btn:focus-visible { outline: 2px solid var(--brand, #0e5c63); outline-offset: 2px; }
.sc-bar-btn .sc-i { width: 15px; height: 15px; }
/* «Le tue chat» signed out: greyed out, the reason on hover. */
.sc-bar-btn.sc-bar-btn-off { position: relative; color: var(--ap-ink-faint, #808e92); background: #f4f5f6; cursor: help; }
.sc-bar-btn.sc-bar-btn-off:hover { border-color: var(--ap-cream-200, #ece2d0); }
.sc-bar-btn-off[data-tip]:hover::after, .sc-bar-btn-off[data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; white-space: nowrap;
    padding: .35rem .6rem; border-radius: 8px; background: var(--ap-ink, #182629); color: #fff;
    font-size: 12px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.15); pointer-events: none;
}
.sc-bar > [data-sc-back] { grid-column: 1; justify-self: start; }
.sc-bar-title { grid-column: 2; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-ink-faint, #808e92); }
.sc-bar-new { grid-column: 3; justify-self: end; }

/* The /cerca/ card: its button beside the text, not under it. */
.sc-card-notice .sc-card-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; }
.sc-card-notice .sc-card-b > * { grid-column: 1; }
.sc-card-notice .sc-card-b > .sc-card-acts { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }

/* The login card sits in the middle of the panel. */
.sc-body:has(.sc-card-login) { display: flex; flex-direction: column; }
.sc-body:has(.sc-card-login) .sc-thread { flex: 1 1 auto; justify-content: center; }

/* A filed request. */
.sc-card-receipt { border-left: 1px solid var(--ap-cream-200, #ece2d0); padding: .95rem 1rem; }
.sc-rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.sc-rc-top h4 { margin: 0; font-size: 15px; line-height: 1.3; }
.sc-rc-status { flex: 0 0 auto; padding: .2rem .6rem; border-radius: 999px; background: var(--ap-cream-200, #ece2d0);
    color: var(--ap-ink, #182629); font-size: 12px; font-weight: 700; white-space: nowrap; }
.sc-rc-facts { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .45rem; font-size: 13px; color: var(--ap-ink-soft, #405256); }
.sc-rc-facts em { font-style: normal; color: var(--ap-ink-faint, #808e92); }
.sc-card-receipt .sc-receipt-state { margin: .7rem 0 0; padding: .55rem .75rem; border-radius: 10px; background: var(--ap-cream, #f6f1e8);
    border: 1px solid var(--ap-cream-200, #ece2d0); font-size: 13px; font-style: normal; line-height: 1.45; color: var(--ap-ink-soft, #405256); }

/* Message rows with who said it. */
.sc-row { display: flex; align-items: flex-end; gap: .5rem; max-width: 92%; }
.sc-row-bot { align-self: flex-start; }
.sc-row-me { align-self: flex-end; }
.sc-row .sc-msg { max-width: none; min-width: 0; }
.sc-av { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.sc-av .sc-i { width: 16px; height: 16px; vertical-align: 0; }
.sc-av-bot { background: var(--ap-navy, #0b3439); color: #fff; }
.sc-av-me { background: var(--ap-cream-200, #ece2d0); color: var(--brand, #0e5c63); }
/* Cards and picks line up with the answer's bubble, past the avatar. */
.sc-thread > .sc-cards, .sc-thread > .sc-picks, .sc-thread > .sc-typing { margin-left: calc(30px + .5rem); }
.sc-msg-link { margin: .65rem 0 0; }
.sc-thread > .sc-cards:has(.sc-card-login) { margin-left: 0; }

/* «Le tue chat». */
.sc-bar > [data-sc-history] { grid-column: 1; justify-self: start; }
.sc-hist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.sc-hist button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; text-align: left;
    padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--ap-cream-200, #ece2d0); background: #fff;
    font: inherit; color: var(--ap-ink, #182629); cursor: pointer; }
.sc-hist button:hover { border-color: var(--brand, #0e5c63); }
.sc-hist button:hover .sc-pick-go { background: var(--ap-hero-accent, #ffd23f); border-color: var(--ap-hero-accent, #ffd23f); color: var(--ap-ink, #182629); }
.sc-hist-t { min-width: 0; }
.sc-hist-t strong { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-hist-t span { font-size: 13px; color: var(--ap-ink-soft, #405256); }
.sc-hist-empty { margin: 0; color: var(--ap-ink-soft, #405256); font-size: 14px; }

/* ---- Compara offerte ---------------------------------------------------
   The trips ticked on /cerca/ sit in the space left of the panel, centred,
   and shrink as trips are added so five still fit with the quote button
   (owner, 2026-11-18). Above the scrim, below the panel. Desktop only:
   /cerca/ offers no comparison on a phone. */
.sc-cmp-side {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1095; box-sizing: border-box;
    width: calc(100vw - min(60vw, 1200px)); padding: 32px clamp(16px, 3vw, 40px);
    display: flex; flex-direction: column; justify-content: center; gap: 14px; overflow-y: auto;
    background: color-mix(in srgb, var(--ap-navy, #0b3439) 62%, transparent); font-family: inherit;
}
.sc-cmp-side * { box-sizing: border-box; }
/* «Le tue ricerche» would sit on the trips. */
body.sc-cmp-open .recent-searches-fab-container { display: none; }
@media (max-width: 768px) { .sc-cmp-side { display: none; } }
.sc-cmp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #fff; }
.sc-cmp-h b { font-size: 22px; font-weight: 800; }
.sc-cmp-h span { font-size: 14px; opacity: .85; }
.sc-cmp-card { position: relative; display: flex; min-height: 140px; background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--ap-navy, #0b3439) 30%, transparent); }
.sc-cmp-img { position: relative; flex: 0 0 140px; background: var(--ap-cream-200, #eef1f6) center / cover no-repeat; }
.sc-cmp-id { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
    color: #fff; background: linear-gradient(90deg, var(--ap-navy, #0b3439), var(--brand, #0e5c63)); }
.sc-cmp-b { flex: 1; min-width: 0; padding: 14px 40px 14px 16px; display: flex; flex-direction: column; gap: 6px; color: var(--ap-ink, #182629); }
.sc-cmp-b h4 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 800; color: var(--brand, #0e5c63);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-cmp-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ap-ink-soft, #39508a); }
.sc-cmp-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sc-cmp-foot small { font-size: 12px; color: var(--ap-ink-faint, #8a97b3); }
.sc-cmp-foot strong { font-size: 19px; font-weight: 800; color: var(--brand, #0e5c63); }
.sc-cmp-foot a { font-size: 13.5px; font-weight: 800; color: var(--brand, #0e5c63); text-decoration: none; white-space: nowrap; }
.sc-cmp-foot a:hover { text-decoration: underline; }
.sc-cmp-x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; padding: 0;
    border: 1px solid var(--ap-cream-200, #e3e8f0); background: #fff; color: var(--ap-ink-faint, #8a97b3); font-size: 16px; line-height: 1; cursor: pointer; }
.sc-cmp-x:hover { color: var(--brand, #0e5c63); border-color: currentColor; }
.sc-cmp-quote { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; height: 50px; margin-top: 4px;
    border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 800;
    background: var(--ap-gold, #f1c400); color: var(--ap-navy, #0b3439);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--ap-navy, #0b3439) 25%, transparent); }
.sc-cmp-quote .sc-i { width: 18px; height: 18px; }
.sc-cmp-add { margin: 0; text-align: center; font-size: 13.5px; color: #fff; opacity: .9; }
/* Three trips and up: smaller cards. Four and five: compact. */
.sc-cmp-n3 .sc-cmp-card { min-height: 120px; } .sc-cmp-n3 .sc-cmp-img { flex-basis: 120px; }
.sc-cmp-n4, .sc-cmp-n5 { gap: 10px; }
.sc-cmp-n4 .sc-cmp-card, .sc-cmp-n5 .sc-cmp-card { min-height: 0; border-radius: 13px; }
.sc-cmp-n4 .sc-cmp-img, .sc-cmp-n5 .sc-cmp-img { flex-basis: 100px; }
.sc-cmp-n4 .sc-cmp-b, .sc-cmp-n5 .sc-cmp-b { padding: 9px 36px 9px 12px; gap: 3px; }
.sc-cmp-n4 .sc-cmp-b h4, .sc-cmp-n5 .sc-cmp-b h4 { font-size: 14px; }
.sc-cmp-n4 .sc-cmp-facts, .sc-cmp-n5 .sc-cmp-facts { font-size: 12px; }
.sc-cmp-n5 .sc-cmp-facts span:nth-child(n+3) { display: none; }
.sc-cmp-n4 .sc-cmp-foot strong, .sc-cmp-n5 .sc-cmp-foot strong { font-size: 16px; }
.sc-cmp-n4 .sc-cmp-id, .sc-cmp-n5 .sc-cmp-id { top: 7px; left: 7px; font-size: 11px; }
.sc-cmp-n5 .sc-cmp-x { top: 7px; right: 7px; width: 22px; height: 22px; font-size: 14px; }
