/* Deepam AI chat widget — robot assistant launcher */

:root {
  --ai-chat-font-size: 0.8125rem;
  --ai-chat-font-size-meta: 0.6875rem;
  --ai-chat-header-gap: 12px;
  --ai-chat-panel-gap: 12px;
  /* Float column: WhatsApp → Call → AI (bottom). Panel sits beside it, not above. */
  --ai-float-bottom: 24px;
  --ai-float-gap: 12px;
  --ai-float-size: 52px;
  --ai-float-size-ai: 52px;
  --ai-float-right: 16px;
  --ai-chat-panel-bottom: var(--ai-float-bottom);
  --ai-chat-panel-top-gap: 16px;
  --ai-chat-panel-preferred-height: 72dvh;
  --ai-chat-panel-right: calc(
    var(--ai-float-right) + var(--ai-float-size-ai) + var(--ai-chat-panel-gap)
  );
}

.ai-chat-launcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ai-float-size-ai);
  height: var(--ai-float-size-ai);
  min-width: var(--ai-float-size-ai);
  min-height: var(--ai-float-size-ai);
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 42%, #312e81 100%);
  box-shadow:
    0 10px 28px rgba(79, 70, 229, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}

.ai-chat-launcher::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.55);
  animation: ai-chat-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.ai-chat-launcher::after {
  content: "AI";
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #39b54a 0%, #2d9a3e 100%);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(57, 181, 74, 0.45);
}

.ai-chat-launcher:hover {
  transform: scale(1.06) translateY(-1px);
  box-shadow:
    0 14px 32px rgba(79, 70, 229, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ai-chat-launcher:focus-visible {
  outline: none;
  box-shadow:
    0 10px 28px rgba(79, 70, 229, 0.45),
    0 0 0 3px rgba(99, 102, 241, 0.35);
}

.ai-chat-launcher__robot {
  width: 30px;
  height: 30px;
  animation: ai-chat-float 2.8s ease-in-out infinite;
}

@keyframes ai-chat-pulse {
  0% { transform: scale(1); opacity: 0.75; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes ai-chat-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.ai-chat-panel {
  position: fixed;
  right: var(--ai-chat-panel-right);
  left: auto;
  top: auto;
  bottom: var(--ai-chat-panel-bottom);
  width: min(calc(100vw - var(--ai-chat-panel-right) - 16px), 400px);
  height: min(
    var(--ai-chat-panel-preferred-height),
    calc(100dvh - var(--ai-chat-panel-bottom) - var(--ai-chat-panel-top-gap))
  );
  max-height: calc(100dvh - var(--ai-chat-panel-bottom) - var(--ai-chat-panel-top-gap));
  min-height: 360px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.22);
  z-index: 950;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.96) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.ai-chat-panel.is-user-sized {
  width: auto;
  max-width: none;
  height: auto;
  min-height: 0;
}

.ai-chat-panel.is-resizing {
  transition: none;
  user-select: none;
}

.ai-chat-panel.is-resizing .ai-chat-panel__body,
.ai-chat-panel.is-resizing .ai-chat-panel__body * {
  user-select: none;
  pointer-events: none;
}

.ai-chat-panel.is-resizing .ai-chat-resize {
  pointer-events: auto;
}

.ai-chat-resize {
  position: absolute;
  z-index: 30;
  touch-action: none;
}

.ai-chat-resize--top {
  top: 0;
  left: 10px;
  right: 10px;
  height: 12px;
  cursor: ns-resize;
}

.ai-chat-resize--top::after {
  top: 4px;
}

.ai-chat-resize--bottom {
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 12px;
  cursor: ns-resize;
}

.ai-chat-resize--bottom::after {
  bottom: 4px;
  top: auto;
}

.ai-chat-resize--left {
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 10px;
  cursor: ew-resize;
}

.ai-chat-resize--top::after,
.ai-chat-resize--bottom::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.15s ease;
}

.ai-chat-resize--top::after {
  top: 3px;
}

.ai-chat-resize--bottom::after {
  bottom: 3px;
}

.ai-chat-resize--left::after {
  content: "";
  position: absolute;
  top: 28%;
  bottom: 28%;
  left: 3px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.15s ease;
}

.ai-chat-resize:hover::after,
.ai-chat-panel.is-resizing .ai-chat-resize::after {
  background: rgba(99, 102, 241, 0.55);
}

.ai-chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 55%, #4f46e5 100%);
  color: #fff;
}

.ai-chat-panel__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ai-chat-panel__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ai-chat-panel__avatar svg {
  width: 20px;
  height: 20px;
}

.ai-chat-panel__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.ai-chat-panel__subtitle {
  display: none;
}

.ai-chat-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: background 0.15s ease;
}

