/* =============================================================================
   Widget: Herramientas Flotantes & Social Proof
   Botanica & Gift Shop — Elementor Widget
   ============================================================================= */

/* ---------- Floating Action Button (FAB) ---------- */
.botanica-fab-container {
  position: fixed;
  bottom: 36px;
  right: 25px;
  z-index: 1050;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
}

.botanica-fab-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d29f44 0%, #b88628 100%);
  color: #0b0e0a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.45);
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  outline: none;
}

.botanica-fab-main-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.65);
}

.botanica-fab-main-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.botanica-fab-icon-close {
  display: none !important;
}

.botanica-fab-container.active .botanica-fab-icon-plus {
  display: none !important;
}

.botanica-fab-container.active .botanica-fab-icon-close {
  display: block !important;
}

.botanica-fab-container.active .botanica-fab-main-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.45);
}

/* Sub-Buttons */
.botanica-fab-sub-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 14, 38, 0.95);
  border: 1.5px solid var(--botanica-gold, #c9a84c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--botanica-gold, #c9a84c);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.85);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.botanica-fab-sub-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.botanica-fab-container.active .botanica-fab-sub-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.botanica-fab-sub-btn--wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.botanica-fab-sub-btn:hover {
  transform: scale(1.12) !important;
}

/* ---------- WhatsApp Interactive Chat Widget ---------- */
.botanica-wa-chat {
  position: fixed;
  bottom: 110px;
  right: 25px;
  width: 350px;
  max-width: calc(100vw - 40px);
  background: #0b130e;
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  z-index: 1049;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--botanica-font-body, 'Plus Jakarta Sans', sans-serif);
}

.botanica-wa-chat.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.botanica-wa-chat__header {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.botanica-wa-chat__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.botanica-wa-chat__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.botanica-wa-chat__avatar svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.botanica-wa-chat__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.botanica-wa-chat__status {
  font-size: 0.75rem;
  color: #b0f5d0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.botanica-wa-chat__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 6px #25D366;
}

.botanica-wa-chat__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

.botanica-wa-chat__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

.botanica-wa-chat__body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 300px;
  overflow-y: auto;
}

.botanica-wa-chat__bubble {
  background: #1f2c24;
  color: #e2ede5;
  padding: 12px 16px;
  border-radius: 14px;
  border-top-left-radius: 2px;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.botanica-wa-chat__questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.botanica-wa-chat__qbtn {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #e2ede5;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.botanica-wa-chat__qbtn:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: #25D366;
  color: #fff;
  transform: translateX(3px);
}

.botanica-wa-chat__footer {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 12, 0.95);
}

.botanica-wa-chat__send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.botanica-wa-chat__send-btn:hover {
  background: #1ebc57;
  transform: translateY(-2px);
  color: #fff;
}

.botanica-wa-chat__send-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Social Proof Toast ---------- */
.botanica-sales-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(14, 24, 16, 0.96);
  border: 1px solid var(--botanica-gold, #c9a84c);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(201, 168, 76, 0.25);
  z-index: 1042;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  font-family: var(--botanica-font-body, 'Plus Jakarta Sans', sans-serif);
  max-width: 380px;
}

.botanica-sales-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.botanica-sales-toast__icon {
  font-size: 1.4rem;
}

.botanica-sales-toast__text {
  font-size: 0.85rem;
  color: #e2ede5;
  line-height: 1.4;
}

.botanica-sales-toast__text strong {
  color: var(--botanica-gold, #c9a84c);
}

.botanica-sales-toast__time {
  font-size: 0.72rem;
  color: var(--botanica-text-muted, #a89880);
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 480px) {
  .botanica-sales-toast {
    left: 12px;
    right: 12px;
    bottom: 16px;
    max-width: none;
  }
}
