.bv360-chat {
  --bv360-green: #006a46;
  --bv360-green-2: #008559;
  --bv360-accent: #03dd84;
  --bv360-mint: #d4f7e8;
  --bv360-ink: #101817;
  --bv360-muted: #52645b;
  --bv360-line: #dce8e1;
  --bv360-panel: #ffffff;
  --bv360-wash: #f7fcfa;
  font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999999;
  color: var(--bv360-ink);
}

.bv360-chat *,
.bv360-chat *::before,
.bv360-chat *::after {
  box-sizing: border-box;
}

.bv360-chat__launcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  max-width: min(300px, calc(100vw - 32px));
  border: 0;
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  background: linear-gradient(135deg, var(--bv360-green), var(--bv360-green-2));
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 106, 70, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bv360-chat__launcher:hover,
.bv360-chat__launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 106, 70, 0.34);
  outline: none;
}

.bv360-chat--nudge:not(.bv360-chat--open) .bv360-chat__launcher {
  animation: bv360-nudge 680ms ease both;
}

.bv360-chat__pulse {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(3, 221, 132, 0.42);
  animation: bv360-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.bv360-chat__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex: 0 0 auto;
}

.bv360-chat__launcher-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.bv360-chat__launcher-text strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.bv360-chat__launcher-text small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.2;
}

.bv360-chat__panel {
  position: absolute;
  right: 0;
  bottom: 80px;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 116px));
  overflow: hidden;
  border: 1px solid rgba(188, 202, 191, 0.75);
  border-radius: 24px;
  background: var(--bv360-panel);
  box-shadow: 0 24px 70px rgba(16, 24, 23, 0.24);
  transform-origin: right bottom;
  animation: bv360-panel-in 180ms ease both;
}

.bv360-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(3, 221, 132, 0.32), transparent 30%),
    linear-gradient(135deg, #006a46, #008559);
  color: #fff;
}

.bv360-chat__eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bv360-chat__header h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.bv360-chat__close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.bv360-chat__body {
  height: calc(100% - 154px);
  overflow-y: auto;
  padding: 18px 18px 14px;
  background:
    linear-gradient(180deg, rgba(247, 252, 250, 0.95), rgba(255, 255, 255, 0.98)),
    var(--bv360-wash);
  scroll-behavior: smooth;
}

.bv360-chat__message {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 12px;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bv360-chat__message--bot {
  border-bottom-left-radius: 6px;
  background: #fff;
  color: var(--bv360-ink);
  box-shadow: 0 6px 22px rgba(30, 56, 45, 0.08);
}

.bv360-chat__message--user {
  margin-left: auto;
  border-bottom-right-radius: 6px;
  background: var(--bv360-green);
  color: #fff;
}

.bv360-chat__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 13px 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(30, 56, 45, 0.08);
}

.bv360-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bv360-muted);
  animation: bv360-typing 900ms ease-in-out infinite;
}

.bv360-chat__typing span:nth-child(2) {
  animation-delay: 120ms;
}

.bv360-chat__typing span:nth-child(3) {
  animation-delay: 240ms;
}

.bv360-chat__options,
.bv360-chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 14px;
}

.bv360-chat__option,
.bv360-chat__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(0, 106, 70, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--bv360-green);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.bv360-chat__option:hover,
.bv360-chat__action:hover,
.bv360-chat__option:focus-visible,
.bv360-chat__action:focus-visible {
  background: var(--bv360-green);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.bv360-chat__action--ghost {
  background: transparent;
  color: var(--bv360-muted);
}

.bv360-chat__form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--bv360-line);
  background: #fff;
}

.bv360-chat__form--disabled {
  opacity: 0.62;
}

.bv360-chat__input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--bv360-line);
  border-radius: 999px;
  padding: 12px 15px;
  background: #fff;
  color: var(--bv360-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.bv360-chat__input:focus {
  border-color: rgba(0, 106, 70, 0.54);
  box-shadow: 0 0 0 4px rgba(3, 221, 132, 0.16);
}

.bv360-chat__send {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--bv360-green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.bv360-chat__send:hover,
.bv360-chat__send:focus-visible {
  background: #005f3f;
  outline: none;
}

.bv360-chat__input:disabled,
.bv360-chat__send:disabled {
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .bv360-chat {
    right: 14px;
    bottom: 14px;
  }

  .bv360-chat__launcher {
    min-height: 58px;
    padding-right: 14px;
  }

  .bv360-chat__panel {
    right: -2px;
    bottom: 74px;
    width: calc(100vw - 24px);
    height: min(620px, calc(100vh - 100px));
    border-radius: 20px;
  }

  .bv360-chat__body {
    height: calc(100% - 150px);
  }
}

@keyframes bv360-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bv360-pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

@keyframes bv360-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-5px);
  }
  65% {
    transform: translateY(2px);
  }
}

