.bc-group { margin-top: 12px; display: grid; gap: 9.6px; }
.bc-group[hidden] { display: none; }
.bc-group-title {
  margin: 6.4px 0 0; text-align: center; font-size: 11.52px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #ffcf75;
}
.bc-eta { margin: -3.2px 0 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.bc-icon-row { display: flex; justify-content: space-around; align-items: flex-start; gap: 8px; margin-top: 4px; }
.bc-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0;
  border: 0; background: none; cursor: pointer; text-decoration: none; padding: 4px;
}
.bc-icon-badge {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #ff0096;
}
.bc-icon-badge svg { width: 100%; height: 100%; }
.bc-icon-label { font-size: 12.5px; font-weight: 600; color: #f8f5f6; text-align: center; line-height: 1.25; }
.bc-icon-btn:active .bc-icon-badge { transform: scale(0.92); }
.bc-toast {
  margin: 0; padding: 8.8px 12px; border-radius: 9.6px; text-align: center;
  font-size: 13.12px; line-height: 1.3; color: #fff; background: rgba(255, 210, 103, 0.14);
  border: 1px solid rgba(255, 210, 103, 0.35);
}
.bc-toast[hidden] { display: none; }

.bc-noscroll { overflow: hidden; }
.bc-overlay {
  position: fixed; inset: 0; z-index: 2147483000; display: none;
  align-items: flex-end; justify-content: center; padding: 0;
  background: rgba(0, 0, 0, 0.72);
}
.bc-overlay.is-open { display: flex; }
.bc-panel {
  display: flex; flex-direction: column; width: 100%; max-width: 480px; max-height: min(92dvh, 672px);
  background: #121012; color: #f8f5f6; border: 1px solid rgba(255, 210, 103, 0.35);
  border-radius: 16px 16px 0 0; overflow: hidden; font-family: inherit;
}
@media (min-width: 640px) {
  .bc-overlay { align-items: center; padding: 16px; }
  .bc-panel { border-radius: 16px; }
}
.bc-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14.4px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bc-head-title { margin: 0; font-size: 16.8px; font-weight: 700; color: #ffd267; }
.bc-online {
  display: inline-flex; align-items: center; gap: 4.8px; margin-left: 8px;
  font-size: 10.88px; font-weight: 600; color: #4ade80; vertical-align: middle;
}
.bc-online[hidden] { display: none; }
.bc-online-dot { width: 7.2px; height: 7.2px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 rgba(74, 222, 128, 0.55); animation: bc-online-pulse 2s infinite; }
@keyframes bc-online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 5.6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.bc-trust {
  margin: 0; padding: 9.6px 16px 11.2px 25.6px; display: grid; gap: 5.6px;
  font-size: 12.16px; line-height: 1.35; color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bc-trust li { list-style: disc; }
.bc-trust li::marker { color: rgba(255, 210, 103, 0.6); }
.bc-close {
  width: 38.4px; height: 38.4px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06);
  color: #fff; font-size: 22.4px; line-height: 1;
}
.bc-summary {
  display: flex; flex-wrap: wrap; gap: 4px 14.4px; padding: 9.6px 16px;
  font-size: 13.12px; color: rgba(255, 255, 255, 0.8); background: rgba(255, 210, 103, 0.08);
  border-bottom: 1px solid rgba(255, 210, 103, 0.2);
}
.bc-summary strong { flex-basis: 100%; color: #ffd267; font-size: 14.4px; }
.bc-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 12.8px 16px; display: flex; flex-direction: column; gap: 8px; }
.bc-msg { display: flex; align-items: flex-end; gap: 6.4px; }
.bc-msg-me { justify-content: flex-end; }
.bc-avatar { width: 27.2px; height: 27.2px; border-radius: 50%; flex: none; object-fit: cover; background: rgba(255, 255, 255, 0.12); }
.bc-avatar-customer { display: flex; align-items: center; justify-content: center; font-size: 13.12px; font-weight: 700; color: #1a1300; background: #ffd267; }
.bc-avatar-blank { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.12); }
.bc-bubble {
  max-width: 76%; padding: 8.8px 12px; border-radius: 14.4px; white-space: pre-wrap;
  overflow-wrap: anywhere; font-size: 14.72px; line-height: 1.4;
}
.bc-msg-me .bc-bubble { background: #ffd267; color: #1a1300; border-bottom-right-radius: 4px; }
.bc-msg-them .bc-bubble { background: rgba(255, 255, 255, 0.12); color: #fff; border-bottom-left-radius: 4px; }
.bc-time { display: block; margin-top: 3.2px; font-size: 10.88px; opacity: 0.6; text-align: right; }
.bc-note { margin: 4.8px 0; text-align: center; font-size: 12.48px; color: rgba(255, 255, 255, 0.6); }
.bc-typing { display: flex; align-items: flex-end; gap: 6.4px; }
.bc-typing-bubble {
  display: inline-flex; align-items: center; gap: 4.48px;
  padding: 9.6px 13.6px; border-radius: 14.4px; border-bottom-left-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}
.bc-typing-dot {
  width: 6.4px; height: 6.4px; border-radius: 50%; background: rgba(255, 255, 255, 0.75);
  animation: bc-typing-bounce 1.2s infinite ease-in-out;
}
.bc-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.bc-typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes bc-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3.52px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .bc-typing-dot { animation: none; opacity: 0.85; } }
.bc-contact { padding: 8px 16px 0; }
.bc-contact[hidden] { display: none; }
.bc-contact label { display: block; margin-bottom: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.bc-contact input {
  width: 100%; box-sizing: border-box; padding: 8.8px 11.2px; border-radius: 9.6px; font-size: 16px;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}
.bc-error { margin: 8px 16px 0; font-size: 12.8px; color: #ff9b9b; }
.bc-error[hidden] { display: none; }
.bc-form { display: flex; gap: 8px; align-items: flex-end; padding: 11.2px 16px 14.4px; }
.bc-input {
  flex: 1; box-sizing: border-box; resize: none; padding: 9.6px 11.2px; border-radius: 11.2px; font-size: 16px;
  font-family: inherit; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}
.bc-send {
  min-width: 72px; padding: 11.2px 16px; border: 0; border-radius: 11.2px; cursor: pointer;
  font-weight: 700; color: #1a1300; background: #ffd267;
}
.bc-send:disabled { opacity: 0.55; cursor: default; }
.bc-summary[hidden], .bc-push[hidden], .bc-file[hidden] { display: none; }
.bc-status { font-size: 10.88px; }
.bc-status.is-read { color: #0a4fb3; font-weight: 700; }
.bc-img { display: block; max-width: 100%; max-height: 256px; margin-bottom: 5.6px; border-radius: 9.6px; cursor: zoom-in; background: rgba(255, 255, 255, 0.1); min-height: 48px; min-width: 96px; }
.bc-push {
  padding: 9.6px 16px; font-size: 13.12px; line-height: 1.4; color: #fff;
  background: rgba(255, 210, 103, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #ffd267;
}
.bc-push strong { color: #ffd267; }
.bc-push-btn {
  width: 100%; padding: 8px 12px; cursor: pointer; border-radius: 9.6px; font-weight: 600;
  color: #ffd267; background: transparent; border: 1px solid rgba(255, 210, 103, 0.5);
}
.bc-file {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 8px 16px 0; padding: 6.4px 11.2px; border-radius: 9.6px; font-size: 12.8px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
}
.bc-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-file-remove { flex: none; border: 0; background: none; color: #fff; font-size: 19.2px; cursor: pointer; }
.bc-attach {
  flex: none; width: 41.6px; height: 41.6px; cursor: pointer; border-radius: 11.2px; font-size: 18.4px;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}

.bc-fab {
  position: fixed; right: 14.4px; bottom: calc(89.6px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; padding: 0; cursor: pointer; border-radius: 50%;
  color: #ffd267; background: rgba(12, 12, 12, 0.94); border: 1.8px solid rgba(212, 175, 55, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 215, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}
.bc-fab:active { transform: scale(0.95); }
.bc-fab-label {
  position: absolute; right: 65.6px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 5.6px 11.2px; border-radius: 999px; font-size: 12.48px; font-weight: 600; pointer-events: none;
  color: #ffd267; background: rgba(12, 12, 12, 0.94); border: 1px solid rgba(212, 175, 55, 0.6);
  animation: bc-label-fade 0.5s ease 6s forwards;
}
@keyframes bc-label-fade { to { opacity: 0; visibility: hidden; } }
.bc-fab-dot {
  position: absolute; top: 0.8px; right: 0.8px; width: 15.2px; height: 15.2px; border-radius: 50%;
  background: #e5261f; border: 2px solid #0c0c0c;
}
.bc-fab-dot[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bc-fab-label { animation-duration: 0.01s; } }
