:root {
  --chat-teal: #0b6b63;
  --chat-teal-dark: #07544e;
  --chat-teal-soft: #e8f5f3;
  --chat-coral: #c75f73;
  --chat-blue: #3178a5;
  --chat-ink: #20302f;
  --chat-muted: #60716f;
  --chat-line: #d6e5e2;
  --chat-surface: #ffffff;
  --chat-page: #f4f8f7;
}

html:has(body.provider-chat-layout),
body.provider-chat-layout {
  --chat-composer-dock-height: 130px;
  --chat-footer-height: 110px;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body.provider-chat-layout #footer {
  position: fixed;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
}

body.provider-chat-layout #wrapper {
  display: block;
  width: 100%;
  max-width: 100vw;
  min-height: 100dvh;
  overflow: visible;
}

body.provider-chat-layout #header,
body.provider-chat-layout #header-wrap {
  height: 60px;
}

body.provider-chat-layout #logo a.affirmcare-logo {
  padding: 13px 0;
}

body.provider-chat-layout #logo .affirmcare-logo-main {
  color: #0a2f2a;
  text-shadow: none;
}

body.provider-chat-layout #logo .affirmcare-logo-accent {
  color: #0a7a6f;
  text-shadow: none;
}

body.provider-chat-layout #primary-menu > ul > li > a,
body.provider-chat-layout #primary-menu .logout-menu-button {
  height: 60px;
  padding-top: 19px;
  padding-bottom: 19px;
}

body.provider-chat-layout #top-search {
  margin-top: 23px;
  margin-bottom: 23px;
}

.provider-chat-page {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: calc(100dvh - 60px);
  height: auto;
  padding: 0;
  overflow: visible;
  background: var(--chat-page);
}

.provider-chat-page > .container {
  height: auto;
  min-width: 0;
}

.provider-chat-shell {
  --chat-shell-width: 1060px;
  --chat-composer-dock-height: 130px;
  position: relative;
  width: min(100%, var(--chat-shell-width));
  height: auto;
  min-width: 0;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
}

.chat-scroll-region {
  width: 100%;
  height: auto;
  min-width: 0;
  overflow: visible;
  padding-bottom: calc(
    var(--chat-composer-dock-height) + var(--chat-footer-height)
  );
}

.provider-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 28px 20px;
  border-bottom: 1px solid var(--chat-line);
  background: transparent;
}

.provider-chat-kicker,
.chat-results-label {
  display: block;
  margin-bottom: 4px;
  color: var(--chat-coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.provider-chat-heading h1 {
  margin: 0 0 5px;
  color: var(--chat-teal-dark);
  font-size: 27px;
  line-height: 1.2;
}

.provider-chat-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--chat-muted);
  font-size: 15px;
  line-height: 1.55;
}

.chat-icon-button {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--chat-line);
  border-radius: 50%;
  background: #fff;
  color: var(--chat-teal);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.chat-icon-button img,
.chat-send-button img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  pointer-events: none;
  transition:
    filter 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.chat-icon-button img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(31%) sepia(32%) saturate(1261%)
    hue-rotate(130deg) brightness(88%) contrast(94%);
}

.chat-results-carousel .chat-icon-button img {
  width: 12px;
  height: 20px;
}

.chat-icon-button:hover,
.chat-icon-button:focus {
  border-color: var(--chat-teal);
  background: var(--chat-teal);
  color: #fff;
  outline: none;
}

.chat-icon-button:hover img,
.chat-icon-button:focus img {
  filter: brightness(0) invert(1);
}

.chat-icon-button:disabled {
  border-color: var(--chat-line);
  background: #fff;
  cursor: default;
  opacity: 0.35;
}

.chat-icon-button:disabled img {
  filter: brightness(0) saturate(100%) invert(31%) sepia(32%) saturate(1261%)
    hue-rotate(130deg) brightness(88%) contrast(94%);
}

.chat-icon-button.chat-reset-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 122px;
  height: 42px;
  gap: 8px;
  padding: 0 15px;
  border-color: rgba(10, 122, 111, 0.3);
  border-radius: 999px;
  background: #f3faf9;
  color: var(--chat-teal-dark);
  font-family: "Lato", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(10, 122, 111, 0.08);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.chat-icon-button.chat-reset-button img {
  width: 16px;
  height: 16px;
}

