body.bk-chat-resources-ready .bank-v2-section:not(.bk-chat-resource-section),
body.bk-chat-resources-ready .bank-v2-page-coverage:not(.bk-chat-resource-section) {
  display: none !important;
}

.bank-journey .bank-guided-panel.bk-chat-widget.bk-chat-resources-widget {
  width: min(520px, calc(100vw - 36px));
}

.bk-chat-resources-widget .bk-chat-window-body {
  padding: 0;
  background: #fff;
}

.bk-chat-resource-view {
  display: grid;
  min-width: 0;
  gap: 18px;
  padding: 20px;
}

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

.bk-chat-resource-intro,
.bk-chat-resource-head,
.bk-chat-resource-context,
.bk-chat-resource-content {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.bk-chat-resource-intro,
.bk-chat-resource-head {
  border-bottom: 1px solid var(--line, #E7E1D2);
  padding-bottom: 16px;
}

.bk-chat-resource-title {
  margin: 0;
  color: var(--navy, #14224F);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.bk-chat-resource-copy,
.bk-chat-resource-context p,
.bk-chat-resource-empty p {
  margin: 0;
  color: var(--slate, #5B6473);
  font-size: 0.88rem;
  line-height: 1.55;
}

.bk-chat-resource-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bk-chat-resource-actions.is-primary-group {
  gap: 12px;
}

.bk-chat-resource-action {
  display: grid;
  min-height: 58px;
  width: 100%;
  gap: 4px;
  align-content: center;
  border: 1px solid rgba(15, 157, 140, 0.28);
  border-radius: 14px;
  padding: 13px 15px;
  background:
    radial-gradient(circle at 97% 4%, rgba(217, 149, 33, 0.1), transparent 28%),
    #fff;
  color: var(--navy, #14224F);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(11, 111, 98, 0.06);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.bk-chat-resource-action.is-primary {
  min-height: 72px;
  border-color: rgba(15, 157, 140, 0.5);
  background:
    radial-gradient(circle at 96% 4%, rgba(217, 149, 33, 0.13), transparent 30%),
    linear-gradient(145deg, #fff 0%, rgba(238, 250, 247, 0.94) 100%);
}

.bk-chat-resource-action:hover {
  border-color: var(--teal, #0F9D8C);
  box-shadow: 0 12px 28px rgba(11, 111, 98, 0.12);
  transform: translateY(-1px);
}

.bk-chat-resource-action:focus-visible,
.bk-chat-resource-back:focus-visible,
.bk-chat-resource-link:focus-visible {
  outline: 3px solid rgba(15, 157, 140, 0.42);
  outline-offset: 2px;
}

.bk-chat-resource-action strong {
  color: var(--navy, #14224F);
  font-size: 0.94rem;
  line-height: 1.25;
}

.bk-chat-resource-action span {
  color: var(--slate, #5B6473);
  font-size: 0.78rem;
  line-height: 1.4;
}

.bk-chat-resource-context {
  border-left: 3px solid var(--gold, #D99521);
  border-radius: 0 10px 10px 0;
  padding: 12px 13px;
  background: rgba(217, 149, 33, 0.07);
}

.bk-chat-resource-context h3 {
  margin: 0;
  color: var(--navy, #14224F);
  font-size: 0.94rem;
}

.bk-chat-resource-footer {
  border-top: 1px solid var(--line, #E7E1D2);
  padding-top: 12px;
}

.bk-chat-resource-link,
.bk-chat-resource-back {
  min-height: 44px;
  border: 0;
  padding: 6px 0;
  background: transparent;
  color: var(--teal-dark, #0B6F62);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bk-chat-resource-back {
  width: fit-content;
  padding-right: 10px;
  text-decoration: none;
}

.bk-chat-resource-back::before {
  margin-right: 7px;
  content: "‹";
  font-size: 1.15rem;
  line-height: 0;
}

.bk-chat-resource-content {
  gap: 16px;
}

.bk-chat-resource-empty {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(15, 157, 140, 0.25);
  border-radius: 14px;
  padding: 16px;
  background: rgba(238, 250, 247, 0.72);
}

.bk-chat-resource-empty .btn {
  width: fit-content;
}

.bk-chat-resource-section,
.bk-chat-resources-widget .bank-v2-section.bk-chat-resource-section,
.bk-chat-resources-widget .bank-v2-page-coverage.bk-chat-resource-section {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bk-chat-resource-section > .wrap,
.bk-chat-resource-section .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.bk-chat-resource-section .bank-v2-section-head {
  max-width: none;
  margin: 0 0 14px;
}

.bk-chat-resource-section .bank-v2-section-head h2 {
  color: var(--navy, #14224F);
  font-size: 1.08rem;
}

.bk-chat-resource-section .bank-v2-section-head p {
  font-size: 0.82rem;
  line-height: 1.5;
}

.bk-chat-resource-section .bank-v2-tools-grid,
.bk-chat-resource-section .bank-v2-orientation-grid,
.bk-chat-resource-section .bank-v2-guides-grid,
.bk-chat-resource-section .bank-v2-fee-grid,
.bk-chat-resource-section .bank-v2-form-grid {
  grid-template-columns: 1fr;
  gap: 11px;
}

.bk-chat-resource-section .bank-v2-orientation-card,
.bk-chat-resource-section .bank-v2-guide-card,
.bk-chat-resource-section .bank-v2-correction-card,
.bk-chat-resource-section .bank-v2-data-note,
.bk-chat-resource-section .bank-v2-fee-verdict,
.bk-chat-resource-section .bank-v2-coverage-card {
  border-radius: 13px;
  padding: 15px;
  box-shadow: 0 7px 18px rgba(11, 111, 98, 0.06);
}

.bk-chat-resource-section .bank-v2-orientation-card h3,
.bk-chat-resource-section .bank-v2-guide-card h3,
.bk-chat-resource-section .bank-v2-fee-verdict h3 {
  font-size: 1rem;
}

.bk-chat-resource-section .bank-v2-orientation-card p,
.bk-chat-resource-section .bank-v2-guide-card p,
.bk-chat-resource-section .bank-v2-fee-verdict p {
  font-size: 0.82rem;
}

.bk-chat-resource-section .bank-v2-form-grid select,
.bk-chat-resource-section .bank-v2-form-grid input,
.bk-chat-resource-section .bank-v2-form-grid textarea {
  width: 100%;
}

.bk-chat-resource-section .table-shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bk-chat-resource-section .table-shell table,
.bk-chat-resource-section .table-shell tbody,
.bk-chat-resource-section .table-shell tr,
.bk-chat-resource-section .table-shell td,
.bk-chat-resource-section .table-shell th {
  display: block;
  min-width: 0;
}

.bk-chat-resource-section .table-shell thead {
  display: none;
}

.bk-chat-resource-section .table-shell tbody {
  display: grid;
  gap: 10px;
}

.bk-chat-resource-section .table-shell tr {
  border: 1px solid rgba(15, 157, 140, 0.3);
  border-radius: 13px;
  padding: 5px 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(11, 111, 98, 0.06);
}

.bk-chat-resource-section .table-shell td {
  display: grid;
  grid-template-columns: minmax(100px, 38%) minmax(0, 1fr);
  gap: 9px;
  border: 0;
  border-top: 1px solid rgba(231, 225, 210, 0.66);
  padding: 8px 0;
  white-space: normal;
}

.bk-chat-resource-section .table-shell td[data-col="banque"] {
  display: block;
  border-top: 0;
}

.bk-chat-resource-section .table-shell td[data-label]::before {
  content: attr(data-label);
  color: var(--slate, #5B6473);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .bank-journey .bank-guided-panel.bk-chat-widget.bk-chat-resources-widget {
    width: auto;
  }

  .bk-chat-resource-view {
    gap: 15px;
    padding: 16px 14px 18px;
  }

  .bk-chat-resource-action {
    min-height: 56px;
    padding: 12px 13px;
  }

  .bk-chat-resource-action.is-primary {
    min-height: 68px;
  }

  .bk-chat-resource-section .table-shell td {
    grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .bk-chat-resource-view {
    padding-inline: 12px;
  }

  .bk-chat-resource-action span,
  .bk-chat-resource-copy,
  .bk-chat-resource-context p {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-chat-resource-action {
    transition: none !important;
  }

  .bk-chat-resource-action:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .bk-chat-resource-action,
  .bk-chat-resource-context,
  .bk-chat-resource-empty,
  .bk-chat-resource-section .bank-v2-orientation-card,
  .bk-chat-resource-section .bank-v2-guide-card,
  .bk-chat-resource-section .bank-v2-correction-card,
  .bk-chat-resource-section .table-shell tr {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
    color: CanvasText;
  }
}

@media print {
  .bk-chat-resource-view,
  .bk-chat-resource-section {
    display: none !important;
  }
}
