/* ---------- messages ---------- */
.bl-ms-page { padding: 16px 0 20px; background: var(--bl-page); }
.bl-ms-shell { width: min(1328px, calc(100% - 112px)); margin: 0 auto; }
.bl-ms { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(var(--bl-vh) - var(--bl-nav-height) - 40px); min-height: 520px; overflow: hidden; border: 1px solid var(--bl-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(11, 21, 48, .06); }

/* rail */
.bl-ms-rail { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--bl-line); background: #FCFAF4; }
.bl-ms-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px; }
.bl-ms-rail-head h2 { margin: 0; color: var(--bl-navy); font: 700 22px/1.1 var(--font-display); }
.bl-ms-rail-head span { min-width: 24px; padding: 3px 8px; border-radius: 999px; background: var(--bl-navy); color: #fff; font: 700 12px/1.3 var(--font-body); text-align: center; }
.bl-ms-rail-list { flex: 1; overflow-y: auto; padding: 0 10px 12px; }
.bl-ms-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px; color: var(--bl-navy); text-decoration: none; }
.bl-ms-item:hover { background: #F3EBCB; }
.bl-ms-item.is-active { background: #FFF1A8; }
.bl-ms-item img, .bl-ms-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bl-ms-avatar { display: grid; place-items: center; flex: none; background: var(--bl-navy); color: #fff; font: 700 16px var(--font-display); }
.bl-ms-item-text { display: grid; min-width: 0; gap: 2px; }
.bl-ms-item-text strong { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 700 14px/1.3 var(--font-body); }
.bl-ms-item-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.bl-ms-item-text time { flex: none; color: var(--bl-slate); font: 500 12px/1 var(--font-body); }
.bl-ms-item-text em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bl-slate); font: 600 12px/1.3 var(--font-body); font-style: normal; }
.bl-ms-item-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bl-slate); font: 400 12.5px/1.3 var(--font-body); }
.bl-ms-item.is-unread .bl-ms-item-text small { color: var(--bl-navy); font-weight: 700; }
.bl-ms-dot { position: absolute; top: 14px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #D6453D; }
.bl-ms-note { padding: 16px 12px; color: var(--bl-slate); font: 400 13px/1.5 var(--font-body); }
.bl-ms-note .bl-btn { margin-top: 8px; }

/* thread */
.bl-ms-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bl-ms-empty { display: grid; place-content: center; justify-items: center; gap: 10px; height: 100%; padding: 24px; text-align: center; }
.bl-ms-empty svg { width: 44px; height: 44px; color: var(--bl-slate); }
.bl-ms-empty h1, .bl-ms-empty h2 { margin: 0; color: var(--bl-navy); font: 700 22px/1.2 var(--font-display); }
.bl-ms-empty p { max-width: 360px; margin: 0 0 6px; color: var(--bl-slate); font: 400 14px/1.5 var(--font-body); }
.bl-ms-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--bl-line); }
.bl-ms-back { display: none; flex: none; width: 40px; height: 40px; place-items: center; border: 1.5px solid var(--bl-navy); border-radius: 999px; color: var(--bl-navy); text-decoration: none; }
.bl-ms-back:hover { background: var(--bl-cream-dark); color: var(--bl-navy); }
.bl-ms-back svg { width: 20px; height: 20px; }
.bl-ms-head-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.bl-ms-head-text { flex: 1; min-width: 0; }
.bl-ms-head-text h1 { display: flex; align-items: center; gap: 8px; margin: 0; overflow: hidden; color: var(--bl-navy); font: 700 17px/1.3 var(--font-body); }
.bl-ms-head-text small { color: var(--bl-slate); font: 500 12px/1.3 var(--font-body); }
.bl-ms-verified { padding: 3px 8px; border-radius: 999px; background: #E8F8F1; color: #1F7A4F; font: 700 12px/1.2 var(--font-body); letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.bl-ms-menu { position: relative; }
.bl-ms-menu .bl-btn svg { width: 14px; height: 14px; }

/* which trip is this about */
.bl-ms-trip { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--bl-line); background: #FFFBEA; }
.bl-ms-trip.is-empty { background: repeating-linear-gradient(135deg, #FFF8D6, #FFF8D6 10px, #FFFBEA 10px, #FFFBEA 20px); }
.bl-ms-trip-thumb { display: block; flex: none; width: 52px; height: 40px; overflow: hidden; border-radius: 10px; background: #E8E2D0; }
.bl-ms-trip-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-ms-trip.is-empty .bl-ms-trip-thumb { display: none; }
.bl-ms-trip-text { display: grid; flex: 1; min-width: 0; gap: 1px; }
.bl-ms-trip-text small { color: var(--bl-slate); font: 700 12px/1.2 var(--font-body); letter-spacing: 1px; text-transform: uppercase; }
.bl-ms-trip-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bl-navy); font: 700 14px/1.3 var(--font-body); }
.bl-ms-trip-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bl-slate); font: 400 12px/1.4 var(--font-body); }
.bl-ms-trip-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.bl-ms-link { padding: 0; border: 0; background: none; color: var(--bl-navy); font: 700 12px/1.4 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bl-ms-status { flex: none; padding: 3px 9px; border-radius: 999px; background: #ECE9DF; color: #4D5568; font: 700 12px/1.3 var(--font-body); letter-spacing: .5px; text-transform: uppercase; }
.bl-ms-status.is-confirmed, .bl-ms-status.is-inprogress { background: #DFF3EA; color: #1F7A4F; }
.bl-ms-status.is-pending { background: #FFF1A8; color: #7A5B00; }
.bl-ms-status.is-cancelled, .bl-ms-status.is-refunded { background: #FDE3E0; color: #B3261E; }

/* messages */
.bl-ms-scroll { display: flex; flex: 1; flex-direction: column; gap: 6px; min-height: 0; padding: 18px 22px; overflow-y: auto; background: #FBF9F3; }
.bl-ms-quiet { margin: auto; color: var(--bl-slate); font: 400 14px/1.5 var(--font-body); }
.bl-ms-day { display: flex; justify-content: center; margin: 10px 0 4px; }
.bl-ms-day span { padding: 4px 12px; border-radius: 999px; background: #ECE9DF; color: #4D5568; font: 700 12px/1.3 var(--font-body); }
.bl-ms-row { display: flex; align-items: flex-end; gap: 8px; }
.bl-ms-row.is-mine { justify-content: flex-end; }
.bl-ms-row.is-center { justify-content: center; }
.bl-ms-mini { width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: cover; font-size: 12px; }
.bl-ms-col { display: flex; flex-direction: column; max-width: min(70%, 520px); min-width: 0; gap: 4px; }
.bl-ms-row.is-mine .bl-ms-col { align-items: flex-end; }
.bl-ms-bubble { padding: 10px 14px; border-radius: 18px; font: 400 14px/1.5 var(--font-body); overflow-wrap: anywhere; }
.bl-ms-bubble p { margin: 0; white-space: pre-wrap; }
.bl-ms-row.is-theirs .bl-ms-bubble { border: 1px solid var(--bl-line); border-bottom-left-radius: 6px; background: #fff; color: var(--bl-navy); }
.bl-ms-row.is-mine .bl-ms-bubble { border-bottom-right-radius: 6px; background: var(--bl-navy); color: #fff; }
.bl-ms-time { color: var(--bl-slate); font: 500 12px/1 var(--font-body); }
.bl-ms-cap { color: var(--bl-slate); font: 600 12px/1.3 var(--font-body); }
.bl-ms-bubble.is-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bl-ms-bubble.is-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--bl-slate); animation: bl-ms-bounce 1.1s infinite ease-in-out; }
.bl-ms-bubble.is-typing span:nth-child(2) { animation-delay: .15s; }
.bl-ms-bubble.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bl-ms-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* photos sent in a chat */
.bl-ms-media { display: grid; gap: 4px; max-width: 280px; }
.bl-ms-media a { display: block; overflow: hidden; border-radius: 16px; background: #E8E2D0; }
.bl-ms-media img { display: block; width: 100%; max-height: 280px; object-fit: cover; }
.bl-ms-media-wait { display: grid; place-items: center; min-height: 120px; padding: 0 20px; border-radius: 16px; background: #ECE9DF; color: var(--bl-slate); font: 500 12px/1.4 var(--font-body); }

/* cards in the thread */
.bl-ms-tourcard, .bl-ms-bkcard { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; width: min(360px, 100%); padding: 8px; border: 1px solid var(--bl-line); border-radius: 16px; background: #fff; color: var(--bl-navy); text-decoration: none; }
.bl-ms-tourcard img, .bl-ms-bkcard img { width: 84px; height: 72px; border-radius: 11px; object-fit: cover; }
.bl-ms-tourcard span, .bl-ms-bkcard div { display: grid; gap: 2px; min-width: 0; }
.bl-ms-tourcard strong, .bl-ms-bkcard strong { font: 700 13.5px/1.3 var(--font-body); }
.bl-ms-tourcard small, .bl-ms-bkcard small { color: var(--bl-slate); font: 400 12px/1.4 var(--font-body); }
.bl-ms-bkcard .bl-ms-status { justify-self: start; }

/* composer */
.bl-ms-foot { padding: 12px 20px 14px; border-top: 1px solid var(--bl-line); background: #fff; }
.bl-ms-composer { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border: 1px solid var(--bl-line); border-radius: 999px; background: #FBF9F3; transition: border-color .15s, box-shadow .15s; }
.bl-ms-composer:focus-within { border-color: var(--bl-navy); box-shadow: 0 0 0 3px rgba(245, 213, 63, .55); }
.bl-ms-iconbtn { position: relative; display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; color: var(--bl-slate); cursor: pointer; transition: background .15s, color .15s; }
.bl-ms-iconbtn:hover { background: #F3EBCB; color: var(--bl-navy); }
.bl-ms-iconbtn:focus-within { outline: 2px solid var(--bl-navy); outline-offset: 1px; }
.bl-ms-iconbtn.is-disabled { opacity: .5; pointer-events: none; }
.bl-ms-iconbtn svg { width: 19px; height: 19px; }
.bl-ms-input { flex: 1; min-width: 0; height: 38px; padding: 0 6px; border: 0; background: transparent; color: var(--bl-navy); font: 400 14px/1.4 var(--font-body); outline: 0; }
.bl-ms-send { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bl-lemon); color: var(--bl-navy); cursor: pointer; transition: transform .15s, opacity .15s; }
.bl-ms-send:hover:not(:disabled) { transform: translateY(-1px); }
.bl-ms-send:disabled { background: #ECE9DF; color: #A3A8B5; cursor: not-allowed; }
.bl-ms-send svg { width: 19px; height: 19px; }
.bl-ms-spin { width: 16px; height: 16px; border: 2px solid rgba(11, 24, 48, .25); border-top-color: var(--bl-navy); border-radius: 50%; animation: bl-ms-rot .7s linear infinite; }
@keyframes bl-ms-rot { to { transform: rotate(360deg); } }
.bl-ms-foot .bl-chat-safety-line { margin: 8px 6px 0; text-align: center; }
/* guest has asked their one question and is waiting for the host: greyed out until the host replies */
.bl-ms-composer.is-waiting { background: #EEEDE8; border-color: #DAD8D0; opacity: .75; cursor: not-allowed; }
.bl-ms-composer.is-waiting .bl-ms-input { cursor: not-allowed; }
.bl-ms-composer.is-waiting .bl-ms-input::placeholder { color: #6B7280; }
.bl-ms-wait-note { margin: 8px 6px 0; color: var(--bl-navy); font: 600 13px/1.4 var(--font-body); text-align: center; }

/* an attached photo waiting to be sent */
.bl-ms-attach { display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; gap: 12px; align-items: center; width: min(420px, 100%); margin-bottom: 10px; padding: 8px; border: 1px solid var(--bl-line); border-radius: 16px; background: #FBF9F3; }
.bl-ms-attach img { width: 56px; height: 56px; border-radius: 11px; object-fit: cover; }
.bl-ms-attach div { display: grid; gap: 2px; min-width: 0; }
.bl-ms-attach strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bl-navy); font: 700 13px/1.3 var(--font-body); }
.bl-ms-attach small { color: var(--bl-slate); font: 400 12px/1.3 var(--font-body); }
.bl-ms-progress { display: block; height: 4px; overflow: hidden; border-radius: 4px; background: #E8E2D0; }
.bl-ms-progress i { display: block; width: 40%; height: 100%; border-radius: 4px; background: var(--bl-navy); animation: bl-ms-slide 1s infinite ease-in-out; }
@keyframes bl-ms-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.bl-ms-x { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--bl-line); border-radius: 50%; background: #fff; color: var(--bl-navy); cursor: pointer; }
.bl-ms-x svg { width: 14px; height: 14px; }
.bl-ms-x:disabled { opacity: .5; cursor: not-allowed; }
.bl-ms-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 9px 14px; border-radius: 12px; background: #FDE3E0; color: #8A1C15; font: 600 13px/1.4 var(--font-body); }
.bl-ms-alert button { border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.bl-ms-muted { margin: 4px 0; color: var(--bl-slate); font: 400 13px/1.5 var(--font-body); }
.bl-ms-pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.bl-ms-pick:hover { background: #F3EBCB; }
.bl-ms-pick img { width: 60px; height: 40px; border-radius: 8px; object-fit: cover; }
.bl-ms-pick span { display: grid; min-width: 0; }
.bl-ms-pick strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bl-navy); font: 700 13px/1.3 var(--font-body); }
.bl-ms-pick small { color: var(--bl-slate); font: 400 12px/1.3 var(--font-body); }

/* trip picker dialog */
.bl-ms-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: calc(var(--bl-nav-height) + 16px) 20px 20px; background: rgba(11, 21, 48, .5); backdrop-filter: blur(3px); }
.bl-ms-dialog { display: flex; flex-direction: column; width: min(520px, 100%); max-height: calc(var(--bl-vh) - var(--bl-nav-height) - 40px); border-radius: 24px; background: var(--bl-page); box-shadow: 0 24px 60px rgba(11, 21, 48, .3); outline: 0; }
.bl-ms-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 12px; }
.bl-ms-dialog header h2 { margin: 0; font: 700 21px/1.2 var(--font-display); color: var(--bl-navy); }
.bl-ms-dialog header p { margin: 4px 0 0; color: var(--bl-slate); font: 400 13px/1.5 var(--font-body); }
.bl-ms-trips { display: grid; gap: 8px; padding: 4px 22px 14px; overflow-y: auto; }
.bl-ms-tripitem { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--bl-line); border-radius: 16px; background: #fff; color: var(--bl-navy); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.bl-ms-tripitem:hover { border-color: rgba(26, 35, 64, .4); }
.bl-ms-tripitem.is-selected { border-color: var(--bl-navy); background: #FFFBEA; }
.bl-ms-tripitem:disabled { opacity: .6; cursor: wait; }
.bl-ms-tripitem-text { display: grid; gap: 1px; min-width: 0; }
.bl-ms-tripitem-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13.5px/1.3 var(--font-body); }
.bl-ms-tripitem-text small { color: var(--bl-slate); font: 400 12px/1.4 var(--font-body); }
.bl-ms-radio { width: 18px; height: 18px; border: 2px solid var(--bl-line); border-radius: 50%; }
.bl-ms-tripitem.is-selected .bl-ms-radio { border: 5px solid var(--bl-navy); }
.bl-ms-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px 18px; border-top: 1px solid var(--bl-line); }
.bl-ms-dialog footer .bl-btn:only-child { margin-left: auto; }

@media (max-width: 1100px) {
    .bl-ms-shell { width: calc(100% - 48px); }
}
@media (max-width: 900px) {
    .bl-ms { grid-template-columns: minmax(0, 1fr); }
    .bl-ms:not(.is-index) .bl-ms-rail { display: none; }
    .bl-ms.is-index .bl-ms-thread { display: none; }
    .bl-ms-back { display: grid; }
    .bl-ms-col { max-width: 84%; }
}
@media (max-width: 760px) {
    .bl-ms-page { padding-bottom: 0; }
    .bl-ms-shell { width: 100%; }
    .bl-ms { height: calc(var(--bl-vh) - var(--bl-nav-height) - 16px); border-radius: 0; border-inline: 0; }
    .bl-ms-head, .bl-ms-trip, .bl-ms-foot { padding-inline: 14px; }
    /* QC D-P1: the "About this trip" strip is one compact row on a phone: text on the left (title cut with an ellipsis, date in at most two lines),
       Change and View on the right. The thumbnail and the status pill are left out here; "Trip cancelled" still shows in the label and the status is on the booking itself. */
    .bl-ms-trip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding-block: 8px; }
    .bl-ms-trip > .bl-ms-trip-thumb, .bl-ms-trip > .bl-ms-status { display: none; }
    .bl-ms-trip-text span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; }
    .bl-ms-trip-actions { gap: 4px; }
    .bl-ms-scroll { padding: 14px; }
    .bl-ms-modal { align-items: end; padding: 0; }
    .bl-ms-dialog { width: 100%; border-radius: 24px 24px 0 0; }
    .bl-ms-tripitem { grid-template-columns: 44px minmax(0, 1fr) 18px; }
    .bl-ms-tripitem .bl-ms-status { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bl-ms-bubble.is-typing span, .bl-ms-progress i, .bl-ms-spin { animation: none; } }

/* hover "link a trip" pill in the header: icon only, expands on hover/focus */
.bl-ms-head-actions { display: flex; align-items: center; gap: 8px; }
.bl-ms-tripbtn { display: inline-flex; align-items: center; gap: 0; height: 34px; padding: 0 9px; border: 1px solid rgba(26, 35, 64, .18); border-radius: 999px; background: #FFF8D6; color: var(--bl-navy); font: 700 12.5px/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.bl-ms-tripbtn svg { flex: none; width: 17px; height: 17px; }
.bl-ms-tripbtn span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .22s ease, opacity .18s ease, margin .22s ease; }
.bl-ms-tripbtn:hover, .bl-ms-tripbtn:focus-visible { border-color: var(--bl-navy); background: #FFEFA0; }
.bl-ms-tripbtn:hover span, .bl-ms-tripbtn:focus-visible span { max-width: 110px; margin-left: 7px; opacity: 1; }
@media (hover: none) { .bl-ms-tripbtn span { max-width: 110px; margin-left: 7px; opacity: 1; } }

/* character counter near the limit, and the "load earlier" button */
.bl-ms-count { margin: 6px 6px 0; color: var(--bl-slate, #64748B); font: 600 12.5px/1.4 var(--font-body); text-align: right; }
.bl-ms-count.is-full { color: #8A1C15; }
.bl-ms-earlier { display: flex; justify-content: center; padding: 4px 0 12px; }

/* Host tools pop-out: tabs, the share list, and the offer form. The date and time pickers open inside the dialog, never inside the chat, so nothing is cut off. */
.bl-ms-dialog.is-tools { width: min(560px, 100%); }
.bl-ms-tabs { display: flex; gap: 6px; padding: 0 22px 12px; border-bottom: 1px solid var(--bl-line); }
.bl-ms-tabs button { min-height: 36px; padding: 0 16px; border: 1px solid var(--bl-line); border-radius: 999px; background: #fff; color: var(--bl-navy); font: 700 13px/1 var(--font-body); cursor: pointer; transition: background .15s, border-color .15s; }
.bl-ms-tabs button:hover { border-color: rgba(26, 35, 64, .4); }
.bl-ms-tabs button.is-on { border-color: var(--bl-navy); background: #FFFBEA; }
.bl-ms-tool-body { display: grid; gap: 4px; padding: 14px 22px 18px; overflow-y: auto; }

.bl-of { display: flex; flex-direction: column; min-height: 0; }
.bl-of-body { display: grid; gap: 16px; align-content: start; padding: 16px 22px; overflow-y: auto; }
/* room for the date picker to open fully inside the dialog */
.bl-of-body.is-price { min-height: min(500px, 60vh); }
.bl-of-alert { margin: 0 22px 10px; }
.bl-of-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bl-of-tile { display: grid; gap: 3px; align-content: start; padding: 12px 14px; border: 1px solid var(--bl-line); border-radius: 16px; background: #fff; color: var(--bl-navy); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.bl-of-tile strong { font: 700 14px/1.3 var(--font-body); }
.bl-of-tile small { color: var(--bl-slate); font: 400 12px/1.4 var(--font-body); }
.bl-of-tile:hover { border-color: rgba(26, 35, 64, .4); }
.bl-of-tile.is-on { border-color: var(--bl-navy); background: #FFFBEA; box-shadow: 0 0 0 3px rgba(245, 213, 63, .45); }
.bl-of-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.bl-of .bl-field > label { text-transform: none; letter-spacing: 0; font: 700 12.5px/1.3 var(--font-body); color: var(--bl-navy); }
.bl-of-note { margin: 0; padding: 12px 14px; border-radius: 14px; background: #FBF9F3; color: var(--bl-slate); font: 400 13px/1.5 var(--font-body); }
.bl-of-comp { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--bl-line); border-radius: 16px; background: #FBF9F3; }
.bl-of-comp.is-open { border-color: var(--bl-navy); background: #FFFBEA; }
.bl-of-comp-toggle { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.bl-of-comp-toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--bl-navy); }
.bl-of-comp-toggle span { display: grid; gap: 2px; }
.bl-of-comp-toggle strong { color: var(--bl-navy); font: 700 14px/1.3 var(--font-body); }
.bl-of-comp-toggle small { color: var(--bl-slate); font: 400 12.5px/1.4 var(--font-body); }
.bl-of-hint { margin: 0; }
.bl-of-hint.is-warn { color: #8A1C15; font-weight: 600; }
.bl-of-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 22px 18px; border-top: 1px solid var(--bl-line); }
@media (max-width: 760px) {
    .bl-ms-tabs { padding-inline: 16px; }
    .bl-ms-tool-body, .bl-of-body, .bl-of-foot { padding-inline: 16px; }
    .bl-of-choice, .bl-of-grid { grid-template-columns: 1fr; }
    .bl-of-body.is-price { min-height: 0; }
}
.bl-ms-dialog .bl-of { flex: 1 1 auto; }
.bl-ms-tourcard small .bl-ms-star { color: var(--bl-rating); }

/* I-117: phone tap targets in the chat thread, the Host tools dialog, the custom offer form and the offer card calendar.
   Every control is at least 44px each way at phone width; above 767.98px nothing here applies, so desktop is unchanged. */
@media (max-width: 767.98px) {
    .bl-ms-back, .bl-ms-iconbtn, .bl-ms-send, .bl-ms-x { width: 44px; height: 44px; }
    .bl-ms-input { height: 44px; }
    .bl-ms-attach { grid-template-columns: 56px minmax(0, 1fr) 44px; }
    .bl-ms-head .bl-btn, .bl-ms-trip .bl-btn, .bl-ms-earlier .bl-btn, .bl-ms-note .bl-btn, .bl-ms-empty .bl-btn, .bl-ms-dialog footer .bl-btn { height: auto; min-height: 44px; }
    .bl-ms-tripbtn { min-width: 44px; min-height: 44px; justify-content: center; }
    .bl-ms-link { display: inline-flex; align-items: center; min-height: 44px; }
    .bl-ms-alert button { min-width: 44px; min-height: 44px; }
    .bl-ms-tabs button { min-height: 44px; }
    .bl-ms-pick, .bl-ms-tripitem, .bl-ms-tourcard, .bl-ms-bkcard { min-height: 44px; }

    /* custom offer form */
    .bl-of-tile, .bl-of-comp-toggle { min-height: 44px; }
    .bl-of-comp-toggle { align-items: center; }
    .bl-of .bl-btn { height: auto; min-height: 44px; }
    .bl-of-note a { display: flex; align-items: center; min-height: 44px; }
    .bl-of :is(.bl-input, .bl-select) { min-height: 44px; }
    .bl-of .calendar-container > div:first-child > .btn { min-width: 44px; min-height: 44px; }
    .bl-of .calendar-day, .bl-oc-reschedule .calendar-day { min-height: 44px; }
    .bl-of .time-slot-card, .bl-oc-reschedule .time-slot-card { min-height: 44px; }

    /* the offer card in the thread: a card with a calendar gets the full row, so the calendar cells reach 44px wide at 375px */
    .bl-ms-col:has(.bl-oc) { max-width: 100%; }
    .bl-oc-reschedule .calendar-container > div:first-child > .btn { min-width: 44px; min-height: 44px; }
}
