html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ═══════════════════════════════════════════════════════════════════════
   Payment Result Display Styling
   Centered, visually prominent transaction outcome display
   ═══════════════════════════════════════════════════════════════════════ */

#paymentResult {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

#paymentResult table.result-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

#paymentResult table.result-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  border: none;
}

#paymentResult table.result-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
}

#paymentResult table.result-table tr:last-child td {
  border-bottom: none;
}

#paymentResult table.result-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

#paymentResult table.result-table tr td:first-child {
  font-weight: 600;
  color: #495057;
  width: 40%;
}

#paymentResult table.result-table tr td:last-child {
  color: #212529;
  word-break: break-word;
}

/* Success styling */
#paymentResult table.result-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Light overlay backdrop when result is shown */
body::after {
  content: '';
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9998;
}

body.payment-result-active::after {
  display: block;
}

#paymentResult.payment-error table.result-table th {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

#paymentResult.payment-success table.result-table th {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

#paymentResult.payment-cancelled table.result-table th {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}