:root {
  --proride-ai-red: #ed1d24;
  --proride-ai-red-dark: #bd070d;
  --proride-ai-ink: #11141a;
  --proride-ai-ink-soft: #1b2029;
  --proride-ai-muted: #747b87;
  --proride-ai-border: #e5e8ed;
  --proride-ai-surface: #ffffff;
  --proride-ai-surface-soft: #f6f7f9;
}

#proride-ai-pa-root,
#proride-ai-pa-root * {
  box-sizing: border-box;
}

#proride-ai-pa-root {
  position: fixed;
  z-index: 2147482000;
  direction: rtl;
  color: var(--proride-ai-ink);
  font-family: inherit;
  font-weight: 400;
  line-height: 1.4;
}

#proride-ai-pa-root.proride-ai-pa-position-right {
  inset: auto 28px 28px auto;
}

#proride-ai-pa-root.proride-ai-pa-position-left {
  inset: auto auto 28px 28px;
}

.proride-ai-pa-panel[hidden] {
  display: none !important;
}

.proride-ai-pa-launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.proride-ai-pa-launcher-label {
  position: relative;
  min-width: 246px;
  min-height: 66px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  padding: 10px 17px 11px;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 26, .10);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(250,250,251,.98));
  color: var(--proride-ai-ink);
  text-align: right;
  box-shadow: 0 16px 42px rgba(8, 12, 20, .15), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.proride-ai-pa-launcher-label::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, #ff4d54 0%, var(--proride-ai-red) 58%, #c9070e 100%);
  box-shadow: 4px 0 18px rgba(237, 29, 36, .16);
}

.proride-ai-pa-launcher-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--proride-ai-red);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .75px;
  direction: ltr;
}

.proride-ai-pa-launcher-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--proride-ai-red);
  box-shadow: 0 0 0 4px rgba(237, 29, 36, .09);
}

.proride-ai-pa-launcher-title {
  display: block;
  color: #13161c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.1px;
}

.proride-ai-pa-launcher-meta {
  display: block;
  color: #7a818d;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
}

.proride-ai-pa-launcher:hover .proride-ai-pa-launcher-label,
.proride-ai-pa-launcher:focus-visible .proride-ai-pa-launcher-label {
  transform: translateY(-3px);
  border-color: rgba(237, 29, 36, .20);
  box-shadow: 0 20px 48px rgba(8, 12, 20, .18), inset 0 1px 0 rgba(255,255,255,.95);
}

.proride-ai-pa-launcher-icon {
  position: relative;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.12), transparent 28%), linear-gradient(145deg, #242933 0%, #12151b 58%, #090b0f 100%);
  color: #fff;
  line-height: 0;
  box-shadow: 0 18px 42px rgba(9, 12, 20, .28), 0 0 0 1px rgba(17, 20, 26, .12), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .2s ease, box-shadow .2s ease;
}

.proride-ai-pa-launcher-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.26), transparent 30%), linear-gradient(145deg, #ff343c 0%, var(--proride-ai-red) 48%, var(--proride-ai-red-dark) 100%);
  box-shadow: 0 9px 20px rgba(237, 29, 36, .28), inset 0 1px 0 rgba(255,255,255,.25);
}

.proride-ai-pa-launcher-icon::after {
  content: "AI";
  position: absolute;
  top: -3px;
  left: -4px;
  min-width: 25px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #171a21;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(5, 8, 14, .25);
}

.proride-ai-pa-launcher-orbit {
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(237, 29, 36, .22);
  border-radius: 50%;
  animation: proride-ai-orbit-pulse 3s ease-out infinite;
}

.proride-ai-pa-launcher:hover .proride-ai-pa-launcher-icon,
.proride-ai-pa-launcher:focus-visible .proride-ai-pa-launcher-icon {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 22px 50px rgba(9, 12, 20, .32), 0 0 0 1px rgba(237, 29, 36, .16), inset 0 1px 0 rgba(255,255,255,.14);
}

.proride-ai-pa-finder-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 31px;
  height: 31px;
  overflow: visible;
}

@keyframes proride-ai-orbit-pulse {
  0% { opacity: .8; transform: scale(.9); }
  72%, 100% { opacity: 0; transform: scale(1.12); }
}

.proride-ai-pa-panel {
  position: absolute;
  right: 0;
  bottom: 19px;
  width: min(440px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 124px));
  height: min(720px, calc(100dvh - 124px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 26, .08);
  border-radius: 28px;
  background: var(--proride-ai-surface);
  box-shadow: 0 36px 100px rgba(8, 12, 22, .30), 0 0 0 1px rgba(255,255,255,.65) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.982);
  transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease;
}

.proride-ai-pa-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.proride-ai-pa-position-left .proride-ai-pa-panel {
  right: auto;
  left: 0;
  transform-origin: bottom left;
}

.proride-ai-pa-header {
  position: relative;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 17px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 86% -14%, rgba(237,29,36,.42), transparent 42%), radial-gradient(circle at 15% 120%, rgba(255,255,255,.08), transparent 34%), linear-gradient(135deg, #1d222c 0%, #11151c 58%, #0b0e13 100%);
}

.proride-ai-pa-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237,29,36,.75), transparent);
}

.proride-ai-pa-brand {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.proride-ai-pa-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 16px;
  background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.25), transparent 28%), linear-gradient(145deg, #ff343c, #d7070f);
  color: #fff;
  line-height: 0;
  box-shadow: 0 10px 26px rgba(237, 29, 36, .24), inset 0 1px 0 rgba(255,255,255,.22);
}

