/* ==========================================================================
   B2B Quick Inquiry Component Styles
   ========================================================================== */

.b2b-inquiry-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #d4af37;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.b2b-inquiry-header {
  margin-bottom: 15px;
}

.b2b-inquiry-title {
  font-size: 16px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-inquiry-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Button Grid */
.b2b-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.b2b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.b2b-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.b2b-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Specific Platform Styles */
.b2b-btn-whatsapp {
  background-color: #25D366;
  color: #ffffff !important;
}
.b2b-btn-whatsapp:hover {
  background-color: #1ebe5d;
  color: #ffffff !important;
}

.b2b-btn-imessage {
  background-color: #007AFF;
  color: #ffffff !important;
}
.b2b-btn-imessage:hover {
  background-color: #0066d6;
  color: #ffffff !important;
}

.b2b-btn-email {
  background-color: #0d1b2a;
  color: #ffffff !important;
}
.b2b-btn-email:hover {
  background-color: #1b263b;
  color: #ffffff !important;
}

/* Direct Contact Pill Bar */
.b2b-contact-info-bar {
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px dashed #cbd5e1;
}

.b2b-info-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-copy-tag {
  background: #e2e8f0;
  color: #0f172a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.b2b-copy-tag:hover {
  background: #cbd5e1;
}
.b2b-copy-tag.copied {
  background: #22c55e;
  color: #ffffff;
}

/* Global Floating Widget */
.b2b-floating-dock {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.b2b-dock-trigger {
  background: #0d1b2a;
  color: #ffffff;
  border: 2px solid #d4af37;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}
.b2b-dock-trigger:hover {
  background: #1b263b;
  transform: scale(1.04);
}

.b2b-dock-popup {
  display: none;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid #e2e8f0;
  width: 310px;
  animation: b2bFadeIn 0.2s ease-out forwards;
}

.b2b-dock-popup.active {
  display: block;
}

@keyframes b2bFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.b2b-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.b2b-popup-header h4 {
  margin: 0;
  font-size: 15px;
  color: #0d1b2a;
}
.b2b-popup-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #94a3b8;
}

/* Mobile Sticky Action Bar */
@media (max-width: 768px) {
  .b2b-floating-dock {
    display: none; /* Replaced by sticky bottom bar */
  }

  .b2b-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 8px 12px;
    z-index: 99998;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    gap: 8px;
  }
  .b2b-mobile-bar .b2b-btn {
    flex: 1;
    padding: 10px 6px;
    font-size: 12px;
  }
}

@media (min-width: 769px) {
  .b2b-mobile-bar {
    display: none;
  }
}
