.oodi-chat-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 13px 10px;
  background: #f7f9fd;
}

.oodi-chat-quick button {
  border: 1px solid #dce6f7;
  border-radius: 999px;
  background: #fff;
  color: #31517f;
  padding: 6px 9px;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  text-align: right;
}

.oodi-chat-quick button:hover {
  border-color: var(--oodi-accent, #2563eb);
  color: var(--oodi-accent, #2563eb);
}

.oodi-chat-support-row {
  display: flex;
  justify-content: flex-end;
  margin: -3px 0 12px;
}

.oodi-chat-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #20a464;
  color: #fff !important;
  border-radius: 11px;
  padding: 9px 12px;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(32, 164, 100, .2);
}

.oodi-chat-quick[hidden] {
  display: none !important;
}

.oodi-chat-product-card {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: -3px 0 11px auto;
  width: min(88%, 330px);
  padding: 9px;
  border: 1px solid #dce6f7;
  border-radius: 13px;
  background: #fff;
  color: #17253c !important;
  text-decoration: none !important;
  box-shadow: 0 5px 16px rgba(33, 65, 112, .08);
}

.oodi-chat-product-card img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 9px;
  object-fit: cover;
}

.oodi-chat-product-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oodi-chat-product-body strong {
  font-size: 12px;
  line-height: 1.6;
}

.oodi-chat-product-body small {
  color: #66758c;
  font-size: 11px;
}

.oodi-chat-product-body em {
  color: var(--oodi-accent, #2563eb);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.oodi-chat-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4f6078;
  font-size: 11px;
}

.oodi-chat-feedback-slot {
  padding: 9px 13px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.oodi-chat-feedback-slot[hidden] {
  display: none !important;
}

.oodi-chat-feedback button {
  border: 1px solid #dce3ee;
  border-radius: 999px;
  background: #fff;
  color: #3f5068;
  padding: 3px 9px;
  font: inherit;
  cursor: pointer;
}

.oodi-chat-feedback button:hover {
  border-color: var(--oodi-accent, #2563eb);
  color: var(--oodi-accent, #2563eb);
}

.oodi-chat-sources button {
  border: 0;
  color: var(--oodi-accent, #2563eb);
  background: #f0f5ff;
  border-radius: 8px;
  padding: 5px 7px;
  font: inherit;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oodi-chat-sources button:hover {
  background: #e2ecff;
}

/* Compact visual refresh */
.oodi-chat-panel {
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(25, 48, 88, .24);
}

.oodi-chat-header {
  padding: 16px 17px;
  background: linear-gradient(135deg, var(--oodi-accent, #2563eb), #1648a8 72%, #102f70);
}

.oodi-chat-messages {
  padding: 15px 12px;
  background: linear-gradient(180deg, #f8faff 0%, #f3f6fc 100%);
}

.oodi-chat-message-assistant .oodi-chat-bubble {
  border-color: #e2e8f3;
  box-shadow: 0 4px 14px rgba(39, 62, 99, .06);
}

.oodi-chat-message-user .oodi-chat-bubble {
  background: linear-gradient(135deg, var(--oodi-accent, #2563eb), #174da9);
  box-shadow: 0 5px 14px rgba(37, 99, 235, .16);
}

.oodi-chat-quick {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding: 0 12px 9px;
}

.oodi-chat-quick::-webkit-scrollbar {
  display: none;
}

.oodi-chat-quick button {
  flex: 0 0 auto;
  max-width: 78%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(37, 71, 122, .05);
}

.oodi-chat-product-card {
  border-color: #d9e4f5;
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(35, 66, 111, .09);
  transition: transform .18s ease, box-shadow .18s ease;
}

.oodi-chat-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 66, 111, .13);
}

.oodi-chat-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: -3px 0 11px auto;
  padding: 7px 13px;
  border: 1px solid var(--oodi-accent, #2563eb);
  border-radius: 999px;
  background: #fff;
  color: var(--oodi-accent, #2563eb) !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.oodi-chat-product-link:hover {
  background: var(--oodi-accent, #2563eb);
  color: #fff !important;
  transform: translateY(-1px);
}

.oodi-chat-messages .oodi-chat-sources {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, .35) transparent;
  border: 0;
  background: transparent;
  padding: 0 0 8px;
  font-size: 10px;
}

.oodi-chat-messages .oodi-chat-sources::-webkit-scrollbar {
  height: 4px;
}

.oodi-chat-messages .oodi-chat-sources::-webkit-scrollbar-track {
  background: transparent;
}

.oodi-chat-messages .oodi-chat-sources::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(37, 99, 235, .35);
}

.oodi-chat-messages .oodi-chat-sources-title {
  width: auto;
  flex: 0 0 auto;
  color: #8290a5;
  font-weight: 600;
}

.oodi-chat-messages .oodi-chat-sources button {
  flex: 0 0 auto;
  max-width: 62%;
  scroll-snap-align: start;
  border: 1px solid #dce6f7;
  border-radius: 999px;
  background: #fff;
  padding: 5px 9px;
  font-size: 10px;
  box-shadow: 0 2px 8px rgba(42, 72, 116, .05);
}

.oodi-chat-feedback-slot {
  padding: 7px 12px;
  background: #fbfcff;
}

.oodi-chat-feedback {
  justify-content: center;
}

.oodi-chat-form {
  padding: 9px 10px;
}

.oodi-chat-form textarea {
  background: #fbfcff;
}

@media (max-width: 480px) {
  .oodi-chat-messages {
    padding: 13px 10px;
  }

  .oodi-chat-product-card {
    width: 94%;
  }
}

.oodi-chat-intro{padding:16px;overflow:auto;background:#f7f9fd;flex:1}
.oodi-chat-intro p{margin:0 0 14px;font-weight:700;line-height:1.8}
.oodi-chat-route,.oodi-chat-lead,.oodi-chat-quiz{display:flex;flex-direction:column;gap:11px}
.oodi-chat-route button,.oodi-chat-intro button{font:inherit;text-align:right;cursor:pointer;padding:11px 13px;border-radius:12px;border:1px solid #dce5f5;color:#15346a;background:#fff;line-height:1.7}
.oodi-chat-route button:hover,.oodi-chat-quiz-choices button:hover{border-color:var(--oodi-accent,#2563eb);background:#eef4ff}
.oodi-chat-lead label{display:flex;flex-direction:column;gap:6px;font-size:13px}
.oodi-chat-lead input:not([type=checkbox]){font:inherit;padding:10px;border:1px solid #dce5f5;border-radius:9px;width:100%;direction:rtl}
.oodi-chat-lead .oodi-chat-consent{flex-direction:row;align-items:flex-start;line-height:1.8;font-size:11px}
.oodi-chat-consent input{margin:4px 0 0 7px;flex:none}
.oodi-chat-intro-error{color:#a12626;font-size:12px}
.oodi-chat-quiz-choices{display:flex;flex-direction:column;gap:9px}
.oodi-chat-intro [hidden],.oodi-chat-messages[hidden],.oodi-chat-form[hidden],.oodi-chat-quick[hidden]{display:none!important}
.oodi-chat-intro[hidden]{display:none!important}