.proride-ai-pa-avatar .proride-ai-pa-finder-mark {
  width: 27px;
  height: 27px;
}

.proride-ai-pa-brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.proride-ai-pa-brand-kicker {
  color: #ff7b80;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .72px;
  direction: ltr;
  text-align: right;
}

.proride-ai-pa-brand-title {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.proride-ai-pa-brand-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.68);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.25;
}

.proride-ai-pa-brand-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d47d;
  box-shadow: 0 0 0 4px rgba(52,212,125,.10), 0 0 12px rgba(52,212,125,.30);
}

.proride-ai-pa-header-actions {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.proride-ai-pa-reset[hidden] {
  display: none !important;
}

.proride-ai-pa-reset,
.proride-ai-pa-close {
  position: relative;
  z-index: 1;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, transform .15s ease;
}

.proride-ai-pa-reset {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.82);
}

.proride-ai-pa-close svg,
.proride-ai-pa-reset svg {
  width: 21px;
  height: 21px;
}

.proride-ai-pa-reset svg {
  width: 19px;
  height: 19px;
}

.proride-ai-pa-close:hover,
.proride-ai-pa-close:focus-visible,
.proride-ai-pa-reset:hover,
.proride-ai-pa-reset:focus-visible {
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: translateY(-1px);
}

.proride-ai-pa-messages {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 16px;
  background: radial-gradient(circle at 88% 0%, rgba(237,29,36,.045), transparent 30%), linear-gradient(180deg, #f5f6f8 0%, #fbfbfc 30%, #fff 100%);
  scrollbar-width: thin;
  scrollbar-color: #cfd3da transparent;
}

.proride-ai-pa-home[hidden],
.proride-ai-pa-panel.has-conversation .proride-ai-pa-home {
  display: none !important;
}


.proride-ai-pa-home {
  display: grid;
  gap: 15px;
  padding: 2px 0 6px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .16s ease, transform .16s ease;
}

.proride-ai-pa-home.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
}

.proride-ai-pa-home-copy {
  display: grid;
  gap: 5px;
  padding: 3px 3px 0;
}

.proride-ai-pa-home-eyebrow {
  color: var(--proride-ai-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .45px;
}

.proride-ai-pa-home-title {
  color: #151920;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.35px;
}

.proride-ai-pa-home-text {
  max-width: 360px;
  color: #6d7480;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.proride-ai-pa-home-note {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(17,20,26,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  color: #4c535f;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(12,18,30,.045);
}

.proride-ai-pa-home-note-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(237,29,36,.08);
  color: var(--proride-ai-red);
}

.proride-ai-pa-home-note-icon svg {
  width: 20px;
  height: 20px;
}

.proride-ai-pa-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.proride-ai-pa-quick-action {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #e2e5ea;
  border-radius: 17px;
  background: rgba(255,255,255,.97);
  color: #2e343d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(13,19,32,.045);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.proride-ai-pa-quick-action.is-wide {
  grid-column: 1 / -1;
  min-height: 58px;
}

.proride-ai-pa-quick-action:hover,
.proride-ai-pa-quick-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(237,29,36,.26);
  color: var(--proride-ai-red);
  box-shadow: 0 13px 28px rgba(13,19,32,.08);
}

.proride-ai-pa-quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f3f4f6;
  color: #353b45;
  transition: background .16s ease, color .16s ease;
}

.proride-ai-pa-quick-action:hover .proride-ai-pa-quick-icon,
.proride-ai-pa-quick-action:focus-visible .proride-ai-pa-quick-icon {
  background: rgba(237,29,36,.08);
  color: var(--proride-ai-red);
}

.proride-ai-pa-quick-icon svg {
  width: 21px;
  height: 21px;
}

.proride-ai-pa-quick-arrow {
  width: 15px;
  height: 15px;
  color: #a2a7af;
}

.proride-ai-pa-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.proride-ai-pa-message.is-user {
  justify-content: flex-start;
  direction: rtl;
}

.proride-ai-pa-message.is-assistant {
  justify-content: flex-start;
  direction: ltr;
}

.proride-ai-pa-message.is-assistant .proride-ai-pa-bubble,
.proride-ai-pa-message.is-assistant .proride-ai-pa-typing-wrap {
  direction: rtl;
  text-align: right;
}

.proride-ai-pa-message-avatar {
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #f63239, #ce080f);
  color: #fff;
  box-shadow: 0 7px 16px rgba(237,29,36,.16);
}

.proride-ai-pa-message-avatar svg {
  width: 18px;
  height: 18px;
}