@keyframes bv360-typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* v1.0.2 refinements: logo header, mobile sizing, and cleaner form behavior */
.bv360-chat--open .bv360-chat__launcher {
  display: none;
}

.bv360-chat__panel {
  bottom: 0;
  display: flex;
  flex-direction: column;
}

.bv360-chat__header {
  flex: 0 0 auto;
}

.bv360-chat__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.bv360-chat__logo {
  width: 112px;
  height: 42px;
  object-fit: contain;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.bv360-chat__close {
  flex: 0 0 auto;
  font-size: 0;
}

.bv360-chat__body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.bv360-chat__form {
  flex: 0 0 auto;
  align-items: center;
}

.bv360-chat__form--hidden {
  display: none;
}

.bv360-chat__cancel {
  border: 1px solid rgba(82, 100, 91, 0.22);
  border-radius: 999px;
  padding: 0 13px;
  align-self: stretch;
  background: #fff;
  color: var(--bv360-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.bv360-chat__cancel:hover,
.bv360-chat__cancel:focus-visible {
  border-color: rgba(0, 106, 70, 0.35);
  color: var(--bv360-green);
  outline: none;
}

@media (max-width: 520px) {
  .bv360-chat__launcher {
    min-height: 48px;
    max-width: 176px;
    gap: 9px;
    padding: 7px 12px 7px 7px;
  }

  .bv360-chat__icon {
    width: 34px;
    height: 34px;
  }

  .bv360-chat__launcher-text strong {
    font-size: 13px;
  }

  .bv360-chat__launcher-text small {
    display: none;
  }

  .bv360-chat__panel {
    right: 0;
    bottom: 0;
    width: calc(100vw - 28px);
    height: calc(100dvh - 28px);
    max-height: 680px;
  }

  .bv360-chat__header {
    padding: 17px 16px 15px;
  }

  .bv360-chat__header h2 {
    font-size: 20px;
  }

  .bv360-chat__logo {
    width: 86px;
    height: 36px;
    padding: 5px 8px;
  }

  .bv360-chat__form {
    gap: 7px;
    padding: 11px;
  }

  .bv360-chat__input {
    padding: 11px 12px;
  }

  .bv360-chat__cancel,
  .bv360-chat__send {
    padding-left: 11px;
    padding-right: 11px;
    font-size: 13px;
  }
}
/* v1.0.3 single final CTA */
.bv360-chat__actions {
  display: block;
  margin-top: 6px;
}

.bv360-chat__action--primary {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: linear-gradient(135deg, var(--bv360-green), var(--bv360-green-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 106, 70, 0.24);
  font-size: 15px;
}

.bv360-chat__action--primary:hover,
.bv360-chat__action--primary:focus-visible {
  background: linear-gradient(135deg, #005f3f, #007c52);
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 106, 70, 0.3);
}
/* v1.0.4 cleaner header and top cancel button */
.bv360-chat__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 24px 22px 22px;
  min-height: 128px;
}

.bv360-chat__header > div:first-child {
  min-width: 0;
}

.bv360-chat__eyebrow {
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1;
}

.bv360-chat__header h2 {
  max-width: none;
  font-size: 25px;
  line-height: 1.14;
  white-space: nowrap;
}

.bv360-chat__header-actions {
  display: contents;
}

.bv360-chat__logo {
  width: 132px;
  height: 52px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 106, 70, 0.08);
}

.bv360-chat__close {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(0, 74, 49, 0.22);
}

.bv360-chat__close svg {
  width: 20px;
  height: 20px;
  stroke-width: 3px;
}

.bv360-chat__close:hover,
.bv360-chat__close:focus-visible {
  background: #ffffff;
  color: var(--bv360-green);
  border-color: #ffffff;
  outline: none;
}

.bv360-chat__form {
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 520px) {
  .bv360-chat__header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    min-height: 120px;
    padding: 22px 13px 20px;
  }

  .bv360-chat__eyebrow {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .bv360-chat__header h2 {
    font-size: 24px;
    line-height: 1.08;
    white-space: normal;
  }

  .bv360-chat__logo {
    width: 102px;
    height: 44px;
    padding: 6px 10px;
  }

  .bv360-chat__close {
    width: 44px;
    height: 44px;
  }

  .bv360-chat__form {
    gap: 9px;
  }

  .bv360-chat__send {
    min-width: 72px;
  }
}

@media (max-width: 390px) {
  .bv360-chat__header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bv360-chat__logo {
    display: none;
  }

  .bv360-chat__header h2 {
    white-space: nowrap;
    font-size: 23px;
  }
}
/* v1.0.6 logo-left header and icon send button */
.bv360-chat__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 22px 22px;
}

.bv360-chat__title {
  min-width: 0;
}

.bv360-chat__eyebrow {
  display: none;
}

.bv360-chat__header h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}