.ai-chat-panel__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ai-chat-panel__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.ai-chat-panel__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ai-chat-panel__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f9fafb;
  min-height: 0;
}

.ai-chat-book-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-top: 2px solid #6366f1;
  background: #fff;
  flex-shrink: 0;
  max-height: min(300px, 46vh);
  overflow: hidden;
  box-shadow: 0 -4px 16px rgba(17, 24, 39, 0.08);
}

.ai-chat-book-bar__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 6px;
  background: linear-gradient(90deg, #eef2ff 0%, #f0fdf4 100%);
}

.ai-chat-book-bar__label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #312e81;
}

.ai-chat-book-bar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1.5px solid #6366f1;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.18);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-chat-book-bar__close:hover {
  background: #6366f1;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
}

.ai-chat-book-bar__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.ai-chat-book-bar__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chat-book-bar__error {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b91c1c;
}

.ai-chat-book-bar__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 12px 8px;
  border-top: 1px solid #fecaca;
  background: #fff7f7;
}

.ai-chat-book-bar__actions.u-hidden {
  display: none !important;
}

.ai-chat-book-bar__actions .ai-chat-book-bar__btn {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  text-align: center;
  padding: 11px 14px;
}

.ai-chat-book-bar.is-focused {
  box-shadow: inset 0 0 0 2px #6366f1;
  animation: ai-chat-book-pulse 1.2s ease-in-out 2;
}

@keyframes ai-chat-book-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px #6366f1; }
  50% { box-shadow: inset 0 0 0 2px #39b54a; }
}

.ai-chat-book-bar.u-hidden,
.ai-chat-drawer.u-hidden {
  display: none !important;
}

.ai-chat-book-bar__vehicles {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 10px 8px;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.ai-chat-book-bar__vehicle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #fff;
}

.ai-chat-book-bar__vehicle.is-selected {
  border-color: #6366f1;
  background: #eef2ff;
}

.ai-chat-book-bar__vehicle-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.ai-chat-book-bar__vehicle-price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #166534;
  white-space: nowrap;
}

.ai-chat-book-bar__book-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  min-width: 72px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #39b54a 0%, #2d9a3e 100%);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.ai-chat-book-bar__book-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ai-chat-book-bar__vehicle input {
  display: none;
}

.ai-chat-book-bar__vehicle-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.ai-chat-book-bar__vehicle-name {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-chat-book-bar__vehicle-fares {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  flex: 0 0 auto;
}

.ai-chat-book-bar__fare-chip {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  background: #f9fafb;
  color: #374151;
  cursor: pointer;
}

.ai-chat-book-bar__fare-chip.is-selected {
  border-color: #39b54a;
  background: #ecfdf5;
  color: #166534;
}

.ai-chat-book-bar__btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ai-chat-book-bar__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ai-chat-book-bar__btn--primary {
  background: linear-gradient(135deg, #39b54a 0%, #2d9a3e 100%);
  color: #fff;
}

.ai-chat-book-bar__btn--secondary {
  background: #fff;
  color: #312e81;
  border: 1px solid #c7d2fe;
}

.ai-chat-book-bar__hint {
  margin: 0;
  font-size: 0.75rem;
  color: #4338ca;
  font-weight: 600;
  line-height: 1.35;
}

.ai-chat-panel.has-book-offer .ai-chat-panel__input::placeholder {
  color: #9ca3af;
}

.ai-chat-panel.has-book-offer .ai-chat-panel__send {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.ai-chat-book-bar__text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #312e81;
}

.ai-chat-drawer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ai-chat-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.ai-chat-drawer__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}

.ai-chat-drawer__close {
  border: 0;
  background: #e5e7eb;
  color: #374151;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
}

.ai-chat-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.ai-chat-drawer__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-chat-drawer__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.45;
}

.ai-chat-drawer__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.ai-chat-drawer__field {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: var(--ai-chat-font-size);
}

