/* WhatsApp Widget Styles */
.wc_whatsapp_app {
  position: fixed;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
}

.wc_whatsapp_app.left {
  left: 15px;
}

.wc_whatsapp_app.right {
  right: 15px;
}

.wc_whatsapp {
  width: 60px;
  height: 60px;
  display: block;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  padding: 5px;
}

.wc_whatsapp::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.wc_whatsapp:hover::after,
.wc_whatsapp:focus::after {
  width: 100px;
  height: 100px;
}

.wc_whatsapp:hover,
.wc_whatsapp:focus {
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  transform: scale(1.1);
  outline: none;
}

.wc_whatsapp::before {
  content: "";
  display: block;
  background: url("data:image/svg+xml;charset=UTF-8,%3csvg aria-hidden='true' focusable='false' data-prefix='icon' data-icon='whatsapp' class='svg-inline' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3e%3cpath fill='%23fff' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'%3e%3c/path%3e%3c/svg%3e") top center no-repeat;
  height: 35px;
  margin-top: 6px;
}

.wc_whatsapp p {
  font-family: 'Arial', sans-serif;
}

.wc_whatsapp_secondary,
.wc_whatsapp_primary {
  display: none;
}

.wc_whatsapp_secondary {
  max-width: 300px;
}

.wc_whatsapp_secondary p {
  margin-left: 15px;
  border: 1px solid #e2e2e2;
  padding: 5px 10px;
  border-radius: 5px;
  position: relative;
  color: #000;
  font-size: 14px;
  background: #fff;
}

.wc_whatsapp_secondary p::before {
  top: 20px;
  left: -9px;
  content: '';
  position: absolute;
  background: white;
  border-bottom: 1px solid #e2e2e2;
  border-right: 1px solid #e2e2e2;
  left: -5px;
  top: 50%;
  margin-top: -4px;
  width: 8px;
  height: 8px;
  z-index: 1;
  transform: rotate(135deg);
}

.wc_whatsapp_primary {
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 20px;
  bottom: 80px;
  align-items: center;
  max-width: 350px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: absolute;
  width: 350px;
  backdrop-filter: blur(10px);
  animation: slideInUp 0.4s ease-out;
}

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

.wc_whatsapp_primary img {
  width: 50px;
  border-radius: 5px;
  margin-left: 10px;
}

.wc_whatsapp_primary p {
  margin: 20px;
  border: 1px solid #e2e2e2;
  padding: 10px;
  border-radius: 5px;
  position: relative;
  color: #000;
  font-size: 14px;
}

.wc_whatsapp_primary p::before {
  top: 20px;
  left: -9px;
  content: '';
  position: absolute;
  background: white;
  border-bottom: 1px solid #e2e2e2;
  border-right: 1px solid #e2e2e2;
  left: -5px;
  top: 50%;
  margin-top: -4px;
  width: 8px;
  height: 8px;
  z-index: 1;
  transform: rotate(135deg);
}

.wc_whatsapp_primary .close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 18px;
  color: #000;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease, color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.wc_whatsapp_primary .close:hover,
.wc_whatsapp_primary .close:focus {
  color: #f00;
  opacity: 1;
  outline: none;
}

/* Chat Button Styles */
.chat-button {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.chat-button:hover {
  transform: scale(1.15);
  animation: none;
}

.chat-button img {
  display: block;
  border-radius: 50%;
  transition: box-shadow 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wc_whatsapp_app {
    bottom: 20px;
  }
  
  .wc_whatsapp_app.left {
    left: 10px;
  }
  
  .wc_whatsapp_primary {
    max-width: 280px;
    width: 280px;
    bottom: 60px;
  }
  
  .chat-button {
    bottom: 20px;
    right: 20px;
  }
  
  .chat-button img {
    width: 50px;
    height: 50px;
  }
}