.proride-ai-pa-bubble {
  max-width: 86%;
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.proride-ai-pa-message.is-user .proride-ai-pa-bubble {
  color: #fff;
  background: linear-gradient(145deg, #f32931, #d90911);
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 18px rgba(237,29,36,.16);
}

.proride-ai-pa-message.is-assistant .proride-ai-pa-bubble {
  width: min(100%, 354px);
  border: 1px solid var(--proride-ai-border);
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 6px;
  background: rgba(255,255,255,.99);
  box-shadow: 0 8px 24px rgba(13,19,32,.06);
}

.proride-ai-pa-copy {
  color: #272c35;
}

.proride-ai-pa-typing-wrap {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.proride-ai-pa-typing {
  min-width: 74px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 16px;
  border: 1px solid var(--proride-ai-border);
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(13,19,32,.055);
}

.proride-ai-pa-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d838d;
  animation: proride-ai-typing 1.15s ease-in-out infinite;
}

.proride-ai-pa-typing span:nth-child(2) { animation-delay: .16s; }
.proride-ai-pa-typing span:nth-child(3) { animation-delay: .32s; }

.proride-ai-pa-typing-label {
  padding-inline: 4px;
  color: #9096a0;
  font-size: 10.5px;
  font-weight: 500;
}

@keyframes proride-ai-typing {
  0%, 60%, 100% { opacity: .45; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.proride-ai-pa-details {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #eceef2;
}

.proride-ai-pa-details > div:not(.proride-ai-pa-request-badge) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
}

.proride-ai-pa-details-label {
  color: var(--proride-ai-muted);
}

.proride-ai-pa-details-value {
  color: #20242b;
  font-weight: 700;
  text-align: left;
}

.proride-ai-pa-details small {
  color: #545c68;
  font-size: 11.5px;
  text-align: left;
}

.proride-ai-pa-details p {
  margin: 10px 0 0;
  color: #565e69;
  font-size: 12.5px;
}

.proride-ai-pa-request-badge {
  margin-top: 11px;
  padding: 9px 11px;
  border: 1px solid #d8f0e2;
  border-radius: 11px;
  background: #eefaf3;
  color: #13733c;
  font-size: 12px;
  font-weight: 700;
}

.proride-ai-pa-products {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.proride-ai-pa-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid #e3e6eb;
  border-radius: 16px;
  background: #fff;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 5px 16px rgba(13,19,32,.035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.proride-ai-pa-product:hover,
.proride-ai-pa-product:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(237,29,36,.24);
  box-shadow: 0 12px 26px rgba(12,18,30,.08);
}

.proride-ai-pa-product img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border: 1px solid #f0f1f3;
  border-radius: 12px;
  background: #f7f8f9;
}

.proride-ai-pa-product-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.proride-ai-pa-product-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #20242b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.proride-ai-pa-product-body small {
  margin-top: 4px;
  color: var(--proride-ai-muted);
  font-size: 11.5px;
}

.proride-ai-pa-product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.proride-ai-pa-price {
  color: var(--proride-ai-red);
  font-size: 13px;
  font-weight: 700;
}

.proride-ai-pa-view {
  color: #343a44;
  font-size: 11.5px;
  font-weight: 700;
}

.proride-ai-pa-sources {
  margin-top: 11px;
  font-size: 12px;
}

.proride-ai-pa-sources summary {
  color: #444b56;
  font-weight: 700;
  cursor: pointer;
}

.proride-ai-pa-sources div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.proride-ai-pa-sources a {
  color: #315ea8 !important;
  text-decoration: underline !important;
  overflow-wrap: anywhere;
}

.proride-ai-pa-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.proride-ai-pa-response-action,
.proride-ai-pa-whatsapp {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #dfe2e7;
  border-radius: 12px;
  background: #f7f8fa;
  color: #333943 !important;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.proride-ai-pa-response-action:hover,
.proride-ai-pa-response-action:focus-visible,
.proride-ai-pa-whatsapp:hover,
.proride-ai-pa-whatsapp:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(237,29,36,.25);
  background: rgba(237,29,36,.045);
}

.proride-ai-pa-response-action.is-whatsapp,
.proride-ai-pa-whatsapp {
  border-color: #d8f0e2;
  background: #ecf9f1;
  color: #137742 !important;
}

.proride-ai-pa-whatsapp {
  display: flex;
  width: 100%;
  margin-top: 12px;
}

.proride-ai-pa-cached {
  margin-top: 9px;
  color: #8b919b;
  font-size: 10px;
  text-align: center;
}

.proride-ai-pa-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  align-items: end;
  gap: 9px;
  padding: 11px 13px 8px;
  border-top: 1px solid var(--proride-ai-border);
  background: rgba(255,255,255,.98);
  box-shadow: 0 -10px 30px rgba(14,19,30,.04);
}

.proride-ai-pa-composer {
  position: relative;
  min-width: 0;
}

.proride-ai-pa-form textarea {
  width: 100%;
  min-height: 58px;
  max-height: 136px;
  margin: 0;
  padding: 13px 15px 22px;
  resize: none;
  border: 1px solid #dfe2e7;
  border-radius: 18px;
  outline: none;
  background: #f7f8fa;
  color: #181b22;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-appearance: none;
  appearance: none;
}

.proride-ai-pa-form textarea:focus {
  border-color: var(--proride-ai-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(237,29,36,.08);
}

.proride-ai-pa-composer-hint {
  position: absolute;
  right: 15px;
  bottom: 7px;
  color: #9a9fa8;
  font-size: 8.5px;
  font-weight: 400;
  pointer-events: none;
}

.proride-ai-pa-send {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, #f72d35, #d9070f);
  color: #fff;
  line-height: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 9px 20px rgba(237,29,36,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}

.proride-ai-pa-send:hover,
.proride-ai-pa-send:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(237,29,36,.27);
}

.proride-ai-pa-send:disabled {
  opacity: .5;
  cursor: wait;
  transform: none;
}

.proride-ai-pa-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.proride-ai-pa-disclaimer {
  padding: 0 13px 10px;
  background: #fff;
  color: #8a909a;
  font-size: 9.5px;
  font-weight: 400;
  text-align: center;
}

#proride-ai-pa-root button:focus-visible,
#proride-ai-pa-root a:focus-visible,
#proride-ai-pa-root textarea:focus-visible {
  outline: 2px solid rgba(237,29,36,.55);
  outline-offset: 2px;
}

