#bc-bottom-ask-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: var(--body-font-family);
}

#bc-bottom-ask-bar:not([data-expanded='true']) {
  inset: auto 24px 0 auto;
  width: auto;
  padding: 0;
  justify-content: flex-end;
  align-items: flex-end;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#bc-bottom-ask-bar[data-expanded='true'] {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  padding: 12px 0;
  justify-content: center;
  border-top: 1px solid #e8e8e8;
  background: radial-gradient(
      ellipse 40% 140% at 88% 50%,
      color-mix(in srgb, var(--bc-gradient-mid) 8%, white) 0%,
      transparent 72%
    ),
    radial-gradient(ellipse 55% 150% at 52% 45%, var(--bc-gradient-blue) 0%, transparent 68%),
    radial-gradient(
      ellipse 38% 150% at 12% 50%,
      color-mix(in srgb, var(--bc-gradient-end) 8%, white) 0%,
      transparent 72%
    ),
    var(--background-color);
  box-shadow: 0 -8px 24px rgb(0 0 0 / 4%);
  backdrop-filter: blur(12px);
}

/* Reset global button styles (styles.css margin/border/radius/hover bleed). */
.bc-bottom-ask-bar-collapsed,
.bc-bottom-ask-bar-send,
.bc-bottom-ask-bar-expand,
.bc-bottom-ask-bar-hide {
  margin: 0;
  border: none;
}

.bc-bottom-ask-bar-collapsed {
  position: relative;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 109px;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 16px 16px 0 0;
  font-family: inherit;
  font-size: var(--spectrum-font-size-200);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  color: var(--non-spectrum-dark-gray);
  background-color: rgb(255 255 255 / 70%);
  box-shadow: 0 0 20px rgb(0 0 0 / 10%);
  isolation: isolate;
}

.bc-bottom-ask-bar-collapsed::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px 16px 0 0;
  padding: 2px 2px 0;
  background: var(--bc-gradient);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.bc-bottom-ask-bar-collapsed > * {
  position: relative;
  z-index: 1;
}

.bc-bottom-ask-bar-collapsed .icon {
  display: flex;
  align-items: center;
  line-height: 0;
}

.bc-bottom-ask-bar-collapsed-chevron,
.bc-bottom-ask-bar-hide-chevron {
  width: 18px;
  height: 18px;
}

.bc-bottom-ask-bar-collapsed-chevron img,
.bc-bottom-ask-bar-hide-chevron img {
  width: 18px;
  height: 18px;
}

.bc-bottom-ask-bar-collapsed .icon-bc-ask-sparkles img {
  width: 18px;
  height: 18px;
}

.bc-bottom-ask-bar-collapsed-label {
  font-size: var(--spectrum-font-size-200);
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
  color: var(--non-spectrum-dark-gray);
  white-space: nowrap;
}

.bc-bottom-ask-bar-collapsed-chevron {
  transform: rotate(180deg);
}

.bc-bottom-ask-bar-collapsed:focus {
  outline: none;
  background-color: rgb(255 255 255 / 70%);
}

.bc-bottom-ask-bar-collapsed:focus-visible {
  outline: 2px solid var(--non-spectrum-navy-blue);
  outline-offset: 2px;
}

.bc-bottom-ask-bar-collapsed:hover:not(:active) {
  background-color: rgb(255 255 255 / 85%);
}

.bc-bottom-ask-bar-expanded {
  display: none;
  width: 100%;
  min-width: 0;
}

#bc-bottom-ask-bar[data-expanded='true'] .bc-bottom-ask-bar-collapsed {
  display: none;
}

/* Same 3-col track as docs `main` (left rail / article / right rail). */
#bc-bottom-ask-bar[data-expanded='true'] .bc-bottom-ask-bar-expanded {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  align-items: center;
  box-sizing: border-box;
  max-width: 1700px;
  width: 100%;
  margin-inline: auto;
}

.bc-bottom-ask-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 12px;
  font-size: var(--spectrum-font-size-200);
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
  white-space: nowrap;
  color: var(--text-color);
}

.bc-bottom-ask-bar-brand .icon img {
  width: 24px;
  height: 24px;
}

.bc-bottom-ask-bar-label {
  font-size: var(--spectrum-font-size-200);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
}

/* Center track = docs article column (full 3fr span). Inset so input + send are not flush. */
.bc-bottom-ask-bar-input-group {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--spectrum-spacing-300);
  padding-inline: var(--spectrum-spacing-400);
}

