/* The sending flow uses document scrolling, independently of the fixed chat workspace. */
.bt-product-send-page #footer, .bt-product-send-page .back-to-top { display: none !important; }
.bt-product-send-page #main { background: #f3eef0; padding: 0; min-height: 100vh; }
.bt-product-send-workspace {
    --chat-accent: #ec0341; --chat-wine: #8c0327; --chat-ink: #191719;
    --chat-muted: #706970; --chat-line: #e7e2e4; --chat-soft: #f8f5f6;
    max-width: 1000px; margin: 0 auto; padding: 32px 24px 64px;
    color: var(--chat-ink); font: 14px/1.6 Arial, Helvetica, sans-serif;
}
.bt-product-send-workspace, .bt-product-send-workspace * { box-sizing: border-box; }
.bt-product-picker { padding: 28px; color: var(--chat-ink); background: #fff; border: 1px solid var(--chat-line); border-radius: 16px; box-shadow: 0 8px 30px rgb(25 23 25 / 5%); }
.bt-product-picker :focus-visible { outline: 2px solid var(--chat-wine); outline-offset: 3px; }
.bt-product-picker-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.bt-product-picker-heading h1 { margin: 0; font: 700 28px/1.25 Arial, sans-serif; color: var(--chat-ink); overflow-wrap: anywhere; }
.bt-product-picker-back { font-size: 13px; color: var(--chat-wine); }
.bt-product-picker-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--chat-line); margin-bottom: 20px; }
.bt-product-picker-tabs a { padding: 10px 15px; font-weight: 700; font-size: 13px; color: var(--chat-muted); }
.bt-product-picker-tabs a[aria-current=page] { color: var(--chat-wine); border-bottom: 3px solid var(--chat-wine); }
.bt-product-picker-search { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 17px; }
.bt-product-picker-search label { font-size: 12px; font-weight: 700; margin: 0; }
.bt-product-picker-search input, .bt-product-picker-search select { width: 210px; max-width: 100%; height: 39px; border: 1px solid var(--chat-line); border-radius: 8px; margin: 0; background: #fff; }
.bt-product-picker button, .bt-product-picker-copy-link { background: var(--chat-wine); color: #fff; border: 0; border-radius: 7px; padding: 9px 13px; font-size: 12px; font-weight: 700; line-height: 1.4; text-transform: none; letter-spacing: 0; margin: 0; }
.bt-product-picker button:hover, .bt-product-picker-copy-link:hover { color: #fff; background: var(--chat-accent); }
.bt-product-picker-list { display: grid; gap: 11px; }
.bt-product-picker-item { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 14px; border: 1px solid var(--chat-line); background: #fff; border-radius: 11px; }
.bt-product-picker-image { width: 70px; height: 70px; overflow: hidden; border-radius: 7px; background: var(--chat-soft); }
.bt-product-picker-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bt-product-picker-copy { display: grid; gap: 3px; min-width: 0; }
.bt-product-picker-copy strong { font-size: 14px; overflow-wrap: anywhere; }
.bt-product-picker-copy span, .bt-product-picker-copy small, .bt-product-picker-earnings { color: var(--chat-muted); font-size: 12px; }
.bt-product-picker-selection { min-width: 0; }
.bt-product-picker-selection summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; cursor: pointer; padding: 10px 14px; color: var(--chat-wine); background: #faedf1; border-radius: 7px; font-weight: 700; }
.bt-product-picker-selection summary::-webkit-details-marker { display: none; }
.bt-product-picker-selection[open] { grid-column: 1 / -1; border-top: 1px solid var(--chat-line); padding-top: 12px; }
.bt-product-picker-selection[open] summary span { transform: rotate(45deg); }
.bt-product-picker-send { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px 12px; align-items: center; margin: 16px 0 0; }
.bt-product-picker-send button[type=submit] { grid-column: 1 / -1; justify-self: end; padding: 12px 20px; font-size: 14px; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.bt-product-picker-send label { grid-column: 1 / -1; font-size: 12px; font-weight: 700; }
.bt-product-picker-send input { min-width: 0; margin: 0; border: 1px solid var(--chat-line); border-radius: 7px; height: 36px; }
.bt-product-picker-help { grid-column: 1 / -1; font-size: 11px; color: var(--chat-muted); }
.bt-product-picker-send .bt-product-picker-earnings { grid-column: 1 / -1; }
.bt-product-picker-copy-link { justify-self: end; }
.bt-product-picker-error { padding: 10px 13px; border: 1px solid #c24; border-radius: 7px; color: #8c0327; background: #fff; }
.bt-product-picker-pages { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 18px; }
.bt-product-picker-pages a { color: var(--chat-wine); font-weight: 700; }
.bt-shared-product-card { display: flex; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--chat-line); border-radius: 12px; }
.bt-shared-product-image { flex: 0 0 84px; height: 84px; overflow: hidden; border-radius: 7px; }
.bt-shared-product-image img { width: 100%; height: 100%; object-fit: cover; }
.bt-shared-product-body { display: flex; flex-wrap: wrap; align-content: start; gap: 3px 10px; }
.bt-shared-product-body strong { width: 100%; font-size: 15px; }
.bt-shared-product-body span, .bt-shared-product-body small { font-size: 12px; color: var(--chat-muted); }
.bt-shared-product-body .bt-shared-product-price { color: var(--chat-ink); font-weight: 700; }
.bt-shared-product-body a { color: var(--chat-wine); font-weight: 700; font-size: 12px; }
.bt-product-offers { clear: both; max-width: 800px; margin: 25px auto; padding: 20px; border: 1px solid #e7e2e4; border-radius: 12px; }
.bt-product-offers h2 { font-size: 21px; }
.bt-product-offers ul { list-style: none; margin: 0; padding: 0; }
.bt-product-offers li { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-top: 1px solid #e7e2e4; }
.bt-product-offers li span { flex: 1; }
.bt-product-offers form { margin: 0; }
.bt-product-offers button { margin: 0; padding: 6px 12px; background: #8c0327; border-radius: 6px; color: #fff; font-size: 12px; }
@media (max-width: 767px) {
  .bt-product-send-workspace { padding: 18px 10px 32px; }
  .bt-product-picker { padding: 20px 16px; border-radius: 12px; }
  .bt-product-picker-heading h1 { font-size: 24px; }
  .bt-product-picker-heading { gap: 10px; }
  .bt-product-picker-item { grid-template-columns: 56px minmax(0,1fr); gap: 10px; }
  .bt-product-picker-image { width: 56px; height: 56px; }
  .bt-product-picker-selection, .bt-product-picker-copy-link { grid-column: 1 / -1; justify-self: stretch; }
  .bt-product-picker-send button[type=submit] { width: 100%; }
  .bt-product-picker-search label { width: 100%; }
  .bt-product-picker-search input, .bt-product-picker-search select { width: 100%; }
}

.bt-product-leave-dialog { width: min(440px, calc(100% - 32px)); max-width: none; margin: auto; padding: 24px; border: 1px solid var(--chat-line); border-radius: 12px; color: var(--chat-ink); background: #fff; }
.bt-product-leave-dialog::backdrop { background: rgb(25 23 25 / 45%); }
.bt-product-leave-dialog h2 { font-size: 21px; color: var(--chat-ink); }
.bt-product-leave-dialog p { color: var(--chat-muted); }
.bt-product-leave-dialog > div { display: flex; flex-wrap: wrap; gap: 10px; }
.bt-product-leave-dialog [data-leave] { background: #faedf1; color: var(--chat-wine); }

.bt-shared-product-description { width: 100%; margin-top: 8px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.bt-shared-product-description:empty { display: none; }
.bt-shared-product-contents { width: 100%; margin: 8px 0; }
.bt-shared-product-contents ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0 0; }
.bt-shared-product-contents li { margin: 0; padding: 4px 9px; border-radius: 6px; background: #faedf1; font-size: 12px; color: #8c0327; }
.bt-shared-product-body a.bt-shared-product-buy { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; margin-top: 6px; border-radius: 7px; background: #8c0327; color: #fff; font-size: 14px; text-decoration: none; }
.bt-shared-product-body a.bt-shared-product-buy:hover { background: #ec0341; }
.bt-shared-product-body a.bt-shared-product-buy:focus-visible { outline: 2px solid #8c0327; outline-offset: 3px; }
.bt-shared-product-body { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .bt-shared-product-card { gap: 10px; padding: 12px; }
    .bt-shared-product-image { flex-basis: 56px; height: 56px; }
}