@media (min-width: 641px) {
  #proride-ai-pa-root.proride-ai-pa-position-right,
  #proride-ai-pa-root.proride-ai-pa-position-left {
    inset: auto auto -10px 5px;
  }

  .proride-ai-pa-launcher {
    position: relative;
    width: 60px;
    height: 60px;
    gap: 0;
    overflow: visible;
    direction: ltr;
    transform: translateY(-16px);
  }

  .proride-ai-pa-launcher-label {
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    z-index: 0;
    min-width: 236px;
    min-height: 60px;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-10px, -50%) scale(.985);
    transform-origin: left center;
    transition: opacity .18s ease, visibility .18s ease, transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .proride-ai-pa-launcher:hover .proride-ai-pa-launcher-label,
  .proride-ai-pa-launcher:focus-visible .proride-ai-pa-launcher-label {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%) scale(1);
  }

  #proride-ai-pa-root.is-panel-open .proride-ai-pa-launcher-label {
    opacity: 0;
    visibility: hidden;
    transform: translate(-10px, -50%) scale(.985);
  }

  .proride-ai-pa-launcher-icon {
    z-index: 1;
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    border: 0;
    box-shadow: 0 14px 32px rgba(9, 12, 20, .24), 0 0 0 1px rgba(17, 20, 26, .08), inset 0 1px 0 rgba(255,255,255,.12);
  }

  .proride-ai-pa-launcher-icon::before {
    inset: 3px;
  }

  .proride-ai-pa-launcher-icon::after {
    top: -4px;
    right: -3px;
    left: auto;
    min-width: 23px;
    height: 18px;
    padding-inline: 5px;
    border-width: 1px;
  }

  .proride-ai-pa-launcher-orbit {
    display: none;
  }

  .proride-ai-pa-launcher .proride-ai-pa-finder-mark {
    width: 27px;
    height: 27px;
  }

  .proride-ai-pa-panel,
  .proride-ai-pa-position-left .proride-ai-pa-panel {
    right: auto;
    left: 70px;
    transform-origin: bottom left;
  }
}