.chat-icon-button.chat-reset-button:hover,
.chat-icon-button.chat-reset-button:focus-visible {
  border-color: var(--chat-teal);
  background: var(--chat-teal);
  color: #ffffff;
  outline: 3px solid rgba(10, 122, 111, 0.16);
  outline-offset: 2px;
  box-shadow: 0 8px 18px rgba(10, 122, 111, 0.18);
  transform: translateY(-1px);
}

.chat-reset-label {
  line-height: 1;
}

.chat-message-list {
  display: flex;
  min-height: 200px;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  padding: 26px 28px 22px;
  scroll-behavior: smooth;
}

.chat-message-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chat-message-row.is-user {
  justify-content: flex-end;
}

.chat-assistant-avatar {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
}

.chat-assistant-avatar-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-message-bubble {
  max-width: min(74%, 700px);
  padding: 11px 14px;
  border: 1px solid var(--chat-line);
  border-radius: 8px 8px 8px 2px;
  background: #f6faf9;
  color: var(--chat-ink);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message-row.is-user .chat-message-bubble {
  border-color: var(--chat-teal);
  border-radius: 8px 8px 2px 8px;
  background: var(--chat-teal);
  color: #fff;
}

.chat-message-row.is-error .chat-message-bubble {
  border-color: #efc7cf;
  background: #fff6f8;
  color: #7b3342;
}

.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chat-teal);
  animation: chat-dot-pulse 1s infinite ease-in-out;
}

.chat-typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-dot-pulse {
  0%,
  70%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.chat-suggestions {
  padding: 0 28px 24px 72px;
}

.chat-suggestions h2 {
  margin: 0 0 10px;
  color: var(--chat-muted);
  font-size: 13px;
  font-weight: 700;
}

.chat-suggestions-carousel {
  padding: 1px 0;
}

.chat-suggestion-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
}

.chat-suggestion-track::-webkit-scrollbar {
  display: none;
}

.chat-suggestion {
  display: flex;
  min-width: calc((100% - 30px) / 4);
  min-height: 88px;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--chat-line);
  border-radius: 8px;
  background: #fff;
  color: var(--chat-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.chat-suggestion-copy {
  display: block;
}

.chat-suggestion:nth-child(2) i {
  color: var(--chat-blue);
}
.chat-suggestion:nth-child(3) i {
  color: var(--chat-coral);
}
.chat-suggestion:nth-child(4) i {
  color: #8b6a1f;
}

.chat-suggestion i {
  margin-top: 2px;
  color: var(--chat-teal);
  font-size: 17px;
}

.chat-suggestion:hover,
.chat-suggestion:focus {
  border-color: var(--chat-teal);
  background: #f6fbfa;
  outline: none;
  transform: none;
}

.chat-results {
  padding: 21px 28px 25px;
  border-top: 1px solid var(--chat-line);
  background: #fbfcfc;
}

.chat-results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chat-results-header h2 {
  margin: 0;
  color: var(--chat-teal-dark);
  font-size: 20px;
}

.chat-results-carousel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
}

.chat-results-carousel .chat-icon-button {
  align-self: center;
}