.bc-bottom-ask-bar-input-wrap {
  flex: 1 1 auto;
  max-width: none;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  min-width: 0;
  padding: 0 16px 0 24px;
  border: 1px solid #d4d4d4;
  border-radius: 100px;
  background-color: var(--background-color);
  box-shadow: 0 0 10px rgb(0 0 0 / 10%);
}

.bc-bottom-ask-bar-input-wrap:focus-within {
  outline: none;
}

.bc-bottom-ask-bar-input {
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: none;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: var(--spectrum-font-size-200);
  line-height: 1.5;
  outline: none;
  box-shadow: none;
  color: var(--non-spectrum-dark-gray);
}

.bc-bottom-ask-bar-input::placeholder {
  color: var(--non-spectrum-smoke);
  opacity: 1;
}

/* Override global styles.css input / input:hover border + padding that cause focus layout shift. */
.bc-bottom-ask-bar-input:hover,
.bc-bottom-ask-bar-input:focus,
.bc-bottom-ask-bar-input:focus-visible {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.bc-bottom-ask-bar-send {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--spectrum-gray-200);
  cursor: pointer;
  line-height: 0;
  text-align: center;
  overflow: visible;
}

.bc-bottom-ask-bar-send .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  line-height: 0;
}

.bc-bottom-ask-bar-send .icon img {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;

  /* The plane's mass sits in the left of the 24 viewBox; nudge so it reads centered in the disc. */
  transform: translateX(2px);
}

.bc-bottom-ask-bar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 12px;
}

.bc-bottom-ask-bar-hide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 18px;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: var(--spectrum-font-size-200);
  font-weight: var(--font-weight-bold);
  line-height: 18px;
  cursor: pointer;
  color: var(--non-spectrum-dark-gray);
  padding: 0;
  overflow: visible;
}

.bc-bottom-ask-bar-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  overflow: visible;
}

.bc-bottom-ask-bar-expand .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}

.bc-bottom-ask-bar-expand .icon img {
  display: block;
  width: 18px;
  height: 18px;
}

.bc-bottom-ask-bar-expand:focus {
  outline: none;
  background-color: rgb(0 0 0 / 6%);
}

.bc-bottom-ask-bar-expand:focus-visible {
  outline: 2px solid var(--non-spectrum-navy-blue);
  outline-offset: 2px;
}

.bc-bottom-ask-bar-expand:hover:not(:active) {
  background-color: rgb(0 0 0 / 6%);
}

.bc-bottom-ask-bar-hide:focus {
  outline: none;
  color: var(--non-spectrum-dark-gray);
  background-color: transparent;
}

.bc-bottom-ask-bar-hide:focus-visible {
  outline: 2px solid var(--non-spectrum-navy-blue);
  outline-offset: 2px;
}

.bc-bottom-ask-bar-hide:hover:not(:active) {
  color: var(--non-spectrum-dark-gray);
  background-color: transparent;
}

.bc-bottom-ask-bar-send:disabled {
  cursor: default;
  opacity: 1;
  color: inherit;
  background-color: var(--spectrum-gray-200);
}

.bc-bottom-ask-bar-send:not(:disabled) {
  background-color: var(--non-spectrum-navy-blue);
}

.bc-bottom-ask-bar-send:disabled:hover,
.bc-bottom-ask-bar-send:disabled:focus {
  background-color: var(--spectrum-gray-200);
}

/* The asset is authored for the FAB's white pill (#d8d8d8); on the grey disc the design uses the
   darker --spectrum-gray-400 (#b1b1b1). An <img> can't inherit currentColor, and the enabled rule
   below already recolours this same icon with a filter, so stay with that: flatten to white, then
   scale to the token (255 * 0.694 = 177). There is currently no automated check pinning this value
   to --spectrum-gray-400, so if that token changes, update the 0.694 multiplier here to match. */
.bc-bottom-ask-bar-send:disabled .icon img {
  filter: brightness(0) invert(1) brightness(0.694);
}

.bc-bottom-ask-bar-send:not(:disabled) .icon img {
  filter: brightness(0) invert(1);
}

.bc-bottom-ask-bar-send:not(:disabled):focus {
  outline: none;
  background-color: var(--non-spectrum-navy-blue);
}

.bc-bottom-ask-bar-send:not(:disabled):focus-visible {
  outline: 2px solid var(--non-spectrum-navy-blue);
  outline-offset: 2px;
}