.bv360-chat__header-actions {
  display: contents;
}

.bv360-chat__logo {
  width: 118px;
  height: 50px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 106, 70, 0.08);
}

.bv360-chat__close {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 74, 49, 0.22);
}

.bv360-chat__close svg {
  width: 20px;
  height: 20px;
}

.bv360-chat__close:hover,
.bv360-chat__close:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--bv360-green);
  outline: none;
}

.bv360-chat__send {
  display: grid;
  width: 52px;
  min-width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  background: var(--bv360-green);
}

.bv360-chat__send svg {
  display: block;
  margin-left: 2px;
}

@media (max-width: 520px) {
  .bv360-chat__header {
    gap: 11px;
    min-height: 104px;
    padding: 20px 14px;
  }

  .bv360-chat__logo {
    width: 92px;
    height: 42px;
    padding: 6px 9px;
  }

  .bv360-chat__header h2 {
    font-size: 24px;
  }

  .bv360-chat__close {
    width: 44px;
    height: 44px;
  }

  .bv360-chat__send {
    width: 50px;
    min-width: 50px;
    height: 50px;
  }
}

@media (max-width: 390px) {
  .bv360-chat__header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
  }

  .bv360-chat__logo {
    width: 72px;
    height: 38px;
    padding: 5px 7px;
  }

  .bv360-chat__header h2 {
    font-size: 22px;
  }

  .bv360-chat__close {
    width: 40px;
    height: 40px;
  }
}
/* v1.0.6 small-screen logo visibility fix */
.bv360-chat__logo {
  display: block !important;
}

@media (max-width: 520px) {
  .bv360-chat__logo {
    display: block !important;
  }
}

@media (max-width: 390px) {
  .bv360-chat__logo {
    display: block !important;
  }
}
/* v1.0.7 compact logo caption header */
.bv360-chat__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 5px;
  min-height: 112px;
  padding: 20px 22px 18px;
}

.bv360-chat__logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 142px;
  height: 54px;
  padding: 7px 14px;
}

.bv360-chat__title {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  min-width: 0;
}

.bv360-chat__title h2,
.bv360-chat__header h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bv360-chat__close {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: 46px;
  height: 46px;
}

@media (max-width: 520px) {
  .bv360-chat__header {
    column-gap: 10px;
    row-gap: 5px;
    min-height: 104px;
    padding: 18px 14px 16px;
  }

  .bv360-chat__logo {
    width: 124px;
    height: 48px;
    padding: 6px 12px;
  }

  .bv360-chat__title h2,
  .bv360-chat__header h2 {
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  .bv360-chat__close {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 390px) {
  .bv360-chat__logo {
    width: 112px;
    height: 44px;
  }

  .bv360-chat__title h2,
  .bv360-chat__header h2 {
    font-size: 11px;
  }

  .bv360-chat__close {
    width: 40px;
    height: 40px;
  }
}
/* v1.0.8 text-only header */
.bv360-chat__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 22px 22px;
}

.bv360-chat__title {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.bv360-chat__brand {
  display: block;
  margin: 0 0 6px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.bv360-chat__title h2,
.bv360-chat__header h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.bv360-chat__close {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: 46px;
  height: 46px;
}

@media (max-width: 520px) {
  .bv360-chat__header {
    min-height: 98px;
    padding: 20px 16px;
    gap: 12px;
  }

  .bv360-chat__brand {
    font-size: 22px;
  }

  .bv360-chat__title h2,
  .bv360-chat__header h2 {
    font-size: 16px;
  }

  .bv360-chat__close {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 360px) {
  .bv360-chat__brand {
    font-size: 20px;
  }

  .bv360-chat__title h2,
  .bv360-chat__header h2 {
    font-size: 15px;
  }
}
/* v1.0.9 force close button to stay circular on live themes */
.bv360-chat .bv360-chat__close,
.bv360-chat button.bv360-chat__close,
.bv360-chat__header .bv360-chat__close {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  line-height: 1 !important;
  text-align: center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: 0 10px 26px rgba(0, 74, 49, 0.22) !important;
}

.bv360-chat .bv360-chat__close svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.bv360-chat .bv360-chat__close:hover,
.bv360-chat .bv360-chat__close:focus-visible {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--bv360-green) !important;
  outline: none !important;
}

@media (max-width: 520px) {
  .bv360-chat .bv360-chat__close,
  .bv360-chat button.bv360-chat__close,
  .bv360-chat__header .bv360-chat__close {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }
}