.chat-results-track {
  display: grid;
  min-width: 0;
  grid-auto-columns: minmax(260px, 32%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #a9c8c3 transparent;
  scrollbar-width: thin;
}

.chat-results-track:focus-visible {
  outline: 2px solid var(--chat-teal);
  outline-offset: 4px;
}

.chat-provider-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 18px;
  border: 3px solid #d9b9a5;
  border-radius: 8px;
  background: #f4f4f4;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.chat-provider-card:hover,
.chat-provider-card:focus {
  border-color: var(--chat-teal);
  color: inherit;
  text-decoration: none;
  outline: none;
  box-shadow: 0 12px 24px rgba(11, 107, 99, 0.12);
  transform: translateY(-2px);
}

.chat-provider-type {
  margin-bottom: 8px;
  color: var(--chat-coral);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-provider-card h3 {
  margin: 0 0 10px;
  color: #005c52;
  font-size: 18px;
  line-height: 1.3;
}

.chat-provider-services {
  margin: 0 0 13px;
  color: #0f665e;
  font-size: 13px;
  line-height: 1.45;
}

.chat-provider-meta {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: auto 0 0;
  color: #3d4a49;
  font-size: 13px;
}

.chat-provider-meta i {
  margin-top: 2px;
  color: var(--chat-teal);
}

.chat-provider-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #d8dedc;
  color: var(--chat-teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.chat-composer-dock {
  position: fixed;
  z-index: 10;
  bottom: var(--chat-footer-height);
  left: var(--chat-shell-rendered-center, 50%);
  width: var(
    --chat-shell-rendered-width,
    min(calc(100% - 48px), var(--chat-shell-width))
  );
  padding: 42px 28px 16px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(244, 248, 247, 0),
    rgba(244, 248, 247, 0.96) 34px,
    var(--chat-page) 58px
  );
  pointer-events: none;
}

.chat-see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #0a7a6f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.chat-see-all-link:hover,
.chat-see-all-link:focus {
  background: var(--chat-teal-dark);
  color: #fff;
  text-decoration: none;
}

.chat-see-all-link[hidden] {
  display: none;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: end;
  padding: 0;
  background: transparent;
  pointer-events: auto;
}

.chat-composer textarea {
  width: 100%;
  min-height: 48px;
  max-height: 132px;
  resize: none;
  padding: 12px 14px;
  border: 1px solid #bcd3cf;
  border-radius: 20px;
  background: #fbfdfd;
  color: var(--chat-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  outline: none;
}

.chat-composer textarea:focus {
  border-color: var(--chat-teal);
  box-shadow: 0 0 0 3px rgba(11, 107, 99, 0.12);
}

.chat-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--chat-teal);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.chat-send-button:hover,
.chat-send-button:focus {
  background: var(--chat-teal-dark);
  outline: none;
  transform: translateY(-1px);
}

.chat-send-button img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transform: translateY(-1px);
}

.chat-send-button:disabled {
  background: #9fb7b3;
  cursor: wait;
  transform: none;
}

.chat-boundary-note {
  margin: 0 0 10px;
  padding: 0;
  color: #74817f;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  pointer-events: auto;
}

@media (max-width: 991.98px) {
  body.provider-chat-layout #logo {
    height: 60px;
  }

  body.provider-chat-layout:not(.top-search-open) #top-search form {
    pointer-events: none;
  }
}