.bc-bottom-ask-bar-send:not(:disabled):hover:not(:active) {
  background-color: var(--link-hover-color);
}

#bc-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 218px;
  height: 40px;
  min-height: 40px;
  padding: 0 14px 0 16px;
  border-radius: 100px;
  border: none;
  font-family: var(--body-font-family);
  font-size: var(--spectrum-font-size-100);
  font-weight: var(--font-weight-normal);
  cursor: pointer;
  color: var(--non-spectrum-dark-gray);
  background-color: rgb(255 255 255 / 70%);
  box-shadow:
    0 8px 28px rgb(0 0 0 / 9%),
    0 2px 8px rgb(0 0 0 / 5%),
    inset 0 1px 0 rgb(255 255 255 / 58%),
    inset 0 -1px 0 rgb(255 255 255 / 20%);
  backdrop-filter: blur(16px) saturate(135%);
  isolation: isolate;
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background-color 0.2s ease,
    backdrop-filter 0.2s ease;
}

#bc-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 2px;
  background: var(--bc-gradient);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

#bc-trigger > * {
  position: relative;
  z-index: 1;
}

#bc-trigger:active {
  transform: scale(0.97);
  box-shadow:
    0 4px 14px rgb(0 0 0 / 12%),
    0 2px 6px rgb(0 0 0 / 8%);
}

#bc-trigger .icon {
  display: flex;
  align-items: center;
  line-height: 0;
  margin: 0;
}

#bc-trigger img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#bc-trigger .bc-trigger-ask {
  font-size: var(--spectrum-font-size-100);
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
  color: var(--spectrum-gray-500);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

#bc-trigger .bc-trigger-send {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  line-height: 0;
  flex-shrink: 0;
}

/* The design's outlined send glyph fills a square box, unlike the flatter filled plane it
   replaced, so scope it below the 18px shared with the sparkle icon to hold the FAB's weight. */
#bc-trigger .bc-trigger-send img {
  width: 16px;
  height: 16px;
}

/* EXLM-5715 — entry variant visibility */
body.bc-entry-pending #bc-trigger,
body.bc-entry-pending #bc-bottom-ask-bar {
  visibility: hidden;
}

body:not([data-bc-entry='floating-ask-button']) #bc-trigger {
  display: none;
}

body[data-bc-entry='floating-ask-button'] #bc-bottom-ask-bar {
  display: none;
}

@media (min-width: 1200px) {
  body[data-bc-entry='bottom-ask-bar'] #bc-bottom-ask-bar {
    display: flex;
  }
}

body:has(#bc-dialog[open]) #bc-bottom-ask-bar {
  display: none;
}

#bc-trigger:hover:not(:active) {
  background-color: var(--background-color);
  backdrop-filter: none;
  transform: translateY(-3px);
  box-shadow:
    0 18px 50px rgb(0 0 0 / 18%),
    0 8px 20px rgb(0 0 0 / 12%),
    0 0 0 1px rgb(0 0 0 / 8%);
}

#bc-trigger:hover::before {
  filter: brightness(1.12) saturate(1.08);
}

#bc-trigger:hover .bc-trigger-ask {
  color: var(--spectrum-gray-800);
}

#bc-trigger[aria-expanded='true'] {
  display: none;
}

/* Legal copy: only inside the drawer / expanded chat panel, below the message input. */
#brand-concierge-mount .bc-panel-disclaimer {
  flex-shrink: 0;
  margin: 10px 0 0;

  /* Half line below copy; `lh` tracks disclaimer line-height (fallback for older UAs). */
  padding: 0 4px 8px;
  padding: 0 4px 0.5lh;
  text-align: center;
  font-family: var(--body-font-family);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--spectrum-gray-600);
}

/* Global `a` / `a:any-link` in styles.css use body content size + vertical margins — reset to match disclaimer. */
#brand-concierge-mount .bc-panel-disclaimer a {
  display: inline;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  vertical-align: baseline;
}

#brand-concierge-mount .bc-panel-disclaimer a:hover {
  color: var(--spectrum-gray-800);
}

#bc-dialog #brand-concierge-mount {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  --chat-history-padding: 24px max(40px, 15%);
  --chat-history-padding-mobile: 16px 20px;
  --chat-history-padding-tablet: 20px 5%;
  --chat-history-padding-top-expanded: 24px;
  --exlm-font-size-content: var(--spectrum-body-size-m);
}

