/* Unified floating component. Replaces dispersed fixed-position float buttons. */
.vobom-contact-rail,
.vobom-floating-rail,
.vobom-b2b-float,
.vobom-b2b-floating,
.vobom-ai-launch,
.vga-float {
  display: none !important;
}

.vobom-unified-float-container {
  position: fixed;
  right: 20px;
  bottom: 40px;
  z-index: 999999;
  width: 220px;
  min-height: 60px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: move;
  user-select: none;
  transition: all 0.2s ease;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .42);
  font-family: inherit;
}

.vobom-unified-float-container:active {
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

.vobom-float-min {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  overflow: hidden;
}

.vobom-float-min .float-body,
.vobom-float-min .float-title,
.vobom-float-min .float-subtitle {
  display: none;
}

.float-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #fff8e8, #ffffff);
}

.float-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f56a00;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.float-title-wrap {
  min-width: 0;
  flex: 1;
}

.float-title {
  display: block;
  color: #2d2417;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-subtitle {
  display: block;
  color: #786b5b;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-toggle-btn {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff2d8;
  color: #2d2417;
  cursor: pointer;
}

.float-body {
  padding: 4px 0 10px;
}

.float-item {
  display: block;
  width: 90%;
  margin: 8px auto;
  padding: 10px;
  border-radius: 6px;
  border: 0;
  background: #f56a00;
  color: #fff;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
}

.float-item:hover {
  filter: brightness(.96);
}

.float-chat {
  width: 90%;
  margin: 8px auto 0;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf0;
}

.float-messages {
  max-height: 210px;
  overflow: auto;
  padding: 8px;
}

.float-msg {
  margin: 6px 0;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  background: #fff;
  color: #2d2417;
}

.float-msg.user {
  background: #f56a00;
  color: #fff;
  margin-left: 22px;
}

.float-form {
  display: flex;
  gap: 5px;
  padding: 7px;
  border-top: 1px solid rgba(212, 175, 55, .25);
}

.float-input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(120, 107, 91, .28);
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 12px;
}

.float-send {
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: #d4af37;
  color: #fff;
  cursor: pointer;
}

body.wp-admin .vobom-unified-float-container {
  right: 24px;
  bottom: 28px;
}

@media (max-width: 520px) {
  .vobom-unified-float-container {
    right: 12px;
    bottom: 16px;
    width: min(220px, calc(100vw - 24px));
  }
}