/* 2xl to lg: preserve the desktop layout while reducing every chat dimension. */
@media (min-width: 992px) and (max-width: 1535.98px) {
  body.provider-chat-layout {
    --chat-footer-height: 57px;
  }

  .provider-chat-page > .container {
    padding-right: 24px;
    padding-left: 24px;
  }

  .provider-chat-shell {
    --chat-shell-width: 1000px;
    --chat-composer-dock-height: 120px;
  }

  .chat-scroll-region {
    padding-bottom: calc(
      var(--chat-composer-dock-height) + var(--chat-footer-height)
    );
  }

  .provider-chat-header {
    gap: 16px;
    padding: 8px 22px 16px;
  }

  .provider-chat-kicker,
  .chat-results-label,
  .chat-provider-type {
    font-size: 10px;
  }

  .provider-chat-heading h1 {
    margin-bottom: 4px;
    font-size: 25px;
  }

  .provider-chat-heading p {
    font-size: 14px;
    line-height: 1.45;
  }

  .chat-icon-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .chat-icon-button img {
    width: 17px;
    height: 17px;
  }

  .chat-icon-button.chat-reset-button {
    min-width: 116px;
    height: 40px;
    gap: 7px;
    padding: 0 13px;
    font-size: 12px;
  }

  .chat-icon-button.chat-reset-button img {
    width: 15px;
    height: 15px;
  }

  .chat-message-list {
    min-height: 180px;
    gap: 12px;
    padding: 22px 22px 18px;
  }

  .chat-message-row {
    gap: 9px;
  }

  .chat-assistant-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 13px;
  }

  .chat-message-bubble {
    max-width: min(76%, 660px);
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .chat-suggestions {
    padding: 0 22px 20px 64px;
  }

  .chat-suggestions h2 {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .chat-suggestion {
    min-width: calc((100% - 16px) / 3);
    min-height: 78px;
    gap: 8px;
    padding: 11px;
    font-size: 12px;
  }

  .chat-suggestion i {
    font-size: 16px;
  }

  .chat-results {
    padding: 18px 22px 20px;
  }

  .chat-results-header {
    margin-bottom: 12px;
  }

  .chat-see-all-link {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .chat-results-header h2 {
    font-size: 19px;
  }

  .chat-results-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 10px;
  }

  .chat-results-track {
    grid-auto-columns: minmax(240px, 38%);
    gap: 12px;
    padding-bottom: 8px;
  }

  .chat-provider-card {
    min-height: 200px;
    padding: 16px;
  }

  .chat-provider-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .chat-provider-services,
  .chat-provider-meta {
    font-size: 12px;
  }

  .chat-provider-services {
    margin-bottom: 11px;
  }

  .chat-provider-action {
    margin-top: 13px;
    padding-top: 10px;
    font-size: 11px;
  }

  .chat-composer-dock {
    padding: 38px 22px 14px;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .chat-composer textarea {
    min-height: 44px;
    max-height: 120px;
    padding: 10px 13px;
    border-radius: 18px;
    font-size: 14px;
  }

  .chat-send-button {
    width: 44px;
    height: 44px;
  }

  .chat-send-button img {
    width: 17px;
    height: 17px;
  }

  .chat-boundary-note {
    margin-bottom: 8px;
    font-size: 11px;
  }
}

/* lg to md: make the tablet layout compact without collapsing its structure. */
@media (min-width: 768px) and (max-width: 991.98px) {
  body.provider-chat-layout {
    --chat-footer-height: 57px;
  }

  body.provider-chat-layout #header,
  body.provider-chat-layout #header-wrap {
    height: 60px !important;
  }

  body.provider-chat-layout #logo a.affirmcare-logo {
    padding: 15px 0;
    font-size: 26px;
  }

  .provider-chat-page > .container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .provider-chat-shell {
    --chat-shell-width: 720px;
    --chat-composer-dock-height: 116px;
  }

  .chat-scroll-region {
    padding-bottom: calc(
      var(--chat-composer-dock-height) + var(--chat-footer-height)
    );
  }

  .provider-chat-header {
    gap: 14px;
    padding: 10px 18px 15px;
  }

  .provider-chat-kicker,
  .chat-results-label,
  .chat-provider-type {
    font-size: 10px;
  }

  .provider-chat-heading h1 {
    margin-bottom: 3px;
    font-size: 23px;
  }

  .provider-chat-heading p {
    font-size: 13px;
    line-height: 1.42;
  }

  .chat-icon-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .chat-icon-button img {
    width: 16px;
    height: 16px;
  }

  .chat-icon-button.chat-reset-button {
    min-width: 108px;
    height: 38px;
    gap: 7px;
    padding: 0 12px;
    font-size: 12px;
  }

  .chat-icon-button.chat-reset-button img {
    width: 15px;
    height: 15px;
  }

  .chat-message-list {
    min-height: 165px;
    gap: 11px;
    padding: 18px 18px 16px;
  }

  .chat-message-row {
    gap: 8px;
  }

  .chat-assistant-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 12px;
  }

  .chat-message-bubble {
    max-width: 78%;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.45;
  }

  .chat-suggestions {
    padding: 0 18px 18px 56px;
  }

  .chat-suggestions h2 {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .chat-suggestion {
    min-width: calc((100% - 8px) / 2);
    min-height: 72px;
    gap: 8px;
    padding: 10px;
    font-size: 12px;
  }

  .chat-suggestion i {
    font-size: 15px;
  }

  .chat-results {
    padding: 16px 18px 18px;
  }

  .chat-results-header {
    margin-bottom: 10px;
  }

  .chat-see-all-link {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 10px;
  }

  .chat-results-header h2 {
    font-size: 18px;
  }

  .chat-results-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .chat-results-track {
    grid-auto-columns: minmax(220px, 56%);
    gap: 10px;
    padding-bottom: 8px;
  }

  .chat-provider-card {
    min-height: 190px;
    padding: 14px;
  }

  .chat-provider-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .chat-provider-services,
  .chat-provider-meta {
    font-size: 12px;
  }

  .chat-provider-services {
    margin-bottom: 10px;
  }

  .chat-provider-action {
    margin-top: 12px;
    padding-top: 9px;
    font-size: 11px;
  }

  .chat-composer-dock {
    padding: 34px 18px 13px;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .chat-composer textarea {
    min-height: 42px;
    max-height: 112px;
    padding: 10px 12px;
    border-radius: 17px;
    font-size: 13px;
  }

  .chat-send-button {
    width: 42px;
    height: 42px;
  }

  .chat-send-button img {
    width: 16px;
    height: 16px;
  }

  .chat-boundary-note {
    margin-bottom: 7px;
    font-size: 10px;
  }
}

/* Below md: optimise every chat element for narrow touch screens. */
@media (max-width: 767.98px) {
  body.provider-chat-layout {
    --chat-footer-height: 65px;
  }

  body.provider-chat-layout #header,
  body.provider-chat-layout #header-wrap {
    height: 60px !important;
  }

  body.provider-chat-layout #logo a.affirmcare-logo {
    padding: 16px 0;
    font-size: 24px;
  }

  .provider-chat-page {
    padding: 0;
  }

  .provider-chat-page .container {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .provider-chat-shell {
    --chat-shell-width: 100%;
    --chat-composer-dock-height: 108px;
  }

  .chat-scroll-region {
    padding-bottom: calc(
      var(--chat-composer-dock-height) + var(--chat-footer-height)
    );
  }

  .provider-chat-header,
  .chat-message-list,
  .chat-results {
    padding-right: 12px;
    padding-left: 12px;
  }

  .provider-chat-header {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .provider-chat-kicker,
  .chat-results-label,
  .chat-provider-type {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .provider-chat-heading h1 {
    margin-bottom: 3px;
    font-size: 21px;
  }

  .provider-chat-heading p {
    font-size: 12px;
    line-height: 1.4;
  }

  .chat-icon-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .chat-icon-button img {
    width: 15px;
    height: 15px;
  }

  .chat-icon-button.chat-reset-button {
    min-width: 102px;
    height: 36px;
    gap: 6px;
    padding: 0 10px;
    font-size: 11px;
  }

  .chat-icon-button.chat-reset-button img {
    width: 14px;
    height: 14px;
  }

  .chat-message-list {
    min-height: 150px;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .chat-message-row {
    gap: 7px;
  }

  .chat-assistant-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 11px;
  }

  .chat-message-bubble {
    max-width: 84%;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.42;
  }

  .chat-suggestions {
    padding: 0 12px 16px;
  }

  .chat-suggestions h2 {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .chat-suggestion {
    min-width: 100%;
    min-height: 72px;
    align-items: flex-start;
    gap: 7px;
    padding: 9px;
    font-size: 11px;
    line-height: 1.3;
  }

  .chat-suggestion i {
    font-size: 14px;
  }

  .chat-results {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .chat-results-header {
    margin-bottom: 9px;
  }

  .chat-see-all-link {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .chat-results-header h2 {
    font-size: 17px;
  }

  .chat-results-carousel {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .chat-results-carousel .chat-icon-button {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .chat-results-carousel .chat-icon-button img {
    width: 10px;
    height: 16px;
  }

  .chat-results-track {
    grid-auto-columns: minmax(210px, 86%);
    gap: 8px;
    padding-bottom: 7px;
  }

  .chat-provider-card {
    min-height: 176px;
    padding: 12px;
    border-width: 2px;
  }

  .chat-provider-card h3 {
    margin-bottom: 7px;
    font-size: 15px;
  }

  .chat-provider-services,
  .chat-provider-meta {
    font-size: 11px;
    line-height: 1.35;
  }

  .chat-provider-services {
    margin-bottom: 8px;
  }

  .chat-provider-action {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 10px;
  }

  .chat-composer-dock {
    width: var(--chat-shell-rendered-width, calc(100% - 20px));
    padding: 32px 12px 10px;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .chat-composer textarea {
    min-height: 56px;
    max-height: 108px;
    padding: 10px 11px;
    border-radius: 17px;
    font-size: 13px;
    line-height: 1.4;
  }

  .chat-send-button {
    width: 42px;
    height: 42px;
  }

  .chat-send-button img {
    width: 16px;
    height: 16px;
  }

  .chat-boundary-note {
    margin-bottom: 7px;
    font-size: 10px;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-scroll-region,
  .chat-message-list,
  .chat-results-track {
    scroll-behavior: auto;
  }

  .chat-typing-dots span {
    animation: none;
  }
}
