/* WhatsApp CTAs styles */

/* Desktop header WhatsApp button */
.desktop-header-whatsapp-btn {
  display: inline-block;
  background-color: #25D366;
  color: white !important;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  margin-left: 16px;
  margin-right: 16px;
  line-height: 1.5;
  vertical-align: middle;
  transition: background-color 0.2s ease;
}

.desktop-header-whatsapp-btn:hover {
  background-color: #1ebe57;
  color: white !important;
  text-decoration: none !important;
}

/* Align with Track job button */
.desktop-header-actions .desktop-header-contact {
  display: inline-block;
  vertical-align: middle;
}

.desktop-header-actions .desktop-track-order {
  vertical-align: middle;
}

.desktop-header-phone {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-right: 16px;
}

.desktop-header-phone:hover {
  color: #000;
  text-decoration: underline;
}

/* Hide desktop header on mobile */
@media (max-width: 767px) {
  .desktop-header-actions {
    display: none;
  }
}

/* Mobile contact bar - mobile only */
.marketing-mobile-contact {
  display: none;
  padding: 16px 12px;
  margin: 0;
  background: #f8f9fa;
}

@media (max-width: 767px) {
  .marketing-mobile-contact {
    display: block;
  }
}

.mobile-whatsapp-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.marketing-mobile-whatsapp-primary {
  display: inline-block;
  background-color: #25D366;
  color: white !important;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 16px;
  min-height: 44px;
  line-height: 1.25;
  transition: background-color 0.2s ease;
}

.marketing-mobile-whatsapp-primary:hover {
  background-color: #1ebe57;
  color: white !important;
  text-decoration: none !important;
}

.marketing-mobile-phone {
  font-size: 16px;
  font-weight: 500;
}

.marketing-mobile-phone a {
  color: #333;
  text-decoration: none;
}

/* Logo mobile constraints - prevent overflow */
@media (max-width: 767px) {
  .site-header-brand #logo img,
  .site-header-brand #logo picture img {
    max-height: 26px !important;
    height: auto !important;
    width: auto !important;
    max-width: 100% !important;
  }
}

/* Contact page WhatsApp button */
.contact_us_text a[href*="wa.me"] span {
  display: inline-block;
  background-color: #25D366;
  color: white !important;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease;
}

.contact_us_text a[href*="wa.me"]:hover span {
  background-color: #1ebe57;
}

.contact_us_head + .contact_us_text {
  margin-top: 8px;
}

.contact_us_text + .clear {
  margin-top: 16px;
}

/* Floating WhatsApp button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: white !important;
  margin: 16px;
}

.floating-whatsapp-btn:hover {
  background-color: #1ebe57;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
  color: white !important;
}

.floating-whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Hide floating button on checkout/payment pages and pages with sticky quote bar */
body.checkout-page .floating-whatsapp-btn,
body.payment-page .floating-whatsapp-btn,
body.step3-page .floating-whatsapp-btn,
body.step5-page .floating-whatsapp-btn,
body.homepage .floating-whatsapp-btn {
  display: none;
}

/* Ensure button doesn't cover cookie banner */
.floating-whatsapp-btn {
  margin-bottom: env(safe-area-inset-bottom, 0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 90px;
    right: 16px;
    width: 56px;
    height: 56px;
    margin: 16px;
  }
  
  .floating-whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
}

