/* BNKP Guide page and embedded chatbot styling.
 * CSS-only update. No controller, AJAX, assistant, form, or Drupal behavior changes.
 */
.bnkp-guide-page {
  --bnkp-teal: #078e9d;
  --bnkp-blue: #087fbd;
  --bnkp-text: #1f2937;
  --bnkp-muted: #6b7280;
  --bnkp-soft: #f5f7fb;
  --bnkp-border: #e2e7ee;
  --bnkp-shadow: 0 12px 32px rgba(25, 46, 76, 0.14);
  background: #fff;
  color: var(--bnkp-text);
}

.bnkp-guide-page,
.bnkp-guide-page * {
  box-sizing: border-box;
}

.bnkp-guide-container {
  width: min(1060px, calc(100% - 40px));
  margin-inline: auto;
  margin-top: 50px;
}

.bnkp-guide-banner {
  min-height: 465px;
  padding: 58px 0 112px;
  color: #fff;
  position: relative;
  top: -110px;
  background:
    radial-gradient(
      circle at 75% 15%,
      rgba(80, 190, 225, 0.34),
      transparent 35%
    ),
    linear-gradient(120deg, #087f84 0%, #078b9b 45%, #087fbd 100%);
}

.bnkp-guide-banner h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
}

.bnkp-guide-banner p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  line-height: 1.6;
}

.bnkp-guide-main {
  position: relative;
  z-index: 2;
  padding: 0 0 56px;
  margin: -200px auto 0;
}
@media only screen and (max-width: 767px) {
  .bnkp-guide-main {
    margin: -160px auto 0;
  }
}

.bnkp-guide-main > .bnkp-guide-container {
  margin-top: -72px;
  padding: 42px 48px 40px;
  background: #fff;
  border-radius: 0 72px 0 72px;
  box-shadow: var(--bnkp-shadow);
}

.bnkp-guide-disclaimer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 15px 16px;
  background: #fffaf0;
  border: 1px solid #edc76e;
  border-radius: 7px;
}

.bnkp-guide-info-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--warning-title-color);
  border-radius: 50%;
  color: var(--warning-title-color);
  font-size: 12px;
  font-weight: 700;
}

.bnkp-guide-disclaimer h2 {
  margin: 0 0 5px;
  color: #7b461f;
  font-size: 13px;
  line-height: 1.3;
}

.bnkp-guide-disclaimer p {
  margin: 0;
  color: #775f42;
  font-size: 12px;
  line-height: 1.55;
}

.bnkp-guide-chat-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--bnkp-border);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(20, 37, 63, 0.12);
}

.bnkp-guide-status {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--bnkp-border);
  color: var(--bnkp-text);
  font-size: 14px;
  font-weight: 700;
}

.bnkp-guide-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #12bc63;
  box-shadow: 0 0 0 3px rgba(18, 188, 99, 0.1);
}

