.testo-advisor-home {
  font-family: Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f7fafb 0%, #ffffff 100%);
  color: #1f4d5e;
  padding: 26px 24px 32px;
}

.testo-advisor-shell {
  max-width: 1120px;
  margin: 0 auto;
}

body.testo-advisor-modal-open {
  overflow: hidden;
}

.testo-advisor-copy {
  margin-bottom: 12px;
}

.testo-advisor-headline {
  margin: 0;
  color: #1f4d5e;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.testo-advisor-powered {
  margin: 6px 0 0;
  color: #7b8c94;
  font-size: 12px;
  font-style: italic;
}

.testo-advisor-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d7e1e5;
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(31, 77, 94, 0.12);
  padding: 6px 7px 6px 14px;
  max-width: 760px;
}

.testo-advisor-input {
  flex: 1;
  border: 0;
  outline: 0;
  min-width: 0;
  color: #2d3436;
  font-size: 15px;
  padding: 9px 4px;
}

.testo-advisor-input::placeholder {
  color: #8b969b;
}

.testo-advisor-send {
  border: 0;
  border-radius: 999px;
  background: #1f4d5e;
  color: #fff;
  min-width: 58px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.testo-advisor-send:hover {
  background: #183c4a;
}

.testo-advisor-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.testo-advisor-starters-label {
  margin-top: 16px;
  margin-bottom: -4px;
  font-size: 13px;
  color: #6c7a89;
  font-weight: 500;
}

.testo-advisor-starters,
.testo-advisor-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.testo-advisor-followups:empty {
  display: none;
  margin: 0;
}

.testo-advisor-starters button,
.testo-advisor-followups button {
  border: 1px solid #d7e1e5;
  background: #fff;
  color: #1f4d5e;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  cursor: pointer;
}

.testo-advisor-starters button:hover,
.testo-advisor-followups button:hover {
  border-color: #f39200;
  color: #183c4a;
}

/* Multi-select clarifier form (one combined question with checkbox chips) */
.testo-advisor-multiselect {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  background: #f6fafb;
  border: 1px solid #dfe6e9;
  border-radius: 12px;
}
.testo-advisor-multiselect-intro {
  font-size: 13px;
  color: #6c7a89;
}
.testo-advisor-multiselect-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.testo-advisor-multiselect-heading {
  font-size: 13px;
  font-weight: 600;
  color: #1f4d5e;
}
.testo-advisor-multiselect-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.testo-advisor-multiselect-chip {
  border: 1px solid #d7e1e5;
  background: #fff;
  color: #1f4d5e;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}
.testo-advisor-multiselect-chip:hover {
  border-color: #f39200;
  color: #183c4a;
}
.testo-advisor-multiselect-chip.is-selected {
  background: #1f4d5e;
  border-color: #1f4d5e;
  color: #fff;
  box-shadow: 0 2px 6px rgba(31, 77, 94, 0.18);
}
.testo-advisor-multiselect-chip.is-selected::before {
  content: "✓ ";
}
.testo-advisor-multiselect-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed #dfe6e9;
}
.testo-advisor-multiselect-count {
  font-size: 12px;
  color: #6c7a89;
}
.testo-advisor-multiselect-send {
  border: none;
  background: #f39200;
  color: #fff;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.testo-advisor-multiselect-send:hover:not(:disabled) {
  background: #d97f00;
}
.testo-advisor-multiselect-send:disabled {
  background: #cdd5d9;
  cursor: not-allowed;
}

.testo-advisor-results {
  flex: 1;
  min-height: 0;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-color: #c8d8de transparent;
  scrollbar-width: thin;
  padding: 18px 22px 20px;
}

.testo-advisor-messages {
  display: grid;
  gap: 12px;
}

.testo-advisor-message {
  max-width: min(920px, 94%);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.testo-advisor-message.user {
  justify-self: end;
  color: #fff;
}

.testo-advisor-message.assistant {
  justify-self: start;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.testo-advisor-message-content {
  padding: 13px 15px;
  border-radius: 18px;
}

.testo-advisor-message.user .testo-advisor-message-content {
  background: #1f4d5e;
  border-bottom-right-radius: 5px;
}

.testo-advisor-message.assistant .testo-advisor-message-content {
  background: #f7fafb;
  color: #2d3436;
  border: 1px solid #e1e9ec;
  border-bottom-left-radius: 5px;
}

.testo-advisor-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e1e9ec;
  box-shadow: 0 4px 12px rgba(31, 77, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testo-advisor-avatar-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.testo-advisor-message a {
  color: #1f4d5e;
  font-weight: 700;
}

.testo-advisor-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0 44px;
  align-items: stretch;
}

.testo-advisor-product {
  display: inline-grid;
  grid-template-columns: 64px max-content;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe9ed;
  border-radius: 16px;
  padding: 10px;
  text-decoration: none;
  color: #2d3436;
  min-width: 210px;
  max-width: 340px;
}

.testo-advisor-product:hover {
  border-color: #f39200;
}

.testo-advisor-product-image {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #eef3f5;
  object-fit: contain;
}

.testo-advisor-product-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 3px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testo-advisor-product-sku,
.testo-advisor-product-price {
  font-size: 12px;
  color: #637983;
}

/* The price with VAT, on another country's page. */
.testo-advisor-product-price-vat {
  font-size: 11px;
  color: #8b969b;
}

.testo-advisor-product-cta {
  margin-top: 5px;
  color: #f39200;
  font-size: 12px;
  font-weight: 700;
}

.testo-advisor-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0 44px;
}

.testo-advisor-contact-actions:empty {
  display: none;
}

.testo-advisor-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e1e5;
  border-radius: 999px;
  background: #fff;
  color: #1f4d5e;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.testo-advisor-contact-btn:hover {
  border-color: #f39200;
  color: #183c4a;
}

.testo-advisor-whatsapp {
  background: #e8f5e9;
  border-color: #b8e0bf;
  color: #128c7e;
}

.testo-advisor-call {
  background: #eef4f8;
  border-color: #c3d6e2;
  color: #1d5d8a;
}

.testo-advisor-followup-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f5;
}

