/* Buttons */
.quick-actions-pay,
.quick-actions-amount,
.quick-actions-case,
.quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex: 1;
}

.action-btn {
  border: 1px solid #4a90e2;
  background: transparent;
  color: #4a90e2;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.action-btn:hover {
  background: #eaf3ff;
}

.part-payment-summary-card {
  background: #fff;
  border-radius: 12px;
  /* padding: 12px; */
  /* margin-top: 10px; */
}

.summary-list {
  padding-left: 18px;
  margin: 10px 0;
}

.status-unpaid {
  color: red;
  font-weight: 500;
}

.action-btn {
  border: 1px solid #4a90e2;
  background: transparent;
  color: #4a90e2;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.case-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  width: 300px;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  margin-bottom: 10px;
}

.case-header .left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-header .right {
  max-width: 100px;
  text-align: right;
  line-height: 1.2;
  color: #929090;
}

.case-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.case-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-list {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.case-footer {
  margin-top: 12px;
}

.total {
  display: flex;
  justify-content: space-between;
  font-weight: 400;
}

.payment-case-confirm-btn {
  width: 100%;
  padding: 8px;
  border: 1px solid #4a90e2;
  background: transparent;
  color: #4a90e2;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-case-confirm-btn:disabled {
  opacity: 0.5;
  /* better visibility */
  cursor: not-allowed;
  pointer-events: none;
  /* prevents click */
}

/* Overlay */
.payment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal */
.payment-modal {
  background: #fff;
  width: 300px;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

/* Icon */
.success-icon {
  width: 60px;
  height: 60px;
  background: #4CAF50;
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

/* Title */
.title {
  font-size: 15px;
  /* font-weight: 600; */
  margin-bottom: 6px;
}

/* Description */
.desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

/* Button */
.done-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

/* Animation */
@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

body.modal-open {
  overflow: hidden;
}

/* Overlay only inside chat */
#chat-popup .payment-overlay {
  position: absolute;
  /* instead of fixed */
  inset: 0;
  background: rgba(0, 0, 0, 0.4);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10;
}

#chat-popup .payment-overlay {
  backdrop-filter: blur(2px);
}

.chat-message {
  display: flex;
  margin: 10px;
}

.success-message .message-content {
  background: #f5f5f5;
  padding: 14px 16px;
  border-radius: 14px;
  max-width: 85%;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* Success text */
.success-text {
  margin-bottom: 10px;
}

/* Bullet list */
.payment-details {
  margin: 10px 0;
  padding-left: 18px;
}

.payment-details li {
  margin-bottom: 6px;
}

/* Bold labels */
.payment-details strong {
  font-weight: 600;
}

/* Follow-up text */
.follow-up {
  margin-top: 10px;
}

.payment-card {
  background: #f2f3f5;
  border-radius: 14px;
  padding: 14px;
  width: 100%;
  max-width: 300px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  align-self: flex-end;
}

/* Header */
.card-header {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-header .icon {
  margin-right: 8px;
}

/* Rows */
.card-body .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  color: #444;
}

/* Divider */
.divider {
  height: 1px;
  background: #ddd;
  margin: 10px 0;
}

/* Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
}

.total {
  color: #000;
}

/* NEW INPUT FOR GETTING AMOUNT FROM USER*/
.payment-ui {
  background: #fff;
  width: 320px;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
}

/* Title */
.payment-ui h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #222;
}

/* Label */
.payment-ui label {
  font-size: 13px;
  color: #666;
}

/* Input group */
.payment-ui .input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
  background: #fafafa;
}

.payment-ui .input-group span {
  font-size: 16px;
  margin-right: 6px;
  color: #333;
}

.payment-ui .input-group input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  background: transparent;
}

/* Quick buttons */
.payment-ui .quick-buttons {
  margin-top: 12px;
}

.payment-ui .quick {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-ui .quick:hover {
  background: #f2f2f2;
}

/* Selected button */
.payment-ui .quick.selected {
  background: #4a90e2;
  color: #fff;
  border-color: #4a90e2;
}

/* Actions */
.payment-ui .actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

/* Cancel button */
.payment-ui .cancel {
  border: 1px solid #4a90e2;
  background: #fff;
  color: #4a90e2;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

/* Confirm button (disabled) */
.payment-ui .payment-confirmation-btn {
  background: #ccc;
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: not-allowed;
}

/* Confirm button (active) */
.payment-ui .payment-confirmation-btn.active {
  background: #4a90e2;
  cursor: pointer;
}

/* Wrapper to center inside chat */
.chat-center-loader {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

/* Container */
.redirect-loader {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  color: #666;
  font-size: 14px;
}

/* Dots wrapper */
.redirect-loader .dots {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

/* Each dot */
.redirect-loader .dots span {
  width: 6px;
  height: 6px;
  margin-right: 4px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.4s infinite both;
}

/* Delay animation */
.redirect-loader .dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.redirect-loader .dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Animation */
@keyframes blink {

  0%,
  80%,
  100% {
    opacity: 0.2;
  }

  40% {
    opacity: 1;
  }
}

.pay-fullAmount-btn {
  width: auto;
  /* let it fit content */
  max-width: 800px;
  /* optional: limit max width */
}


.pay-fullAmount-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #2f6fdf;
  background-color: #f4f8ff;
  color: #2f6fdf;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease-in-out;
}

.pay-fullAmount-btn:hover {
  background-color: #2f6fdf;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(47, 111, 223, 0.3);
}

.pay-fullAmount-btn:active {
  transform: scale(0.98);
}

/* Fail Icon */
.fail-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #ffe5e5;
  color: #d93025;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}