#ml-fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition: bottom .3s ease;
}

#ml-fab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0057a8;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,87,168,.45);
  transition: transform .2s, box-shadow .2s, background .15s;
  white-space: nowrap;
}

#ml-fab-btn:hover {
  background: #003d7a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,87,168,.5);
}

#ml-fab-btn .fab-icon {
  font-size: 18px;
  flex-shrink: 0;
}

#ml-fab-btn .fab-pulse {
  width: 8px;
  height: 8px;
  background: #4cde80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.4); }
}

#ml-fab-drawer {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  width: 320px;
  overflow: hidden;
  border: 1px solid #d0dce8;
  transform: scale(.9) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: bottom right;
}

#ml-fab-drawer.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.fab-drawer-head {
  background: #0057a8;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fab-drawer-head span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fab-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.fab-close:hover { color: #fff; }

.fab-drawer-body {
  padding: 14px 16px 16px;
}

.fab-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.fab-input-row input {
  flex: 1;
  height: 40px;
  border: 1.5px solid #d0dce8;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  outline: none;
  transition: border-color .2s;
}

.fab-input-row input:focus { border-color: #0057a8; }

.fab-input-row button {
  height: 40px;
  padding: 0 16px;
  background: #0057a8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: background .15s;
}

.fab-input-row button:hover { background: #003d7a; }

.fab-marcas {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fab-marca {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid #d0dce8;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  background: #f0f4f9;
  color: #5a6a7a;
  font-weight: 500;
  transition: all .15s;
}

.fab-marca:hover {
  border-color: #0057a8;
  color: #0057a8;
  background: #e6f0fa;
}

.fab-wp {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 8px;
  background: #25d366;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
  transition: background .15s;
}

.fab-wp:hover { background: #1db954; }

@media (max-width: 480px) {
  #ml-fab-wrap { bottom: 16px; right: 16px; }
  #ml-fab-drawer { width: calc(100vw - 32px); }
  #ml-fab-btn .fab-label { display: none; }
  #ml-fab-btn { padding: 13px 16px; border-radius: 50%; }
}