.ai-chat-drawer__field:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.ai-chat-drawer__vehicles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat-drawer__vehicle {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.ai-chat-drawer__vehicle-name {
  margin: 0 0 8px;
  font-size: var(--ai-chat-font-size);
  font-weight: 700;
  color: #111827;
}

.ai-chat-drawer__fare-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chat-drawer__fare-btn {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.ai-chat-drawer__fare-btn.is-selected {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #312e81;
}

.ai-chat-drawer__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.ai-chat-drawer__btn {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: var(--ai-chat-font-size);
  font-weight: 700;
  cursor: pointer;
}

.ai-chat-drawer__btn--primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
}

.ai-chat-drawer__btn--secondary {
  background: #f3f4f6;
  color: #374151;
}

.ai-chat-drawer__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-chat-drawer__error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.8125rem;
}

.ai-chat-drawer__success {
  text-align: center;
  padding: 12px 8px;
}

.ai-chat-drawer__success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: 1.5rem;
  line-height: 48px;
}

.ai-chat-drawer__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: #374151;
}

.ai-chat-drawer__quote-ref {
  font-size: 0.75rem;
  color: #6b7280;
}

.ai-chat-msg--cards {
  max-width: 96%;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chat-msg__card {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ai-chat-msg__card--list .ai-chat-msg__line {
  padding-left: 2px;
}

.ai-chat-msg__line {
  margin: 0;
  font-size: var(--ai-chat-font-size);
  line-height: 1.42;
  color: #111827;
}

.ai-chat-msg__line + .ai-chat-msg__line {
  margin-top: 6px;
}

.ai-chat-msg__line a {
  color: #4338ca;
  text-decoration: underline;
  word-break: break-all;
}

.ai-chat-msg__line--meta {
  font-size: var(--ai-chat-font-size-meta);
  color: #6b7280;
}

.ai-chat-msg {
  max-width: 92%;
  padding: 9px 11px;
  border-radius: 14px;
  font-size: var(--ai-chat-font-size);
  line-height: 1.42;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-chat-msg--assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.ai-chat-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
}

.ai-chat-msg--system {
  align-self: center;
  background: transparent;
  color: #6b7280;
  font-size: 0.8125rem;
  padding: 0;
}

.ai-chat-panel__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 40;
  align-items: flex-end;
}

.ai-chat-panel__input {
  flex: 1;
  min-height: 42px;
  max-height: 96px;
  resize: none;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: var(--ai-chat-font-size);
}

.ai-chat-panel__input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ai-chat-panel__send {
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  min-height: 42px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  flex-shrink: 0;
}

.ai-chat-panel__send--icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-panel__send-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.ai-chat-panel__send:disabled,
.ai-chat-panel__input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.ai-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: ai-chat-dot 1.2s infinite ease-in-out;
}

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

@keyframes ai-chat-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat-handoff {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  font-size: 0.8125rem;
  color: #9a3412;
  line-height: 1.45;
}

.ai-chat-handoff a {
  color: #c2410c;
  font-weight: 700;
  text-decoration: none;
}

.ai-chat-feedback {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(4px);
}

.ai-chat-feedback__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.ai-chat-feedback__options {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ai-chat-feedback__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 4px;
}

.ai-chat-feedback__btn span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
}

.ai-chat-feedback__btn:hover span {
  color: #111827;
}

.ai-chat-feedback__skip {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 767px) {
  :root {
    --ai-float-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    --ai-float-gap: 10px;
    --ai-float-size: 48px;
    --ai-float-size-ai: 48px;
    --ai-float-right: 16px;
  }

  .ai-chat-panel {
    left: 12px;
    right: calc(var(--ai-float-right) + var(--ai-float-size-ai) + var(--ai-chat-panel-gap));
    width: auto;
    top: auto;
    bottom: var(--ai-chat-panel-bottom);
    height: min(
      78dvh,
      calc(100dvh - var(--ai-chat-panel-bottom) - var(--ai-chat-panel-top-gap))
    );
    max-height: calc(100dvh - var(--ai-chat-panel-bottom) - var(--ai-chat-panel-top-gap));
  }

  .ai-chat-panel.is-user-sized {
    left: 12px;
    right: calc(var(--ai-float-right) + var(--ai-float-size-ai) + var(--ai-chat-panel-gap));
    width: auto !important;
  }

  .ai-chat-resize {
    display: none;
  }

  body.has-sticky-cta {
    --ai-float-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    --ai-chat-panel-bottom: var(--ai-float-bottom);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-launcher::before,
  .ai-chat-launcher__robot,
  .ai-chat-typing span {
    animation: none;
  }

  .ai-chat-panel:not(.is-resizing) {
    transition: none;
  }
}
