.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.bp-chat__toggle {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1a1a2e; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
}
.bp-chat__toggle:hover { transform: scale(1.08); background: #c8860a; }
.bp-chat__toggle::before {
  content: 'Chat with Ben';
  position: absolute; right: 66px;
  background: #1a1a2e; color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  padding: 6px 12px; border-radius: 20px;
  opacity: 0; pointer-events: none;
  transform: translateX(6px); transition: opacity 0.2s, transform 0.2s;
}
.bp-chat__toggle:hover::before { opacity: 1; transform: translateX(0); }

.bp-chat__badge {
  position: absolute; top: -4px; right: -4px;
  background: #e53e3e; color: #fff;
  font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.bp-chat {
  position: fixed; bottom: 96px; right: 28px; z-index: 1000;
  width: 420px; max-height: 640px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.25s, transform 0.25s;
}
.bp-chat.bp-chat--open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

.bp-chat__header {
  background: #1a1a2e; color: #fff;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.bp-chat__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #c8860a;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.bp-chat__header strong { display: block; font-size: 14px; }
.bp-chat__status { font-size: 11px; opacity: 0.7; }
.bp-chat__close {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,0.7); cursor: pointer; font-size: 16px; padding: 4px;
}
.bp-chat__close:hover { color: #fff; }

.bp-chat__body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: #f4f4f8;
}

.bp-chat__msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 15px; line-height: 1.55;
}
.bp-chat__msg--bot {
  background: #fff; color: #1a1a2e;
  border-bottom-left-radius: 4px; align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.bp-chat__msg--bot a { color: #c8860a; }
.bp-chat__msg--user {
  background: #1a1a2e; color: #fff;
  border-bottom-right-radius: 4px; align-self: flex-end;
}

.bp-chat__msg--typing { display: flex; gap: 5px; align-items: center; padding: 12px 16px; }
.bp-chat__msg--typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #bbb;
  animation: bp-bounce 1.2s infinite;
}
.bp-chat__msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.bp-chat__msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bp-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.bp-chat__suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.bp-chat__suggestions button {
  background: #fff; border: 1.5px solid #1a1a2e; color: #1a1a2e;
  border-radius: 20px; padding: 7px 14px; font-size: 13.5px;
  cursor: pointer; transition: background 0.2s, color 0.2s; font-family: inherit;
}
.bp-chat__suggestions button:hover { background: #1a1a2e; color: #fff; }

.bp-chat__footer {
  padding: 10px 12px; border-top: 1px solid #eee;
  display: flex; gap: 8px; background: #fff;
}
.bp-chat__input {
  flex: 1; border: 1.5px solid #e0ddd5; border-radius: 24px;
  padding: 9px 16px; font-size: 15px; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.bp-chat__input:focus { border-color: #c8860a; }
.bp-chat__send {
  width: 36px; height: 36px; border-radius: 50%;
  background: #1a1a2e; border: none; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; transition: background 0.2s;
}
.bp-chat__send:hover { background: #c8860a; }

.bp-chat__wa-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; background: #25d366; color: #fff;
  font-size: 15px; font-weight: 600; font-family: inherit;
  padding: 10px 16px; text-decoration: none; transition: background 0.2s;
}
.bp-chat__wa-btn:hover { background: #1ebe5d; color: #fff; }
.bp-chat__wa-btn i { font-size: 16px; }

@media (max-width: 480px) {
  .bp-chat { width: calc(100vw - 24px); right: 12px; bottom: 90px; }
  .bp-chat__toggle { right: 12px; }
}

/* ---- QUICK REPLIES ---- */
.bp-chat__quick-replies {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 0 8px;
}
.bp-chat__quick-btn {
  background: #fff;
  border: 1.5px solid #1a1a2e;
  color: #1a1a2e;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.bp-chat__quick-btn:hover { background: #1a1a2e; color: #fff; }
