#wa-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
  }
  #wa-widget button {
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    padding: 0;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  }
  #wa-widget button svg {
    width: 100px;
    height: 100px;
  }
  
  #wa-chat-box {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
  }
  
  .wa-header {
    background: #25D366;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .wa-header > div {
    display: flex;
    align-items: center;
  }
  .wa-header img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 8px;
  }
  .wa-header strong {
    font-size: 14px;
  }
  .wa-header > span {
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
  }
  
  .wa-body {
    padding: 15px;
  }
  .wa-body label {
    display: block;
    margin: 10px 0 5px;
    font-size: 13px;
  }
  .wa-body input,
  .wa-body select,
  .wa-body textarea {
    width: 100%;
    padding: 7px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .wa-body textarea {
    resize: vertical;
  }
  .wa-body button {
    margin-top: 5px;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
  }
  .wa-body button:hover {
    background-color: #1ebc57;
  }
  
  .wa-footer {
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
  }
  .dot {
    height: 8px;
    width: 8px;
    background-color: green;
    border-radius: 50%;
    display: inline-block;
  }
  
  #wa-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
  }
  
  #wa-widget button {
    background: none;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  }
  
  #wa-chat-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    border-radius: 10px;
    display: none;
    z-index: 9999;
  }
  
  #wa-chat-box.open {
    display: block;
  }
  
  .wa-error {
    color: red;
    font-size: 0.8em;
    margin-top: 4px;
    display: block;
  }
 
  label.privacy {
    display: -webkit-inline-box;
    flex-direction: row;
    margin: 5px 0 0;
  }

  .checkmark {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .checkmark p {
    margin: 0 0 0 10px;
  }

  .required {
    color: #ff0000;
    margin-left: 3px;
  }
  
  /* Error message styling */
  .wa-error {
    color: #ff0000;
    font-size: 12px;
    display: block;
    margin-top: 2px;
    margin-bottom: 0;
  }
  
  /* Make select field with errors have a red border */
  select:invalid + .wa-error:not(:empty) {
    border-color: #ff0000;
  }

 /* Loading Button Styles */
#wa-chat-box button {
  position: relative;
  transition: all 0.3s ease;
}

#wa-chat-box button.loading {
  background-color: #999;
  color: transparent;
}

#wa-chat-box button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Country Code Phone Input */
.wa-phone-wrap {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.wa-phone-wrap input#wa-number {
  flex: 1;
  border-radius: 0 5px 5px 0;
  border-left: none;
  min-width: 0;
}

.wa-country-select {
  position: relative;
  flex-shrink: 0;
}

.wa-country-selected {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  cursor: pointer;
  background: #f9f9f9;
  height: 100%;
  box-sizing: border-box;
  font-size: 16px;
}

.wa-country-selected:hover {
  background: #f0f0f0;
}

.wa-country-flag {
  font-size: 18px;
  line-height: 1;
}

.wa-country-arrow {
  font-size: 10px;
  color: #666;
}

.wa-country-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  max-height: 250px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  margin-top: 2px;
  overflow: hidden;
}

.wa-country-dropdown.open {
  display: block;
}

.wa-country-search {
  width: 100% !important;
  padding: 8px 10px !important;
  border: none !important;
  border-bottom: 1px solid #eee !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  outline: none;
  box-sizing: border-box;
}

.wa-country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.wa-country-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}

.wa-country-list li:hover {
  background: #f0f6fc;
}

.wa-country-list li .cc-flag {
  font-size: 18px;
  flex-shrink: 0;
}

.wa-country-list li .cc-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-country-list li .cc-dial {
  color: #888;
  font-size: 12px;
  flex-shrink: 0;
}