.bank-journey[data-bk-chat-ready="true"] .bank-journey-modes {
  display: block;
  margin: 0;
}

.bank-journey[data-bk-chat-ready="true"] .bank-mode-switch {
  display: none !important;
}

.bank-journey .journey-selector.bk-chat-host,
.bank-journey .journey-selector.bk-chat-host:hover {
  transform: none !important;
}

.bk-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 102;
  display: flex;
  min-width: 64px;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  padding: 6px 16px 6px 6px;
  background: var(--teal, #0F9D8C);
  box-shadow:
    0 18px 44px rgba(11, 111, 98, 0.28),
    0 0 0 5px rgba(15, 157, 140, 0.09);
  color: var(--on-teal, #052a25);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.bk-chat-launcher:hover {
  background: var(--teal-dark, #0B6F62);
  box-shadow:
    0 22px 50px rgba(11, 111, 98, 0.34),
    0 0 0 5px rgba(15, 157, 140, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.bk-chat-launcher:focus-visible,
.bk-chat-window-close:focus-visible {
  outline: 2px solid var(--teal, #0F9D8C);
  outline-offset: 3px;
}

.bk-chat-launcher-mark {
  display: block;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  filter: drop-shadow(0 7px 12px rgba(20, 34, 79, 0.18));
}

.bk-chat-k-mark {
  display: block;
  width: 100%;
  height: 100%;
}

.bk-chat-launcher-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  line-height: 1.15;
}

.bk-chat-launcher-copy strong {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.bk-chat-launcher-copy small {
  opacity: 0.82;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.bk-chat-launcher.has-ready-path .bk-chat-launcher-copy small {
  font-weight: 800;
}

.bk-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(14, 24, 54, 0.38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.bk-chat-backdrop[hidden] {
  display: none !important;
}

.bank-journey .bank-guided-panel.bk-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 96px;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 78px);
  z-index: 101;
  display: none;
  width: min(460px, calc(100vw - 36px));
  max-height: min(720px, calc(100vh - 132px));
  max-height: min(720px, calc(100dvh - 132px));
  margin: 0;
  border: 1px solid rgba(15, 157, 140, 0.42);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  gap: 0;
  background: #fff;
  box-shadow:
    0 26px 72px rgba(20, 34, 79, 0.24),
    0 0 0 5px rgba(15, 157, 140, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.bank-journey.is-guided-mode .bank-guided-panel.bk-chat-widget.is-open {
  display: flex;
  flex-direction: column;
}

.bk-chat-window-head {
  display: flex;
  min-height: 68px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line, #E7E1D2);
  padding: 10px 10px 10px 12px;
  background: linear-gradient(145deg, #fff 0%, rgba(238, 250, 247, 0.94) 100%);
}

.bk-chat-window-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.bk-chat-window-brand > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.15;
}

.bk-chat-window-brand strong {
  color: var(--navy, #14224F);
  font-size: 0.92rem;
  font-weight: 800;
}

.bk-chat-window-brand small {
  color: var(--teal-dark, #0B6F62);
  font-size: 0.7rem;
  font-weight: 750;
}

.bk-chat-window-status {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--teal, #0F9D8C);
  box-shadow: 0 0 0 5px rgba(15, 157, 140, 0.1);
}

.bk-chat-window-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line, #E7E1D2);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  color: var(--navy, #14224F);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.bk-chat-window-close:hover {
  border-color: rgba(15, 157, 140, 0.45);
  background: rgba(15, 157, 140, 0.08);
  color: var(--teal-dark, #0B6F62);
}

.bk-chat-window-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.bk-chat-window-body {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  gap: 16px;
  padding: 18px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(145deg, #fff 0%, rgba(238, 250, 247, 0.74) 100%);
}

.bank-journey .bk-chat-widget .bank-guided-intro p {
  font-size: 0.8rem;
}

.bank-journey .bk-chat-widget .bank-guide-options {
  grid-template-columns: 1fr;
}

.bank-journey .bk-chat-widget .bank-guide-choice {
  min-height: 52px;
}

.bank-journey .bk-chat-widget .bank-guide-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.bank-journey .bk-chat-widget .bank-guide-actions .btn {
  width: 100%;
}

.bk-chat-scroll-lock {
  overflow: hidden !important;
}

@media (min-width: 701px) {
  .bk-chat-backdrop {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .bk-chat-launcher {
    width: 62px;
    min-width: 62px;
    height: 62px;
    min-height: 62px;
    border-radius: 20px;
    padding: 5px;
  }

  .bk-chat-launcher-copy {
    display: none;
  }

  .bk-chat-launcher-mark {
    width: 52px;
    height: 52px;
  }

  .bank-journey .bank-guided-panel.bk-chat-widget {
    right: 8px;
    bottom: 82px;
    left: 8px;
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 74px);
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100vh - 98px);
    max-height: calc(100dvh - 98px);
    border-radius: 20px;
  }

  .bk-chat-window-head {
    min-height: 64px;
    padding: 9px 8px 9px 10px;
  }

  .bk-chat-window-body {
    padding: 16px 14px 18px;
  }
}

@media (max-width: 380px) {
  .bk-chat-window-brand small {
    font-size: 0.66rem;
  }

  .bk-chat-window-body {
    padding-inline: 12px;
  }

  .bank-journey .bk-chat-widget .bank-guide-summary {
    padding: 12px;
  }
}

@media (max-height: 620px) {
  .bank-journey .bank-guided-panel.bk-chat-widget {
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
  }

  .bk-chat-window-body {
    padding-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-chat-launcher,
  .bk-chat-window-close {
    transition: none !important;
  }

  .bk-chat-launcher:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .bk-chat-launcher,
  .bank-journey .bank-guided-panel.bk-chat-widget,
  .bk-chat-window-head,
  .bk-chat-window-close {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
    color: CanvasText;
  }

  .bk-chat-backdrop {
    background: Canvas;
  }
}

@media print {
  .bk-chat-launcher,
  .bk-chat-backdrop,
  .bank-journey .bank-guided-panel.bk-chat-widget {
    display: none !important;
  }
}
