/* The "Tell me about them" page. Only what base.css and the looks do not have. Colours come from currentColor. */
.thread { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 10px; min-height: 30vh; }
.thread > * { scroll-margin-top: 12px; scroll-margin-bottom: 150px; }
.thread > .cards { align-self: stretch; margin: 2px 0 6px; }
.thread > .cards.old { opacity: .55; }
.bubble { max-width: 92%; padding: 10px 14px; border-radius: 14px; line-height: 1.45; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.bubble.me { align-self: flex-end; background: var(--berry); color: var(--berry-ink); border-color: var(--berry); border-bottom-right-radius: 4px; }
.bubble.it { align-self: flex-start; background: var(--sheet); border-bottom-left-radius: 4px; }
.bubble .linkbtn { text-align: left; }
/* Three dots while the answer is made. */
.bubble.typing { display: flex; gap: 5px; padding: 14px 16px; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; animation: tg-dot 1.1s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .18s; }
.bubble.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes tg-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .bubble.typing span { animation: none; opacity: .6; } }
.bubble p { margin: 0 0 6px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble .small { opacity: .8; }
.mix { display: grid; gap: 5px; margin: 8px 0 2px; }
.mix .bar { display: grid; grid-template-columns: 9.5em 1fr 3em; gap: 8px; align-items: center; font-size: .86rem; }
.mix .bar i { display: block; height: 8px; border-radius: 4px; background: currentColor; opacity: .75; min-width: 3px; }
.mix .bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ask { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ask:empty { display: none; }
/* The box to write in: it stays at the bottom of the screen while the chat scrolls. */
.composer { position: sticky; bottom: 0; z-index: 5; background: var(--paper); margin: 0 -22px; padding: 10px 22px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.say { margin: 0; }
.sayrow { display: flex; gap: 8px; align-items: flex-end; }
.sayrow textarea { flex: 1 1 auto; min-width: 0; width: auto; resize: none; min-height: 44px; max-height: 160px; padding-top: 10px; padding-bottom: 10px; line-height: 1.35; }
.sayrow .btn { flex: 0 0 auto; padding: 0 12px; }
html .sayrow .btn { font-size: 1.05rem; }
#mic-note { margin: 6px 0 0; }
#mic.on { outline: 2px solid currentColor; }
.pick .fit { display: inline-block; justify-self: start; width: auto; font-weight: 700; font-size: .86rem; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; margin: 0 0 6px; }
.pick .mixline { font-size: .84rem; opacity: .8; margin: 4px 0 0; }
.buyways { display: grid; gap: 12px; margin-top: 10px; }
.buyways h4 { margin: 0 0 4px; font-size: 1rem; }
.pick .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pick .acts .btn { flex: 1 1 9em; }
/* "Buy now" is the main button of a gift: full width, filled. The other two are under it. */
.pick .acts .buynow { flex: 1 1 100%; }
.pick .acts .swap { min-height: 44px; font-size: .94rem; }
/* The page of one gift, before the gift is there. */
.pick.skel .photo, .pick.skel h3, .pick.skel .price, .pick.skel .why { background: var(--rule); border-radius: 6px; border: 0; animation: tg-skel 1.2s ease-in-out infinite alternate; }
.pick.skel h3 { width: 80%; }
.pick.skel .price { width: 30%; }
.pick.skel .why { height: 3em; }
@keyframes tg-skel { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pick.skel * { animation: none; } }
.buyhere { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding-top: 12px; display: grid; gap: 8px; }
.buyhere h4 { margin: 0; font-size: 1rem; }
.buyhere > div { display: grid; gap: 10px; }
.buyhere .bh-l { display: grid; gap: 4px; }
.buyhere .bh-note:empty { display: none; }
.buyhere .bh-note { font-weight: 600; }
.bh-sum { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.bh-sum dt { opacity: .75; }
.bh-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.bh-sum dt:last-of-type, .bh-sum dd:last-of-type { font-weight: 700; border-top: 1px solid currentColor; padding-top: 4px; }
/* Long text (a link, an address) wraps inside the gift card. It never makes the panel wider than the card. */
.pick, .pick .panel, .buyways, .buyways > div, .buyhere, .buyhere > div { min-width: 0; max-width: 100%; }
.pick .panel, .buyhere { overflow-wrap: anywhere; }
.bh-sum dd { min-width: 0; overflow-wrap: anywhere; }
.buyhere .btn:disabled { opacity: .7; cursor: progress; }
.bh-wait::after { content: '...'; display: inline-block; width: 1.2em; text-align: left; overflow: hidden; vertical-align: bottom; animation: bh-dots 1.2s steps(4, end) infinite; }
@keyframes bh-dots { from { width: 0; } to { width: 1.2em; } }
@media (prefers-reduced-motion: reduce) { .bh-wait::after { animation: none; } }
.pick .about { margin: 6px 0 0; }
.pick .about summary { cursor: pointer; }

/* Gift cards in the chat: a readable name (not six lines of capitals) and two small buttons side by side under "Buy now". */
#thread .pick h3 { font-size: 1.02rem; line-height: 1.25; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#thread .pick .acts .toagent, #thread .pick .acts .swap { flex: 1 1 6.5em; min-height: 44px; font-size: .84rem; padding-left: 8px; padding-right: 8px; letter-spacing: 0; }
/* 4 Dec 2026: the longer description and the mix line use the full width of the card, under the picture. */
#thread .pick .about, #thread .pick .mixline, #thread .pick .aboutline { grid-column: 1 / -1; }
#thread .pick .aboutline { margin: 2px 0 0; }
#thread .pick .about summary { padding: 9px 0; }
/* A text button that stands alone is tall enough for a thumb. */
#start-agent, #to-chat, .bubble .linkbtn { display: inline-block; padding: 10px 0; }
/* "Send" with an empty box: the box asks for words. */
.sayrow textarea.need { border-color: var(--berry); }