/* Embedded chatbot only. Global/floating chatbot remains unaffected. */
.bnkp-guide-inline-chat .ai-live-chat,
.bnkp-guide-inline-chat .ai-live-chat.bnkp-guide-chat-embedded {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 520px !important;
  max-height: none !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

.bnkp-guide-inline-chat .ai-live-chat > header {
  display: none !important;
}

.bnkp-guide-inline-chat .ai-live-chat .chat {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: 520px !important;
}

.bnkp-guide-inline-chat .chat-history {
  flex: 1 1 auto !important;
  min-height: 350px !important;
  max-height: 520px !important;
  padding: 10px 0 18px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #cbd3dd transparent;
}

.bnkp-guide-inline-chat .chat-message {
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.bnkp-guide-inline-chat .chat-message-content {
  max-width: 88% !important;
  padding: 12px 15px !important;
  background: var(--bnkp-soft) !important;
  border: 1px solid #edf0f4 !important;
  border-radius: 4px 14px 14px 14px !important;
}

.bnkp-guide-inline-chat .chat-message-message,
.bnkp-guide-inline-chat .chat-message-message p,
.bnkp-guide-inline-chat .chat-message-message li {
  color: var(--bnkp-text) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.bnkp-guide-inline-chat .chat-message-message p {
  margin-top: 0;
}
.bnkp-guide-inline-chat .chat-message-message p:last-child {
  margin-bottom: 0;
}
.bnkp-guide-inline-chat .chat-message-message ul,
.bnkp-guide-inline-chat .chat-message-message ol {
  padding-left: 20px;
}

.bnkp-guide-inline-chat .chat-message-message a {
  color: #1268d5 !important;
  overflow-wrap: anywhere;
}

.bnkp-guide-inline-chat .brics-message-icon {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  background-color: var(--primary-color) !important;
  border-radius: 50% !important;
}

.bnkp-guide-inline-chat .brics-message-icon svg {
  width: 14px !important;
  height: 14px !important;
}

.bnkp-guide-inline-chat .ai-foundation-chat {
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  width: 100% !important;
  padding: 7px 7px 7px 13px !important;
  border: 1px solid #cfd6df !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.bnkp-guide-inline-chat .ai-foundation-chat::after {
  display: none !important;
}

.bnkp-guide-inline-chat .form-item-query {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.bnkp-guide-inline-chat .chat-form-query {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 120px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  resize: vertical !important;
  color: var(--bnkp-text) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.bnkp-guide-inline-chat .chat-form-query::placeholder {
  color: #a5adb8 !important;
}

.bnkp-guide-inline-chat input.chat-form-send,
.bnkp-guide-inline-chat button.chat-form-send,
.bnkp-guide-inline-chat .chat-form-send {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  background-color: var(--primary-color) !important;
  cursor: pointer !important;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease !important;
}

.bnkp-guide-inline-chat input.chat-form-send:hover,
.bnkp-guide-inline-chat button.chat-form-send:hover,
.bnkp-guide-inline-chat .chat-form-send:hover {
  background-color: var(--primary-hover-color) !important;
}

.bnkp-guide-inline-chat input.chat-form-send:focus-visible,
.bnkp-guide-inline-chat button.chat-form-send:focus-visible,
.bnkp-guide-inline-chat .chat-form-send:focus-visible {
  outline: 3px solid rgba(255, 125, 85, 0.28) !important;
  outline-offset: 2px !important;
}

/* Do not show the separate floating launcher on this dedicated route. */
.bnkp-guide-page-route .brics-ndb-chatbot-toggle {
  display: none !important;
}

@media (max-width: 767px) {
  .bnkp-guide-container {
    width: min(100% - 24px, 1060px);
  }
  .bnkp-guide-banner {
    min-height: 220px;
    padding: 42px 0 96px;
  }
  .bnkp-guide-banner h1 {
    font-size: 29px;
  }
  .bnkp-guide-main > .bnkp-guide-container {
    margin-top: -56px;
    padding: 24px 16px 30px;
    border-radius: 0 38px 0 38px;
  }
  .bnkp-guide-chat-card {
    padding: 15px;
  }
  .bnkp-guide-inline-chat .ai-live-chat,
  .bnkp-guide-inline-chat .ai-live-chat.bnkp-guide-chat-embedded,
  .bnkp-guide-inline-chat .ai-live-chat .chat {
    min-height: 480px !important;
  }
  .bnkp-guide-inline-chat .chat-history {
    min-height: 310px !important;
  }
  .bnkp-guide-inline-chat .chat-message-content {
    max-width: calc(100% - 50px) !important;
  }
}

@media (max-width: 480px) {
  .bnkp-guide-container {
    width: min(100% - 16px, 1060px);
  }
  .bnkp-guide-banner {
    padding-inline: 4px;
  }
  .bnkp-guide-main > .bnkp-guide-container {
    padding: 18px 10px 24px;
  }
  .bnkp-guide-disclaimer {
    padding: 12px;
  }
  .bnkp-guide-chat-card {
    padding: 12px;
  }
  .bnkp-guide-inline-chat .brics-message-icon {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }
}
.bnkp-suggested-prompts {
  margin: 20px 0;
}

.bnkp-divider-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.bnkp-divider-line {
  flex: 1;
  height: 1px;
  background: #d9d9d9;
}

.bnkp-divider-label {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
}

.bnkp-prompts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.bnkp-prompt-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bnkp-prompt-card:hover {
  border-color: var(--primary-color);
}

.bnkp-prompt-text {
  font-size: 15px;
}
/* Form wrapper */
.bnkp-guide-chat-embedded form.ai-foundation-chat {
  position: relative;
}

/* Textarea - default state */
.bnkp-guide-chat-embedded textarea.chat-form-query {
  border: 1.5px solid #d9d9d9 !important;
  border-top-right-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  width: 100% !important;
  height: 50px !important;
  min-height: inherit !important;
  max-height: inherit !important;
  font-size: 15px !important;
}
.bnkp-guide-chat-embedded textarea.chat-form-query:focus-within {
  box-shadow: 0 4px 12px rgba(105, 105, 105, 0.15);
}

/* Only show orange border on focus */
.bnkp-guide-chat-embedded textarea.chat-form-query:focus {
  border: 2px solid var(--primary-color) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Remove spacing below textarea */
.bnkp-guide-chat-embedded .form-item-query {
  margin-bottom: 0 !important;
}

/* Send button inside textbox */
.bnkp-guide-chat-embedded .chat-form-send {
  position: absolute !important;
  right: 10px;
  top: inherit !important;
  transform: inherit !important;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0 !important;
  border: 0;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  z-index: 99;
  left: -1rem !important;
  bottom: 54px !important;
}

.path-bnkp-ai-assistant .bnkp-guide-container .brics-message-icon svg {
  opacity: 0 !important;
}
.path-bnkp-ai-assistant .bnkp-guide-container .brics-message-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11.0032' height='11.002' viewBox='0 0 11.0032 11.002' fill='none'%3E%3Cpath d='M9.50193 0.500973V2.5009M10.502 1.50094H8.50187M5.01006 0.90818C5.03149 0.793487 5.09235 0.6899 5.18212 0.615353C5.27189 0.540807 5.38491 0.5 5.5016 0.5C5.61829 0.5 5.73131 0.540807 5.82108 0.615353C5.91085 0.6899 5.97171 0.793487 5.99314 0.90818L6.51867 3.68707C6.556 3.88464 6.652 4.06637 6.7942 4.20853C6.9364 4.35071 7.11813 4.44672 7.31573 4.48404L10.095 5.00952C10.2097 5.03094 10.3133 5.09181 10.3878 5.18156C10.4624 5.27132 10.5032 5.38432 10.5032 5.501C10.5032 5.61768 10.4624 5.73068 10.3878 5.82044C10.3133 5.9102 10.2097 5.97106 10.095 5.99248L7.31573 6.51793C7.11813 6.55527 6.9364 6.65127 6.7942 6.79347C6.652 6.93567 6.556 7.11733 6.51867 7.31493L5.99314 10.0938C5.97171 10.2085 5.91085 10.3121 5.82108 10.3867C5.73131 10.4612 5.61829 10.502 5.5016 10.502C5.38491 10.502 5.27189 10.4612 5.18212 10.3867C5.09235 10.3121 5.03149 10.2085 5.01006 10.0938L4.48452 7.31493C4.44719 7.11733 4.35117 6.93567 4.20898 6.79347C4.06679 6.65127 3.88505 6.55527 3.68745 6.51793L0.908227 5.99248C0.79352 5.97106 0.68992 5.9102 0.615367 5.82044C0.540813 5.73068 0.5 5.61768 0.5 5.501C0.5 5.38432 0.540813 5.27132 0.615367 5.18156C0.68992 5.09181 0.79352 5.03094 0.908227 5.00952L3.68745 4.48404C3.88505 4.44672 4.06679 4.35071 4.20898 4.20853C4.35117 4.06637 4.44719 3.88464 4.48452 3.68707L5.01006 0.90818ZM2.50138 9.5006C2.50138 10.0529 2.05363 10.5006 1.5013 10.5006C0.948973 10.5006 0.50122 10.0529 0.50122 9.5006C0.50122 8.94833 0.948973 8.50067 1.5013 8.50067C2.05363 8.50067 2.50138 8.94833 2.50138 9.5006Z' stroke='white' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
}
.path-bnkp-ai-assistant
  .bnkp-guide-container
  .bnkp-guide-chat-embedded
  form.ai-foundation-chat {
  border: none !important;
}
.path-bnkp-ai-assistant
  .bnkp-guide-container
  .brics-message-question
  .brics-message-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z'/%3E%3C/svg%3E") !important;
}