#bc-dialog .exl-dialog-body {
  overflow: hidden;
}

#brand-concierge-mount .brand-concierge-flex-wrapper {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #fff !important;
}

#brand-concierge-mount .header-section {
  padding-top: 20px;
}

#brand-concierge-mount .brand-concierge-container,
#brand-concierge-mount .chat-interface {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 0 !important;
  background: #fff !important;

  --content-width-desktop: 100%;
  --chat-interface-max-width: 100%;
}

#brand-concierge-mount .chat-interface {
  position: relative !important;

  /* Room for input row + panel disclaimer (2–3 lines). */
  --bc-input-overlay-height: 220px;
  --bc-chat-history-clearance: var(--bc-input-overlay-height);
}

#brand-concierge-mount .chat-history {
  flex: 1 !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  padding-bottom: var(--bc-chat-history-clearance, var(--bc-input-overlay-height)) !important;
}

#brand-concierge-mount .message-blocker {
  background: transparent !important;
}

#brand-concierge-mount .chat-interface::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: var(--bc-input-overlay-height);
  background: radial-gradient(
      ellipse 60% 50% at 15% 100%,
      color-mix(in srgb, var(--bc-gradient-start, #ff6a54) 30%, white) 0%,
      transparent 100%
    ),
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--bc-gradient-blue, #b5deff) 0%, transparent 100%),
    linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bc-gradient-end, #5d4ada) 15%, white));
  pointer-events: none;
  z-index: 5;
}

#brand-concierge-mount .input-section {
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: 10 !important;
  display: grid !important;
  grid-template-rows: minmax(96px, 1fr) auto auto !important;
  align-content: end !important;
  align-items: stretch !important;
  background: transparent !important;

  /* No bottom padding — disclaimer sits flush with panel bottom (drawer + expanded). */
  padding: 0 28px !important;

  /* Pass clicks through the gradient fade; keep input + disclaimer interactive. */
  pointer-events: none !important;
}

#bc-dialog.exl-dialog-expanded #brand-concierge-mount .input-section {
  padding: 0 max(40px, 15%) !important;
}

#brand-concierge-mount .input-container {
  grid-row: 2 !important;
  align-items: center !important;
  box-sizing: border-box !important;
  min-height: 52px !important;
  max-height: 56px !important;
  overflow: visible !important;
  background: #fff !important;
  border: 1px solid var(--spectrum-gray-300) !important;
}

#brand-concierge-mount label.ai-chat-label .bc-input-label-sparkle {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}

#brand-concierge-mount .input-container:focus-within {
  outline: none !important;
}

#brand-concierge-mount .chat-input-wrapper {
  min-height: 40px !important;
  height: 40px !important;
  max-height: 40px !important;
  overflow: visible !important;
}

/* stylelint-disable-next-line selector-class-pattern -- BC internal BEM modifier */
#brand-concierge-mount .chat-input--input {
  height: 36px !important;
  max-height: 36px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  resize: none !important;
}

#brand-concierge-mount .mic-button {
  display: none !important;
}

/* stylelint-disable selector-class-pattern */

#brand-concierge-mount .bc-card__image:empty {
  display: none !important;
}

#brand-concierge-mount .bc-card__text {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

#brand-concierge-mount .bc-card__icon img.bc-sparkle-img,
#brand-concierge-mount .bc-prompt-pill-button__icon img.bc-sparkle-img,
#brand-concierge-mount .bc-prompt-suggestion-button__icon img.bc-sparkle-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

#brand-concierge-mount .prompt-pills-container {
  gap: 6px !important;
}

#brand-concierge-mount .bc-prompt-pill-button,
#brand-concierge-mount .bc-prompt-suggestion-button {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  text-align: left !important;
}

#brand-concierge-mount .bc-prompt-pill-button__text {
  font-size: 13px !important;
  line-height: 1.4 !important;
}

#brand-concierge-mount .bc-response-footer {
  border-top: none !important;
  margin-top: 12px !important;
  padding-top: 0 !important;
  font-size: 14px !important;
}

/* styles.css sets button:focus { background: link-hover-color } without :focus-visible.
 * After toggling Sources, the accordion keeps focus so the blue “stuck” state appears.
 * Reset to match dialog controls; outline only for keyboard users. */