.testo-advisor-followup-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d7e1e5;
  border-radius: 999px;
  color: #2d3436;
  font-size: 14px;
  padding: 11px 14px;
  outline: 0;
}

.testo-advisor-followup-input:focus {
  border-color: #1f4d5e;
  box-shadow: 0 0 0 3px rgba(31, 77, 94, 0.08);
}

.testo-advisor-followup-send {
  border: 0;
  border-radius: 999px;
  background: #1f4d5e;
  color: #fff;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

.testo-advisor-followup-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.testo-advisor-modal[hidden] {
  display: none;
}

.testo-advisor-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testo-advisor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 36, 0.38);
  backdrop-filter: blur(2px);
}

.testo-advisor-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 36px));
  height: min(880px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  height: min(880px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  margin: 16px;
  background: #fff;
  border: 1px solid #dce7eb;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(10, 28, 36, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.testo-advisor-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #f8fbfc, #fff);
  border-bottom: 1px solid #e4edf1;
}

.testo-advisor-dialog-title {
  color: #1f4d5e;
  font-size: 18px;
  font-weight: 800;
}

.testo-advisor-dialog-subtitle {
  color: #72848d;
  font-size: 12px;
  margin-top: 2px;
}

.testo-advisor-close {
  width: 36px;
  height: 36px;
  border: 1px solid #d7e1e5;
  border-radius: 50%;
  background: #fff;
  color: #1f4d5e;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .testo-advisor-home {
    padding: 20px 12px 24px;
  }

  .testo-advisor-search {
    border-radius: 24px;
  }

  .testo-advisor-send {
    min-width: 52px;
    padding: 10px 13px;
  }

  .testo-advisor-starters button,
  .testo-advisor-followups button {
    font-size: 12px;
  }

  .testo-advisor-dialog {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    margin: 10px;
    border-radius: 18px;
  }

  .testo-advisor-results {
    padding: 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .testo-advisor-products {
    margin-left: 0;
  }

  .testo-advisor-contact-actions {
    margin-left: 0;
  }

  .testo-advisor-product {
    grid-template-columns: 60px 1fr;
    width: 100%;
    max-width: none;
  }
}
