/* Conseiller Banque disponible sur les pages publiques hors accueil Banque. */

.bk-global-counselor-launcher {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1202;
  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: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.bk-global-counselor-launcher[hidden] {
  display: none !important;
}

.bk-global-counselor-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);
  transform: translateY(-2px);
}

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

.bk-global-counselor-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-global-counselor-k {
  display: block;
  width: 100%;
  height: 100%;
}

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

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

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

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

.bk-global-counselor-backdrop[hidden],
.bk-global-counselor-panel[hidden] {
  display: none !important;
}

.bk-global-counselor-panel {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1201;
  display: flex;
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  flex-direction: column;
  border: 1px solid rgba(15, 157, 140, 0.42);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 26px 72px rgba(20, 34, 79, 0.24),
    0 0 0 5px rgba(15, 157, 140, 0.06);
}

.bk-global-counselor-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-global-counselor-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

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

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

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

.bk-global-counselor-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-global-counselor-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;
}

.bk-global-counselor-close svg,
.bk-global-counselor-chevron svg,
.bk-global-counselor-trust svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bk-global-counselor-body {
  min-height: 0;
  padding: 18px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(145deg, #fff 0%, rgba(238, 250, 247, 0.74) 100%);
}

.bk-global-counselor-body h2 {
  margin: 0 0 14px;
  color: var(--navy, #14224F);
  font-size: 1rem;
  font-weight: 850;
}

.bk-global-counselor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bk-global-counselor-action {
  display: grid;
  min-width: 0;
  min-height: 102px;
  grid-template-columns: 54px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 157, 140, 0.18);
  border-radius: 18px;
  padding: 10px 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 34, 79, 0.07);
  color: var(--navy, #14224F);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bk-global-counselor-action:hover {
  border-color: rgba(15, 157, 140, 0.45);
  box-shadow: 0 12px 28px rgba(11, 111, 98, 0.12);
  transform: translateY(-1px);
}

.bk-global-counselor-action img {
  display: block;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(15, 157, 140, 0.14);
  border-radius: 15px;
  background: #fffdf8;
  object-fit: contain;
}

.bk-global-counselor-action strong {
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

.bk-global-counselor-chevron {
  display: grid;
  place-items: center;
  color: var(--teal-dark, #0B6F62);
}

.bk-global-counselor-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(15, 157, 140, 0.16);
  border-radius: 15px;
  padding: 10px 12px;
  background: rgba(238, 250, 247, 0.8);
  color: var(--teal-dark, #0B6F62);
}

.bk-global-counselor-trust > span {
  display: grid;
  flex: none;
  place-items: center;
}

.bk-global-counselor-trust p {
  margin: 0;
  color: var(--navy, #14224F);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

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

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

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

  .bk-global-counselor-launcher-copy {
    display: none;
  }

  .bk-global-counselor-panel {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 20px;
  }

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

  .bk-global-counselor-body {
    padding: 16px 14px 18px;
  }

  .bk-global-counselor-action {
    min-height: 96px;
    grid-template-columns: 44px minmax(0, 1fr) 12px;
    gap: 6px;
    padding: 10px 6px;
  }

  .bk-global-counselor-action img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  @supports selector(body:has(*)) {
    body:has(.lapp-tabbar) .bk-global-counselor-launcher,
    body:has(.app-actionbar) .bk-global-counselor-launcher {
      bottom: calc(max(18px, env(safe-area-inset-bottom)) + 82px);
    }
  }
}

@media (max-width: 360px) {
  .bk-global-counselor-grid {
    grid-template-columns: 1fr;
  }

  .bk-global-counselor-action {
    min-height: 76px;
    grid-template-columns: 54px minmax(0, 1fr) 16px;
    padding: 10px 12px;
  }

  .bk-global-counselor-action img {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-global-counselor-launcher,
  .bk-global-counselor-action {
    transition: none !important;
  }

  .bk-global-counselor-launcher:hover,
  .bk-global-counselor-action:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .bk-global-counselor-launcher,
  .bk-global-counselor-panel,
  .bk-global-counselor-head,
  .bk-global-counselor-close,
  .bk-global-counselor-action,
  .bk-global-counselor-trust {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
    color: CanvasText;
  }

  .bk-global-counselor-action img {
    border: 1px solid CanvasText;
    background: Canvas;
    forced-color-adjust: auto;
  }
}

@media print {
  .bk-global-counselor-launcher,
  .bk-global-counselor-backdrop,
  .bk-global-counselor-panel {
    display: none !important;
  }
}