#brand-concierge-mount .citations-accordion-button:focus {
  background: none !important;
  background-color: transparent !important;
  outline: none;
}

#brand-concierge-mount .citations-accordion-button:focus-visible {
  outline: 2px solid var(--non-spectrum-navy-blue);
  outline-offset: 2px;
}

/* stylelint-enable selector-class-pattern */

#brand-concierge-mount .concierge-message,
#brand-concierge-mount .concierge-message .message-content,
#brand-concierge-mount .concierge-message .message-text {
  width: 100% !important;
  max-width: 100% !important;
  font-size: var(--exlm-font-size-content) !important;
}

#brand-concierge-mount .concierge-message .message-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

#brand-concierge-mount .user-message {
  max-width: 80% !important;
}

#brand-concierge-mount .user-message .message-content {
  max-width: 100% !important;
  width: 100% !important;
}

#brand-concierge-mount .user-message .message-text {
  color: var(--spectrum-gray-800) !important;
  font-size: 16px !important;
}

/* In the expanded state cap the bubble row at 50% of the content column.
 * BC also constrains .message-content to 50% internally, so reset that here
 * so the card fills the full bubble row width. */
#bc-dialog.exl-dialog-expanded #brand-concierge-mount .user-message {
  max-width: 50% !important;
}

#bc-dialog.exl-dialog-expanded #brand-concierge-mount .user-message .message-content {
  max-width: 100% !important;
  width: 100% !important;
}

/* Expanded: hide only BC’s duplicate welcome *cards* (carousel/grid). Do not hide `.cards-section`
 * — it can wrap other welcome content; hiding it removed the prompt-pill row too.
 * Keep the prompt-pill row (ExL card-style rules below + sparkle icons). */
#bc-dialog.exl-dialog-expanded #brand-concierge-mount .bc-card-carousel,
#bc-dialog.exl-dialog-expanded #brand-concierge-mount .bc-card-grid {
  display: none !important;
}

#bc-dialog.exl-dialog-expanded #brand-concierge-mount .initial-state .prompt-pills-container {
  display: flex !important;
  flex-flow: column nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

/*
 * Expanded-only prompt layouts (wide viewports).
 * Intentional breakpoint exception: ExL uses 600 / 900 / 1200px, but the
 * expanded drawer is only 80vw wide. At 769–899px the modal is still too narrow for the
 * half-width welcome pill grid; 900px leaves that range with incorrect pill rendering. 769px
 * aligns with when 80vw (~615px) can fit the card layout; below that, the base column stack
 * above applies.
 */
@media (min-width: 769px) {
  /* Expanded only: full-width prompt area; taller, half-width welcome pill cards (not in the narrow drawer). */
  #bc-dialog.exl-dialog-expanded #brand-concierge-mount .prompt-suggestions-container {
    max-width: 100% !important;
  }

  #bc-dialog.exl-dialog-expanded #brand-concierge-mount .initial-state .prompt-pills-container {
    display: flex !important;
    flex-flow: row wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  #bc-dialog.exl-dialog-expanded #brand-concierge-mount .prompt-suggestions-container .bc-prompt-pill-button,
  #bc-dialog.exl-dialog-expanded #brand-concierge-mount .initial-state .prompt-pills-container .bc-prompt-pill-button {
    --bc-prompt-pill-gap-count: 3;
    --bc-prompt-pill-gap: 8px;

    flex: 0 1 calc((100% - var(--bc-prompt-pill-gap-count) * var(--bc-prompt-pill-gap)) / 8) !important;
    width: calc((100% - var(--bc-prompt-pill-gap-count) * var(--bc-prompt-pill-gap)) / 8) !important;
    max-width: calc((100% - var(--bc-prompt-pill-gap-count) * var(--bc-prompt-pill-gap)) / 8) !important;
    min-width: 130px !important;
    box-sizing: border-box !important;
    min-height: calc((16px + 1.4 * 13px) * 3) !important;
    padding: 24px 12px !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  /* Expanded in-chat follow-up suggestions: full-width pills, vertical stack (not the initial welcome row). */
  #bc-dialog.exl-dialog-expanded
    #brand-concierge-mount
    .chat-history
    .prompt-suggestions-container:has(.bc-prompt-suggestion-button),
  #bc-dialog.exl-dialog-expanded
    #brand-concierge-mount
    .chat-history
    .prompt-suggestions-container:has(.bc-prompt-suggestion-button)
    .prompt-pills-container {
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 100% !important;
    margin-bottom: 12px !important;

    /* Keep in-chat follow-up suggestions above the bottom gradient fade. */
    position: relative !important;
    z-index: 6 !important;
  }

  #bc-dialog.exl-dialog-expanded
    #brand-concierge-mount
    .chat-history
    .prompt-suggestions-container
    .bc-prompt-suggestion-button {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 8px 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }
}

