.swa-button {
  position: fixed;
  z-index: 99999;
  bottom: 32px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.swa-position-right {
  right: 32px;
}

.swa-position-left {
  left: 32px;
}

.swa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.swa-link:hover,
.swa-link:focus {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.swa-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swa-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.swa-label {
  white-space: nowrap;
}

/* Form email */
.swa-email-form {
  position: absolute;
  bottom: 60px;
  right: 0;
  max-width: 260px;
  width: 260px;
  background-color: #ffffff;
  color: #111827;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
  padding: 14px 14px 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: none;
}

.swa-position-left .swa-email-form {
  left: 0;
  right: auto;
}

.swa-button.swa-open .swa-email-form {
  display: block;
}

.swa-email-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.swa-email-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  margin-bottom: 6px;
}

.swa-email-input:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.24);
}

.swa-email-note {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
}

.swa-email-error {
  min-height: 16px;
  font-size: 11px;
  color: #b91c1c;
  margin: 0 0 6px;
}

.swa-email-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.swa-email-submit,
.swa-email-cancel {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.swa-email-submit {
  background-color: #25d366;
  color: #ffffff;
}

.swa-email-submit:hover {
  opacity: 0.95;
}

.swa-email-cancel {
  background-color: transparent;
  color: #4b5563;
}

/* Sedikit responsif untuk layar sangat kecil */
@media (max-width: 480px) {
  .swa-link {
    padding: 9px 14px;
    font-size: 13px;
  }
  .swa-label {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .swa-email-form {
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
  }
}
