.tbw-tb { background: var(--wp--preset--color--white); border: 2px solid var(--wp--preset--color--brand); border-radius: 16px; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.tbw-tb > * { margin-block: 0; }
.tbw-tb h2.tbw-tb__title, .tbw-tb h3.tbw-tb__name { margin-block: 0; }
.tbw-tb h3.tbw-tb__results { margin-block: .5rem 0; }
.wp-block-post-content .tbw-tb .tbw-eyebrow { display: none; }
.tbw-tb__title { font-family: var(--wp--preset--font-family--fraunces); font-size: var(--wp--preset--font-size--large); line-height: 1.2; margin: 0; }
.tbw-tb__lead { color: var(--wp--preset--color--ink-soft); margin: 0; }
.tbw-tb__entry { display: grid; gap: .25rem .75rem; grid-template-columns: minmax(0, 1fr); }
.tbw-tb__big { align-items: center; background: var(--wp--preset--color--white); border: 1.5px solid var(--wp--preset--color--ink); border-radius: 999px; box-sizing: border-box; color: var(--wp--preset--color--ink); cursor: pointer; display: flex; font: 600 1.0625rem/1.2 var(--wp--preset--font-family--inter); justify-content: center; min-height: 52px; padding: .5rem 1.25rem; text-align: center; text-decoration: none; width: 100%; }
.tbw-tb__big--p { background: var(--wp--preset--color--brand); border-color: var(--wp--preset--color--brand); color: #fff; }
.tbw-tb__big--p:hover, .tbw-tb__big--p:focus-visible { color: #fff; filter: brightness(1.08); }
.tbw-tb__big:focus-visible, .tbw-tb__btn:focus-visible, .tbw-tb__links a:focus-visible, .tbw-tb__seg input:focus-visible + span { outline: 3px solid var(--wp--preset--color--accent, #C2412E); outline-offset: 2px; }
.tbw-tb__hint { color: var(--wp--preset--color--ink-soft); display: block; font-size: .8125rem; margin: 0 0 .5rem; text-align: center; }
.tbw-tb__form { display: flex; flex-direction: column; gap: .75rem; }
.tbw-tb__form label, .tbw-tb__group legend { font-size: .875rem; font-weight: 600; }
.tbw-tb__form select, .tbw-tb__search { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; box-sizing: border-box; font: inherit; min-height: 48px; padding: 0 .75rem; width: 100%; }
.tbw-tb__form .tbw-tb__big { margin-top: .25rem; }
.tbw-tb__field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.tbw-tb__row { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.tbw-tb__group { border: 0; display: flex; flex-direction: column; gap: .4rem; margin: 0; min-width: 0; padding: 0; }
.tbw-tb__group legend { margin: 0 0 .35rem; padding: 0; }
.tbw-tb__form .tbw-tb__hint { margin: 0; text-align: left; }
.tbw-tb__search { margin-bottom: .25rem; }
/* Budget level: three segments, real radio buttons (keyboard: arrows), the chosen one filled. */
.tbw-tb__segs { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr)); } /* 3 in a row at 375px, wraps (2 + 1) at 320px: "Comfortable" never clips (QA 2026-11-23) */
.tbw-tb__seg { cursor: pointer; display: block; font-weight: 400 !important; position: relative; }
.tbw-tb__seg input { height: 1px; margin: 0; opacity: 0; position: absolute; width: 1px; }
.tbw-tb__seg span { align-items: center; background: #fff; border: 1.5px solid var(--wp--preset--color--line); border-radius: 12px; box-sizing: border-box; display: flex; font-size: .9375rem; justify-content: center; line-height: 1.2; min-height: 48px; overflow-wrap: anywhere; padding: .35rem .25rem; text-align: center; }
.tbw-tb__seg input:checked + span { background: #eef3f8; border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand-ink, #0F4C81); font-weight: 600; }
.tbw-tb__change { border-top: 1px solid var(--wp--preset--color--line); padding-top: .5rem; }
.tbw-tb__change > summary { align-items: center; cursor: pointer; display: flex; font-weight: 600; min-height: 44px; }
.tbw-tb__change[open] > summary { margin-bottom: .5rem; }
.tbw-tb__results { font-family: var(--wp--preset--font-family--fraunces); font-size: var(--wp--preset--font-size--medium); margin: .5rem 0 0; }
.tbw-tb__cards { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.tbw-tb__card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; display: flex; flex-direction: column; gap: .5rem; padding: .5rem .5rem 1rem; }
.tbw-tb__card > *:not(.tbw-tb__img) { padding-inline: .5rem; }
.tbw-tb__img { position: relative; }
.tbw-tb__img img { aspect-ratio: 16 / 9; border-radius: 10px; display: block; height: auto; object-fit: cover; width: 100%; }
.tbw-tb__tag { background: #dcefe3; border-radius: 999px; color: #1f6a3e; font-size: .75rem; font-weight: 700; left: .5rem; padding: .3rem .65rem; position: absolute; top: .5rem; }
.tbw-tb__name { font-family: var(--wp--preset--font-family--fraunces); font-size: var(--wp--preset--font-size--medium); margin: 0; }
.tbw-tb__meta, .tbw-tb__note, .tbw-tb__empty { color: var(--wp--preset--color--ink-soft); font-size: .875rem; margin: 0; }
.tbw-tb__go { margin: .25rem 0 0; }
.tbw-tb__go .tbw-tb__btn { box-sizing: border-box; justify-content: center; width: 100%; }
.tbw-tb__links { display: flex; flex-wrap: wrap; font-size: .875rem; gap: 0 1rem; margin: 0; }
.tbw-tb__links a { align-items: center; color: var(--wp--preset--color--ink); display: inline-flex; min-height: 44px; text-decoration: underline; text-underline-offset: 2px; }
.tbw-tb__more { margin: 0; }
.tbw-tb__btn { align-items: center; background: var(--wp--preset--color--brand); border: 1.5px solid var(--wp--preset--color--brand); border-radius: 999px; color: #fff; display: inline-flex; font-size: .9375rem; font-weight: 600; min-height: 44px; padding: 0 1rem; text-decoration: none; }
.tbw-tb__btn--ghost { background: #fff; border-color: var(--wp--preset--color--line); color: var(--wp--preset--color--ink); }
.tbw-tb__btn:hover, .tbw-tb__btn:focus-visible, .tbw-tb__btn:active { color: #fff; }
.tbw-tb__btn--ghost:hover, .tbw-tb__btn--ghost:focus-visible, .tbw-tb__btn--ghost:active { color: var(--wp--preset--color--ink); }
.tbw-tb__link { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 640px) {
	.tbw-tb__entry { grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; }
	.tbw-tb__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tbw-tb__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tbw-tb__trip > .tbw-tb__big, .tbw-tb__ideas > .tbw-tb__big { align-self: flex-start; min-width: 16rem; width: auto; }
}
/* Notices (wizard and plan page, EN and PT): small print, muted ink-soft (#4F5B66 on white: 7:1, AA). */
.tbw-tb__legal { border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink-soft); font-size: .8rem; line-height: 1.4; margin-top: .25rem; padding-top: .6rem; }
.tbw-tb__legal p { font-size: inherit; line-height: inherit; margin: 0 0 .3rem; }
.tbw-tb__legal p:last-child { margin-bottom: 0; }
/* The notices (plan page, form page, the in-post widget; EN and PT): small and muted whatever the theme gives a body p (the
   theme's paragraph rules are more specific than one class, as with the tips box title). */
.tbw-tb aside.tbw-tb__legal, .tbw-tb aside.tbw-tb__legal p { color: var(--wp--preset--color--ink-soft); font-size: .8rem; line-height: 1.4; }
.tbw-tb aside.tbw-tb__legal p { margin: 0 0 .3rem; }
.tbw-tb aside.tbw-tb__legal p:last-child { margin-bottom: 0; }
.tbw-tb__legal a { padding: .75rem .15rem; text-decoration: underline; } /* "How we handle your data", contact@: inline padding makes a 44px tap area without moving the lines (QA 2026-11-23). */

.tbw-tb__plan { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.tbw-plan { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; display: flex; flex-direction: column; gap: .75rem; padding: 1rem; }
.tbw-plan__title { font-family: var(--wp--preset--font-family--fraunces); font-size: var(--wp--preset--font-size--medium); margin: 0; }
.tbw-plan__meta, .tbw-plan__area, .tbw-plan__note { color: var(--wp--preset--color--ink-soft); font-size: .875rem; margin: 0; }
.tbw-plan__block { background: var(--wp--preset--color--sand); border-radius: 12px; padding: .75rem; }
.tbw-plan__block h4 { font-size: 1rem; margin: 0 0 .5rem; }
.tbw-plan__stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.tbw-plan__stop { border: 1px solid var(--wp--preset--color--line); border-radius: 12px; display: flex; flex-direction: column; gap: .5rem; padding: .75rem; }
.tbw-plan__head { display: flex; flex-wrap: wrap; gap: .25rem .75rem; justify-content: space-between; }
.tbw-plan__head span { color: var(--wp--preset--color--ink-soft); font-size: .875rem; }
.tbw-plan__ghost { display: flex; flex-direction: column; gap: .4rem; filter: blur(3px); }
.tbw-plan__ghost i { background: var(--wp--preset--color--line); border-radius: 6px; display: block; height: .9rem; }
.tbw-plan__ghost i:nth-child(1) { height: 1.1rem; width: 55%; } .tbw-plan__ghost i:nth-child(2) { width: 80%; } .tbw-plan__ghost i:nth-child(3) { width: 45%; }
.tbw-plan__ghost b { background: #c9d8e8; border-radius: 999px; display: inline-block; height: 2rem; margin-right: .5rem; max-width: 45%; width: 9rem; }
/* Locked preview: what is visible sells the plan; the details are placeholders (they are not in the HTML). */
.tbw-plan__top { align-items: flex-start; display: flex; flex-wrap: wrap; gap: .4rem .75rem; justify-content: space-between; }
.tbw-plan__went { background: #dcefe3; border-radius: 999px; color: #1f6a3e; font-size: .8125rem; font-weight: 700; padding: .3rem .7rem; white-space: nowrap; }
.tbw-plan__counts { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.tbw-plan__counts li { background: #eef3f8; border-radius: 999px; color: var(--wp--preset--color--brand-ink, #0F4C81); font-size: .875rem; font-weight: 600; padding: .35rem .75rem; }
.tbw-plan__locked { background: var(--wp--preset--color--sand); border-radius: 10px; display: flex; flex-direction: column; gap: .5rem; padding: .65rem .75rem; }
.tbw-plan__locked .tbw-plan__ghost { display: block; }
.tbw-plan__locked .tbw-plan__ghost i { margin-bottom: .4rem; }
.tbw-plan__locked .tbw-plan__ghost b + b { width: 6rem; }
.tbw-plan__lockline { align-items: center; color: var(--wp--preset--color--ink-soft); display: flex; font-size: .8125rem; gap: .35rem; margin: 0; }
.tbw-plan__lockline svg { flex: 0 0 14px; height: 14px; width: 14px; } /* Never squeezed into a dot by a long line (QA 2026-11-23, the sample). */
.tbw-plan__ghostline { background: var(--wp--preset--color--line); border-radius: 6px; display: block; filter: blur(3px); height: .75rem; margin-top: .3rem; width: 85%; }
.tbw-plan--locked .tbw-plan__days li:first-child { border-top: 0; }
.tbw-plan__places { color: var(--wp--preset--color--ink); font-size: .875rem; list-style: none; margin: .25rem 0 0; padding: 0; }
.tbw-plan__places li { display: inline; }
.tbw-plan__places li:not(:last-child)::after { color: var(--wp--preset--color--ink-soft); content: " \00b7  "; }
.tbw-plan__origin { border-top: 1px solid var(--wp--preset--color--line); display: flex; flex-direction: column; gap: .35rem; margin-top: .75rem; padding-top: .75rem; }
.tbw-plan__origin label { font-size: .875rem; font-weight: 600; }
/* "De onde partes?" and "Tens um código?" share one row style (owners, 2026-11-23): field and ghost button stacked, full
   width, under 380px; one row from 380px up (field flex 1, button auto width). 48px, 16px text (no iOS zoom). */
.tbw-plan__origin-row, .tbw-pay__coderow { display: flex; flex-direction: column; gap: .5rem; }
.tbw-tb .tbw-plan__origin input[type="text"], .tbw-tb .tbw-pay__coderow input[type="text"] { background: #fff; border: 1px solid var(--wp--preset--color--ink-soft, #4F5B66); border-radius: 8px; box-sizing: border-box; color: inherit; font: inherit; font-size: 1rem; height: auto; letter-spacing: .08em; margin: 0; max-width: 100%; min-height: 48px; min-width: 0; padding: 0 .875rem; text-transform: uppercase; width: 100%; }
.tbw-tb .tbw-plan__origin input[type="text"]:focus-visible, .tbw-tb .tbw-pay__coderow input[type="text"]:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #C2412E); outline-offset: 1px; }
.tbw-tb .tbw-plan__origin-row .tbw-tb__btn, .tbw-tb .tbw-pay__coderow .tbw-tb__btn { box-sizing: border-box; justify-content: center; min-height: 48px; width: 100%; }
@media (min-width: 380px) {
	.tbw-plan__origin-row, .tbw-pay__coderow { align-items: stretch; flex-direction: row; }
	.tbw-tb .tbw-plan__origin input[type="text"], .tbw-tb .tbw-pay__coderow input[type="text"] { flex: 1 1 auto; width: auto; }
	.tbw-tb .tbw-plan__origin-row .tbw-tb__btn, .tbw-tb .tbw-pay__coderow .tbw-tb__btn { flex: 0 0 auto; width: auto; }
}
.tbw-plan__origin .tbw-tb__hint { margin: 0; text-align: left; }
.tbw-plan__hotel { display: flex; flex-direction: column; gap: .35rem; }
.tbw-plan__hotel.has-photo { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
.tbw-plan__photo { aspect-ratio: 4 / 3; background: var(--wp--preset--color--sand); border-radius: 10px; display: block; height: auto; max-width: 100%; object-fit: cover; width: 100%; }
.tbw-plan__hinfo { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
@media (min-width: 640px) { .tbw-plan__hotel.has-photo { align-items: start; gap: .9rem; grid-template-columns: 12rem minmax(0, 1fr); } }
.tbw-plan__tag { align-self: flex-start; background: #e3ecf5; border-radius: 999px; color: var(--wp--preset--color--brand-ink); font-size: .75rem; font-weight: 700; padding: .25rem .6rem; }
.tbw-plan__tag.is-stayed { background: #dcefe3; color: #1f6a3e; }
.tbw-plan__row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.tbw-lock { border: 2px solid var(--wp--preset--color--brand); border-radius: 14px; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; }
.tbw-lock__h { font-family: var(--wp--preset--font-family--fraunces); font-size: var(--wp--preset--font-size--medium); margin: 0; }
.tbw-lock__lead, .tbw-lock__terms p { color: var(--wp--preset--color--ink-soft); font-size: .875rem; margin: 0 0 .5rem; }
.tbw-lock__err { background: #fbe9e6; border-radius: 10px; color: #9f3223; font-size: .875rem; margin: 0; padding: .5rem .75rem; }
.tbw-lock__form { display: flex; flex-direction: column; gap: .5rem; }
.tbw-lock__form input[type="text"] { background: #fff; box-sizing: border-box; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; font: inherit; letter-spacing: .1em; min-height: 48px; padding: 0 .75rem; text-transform: uppercase; width: 100%; }
.tbw-lock__hp { height: 0; margin: 0; overflow: hidden; position: absolute; width: 0; }
.tbw-lock__terms summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.tbw-tb__form input[type="date"], .tbw-tb__form input[type="text"] { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; font: inherit; min-height: 48px; padding: 0 .75rem; width: 100%; }

.tbw-sr { clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
/* Home spotlight (view.v5.js): only the box changes, nothing covers the page. */
.tbw-tb[data-tbw-spot] { transition: box-shadow .45s ease, transform .45s ease; }
.tbw-tb.tbw-spot-lit { box-shadow: 0 0 0 4px rgba(15, 76, 129, .22), 0 12px 32px rgba(15, 76, 129, .28); transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) { .tbw-tb[data-tbw-spot] { transition: none; } .tbw-tb.tbw-spot-lit { box-shadow: 0 0 0 4px rgba(15, 76, 129, .35); transform: none; } }

.tbw-tb--post { margin-block: 2.5rem 1.5rem; }
.tbw-tb__teaser { background: var(--wp--preset--color--sand); border-radius: 12px; font-size: .9375rem; margin: 1rem 0; padding: .75rem 1rem; }
.tbw-tb__teaser a { font-weight: 600; text-decoration: underline; }
.tbw-tb.tbw-glow { animation: tbw-glow 1.4s ease-out 1; }
@keyframes tbw-glow { 0% { box-shadow: 0 0 0 0 rgba(15, 76, 129, .45); } 100% { box-shadow: 0 0 0 14px rgba(15, 76, 129, 0); } }
@media (prefers-reduced-motion: reduce) { .tbw-tb.tbw-glow { animation: none; } }

.tbw-tb__form input, .tbw-tb__form select { box-sizing: border-box; max-width: 100%; }

.tbw-plan__takeaway { margin-top: .25rem; }
.tbw-take { background: var(--wp--preset--color--sand); border-radius: 14px; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; }
.tbw-take__h { font-family: var(--wp--preset--font-family--fraunces); font-size: var(--wp--preset--font-size--medium); margin: 0; }
.tbw-take__form { display: flex; flex-direction: column; gap: .5rem; }
.tbw-take__form label { font-size: .875rem; font-weight: 600; }
.tbw-take__form input[type="email"] { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; box-sizing: border-box; font: inherit; min-height: 48px; padding: 0 .75rem; width: 100%; }
.tbw-take__opt { align-items: flex-start; display: flex; font-weight: 400 !important; gap: .6rem; min-height: 44px; }
.tbw-take__opt input { flex: 0 0 1.4rem; height: 1.4rem; margin-top: .1rem; width: 1.4rem; }
.tbw-take__fine { color: var(--wp--preset--color--ink-soft); font-size: .8125rem; margin: 0; }
.tbw-take__ok { background: #dcefe3; border-radius: 10px; color: #1f6a3e; font-size: .9375rem; font-weight: 600; margin: 0; padding: .6rem .8rem; }

.tbw-tb, .tbw-plan, .tbw-lock, .tbw-take, .tbw-tb__card { box-sizing: border-box; }

.tbw-plan__timing { background: #eef3f8; border-left: 3px solid var(--wp--preset--color--brand); font-size: .9375rem; margin: 0; padding: .6rem .8rem; }
.tbw-plan__timing.is-off { background: #fbeee9; border-left-color: var(--wp--preset--color--accent); }
.tbw-plan__ai { background: #fbeee9; border-left: 3px solid var(--wp--preset--color--accent); font-size: .875rem; margin: 0; padding: .6rem .8rem; }
.tbw-plan__map { margin: 0 auto; max-width: 720px; width: 100%; } /* Desktop: no 1300px map pushing the plan down (QA 2026-11-23). */
.tbw-plan__map img { border-radius: 12px; display: block; height: auto; margin: 0 auto; max-height: min(480px, 70vh); max-width: 100%; width: auto; }
.tbw-plan__map figcaption { color: var(--wp--preset--color--ink-soft); font-size: .8125rem; margin-top: .25rem; }
.tbw-plan__days { list-style: none; margin: 0; padding: 0; }
.tbw-plan__days li { border-top: 1px solid var(--wp--preset--color--line); font-size: .9375rem; padding: .45rem 0; }
.tbw-plan__dn { color: var(--wp--preset--color--accent-dark); font-size: .8125rem; font-weight: 700; margin-right: .35rem; }
.tbw-plan__dd { color: var(--wp--preset--color--ink-soft); font-size: .8125rem; margin-right: .35rem; }
.tbw-plan__big { color: var(--wp--preset--color--brand); font-family: var(--wp--preset--font-family--fraunces); font-size: 1.5rem; margin: 0; }
.tbw-plan__big span { color: var(--wp--preset--color--ink-soft); font-family: var(--wp--preset--font-family--inter); font-size: .8125rem; }
.tbw-plan__tips h4, .tbw-plan__faq h4, .tbw-plan__ess h4 { font-size: 1rem; margin: 0 0 .5rem; }
.tbw-plan__tips ul { margin: 0; padding-left: 1.1rem; }
.tbw-plan__tips li, .tbw-plan__faq p { font-size: .9375rem; margin: 0 0 .5rem; }
.tbw-plan__ess dl { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.tbw-plan__ess dl > div { background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: .5rem .65rem; }
.tbw-plan__ess dt { color: var(--wp--preset--color--accent-dark); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tbw-plan__ess dd { font-size: .9375rem; margin: 0; }
/* AI plans: every AI item carries this label; the waiting and "ready tomorrow" messages. */
.tbw-ai-tag { background: #fbeee9; border-radius: 999px; color: #9f3223; display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1.5; margin-left: .35rem; padding: 0 .5rem; vertical-align: middle; white-space: nowrap; }
.tbw-plan__ddesc { color: var(--wp--preset--color--ink-soft); display: block; font-size: .875rem; margin-top: .15rem; }
.tbw-plan__acth { font-size: .875rem; font-weight: 600; margin: .6rem 0 .25rem; }
.tbw-plan__acts { font-size: .9375rem; margin: 0; padding-left: 1.1rem; }
.tbw-plan__acts li { margin: 0 0 .3rem; }
.tbw-plan__ours h4 { font-size: 1rem; margin: 0 0 .5rem; }
.tbw-plan__ours ul { margin: 0; padding-left: 1.1rem; }
.tbw-plan__ours li { font-size: .9375rem; margin: 0 0 .4rem; }
/* AI wait: a spinner while the plan is prepared (static ring with reduced motion), then a done or queued state. */
.tbw-tb__wait { align-items: center; display: flex; gap: .6rem; }
.tbw-tb__wait[hidden] { display: none; }
.tbw-tb__spin { border: 3px solid #c9d8e8; border-radius: 50%; border-top-color: var(--wp--preset--color--brand); flex: 0 0 auto; height: 1.25rem; width: 1.25rem; animation: tbw-spin .9s linear infinite; }
.tbw-tb__wait.is-done .tbw-tb__spin, .tbw-tb__wait.is-queued .tbw-tb__spin { animation: none; border-color: var(--wp--preset--color--brand); }
.tbw-tb__wait.is-queued { border-left-color: var(--wp--preset--color--accent-dark, #9F3223); }
.tbw-tb__wait.is-queued .tbw-tb__spin { border-color: var(--wp--preset--color--accent-dark, #9F3223); }
[data-tb-submit][aria-busy="true"] { cursor: progress; opacity: .7; }
@keyframes tbw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tbw-tb__spin { animation: none; border-top-color: var(--wp--preset--color--brand); border-right-color: var(--wp--preset--color--brand); } }
.tbw-tb__wait, .tbw-tb__queued { background: #eef3f8; border-left: 3px solid var(--wp--preset--color--brand); color: var(--wp--preset--color--ink); font-size: .9375rem; margin: .5rem 0; padding: .6rem .8rem; }
/* Unlock: the pay box (inc/trip-pay.php) is the one call to action; the Instagram code folds under it. */
.tbw-unlock-cta { display: flex; flex-direction: column; gap: .5rem; }
.tbw-pay { background: #fff; }
.tbw-pay__price { align-items: baseline; display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin: 0; }
.tbw-pay__price strong { color: var(--wp--preset--color--brand); font-family: var(--wp--preset--font-family--fraunces); font-size: 1.75rem; line-height: 1.1; }
.tbw-pay__price span { color: var(--wp--preset--color--ink-soft); font-size: .8125rem; }
.tbw-pay__form { display: flex; flex-direction: column; gap: .6rem; }
.tbw-pay__consent { align-items: flex-start; cursor: pointer; display: flex; font-size: .875rem; gap: .6rem; line-height: 1.4; min-height: 44px; }
.tbw-pay__consent input { flex: 0 0 1.5rem; height: 1.5rem; margin: .1rem 0 0; width: 1.5rem; } /* 24px boxes; the whole label is the 44px target. */
.tbw-pay__note { background: #eef3f8; border-radius: 10px; font-size: .875rem; margin: 0; padding: .5rem .75rem; }
.tbw-pay__fine { color: var(--wp--preset--color--ink-soft); font-size: .8125rem; margin: 0; }
.tbw-pay__withdraw { font-size: .8125rem; margin: .5rem 0 0; }
.tbw-pay__withdraw a { align-items: center; color: var(--wp--preset--color--ink-soft); display: inline-flex; min-height: 44px; text-decoration: underline; }
.tbw-lock__alt > summary { align-items: center; color: var(--wp--preset--color--ink); cursor: pointer; display: flex; font-size: .9375rem; font-weight: 600; min-height: 44px; }
.tbw-lock__alt[open] > summary { margin-bottom: .5rem; }
.tbw-lock__alt .tbw-lock { border-width: 1px; border-color: var(--wp--preset--color--line); }
/* Change requests before payment (inc/trip-changes.php): "Queres ajustar o roteiro?" above the unlock / pay box. */
.tbw-chg { background: #f6f9fc; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; box-sizing: border-box; margin: 0 0 .75rem; padding: .85rem 1rem; }
.tbw-chg[open], .tbw-chg.is-done { display: flex; flex-direction: column; gap: .6rem; }
.tbw-chg__h { color: var(--wp--preset--color--ink); cursor: pointer; font-family: inherit; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; margin: 0; min-height: 28px; }
.tbw-chg.is-done .tbw-chg__h { cursor: default; }
.tbw-chg__lead, .tbw-chg__left { margin: 0; }
.tbw-chg__form { display: flex; flex-direction: column; gap: .6rem; }
.tbw-chg__form input[type="email"], .tbw-chg__form input[type="text"] { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; box-sizing: border-box; font: inherit; min-height: 48px; padding: 0 .75rem; width: 100%; }
.tbw-chg__form input:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #C2412E); outline-offset: 1px; }
.tbw-chg__fine { color: var(--wp--preset--color--ink-soft); font-size: .8125rem; line-height: 1.45; margin: 0; }
.tbw-chg__next { align-self: flex-start; cursor: pointer; }
/* Suggestion chips of the adjustments box (2026-11-23): 44px targets, wrap on small screens. */
.tbw-chg__chips { align-items: center; display: flex; flex-wrap: wrap; gap: .4rem; }
.tbw-chg__chip { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; color: var(--wp--preset--color--ink); cursor: pointer; font: inherit; font-size: .875rem; line-height: 1.2; min-height: 44px; padding: .45rem .8rem; }
.tbw-chg__chip:hover, .tbw-chg__chip[aria-pressed="true"] { border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand); }
.tbw-chg__chip:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #C2412E); outline-offset: 1px; }
.tbw-chg__list { margin: 0; padding-left: 1.2rem; }
.tbw-chg__list li { margin: .15rem 0; }
.tbw-chg__note { background: #eef3f8; border-left: 3px solid var(--wp--preset--color--brand); margin: 0; padding: .5rem .75rem; }
.tbw-chg__back { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.tbw-chg button[aria-disabled="true"] { cursor: progress; opacity: .6; }
.tbw-chg__sub { font-weight: 600; margin: .25rem 0 0; }
.tbw-chg__hist { margin: 0; padding-left: 1.2rem; }
.tbw-chg__hist li { margin: .15rem 0; overflow-wrap: anywhere; }
.tbw-chg.is-wait .tbw-tb__wait { margin: 0; }
.tbw-chg [hidden] { display: none !important; }
/* "From our post" links under an AI day (unlocked plan only): our own pages, same tab. */
.tbw-plan__src { color: var(--wp--preset--color--ink-soft); display: block; font-size: .8125rem; margin-top: .2rem; }
.tbw-plan__src a { color: var(--wp--preset--color--brand); text-decoration: underline; text-underline-offset: 2px; }
/* Google Maps badge of a day place (inc/trip-gplaces.php). The attribution keeps Google's inline style (Roboto 400, 12 px, #5E5E5E). */
.tbw-gp { display: inline; font-size: .75rem; white-space: normal; }
.tbw-gp__link { color: var(--wp--preset--color--brand); font-size: .75rem; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.tbw-gp__info { color: var(--wp--preset--color--ink-soft); display: inline; font-size: .75rem; margin-left: .25rem; }
.tbw-gp__rating { color: inherit; text-decoration: none; white-space: nowrap; }
.tbw-gp__rating:hover, .tbw-gp__rating:focus-visible { text-decoration: underline; }
.tbw-gp__count { color: var(--wp--preset--color--ink-soft); }
.tbw-gp__hours { display: inline-block; vertical-align: top; }
.tbw-gp__hours summary { cursor: pointer; display: inline; text-decoration: underline dotted; }
.tbw-gp__hours ul { font-size: .75rem; list-style: none; margin: .25rem 0; padding: 0; }
.tbw-gp__attr { margin-left: .25rem; }
/* Dark backgrounds: Google allows white for the attribution there. The theme has no prefers-color-scheme dark mode (the
   plan box stays white), so the override keys on an actual dark container, never on the OS setting alone. */
.is-dark-theme .tbw-gp__attr, [data-theme="dark"] .tbw-gp__attr, .has-ink-background-color .tbw-gp__attr { color: #FFFFFF !important; }
/* Pay box email (optional, for the receipt): label above, full-width field like the newsletter and form fields. */
.tbw-pay__email { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.tbw-pay__email label { font-size: .875rem; font-weight: 600; }
.tbw-pay__email input { background: #fff; border: 1px solid var(--wp--preset--color--ink-soft, #4F5B66); border-radius: 8px; box-sizing: border-box; color: inherit; font: inherit; font-size: 1rem; max-width: 100%; min-height: 48px; padding: 0 .875rem; width: 100%; }
.tbw-pay__email input:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #C2412E); outline-offset: 1px; }
.tbw-pay__email + .tbw-pay__consent { margin-top: .4rem; } /* with the form gap (.6rem): 1rem above the consent box */
/* Free sample (inc/trip-sample.php), "Os meus planos" (inc/trip-myplans.php) and the gift form (inc/trip-gift.php). */
.tbw-tb__more-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; justify-content: center; }
.tbw-sample__link { margin: 0; }
.tbw-sample__link a { align-items: center; color: var(--wp--preset--color--ink); display: inline-flex; font-size: .9375rem; font-weight: 600; gap: .35rem; min-height: 44px; text-decoration: underline; text-underline-offset: 2px; }
.tbw-sample__link--plan { border: 1px dashed var(--wp--preset--color--line); border-radius: 12px; padding: 0 .75rem; }
.tbw-sample__badge { align-self: flex-start; background: #fbeee9; border-radius: 999px; color: #9f3223; font-size: .75rem; font-weight: 700; letter-spacing: .04em; margin: 0; padding: .25rem .7rem; text-transform: uppercase; }
.tbw-sample__lead { color: var(--wp--preset--color--ink-soft); font-size: .9375rem; margin: 0; }
.tbw-sample__off .tbw-plan__lockline { align-items: flex-start; font-size: .875rem; }
.tbw-sample__off .tbw-plan__lockline svg { margin-top: .2em; }
.tbw-sample__rest { color: var(--wp--preset--color--ink-soft); font-size: .8125rem; margin: 0; }
.tbw-sample__cta { background: #fff; }
.tbw-sample__pdf { font-size: .875rem; margin: 0; text-align: center; }
.tbw-sample__pdf a { align-items: center; display: inline-flex; min-height: 44px; text-decoration: underline; }
.tbw-sample__pdf span { color: var(--wp--preset--color--ink-soft); }
.tbw-myplans { display: flex; flex-direction: column; gap: .75rem; }
.tbw-myplans__form input[type="email"] { background: #fff; border: 1px solid var(--wp--preset--color--ink-soft, #4F5B66); border-radius: 8px; box-sizing: border-box; font: inherit; font-size: 1rem; min-height: 48px; padding: 0 .875rem; width: 100%; }
.tbw-gift { border-top: 1px solid var(--wp--preset--color--line); margin-top: .25rem; padding-top: .25rem; }
.tbw-gift > summary { align-items: center; color: var(--wp--preset--color--ink); cursor: pointer; display: flex; font-size: .9375rem; font-weight: 600; gap: .4rem; min-height: 44px; }
.tbw-gift[open] > summary { margin-bottom: .25rem; }
.tbw-pay__email textarea { background: #fff; border: 1px solid var(--wp--preset--color--ink-soft, #4F5B66); border-radius: 8px; box-sizing: border-box; color: inherit; font: inherit; font-size: 1rem; max-width: 100%; min-height: 5.5rem; padding: .6rem .875rem; resize: vertical; width: 100%; }
.tbw-gift__when { border: 0; display: flex; flex-direction: column; gap: .25rem; margin: 0; min-width: 0; padding: 0; }
.tbw-gift__when legend { font-size: .875rem; font-weight: 600; margin: 0 0 .25rem; padding: 0; }
.tbw-gift__when input[type="radio"] { flex: 0 0 1.5rem; height: 1.5rem; margin: 0; width: 1.5rem; }
.tbw-gift__opt { align-items: center; min-height: 44px; }
/* The send day shows only with "Num dia à escolha / On a day you choose" (no JavaScript; without :has it always shows). */
.tbw-gift__when:has(input[value="now"]:checked) .tbw-gift__day { display: none; }
.tbw-gift__day { display: flex; flex-direction: column; gap: .25rem; }
.tbw-pay__remind { margin-top: .1rem; }
.tbw-plan__daymap{display:inline-block;margin-top:4px;font-size:.85rem}
/* Enrichments on the unlocked plan (2026-11-23): legs, sun times, holidays, local-currency line, map embed frame. */
.tbw-plan__leg,.tbw-plan__sun{display:block;font-size:.8125rem;color:var(--wp--preset--color--ink-soft);margin:.2rem 0}.tbw-plan__holidays ul{margin:.3rem 0;padding-left:1.1rem}.tbw-plan__fx{margin:.4rem 0 0}.tbw-embed__frame{display:grid;place-items:center;background:var(--wp--preset--color--sand,#F1E9DB);border-radius:12px;overflow:hidden}
.tbw-plan__leg .tbw-gp__attr{margin-left:0}
.tbw-plan__fx,.tbw-plan__fx strong{font-size:.875rem;line-height:1.45}
/* Locked preview, pay box and adjustments (2026-11-23, style.v6.css): day category chips, the "Where do you start your trip?" flights form, the after-purchase line, the remaining-changes counter. */
.tbw-plan__days--locked li { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.tbw-plan__days--locked .tbw-plan__dn { margin-right: 0; }
.tbw-plan__dstop { color: var(--wp--preset--color--ink-soft); font-size: .875rem; }
.tbw-plan__cat { background: #eef3f8; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; color: var(--wp--preset--color--ink); display: inline-block; font-size: .8125rem; font-weight: 600; line-height: 1.5; padding: .05rem .6rem; white-space: nowrap; }
.tbw-plan__fly h4 { margin: 0 0 .35rem; }
.tbw-plan__fly .tbw-plan__flightprice { margin: 0 0 .4rem; }
.tbw-plan__origin--locked { border-top: 0; margin-top: .25rem; padding-top: 0; }
.tbw-plan__origin--locked input[type="text"] { letter-spacing: normal; text-transform: none; width: 13rem; max-width: 100%; }
.tbw-plan__origin--locked .tbw-lock__err { display: block; }
.tbw-pay__after { background: #eef3f8; border-left: 3px solid var(--wp--preset--color--brand); font-size: .9375rem; font-weight: 600; line-height: 1.45; margin: 0; padding: .5rem .75rem; }
.tbw-chg__counter { margin: 0; }
.tbw-chg__count { background: var(--wp--preset--color--brand); border-radius: 999px; color: #fff; display: inline-block; font-size: .875rem; font-weight: 700; line-height: 1.5; padding: .1rem .7rem; vertical-align: middle; white-space: nowrap; }
.tbw-chg__h .tbw-chg__count { margin-left: .35rem; }
.tbw-chg__count.is-zero { background: var(--wp--preset--color--ink-soft); }
/* The result title gets focus by script (screen readers announce the plan); no visible frame for that programmatic focus. */
.tbw-tb__title[tabindex="-1"]:focus { outline: none; }
/* One code field inside the pay box (2026-11-23): free Instagram codes and discount codes; the discounted price with the original struck through; 44px targets. */
.tbw-pay__pricebox { display: flex; flex-direction: column; gap: .3rem; }
.tbw-pay__was { color: var(--wp--preset--color--ink-soft); font-size: 1.0625rem; text-decoration-thickness: 2px; }
.tbw-pay__disc { align-items: center; color: var(--wp--preset--color--ink); display: flex; flex-wrap: wrap; font-size: .9375rem; font-weight: 600; gap: 0 .75rem; margin: 0; }
.tbw-pay__remove { align-items: center; color: var(--wp--preset--color--ink-soft); display: inline-flex; font-weight: 400; min-height: 44px; min-width: 44px; text-decoration: underline; text-underline-offset: 2px; }
.tbw-pay__code { border-bottom: 1px solid var(--wp--preset--color--line); border-top: 1px solid var(--wp--preset--color--line); display: flex; flex-direction: column; gap: .35rem; margin-block: .5rem; padding-block: .75rem .25rem; } /* Before the pay form (owners, 2026-11-23). */
.tbw-pay__codeform { display: flex; flex-direction: column; gap: .35rem; }
.tbw-pay__codelabel { color: var(--wp--preset--color--ink); font-size: .9375rem; font-weight: 600; }
.tbw-pay__coderow { display: flex; gap: .5rem; }
.tbw-pay__coderow input { background: #fff; border: 1px solid var(--wp--preset--color--ink-soft, #4F5B66); border-radius: 8px; box-sizing: border-box; color: inherit; flex: 1 1 auto; font: inherit; font-size: 1rem; letter-spacing: .06em; min-height: 48px; min-width: 0; padding: 0 .875rem; text-transform: uppercase; }
.tbw-pay__coderow input:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #C2412E); outline-offset: 1px; }
.tbw-pay__coderow .tbw-pay__apply { flex: 0 0 auto; min-height: 48px; width: auto; }
.tbw-pay__codelinks { font-size: .875rem; margin: 0; }
.tbw-pay__codelinks a { align-items: center; color: var(--wp--preset--color--ink-soft); display: inline-flex; min-height: 44px; text-decoration: underline; text-underline-offset: 2px; }
.tbw-pay__terms summary { font-size: .875rem; }
/* The theme's floating "back to top" button (tbw/functions.php, .tbw-top: fixed, 48px, 1rem from the bottom) must not sit
   on the last rows of the planner (an FAQ row, "In your full plan"): room at the end of the page content (QA 2026-11-23). */
body:has(.tbw-steps) main { padding-bottom: 5rem; } /* The planner page (the steps block is there), not the home teaser or a post. */
/* Planner pages only (this file loads with the block): the breadcrumb links get a 44px row (blocks/breadcrumbs/style.css is
   published under its old name, so it is not edited in place). */
body:has(.tbw-steps) .tbw-breadcrumbs a { align-items: center; display: inline-flex; min-height: 44px; }
/* Picker of a destination with several itineraries (links, no script): 48px targets, stacked on a phone, a row from 600px (2026-11-24). */
.tbw-tb__pick { margin: 0 0 1rem; }
.tbw-tb__pick-h { font-size: .9375rem; font-weight: 600; margin: 0 0 .5rem; }
.tbw-tb__pick-list { display: grid; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.tbw-tb__pick-a { align-items: center; background: #fff; border: 1.5px solid var(--wp--preset--color--line); border-radius: 12px; box-sizing: border-box; color: inherit; display: flex; font-size: .9375rem; line-height: 1.25; min-height: 48px; padding: .4rem .8rem; text-decoration: none; }
a.tbw-tb__pick-a:hover { border-color: var(--wp--preset--color--brand); }
a.tbw-tb__pick-a:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #C2412E); outline-offset: 2px; }
.tbw-tb__pick-a.is-current { background: #eef3f8; border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand-ink, #0F4C81); font-weight: 600; }
@media (min-width: 600px) { .tbw-tb__pick-list { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
