/* WhatsApp Widget - SPD Lojistik */
.wa-fab {
  position: fixed;
  bottom: 155px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 10010;
  transition: transform .15s ease, box-shadow .2s ease;
}

.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.wa-fab i { font-size: 26px; line-height: 1; }

/* Backdrop */
.wa-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 10020;
}
.wa-backdrop.show { opacity: 1; visibility: visible; }

/* Modal */
.wa-modal {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  padding: 16px;
  z-index: 10030;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
}
.wa-modal.show { transform: translateY(0); opacity: 1; visibility: visible; }

.wa-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wa-modal-title { font-size: 16px; font-weight: 600; color: #0f1f36; }
.wa-modal-close { background: transparent; border: none; color: #6b7280; cursor: pointer; padding: 6px; border-radius: 6px; }
.wa-modal-close:hover { background: #f3f4f6; color: #374151; }

.wa-desc { font-size: 13px; color: #6b7280; margin-bottom: 10px; }

.wa-template-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; padding-right: 2px; }
.wa-template { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wa-template:hover { background: #f9fafb; border-color: #d1d5db; }
.wa-template input { margin-top: 3px; }
.wa-template .wa-template-text { font-size: 13px; color: #374151; line-height: 1.35; }

.wa-actions { display: flex; gap: 10px; margin-top: 12px; }
.wa-btn { flex: 1; min-height: 40px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; color: #374151; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.wa-btn:hover { background: #f3f4f6; color: #111827; border-color: #9ca3af; }
.wa-btn-primary { background: #25D366; color: #fff; border-color: #25D366; }
.wa-btn-primary:hover { background: #20b457; border-color: #20b457; }

.wa-footnote { margin-top: 8px; font-size: 12px; color: #6b7280; }

@media (max-width: 768px) {
  .wa-fab { bottom: 110px; right: 12px; }
  .wa-modal { bottom: 120px; right: 16px; left: 16px; width: auto; }
}
