/* WhatsApp Integration - Flat Design */

/* Floating Button */
.shampoo-wa-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 50%;
}

.shampoo-wa-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.shampoo-wa-floating i,
.shampoo-wa-floating svg {
  font-size: 30px;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Modal Overlay */
.shampoo-wa-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: inherit;
}

.shampoo-wa-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.shampoo-wa-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 28, 31, 0.6);
  backdrop-filter: blur(4px);
}

/* Modal Content */
.shampoo-wa-modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 420px;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Header */
.shampoo-wa-header {
  padding: 24px;
  background: #f8f9fa;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.shampoo-wa-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
}

.shampoo-wa-header p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.5;
}

.shampoo-wa-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #a0aec0;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
  margin-top: -8px;
  margin-right: -8px;
}

.shampoo-wa-close:hover {
  color: #4a5568;
}

/* Agent List */
.shampoo-wa-list {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 0;
}

/* Agent Item */
.shampoo-wa-agent {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f7fafc;
  text-decoration: none;
  color: #2d3748;
  transition: background-color 0.2s;
}

.shampoo-wa-agent:last-child {
  border-bottom: none;
}

.shampoo-wa-agent:hover {
  background-color: #f7fafc;
}

/* Avatar */
.shampoo-wa-avatar {
  width: 48px;
  height: 48px;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: #a0aec0;
  border-radius: 50%;
  flex-shrink: 0;
}

.shampoo-wa-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.shampoo-wa-info span {
  font-size: 0.875rem;
  color: #718096;
}

.shampoo-wa-icon {
  margin-left: auto;
  color: #25D366;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
}

.shampoo-wa-agent:hover .shampoo-wa-icon {
  opacity: 1;
  transform: translateX(0);
}

/* Product Actions Section */
.shampoo-wa-product-action {
  padding: 24px;
  background-color: #f8f9fa;
  border-top: 1px solid #edf2f7;
}

.shampoo-wa-button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Shared Button Styles */
.shampoo-wa-consult-btn,
.shampoo-wa-share-friend-btn,
.shampoo-wa-shortcode-btn {
  width: 100%;
  justify-content: center;
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 14px 20px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  border: none !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Consult Button (Questions) - Flat Primary/Blue style */
.shampoo-wa-consult-btn {
  background-color: #e3f2fd !important;
  color: #0e6681 !important; /* Theme Primary */
}

.shampoo-wa-consult-btn:hover {
  background-color: #bbdefb !important;
  color: #004d63 !important;
  transform: translateY(-1px);
}

/* Share Button (Buy/Friend) - Flat Success/Green style */
.shampoo-wa-share-friend-btn {
  background-color: #25D366 !important;
  color: #fff !important;
  box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.shampoo-wa-share-friend-btn:hover {
  background-color: #22bf5b !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

/* Generic Shortcode Button */
.shampoo-wa-shortcode-btn {
  background-color: #fff !important;
  color: #25D366 !important;
  border: 1px solid #25D366 !important;
}

.shampoo-wa-shortcode-btn:hover {
  background-color: #f0fff4 !important;
}

/* Responsive */
@media (min-width: 768px) {
  .shampoo-wa-button-group {
    flex-direction: row;
  }
  
  .shampoo-wa-consult-btn,
  .shampoo-wa-share-friend-btn {
    flex: 1;
  }
}
/* ==========================================================================
   Contact Selection Form (Radio Buttons)
   ========================================================================== */

/* Contact Selection Form */
.shampoo-wa-contact-form {
  padding: 0;
}

/* Contact Option (Radio Button Style) */
.shampoo-wa-contact-option {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f7fafc;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 0;
}

.shampoo-wa-contact-option:last-of-type {
  border-bottom: none;
}

.shampoo-wa-contact-option:hover {
  background-color: #f7fafc;
}

/* Radio Input */
.shampoo-wa-contact-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 16px;
  accent-color: #25D366;
  cursor: pointer;
}

/* Contact Info Container */
.shampoo-wa-contact-info {
  display: flex;
  align-items: center;
  flex: 1;
}

/* Contact Details */
.shampoo-wa-details {
  flex: 1;
}

.shampoo-wa-details strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #2d3748;
}

.shampoo-wa-details span {
  font-size: 0.875rem;
  color: #718096;
}

/* Send Button */
.shampoo-wa-send-btn {
  width: 100%;
  background-color: #25D366 !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 24px !important;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  border-radius: 0 0 12px 12px;
}

.shampoo-wa-send-btn:hover {
  background-color: #22bf5b !important;
  transform: translateY(-1px);
}

.shampoo-wa-send-btn i {
  font-size: 18px;
}

/* Selected State */
.shampoo-wa-contact-option:has(input:checked) {
  background-color: #f0fff4;
  border-color: #25D366;
}

.shampoo-wa-contact-option:has(input:checked) .shampoo-wa-details strong {
  color: #25D366;
}

/* Fallback for browsers that don't support :has() */
.shampoo-wa-contact-option input[type="radio"]:checked + .shampoo-wa-contact-info .shampoo-wa-details strong {
  color: #25D366;
}