@media (max-width: 640px) {
  html.proride-ai-pa-open,
  html.proride-ai-pa-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  /* On mobile the launcher always stays on the left. */
  #proride-ai-pa-root.proride-ai-pa-position-right,
  #proride-ai-pa-root.proride-ai-pa-position-left {
    inset:
      auto
      auto
      max(7px, env(safe-area-inset-bottom))
      max(5px, env(safe-area-inset-left));
  }

  .proride-ai-pa-launcher-label {
    display: none;
  }

  .proride-ai-pa-launcher-icon {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .proride-ai-pa-launcher-icon::after {
    top: -3px;
    left: -4px;
  }

  .proride-ai-pa-finder-mark {
    width: 28px;
    height: 28px;
  }

  .proride-ai-pa-panel {
    position: fixed;
    top: var(--proride-ai-vtop, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    max-width: none;
    height: var(--proride-ai-vh, 100dvh);
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateY(16px);
    transform-origin: center bottom;
  }

  .proride-ai-pa-panel.is-open {
    transform: translateY(0);
  }

  .proride-ai-pa-header {
    min-height: 78px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .proride-ai-pa-avatar {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .proride-ai-pa-brand-kicker {
    font-size: 8px;
  }

  .proride-ai-pa-brand-title {
    font-size: 15px;
  }

  .proride-ai-pa-brand-status {
    font-size: 10px;
  }

  .proride-ai-pa-close {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .proride-ai-pa-reset {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .proride-ai-pa-messages {
    padding: 16px 12px 12px;
  }

  .proride-ai-pa-home {
    gap: 13px;
  }

  .proride-ai-pa-home-title {
    font-size: 22px;
  }

  .proride-ai-pa-quick-actions {
    gap: 8px;
  }

  .proride-ai-pa-quick-action {
    min-height: 66px;
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    gap: 8px;
    padding: 9px;
    border-radius: 16px;
    font-size: 11.5px;
  }

  .proride-ai-pa-quick-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .proride-ai-pa-quick-icon svg {
    width: 19px;
    height: 19px;
  }

  .proride-ai-pa-bubble {
    max-width: 92%;
    font-size: 14px;
  }

  .proride-ai-pa-message.is-assistant .proride-ai-pa-bubble {
    width: calc(100% - 38px);
  }

  .proride-ai-pa-message-avatar {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }

  .proride-ai-pa-form {
    grid-template-columns: minmax(0, 1fr) 56px;
    align-items: end;
    gap: 9px;
    padding-top: 12px;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
    background: rgba(255,255,255,.99);
    box-shadow: 0 -10px 28px rgba(14, 19, 30, .055);
  }

  .proride-ai-pa-form textarea {
    min-height: 64px;
    max-height: 136px;
    padding: 16px 16px 23px;
    border-radius: 20px;
    background: #f5f6f8;
    font-size: 16px;
    line-height: 1.45;
  }

  .proride-ai-pa-form textarea::placeholder {
    color: #858c97;
    opacity: 1;
  }

  .proride-ai-pa-composer-hint {
    display: none;
  }

  .proride-ai-pa-send {
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
    border-radius: 18px;
  }

  .proride-ai-pa-send svg {
    width: 23px;
    height: 23px;
  }

  .proride-ai-pa-disclaimer {
    padding-bottom: max(7px, env(safe-area-inset-bottom));
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .proride-ai-pa-brand-status {
    max-width: 205px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .proride-ai-pa-home-title {
    font-size: 20px;
  }

  .proride-ai-pa-home-text {
    font-size: 12.5px;
  }

  .proride-ai-pa-quick-action {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .proride-ai-pa-quick-arrow {
    display: none;
  }

  .proride-ai-pa-product {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .proride-ai-pa-product img {
    width: 76px;
    height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proride-ai-pa-panel,
  .proride-ai-pa-home,
  .proride-ai-pa-launcher-label,
  .proride-ai-pa-launcher-icon,
  .proride-ai-pa-product,
  .proride-ai-pa-quick-action,
  .proride-ai-pa-send {
    transition: none;
  }

  .proride-ai-pa-launcher-orbit,
  .proride-ai-pa-typing span {
    animation: none;
  }
}


/* v0.3.1 — polished post-answer flow */
.proride-ai-pa-followup {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(27, 32, 42, .09);
}

.proride-ai-pa-followup-title {
  color: #4e5560;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.proride-ai-pa-followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proride-ai-pa-followup-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dfe2e7;
  border-radius: 11px;
  background: #fff;
  color: #343a44;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}

.proride-ai-pa-followup-button:hover,
.proride-ai-pa-followup-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.proride-ai-pa-followup-button.is-more {
  border-color: rgba(237, 29, 36, .2);
  background: rgba(237, 29, 36, .055);
  color: #c91920;
}

.proride-ai-pa-followup-button.is-more:hover,
.proride-ai-pa-followup-button.is-more:focus-visible {
  border-color: rgba(237, 29, 36, .38);
  background: rgba(237, 29, 36, .095);
}

.proride-ai-pa-followup-button.is-done:hover,
.proride-ai-pa-followup-button.is-done:focus-visible {
  border-color: #cfd3d9;
  background: #f5f6f8;
}

@media (max-width: 640px) {
  .proride-ai-pa-followup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .proride-ai-pa-followup-button {
    width: 100%;
    min-height: 42px;
    font-size: 12px;
  }
}


/* =========================================================
   v0.3.4 — cleaner premium home, simplified header and icon
   ========================================================= */

.proride-ai-pa-header {
  min-height: 78px;
  padding-block: 13px;
}

.proride-ai-pa-brand {
  gap: 11px;
}

.proride-ai-pa-brand-copy {
  display: flex;
  align-items: center;
}

.proride-ai-pa-brand-kicker,
.proride-ai-pa-brand-status {
  display: none !important;
}

.proride-ai-pa-brand-title {
  font-size: 17px;
  line-height: 1.25;
}

.proride-ai-pa-avatar {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.proride-ai-pa-avatar .proride-ai-pa-finder-mark {
  width: 25px;
  height: 25px;
}

.proride-ai-pa-home-copy {
  gap: 7px;
  padding-top: 2px;
}

.proride-ai-pa-home-title {
  font-size: 25px;
}

.proride-ai-pa-home-text {
  max-width: 360px;
  margin-inline: auto;
}

.proride-ai-pa-quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.proride-ai-pa-primary-actions,
.proride-ai-pa-utility-actions,
.proride-ai-pa-more-actions {
  display: grid;
  gap: 9px;
}

.proride-ai-pa-primary-actions {
  grid-template-columns: 1fr;
}

.proride-ai-pa-utility-actions,
.proride-ai-pa-more-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proride-ai-pa-more-actions[hidden] {
  display: none !important;
}

.proride-ai-pa-more-actions {
  padding: 10px;
  border: 1px solid #e5e8ed;
  border-radius: 18px;
  background: rgba(246, 247, 249, .86);
  animation: proride-ai-more-in .18s ease both;
}

@keyframes proride-ai-more-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.proride-ai-pa-quick-action {
  grid-template-columns: 42px minmax(0, 1fr) 16px;
}

.proride-ai-pa-quick-action.is-primary {
  min-height: 76px;
  padding: 13px 14px;
  border-color: rgba(17, 20, 26, .09);
  border-radius: 19px;
  background:
    radial-gradient(circle at 92% 10%, rgba(237, 29, 36, .055), transparent 32%),
    #fff;
  box-shadow: 0 10px 26px rgba(13, 19, 32, .055);
}

.proride-ai-pa-quick-action.is-primary .proride-ai-pa-quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(237, 29, 36, .075);
  color: var(--proride-ai-red);
}

.proride-ai-pa-quick-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.proride-ai-pa-quick-title {
  display: block;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.proride-ai-pa-quick-description {
  display: block;
  color: #858c97;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.35;
}

.proride-ai-pa-quick-action.is-utility {
  min-height: 58px;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  padding: 9px 10px;
  border-radius: 16px;
  box-shadow: none;
}

.proride-ai-pa-quick-action.is-utility .proride-ai-pa-quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.proride-ai-pa-quick-action.is-utility .proride-ai-pa-quick-title {
  font-size: 12px;
}

.proride-ai-pa-quick-action.is-utility .proride-ai-pa-quick-description {
  display: none;
}

.proride-ai-pa-quick-action.is-human {
  border-color: rgba(237, 29, 36, .15);
  background: rgba(237, 29, 36, .035);
}

.proride-ai-pa-quick-action.is-human .proride-ai-pa-quick-icon {
  background: rgba(237, 29, 36, .08);
  color: var(--proride-ai-red);
}

.proride-ai-pa-quick-action.is-secondary {
  min-height: 55px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(13, 19, 32, .035);
  font-size: 11px;
}

.proride-ai-pa-quick-action.is-secondary .proride-ai-pa-quick-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.proride-ai-pa-quick-action.is-secondary .proride-ai-pa-quick-arrow {
  display: none;
}

.proride-ai-pa-quick-action[data-action="more"] .proride-ai-pa-quick-arrow {
  transition: transform .18s ease;
}

.proride-ai-pa-quick-action[data-action="more"].is-expanded .proride-ai-pa-quick-arrow {
  transform: rotate(-90deg);
}

.proride-ai-pa-message-avatar {
  border: 1px solid rgba(255, 255, 255, .24);
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.24), transparent 30%),
    linear-gradient(145deg, #f63239, #ce080f);
}

.proride-ai-pa-message-avatar svg {
  width: 17px;
  height: 17px;
}

/* Mobile launcher: preserve the user's exact position.
   Only remove the black outer body and keep red + thin white border. */
@media (max-width: 640px) {
  .proride-ai-pa-launcher-icon {
    border: 1.5px solid rgba(255, 255, 255, .96);
    background:
      radial-gradient(circle at 32% 24%, rgba(255,255,255,.23), transparent 29%),
      linear-gradient(145deg, #ff343c 0%, var(--proride-ai-red) 52%, var(--proride-ai-red-dark) 100%);
    box-shadow:
      0 12px 28px rgba(237, 29, 36, .26),
      inset 0 1px 0 rgba(255,255,255,.24);
  }

  .proride-ai-pa-launcher-icon::before {
    inset: 0;
    background: transparent;
    box-shadow: none;
  }

  .proride-ai-pa-launcher-orbit {
    display: none;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 25px;
    height: 25px;
  }

  .proride-ai-pa-home-title {
    font-size: 23px;
  }

  .proride-ai-pa-primary-actions {
    gap: 8px;
  }

  .proride-ai-pa-quick-action.is-primary {
    min-height: 72px;
    padding: 12px;
  }

  .proride-ai-pa-utility-actions,
  .proride-ai-pa-more-actions {
    gap: 8px;
  }

  .proride-ai-pa-quick-action.is-secondary {
    min-height: 53px;
    font-size: 10.8px;
  }
}

@media (max-width: 380px) {
  .proride-ai-pa-utility-actions,
  .proride-ai-pa-more-actions {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   v0.3.5 — recommended chat-bubble + sparkle assistant icon
   ========================================================= */

@media (max-width: 640px) {
  /* Slightly smaller and more elegant mobile launcher. */
  .proride-ai-pa-launcher {
    width: 54px;
    height: 54px;
  }

  .proride-ai-pa-launcher-icon {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  /* Put the AI badge on the right side of the launcher. */
  .proride-ai-pa-launcher-icon::after {
    top: -3px;
    right: -5px;
    left: auto;
    min-width: 22px;
    height: 17px;
    padding-inline: 5px;
    border-width: 1px;
    font-size: 7.5px;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 24px;
    height: 24px;
  }
}


/* =========================================================
   v0.3.6 — launcher icon centering, larger glyph, white border
   ========================================================= */

/* Desktop + tablet launcher should match the cleaner premium style too. */
@media (min-width: 641px) {
  .proride-ai-pa-launcher-icon {
    border: 1.5px solid rgba(255, 255, 255, .97);
    background:
      radial-gradient(circle at 32% 24%, rgba(255,255,255,.23), transparent 29%),
      linear-gradient(145deg, #ff343c 0%, var(--proride-ai-red) 52%, var(--proride-ai-red-dark) 100%);
    box-shadow:
      0 16px 34px rgba(237, 29, 36, .28),
      inset 0 1px 0 rgba(255,255,255,.24);
  }

  .proride-ai-pa-launcher-icon::before {
    inset: 0;
    background: transparent;
    box-shadow: none;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 30px;
    height: 30px;
    transform: translate(1px, 1px);
  }
}

/* Global small refinement for the launcher glyph so it reads more centered. */
.proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
  display: block;
  margin: 0;
  transform: translate(.5px, .5px);
}

@media (max-width: 640px) {
  /* Keep the user's exact position, but make the glyph a bit larger and better centered. */
  .proride-ai-pa-launcher {
    width: 56px;
    height: 56px;
  }

  .proride-ai-pa-launcher-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 28px;
    height: 28px;
    transform: translate(1px, 1px);
  }
}


/* =========================================================
   v0.3.7 — larger and optically centered launcher icon
   ========================================================= */

/* Reset previous micro-adjustments and apply clearer optical centering. */
.proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
  margin: 0;
  transform: none;
  transform-origin: center;
}

@media (min-width: 641px) {
  .proride-ai-pa-launcher-icon {
    display: grid;
    place-items: center;
  }

  /* Desktop: the symbol was too small and a little off.
     Make it larger and nudge it down/right very slightly
     so the bubble tail + sparkle feel visually centered. */
  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 35px;
    height: 35px;
    transform: translate(1.8px, 1.6px);
  }
}

@media (max-width: 640px) {
  .proride-ai-pa-launcher-icon {
    display: grid;
    place-items: center;
  }

  /* Mobile: keep it centered, just make it feel less tiny. */
  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 31px;
    height: 31px;
    transform: translate(1.2px, 1.1px);
  }
}


/* =========================================================
   v0.3.8 — no border, bigger launcher, identical sizes
   ========================================================= */

/* Use the same launcher size on desktop and mobile. */
.proride-ai-pa-launcher {
  width: 58px;
  height: 58px;
}

.proride-ai-pa-launcher-icon {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0 !important;
  outline: 0;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.22), transparent 29%),
    linear-gradient(145deg, #ff343c 0%, var(--proride-ai-red) 52%, var(--proride-ai-red-dark) 100%);
  box-shadow:
    0 15px 34px rgba(237, 29, 36, .30),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.proride-ai-pa-launcher-icon::before {
  inset: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.proride-ai-pa-launcher-orbit {
  display: none !important;
}

/* Same assistant icon size everywhere, and a bit larger than before. */
.proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
  width: 34px !important;
  height: 34px !important;
  margin: 0;
  transform: translate(1.4px, 1.2px);
  transform-origin: center;
}

/* Keep the AI badge, but with the unified launcher size. */
.proride-ai-pa-launcher-icon::after {
  min-width: 22px;
  height: 17px;
  padding-inline: 5px;
  border-width: 1px;
  font-size: 7.5px;
}

/* Explicitly keep the same sizes on both breakpoints. */
@media (min-width: 641px) {
  .proride-ai-pa-launcher,
  .proride-ai-pa-launcher-icon {
    width: 58px;
    height: 58px;
  }

  .proride-ai-pa-launcher-icon {
    flex-basis: 58px;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 34px !important;
    height: 34px !important;
    transform: translate(1.4px, 1.2px);
  }
}

@media (max-width: 640px) {
  .proride-ai-pa-launcher,
  .proride-ai-pa-launcher-icon {
    width: 58px;
    height: 58px;
  }

  .proride-ai-pa-launcher-icon {
    flex-basis: 58px;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 34px !important;
    height: 34px !important;
    transform: translate(1.4px, 1.2px);
  }
}


/* =========================================================
   v0.3.9 — substantially larger icon + moved AI badge
   ========================================================= */

/* Identical launcher dimensions on desktop and mobile. */
.proride-ai-pa-launcher,
.proride-ai-pa-launcher-icon {
  width: 60px !important;
  height: 60px !important;
}

.proride-ai-pa-launcher-icon {
  flex-basis: 60px !important;
  display: grid;
  place-items: center;
}

/* The previous symbol was still visually too small.
   This is intentionally much larger inside the red circle. */
.proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  transform: translate(-1px, 1px) !important;
  transform-origin: center;
}

/* Move the AI badge outside the icon area so it does not cover the symbol. */
.proride-ai-pa-launcher-icon::after {
  top: -7px !important;
  right: -11px !important;
  left: auto !important;
  min-width: 24px !important;
  height: 18px !important;
  padding-inline: 6px !important;
  border-width: 1px !important;
  font-size: 8px !important;
  box-shadow: 0 5px 13px rgba(5, 8, 14, .22);
}

@media (min-width: 641px) {
  .proride-ai-pa-launcher,
  .proride-ai-pa-launcher-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .proride-ai-pa-launcher-icon {
    flex-basis: 60px !important;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 42px !important;
    height: 42px !important;
    transform: translate(-1px, 1px) !important;
  }
}

@media (max-width: 640px) {
  .proride-ai-pa-launcher,
  .proride-ai-pa-launcher-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .proride-ai-pa-launcher-icon {
    flex-basis: 60px !important;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 42px !important;
    height: 42px !important;
    transform: translate(-1px, 1px) !important;
  }
}


/* =========================================================
   v0.3.10 — optical centering fix for the launcher icon
   ========================================================= */

.proride-ai-pa-launcher-icon {
  display: grid !important;
  place-items: center !important;
}

.proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
  /* The bubble+spark mark reads slightly left-biased.
     Move it right/down for true optical centering. */
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  transform: translate(2.6px, 1.4px) !important;
  transform-origin: center !important;
}

@media (min-width: 641px) {
  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    transform: translate(2.6px, 1.4px) !important;
  }
}

@media (max-width: 640px) {
  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    transform: translate(2.6px, 1.4px) !important;
  }
}


/* =========================================================
   v0.3.11 — final launcher size: 52px
   ========================================================= */

.proride-ai-pa-launcher,
.proride-ai-pa-launcher-icon {
  width: 52px !important;
  height: 52px !important;
}

.proride-ai-pa-launcher-icon {
  flex-basis: 52px !important;
}

/* Keep the symbol visually strong inside the smaller 52px circle. */
.proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
  width: 37px !important;
  height: 37px !important;
  transform: translate(2.2px, 1.2px) !important;
}

@media (min-width: 641px) {
  .proride-ai-pa-launcher,
  .proride-ai-pa-launcher-icon {
    width: 52px !important;
    height: 52px !important;
  }

  .proride-ai-pa-launcher-icon {
    flex-basis: 52px !important;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 37px !important;
    height: 37px !important;
    transform: translate(2.2px, 1.2px) !important;
  }
}

@media (max-width: 640px) {
  .proride-ai-pa-launcher,
  .proride-ai-pa-launcher-icon {
    width: 52px !important;
    height: 52px !important;
  }

  .proride-ai-pa-launcher-icon {
    flex-basis: 52px !important;
  }

  .proride-ai-pa-launcher-icon .proride-ai-pa-finder-mark {
    width: 37px !important;
    height: 37px !important;
    transform: translate(2.2px, 1.2px) !important;
  }
}


/* =========================================================
   v0.3.12 — exact composer / send-button alignment
   ========================================================= */

/* Desktop: both controls begin and end on the exact same pixel. */
.proride-ai-pa-form {
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: end;
}

.proride-ai-pa-composer,
.proride-ai-pa-form textarea {
  min-height: 58px;
}

.proride-ai-pa-send {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  align-self: end;
}

/* Mobile: textarea minimum height is 64px, so the button is exactly 64px too. */
@media (max-width: 640px) {
  .proride-ai-pa-form {
    grid-template-columns: minmax(0, 1fr) 64px;
    align-items: end;
  }

  .proride-ai-pa-composer,
  .proride-ai-pa-form textarea {
    min-height: 64px;
  }

  .proride-ai-pa-send {
    width: 64px;
    height: 64px;
    margin: 0;
    border-radius: 20px;
    align-self: end;
  }
}


/* =========================================================
   v0.3.13 — complete mobile header title without ellipsis
   ========================================================= */

@media (max-width: 640px) {
  .proride-ai-pa-header {
    min-height: 86px;
  }

  .proride-ai-pa-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .proride-ai-pa-brand-copy {
    flex: 1 1 auto;
    min-width: 0;
    width: min(190px, calc(100vw - 144px));
    max-width: min(190px, calc(100vw - 144px));
    align-items: flex-start;
  }

  .proride-ai-pa-brand-title {
    display: block;
    width: 100%;
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: normal;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.16;
    text-align: right;
  }

  .proride-ai-pa-header-actions,
  .proride-ai-pa-avatar {
    flex-shrink: 0;
  }
}


/* =========================================================
   v0.4.1 — temporary API error actions
   ========================================================= */

.proride-ai-pa-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.proride-ai-pa-retry {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid rgba(237, 29, 36, .22);
  border-radius: 11px;
  background: rgba(237, 29, 36, .07);
  color: #c91820;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.proride-ai-pa-retry:hover,
.proride-ai-pa-retry:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(237, 29, 36, .38);
  background: rgba(237, 29, 36, .12);
}


/* =========================================================
   v0.4.2 — Free Chat First
   ========================================================= */

.proride-ai-pa-home {
  min-height: 100%;
  align-content: start;
  gap: 18px;
  padding-top: 7px;
}

.proride-ai-pa-home-copy {
  gap: 8px;
  text-align: center;
}

.proride-ai-pa-home-title {
  font-size: 27px;
  line-height: 1.2;
}

.proride-ai-pa-home-text {
  max-width: 370px;
  margin-inline: auto;
  font-size: 13.5px;
  line-height: 1.7;
}

.proride-ai-pa-free-chat-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17, 20, 26, .075);
  border-radius: 19px;
  background:
    radial-gradient(circle at 94% 0%, rgba(237, 29, 36, .055), transparent 34%),
    rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(13, 19, 32, .05);
}

.proride-ai-pa-free-chat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(237, 29, 36, .08);
  color: var(--proride-ai-red);
}

.proride-ai-pa-free-chat-icon .proride-ai-pa-finder-mark {
  width: 24px;
  height: 24px;
  transform: none !important;
}

.proride-ai-pa-free-chat-title,
.proride-ai-pa-free-chat-text {
  display: block;
}

.proride-ai-pa-free-chat-title {
  color: #252a32;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.proride-ai-pa-free-chat-text {
  margin-top: 3px;
  color: #7d8490;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.proride-ai-pa-suggestions {
  display: grid;
  gap: 9px;
}

.proride-ai-pa-suggestions-label {
  color: #858c97;
  font-size: 10.5px;
  font-weight: 500;
}

.proride-ai-pa-suggestions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proride-ai-pa-suggestion {
  min-height: 34px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid #dde1e7;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #555d69;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 19, 32, .035);
  transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
}

.proride-ai-pa-suggestion:hover,
.proride-ai-pa-suggestion:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(237, 29, 36, .28);
  background: rgba(237, 29, 36, .045);
  color: var(--proride-ai-red);
}

.proride-ai-pa-suggestion.is-human {
  margin-inline-start: auto;
  border-color: rgba(237, 29, 36, .15);
  color: #c91820;
}

@media (max-width: 640px) {
  .proride-ai-pa-home {
    gap: 16px;
    padding-top: 10px;
  }

  .proride-ai-pa-home-title {
    font-size: 25px;
  }

  .proride-ai-pa-home-text {
    max-width: 330px;
    font-size: 13px;
  }

  .proride-ai-pa-free-chat-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .proride-ai-pa-free-chat-icon {
    width: 40px;
    height: 40px;
  }

  .proride-ai-pa-suggestions-row {
    gap: 7px;
  }

  .proride-ai-pa-suggestion {
    min-height: 33px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .proride-ai-pa-suggestion.is-human {
    margin-inline-start: 0;
  }
}