#brand-concierge-mount .submit-button {
  flex-shrink: 0 !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--non-spectrum-navy-blue) !important;
}

#brand-concierge-mount .submit-button svg {
  display: block !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  color: white !important;
  flex-shrink: 0 !important;
}

#brand-concierge-mount .submit-button svg path {
  fill: white !important;
}

/*
 * BC's tooltip lib positions the submit button's tooltip via inline left/top, clamped to stay
 * inside .input-container. The button sits close to that container's right edge, so wider
 * translated labels (e.g. es "Enviar mensaje" vs en "Send") get shifted left to avoid
 * overflowing, breaking the arrow's alignment with the button. Re-anchor it to the button's
 * horizontal center — via `right` + translateX(50%) so it self-centers regardless of label
 * width — instead of relying on BC's clamped `left`.
 */
#brand-concierge-mount [id^='submit-button-tooltip'] {
  left: auto !important;
  right: 28px !important;
  transform: translateX(50%) !important;
}

/*
 * Now permanently overlaps the button's box (even while hidden), so it would otherwise block
 * real clicks/hovers on the button under it. Selector must out-specify the
 * ".input-section .input-container *" pointer-events: auto rule above (also !important) —
 * that rule intentionally re-enables pointer-events for input-container's contents after
 * .input-section's own passthrough override.
 */
#brand-concierge-mount .input-section .input-container [id^='submit-button-tooltip'] {
  pointer-events: none !important;
}

#brand-concierge-mount .scroll-to-bottom {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

#brand-concierge-mount .input-section .scroll-to-bottom {
  position: absolute !important;

  /* 48 px from section top → button bottom lands 12 px above the input row */
  inset: 48px auto auto 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
}

#brand-concierge-mount .input-section .bc-panel-disclaimer {
  grid-row: 3 !important;
}

#brand-concierge-mount .scroll-to-bottom:not(.bc-scroll-to-bottom-visible) {
  display: none !important;
  pointer-events: none !important;
}

#brand-concierge-mount .scroll-to-bottom.bc-scroll-to-bottom-visible {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 8 !important;
  background-color: #fff !important;
  border: 1px solid var(--spectrum-gray-300) !important;
}

/* styles.css sets button:focus { background: link-hover-color } without :focus-visible. */
#brand-concierge-mount .scroll-to-bottom:focus {
  background-color: #fff !important;
  outline: none;
}

#brand-concierge-mount .scroll-to-bottom:focus-visible {
  outline: 2px solid var(--non-spectrum-navy-blue);
  outline-offset: 2px;
}

#brand-concierge-mount .scroll-to-bottom:hover {
  background-color: var(--spectrum-gray-100) !important;
}

#brand-concierge-mount .scroll-to-bottom svg {
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}

#brand-concierge-mount .scroll-to-bottom svg path {
  fill: currentcolor !important;
}

/*
 * Restore interactivity for interactive children of the pointer-events:none overlay.
 * MAINTENANCE: If BC adds new interactive elements inside .input-section (voice button,
 * tooltip trigger, close icon, etc.) they must be added here or clicks will silently
 * do nothing. A ::before/::after gradient approach would avoid this list, but is not
 * feasible here because .input-section itself provides the grid layout for the overlay.
 */
#brand-concierge-mount .input-section .input-container,
#brand-concierge-mount .input-section .input-container *,
#brand-concierge-mount .input-section .bc-panel-disclaimer,
#brand-concierge-mount .input-section .bc-panel-disclaimer a,
#brand-concierge-mount .input-section .scroll-to-bottom {
  pointer-events: auto !important;
}

#brand-concierge-mount .citations-link {
  margin: 0 !important;
  font-size: 13px !important;
  word-break: break-word !important;
}

#brand-concierge-mount .message-content .citation-number a {
  font-size: 13px !important;
}

#brand-concierge-mount .citations-source-item {
  gap: 4px !important;
  align-items: center !important;
}

#brand-concierge-mount .citations-number-container {
  margin-top: 0 !important;
}
