/* Pay via card styling, Payment failed, Payment Success */
body {
  font-family: "Manrope", sans-serif;
  background-color: #f4f5f6;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
body.failed-via-mpesa {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  margin: 0;
}
body.pay-via-momo {
  font-family: "Manrope", sans-serif;
  background-color: #f4f5f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  margin: 0;
}
/* Background Vector Styles */
.vector-bg {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  width: 400px;
  display: none;
}

.vector-left {
  left: 0;
}

.vector-right {
  right: 0;
}

/* Container Styles */
.custom-container {
  max-width: 680px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 70px;
}

/* Logo Styles */
.logo-container {
  z-index: 2;
  width: 100%;
  text-align: center;
  position: absolute;
  top: 21vh;
  left: 50%;
  transform: translateX(-50%);
}

/* Card Styles */
.payment-card-container {
  width: 100%;
}

.payment-failed-card {
  border-radius: 20px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 0;
  padding: 3rem !important;
  text-align: center;
}
.failed-icon {
  width: 80px;
  height: 80px;
  /* animation: spin 1.5s linear infinite; */
  display: block;
  margin: 0 auto 1.5rem;
}
.success-icon {
  width: 80px;
  height: 80px;
  /* animation: spin 1.5s linear infinite; */
  display: block;
  margin: 0 auto 1.5rem;
} /* Loader Animation */
.loader-icon {
  width: 80px;
  height: 80px;
  animation: spin 1.5s linear infinite;
  display: block;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Typography */
.fw-bold {
  font-weight: 700 !important;
}

.fs-2 {
  font-size: calc(1.325rem + 0.9vw) !important;
}

.text-muted {
  color: #6c757d !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* Footer Styles */
.footer-position {
  margin-top: 40px;
}

/* Utility Classes */
.d-block {
  display: block !important;
}

.d-inline-block {
  display: inline-block !important;
}

.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* Failed Via Mpesa styling, Success via Mpesa styling */
/* Payment container */
.payment-container {
  width: 100%;
  max-width: 680px;
  padding: 0;
  margin: auto;
}

.payment-card {
  background-color: #fdfdfb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}
.card-header {
  background-color: #fdfdfb;
  border-bottom: 1px solid #e0e1e2;
  padding: 16px;
}
.card-body {
  padding: 1.25rem;
}

.error-message {
  background-color: #f5e8e8;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.success-message {
  background-color: #cdfee1;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.error-icon {
  height: 40px;
  width: 40px;
}
.error-title {
  color: #d32f2f;
  font-weight: 700;
  font-size: 18px;
}
.error-text {
  color: #d32f2f;
  font-size: 15px;
}
.mpesa-icon-success {
  height: 40px;
  width: 40px;
}
.success-title {
  color: #29845a;
  font-weight: 700;
  font-size: 18px;
}
.success-text {
  color: #29845a;
  font-size: 15px;
}

.order-details {
  background-color: #fafaf7;
  border: 1px solid #e0e1e2;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.detail-label {
  color: #6c757d;
  font-size: 0.875rem;
}
.detail-value {
  font-weight: 600;
}

.payment-button {
  width: auto;
  min-width: 200px;
  padding: 0.5rem 2rem;
  margin-top: 15px;
  background-color: #175cb7 !important;
}

.failed-logo-container {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}
.success-logo-container {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-position {
  margin: 30px 0;
  text-align: center;
}

/* Pay Via Airtel Money, Pay Via momo  */
.top-logo-container {
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.payment-container {
  width: 100%;
  max-width: 680px;
  padding: 0 15px;
}
.payment-card {
  background-color: #fdfdfb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}
.card-header {
  background-color: #fdfdfb;
  border-bottom: 1px solid #e0e1e2;
  padding: 16px;
}
.card-body {
  padding: 1.5rem;
}

/* Order Details */
.order-details {
  background-color: #fafaf7;
  border: 1px solid #e0e1e2;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}
.order-details h3 {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.order-details p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.steps {
  counter-reset: step;
  padding-left: 0;
  margin-bottom: 0;
}
.steps li {
  list-style: none;
  position: relative;
  padding-left: 40px;
  margin-bottom: 1rem;
  font-size: 15px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #fdfdfb;
  border: 1px solid #e0e1e2;
  color: #000;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong {
  font-weight: 600;
}

.footer-position {
  margin-top: 40px;
  text-align: center;
}


/* Pay Via Momo css  */

.momo-payment-page {
  font-family: "Manrope", sans-serif;
  background-color: #f4f5f6;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.vector-bg {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  width: 400px;
  display: none;
}

.vector-left {
  left: 0;
}

.vector-right {
  right: 0;
}

.momo-page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 15px;
}

.momo-header-logo {
  margin-bottom: 18px;
  text-align: center;
}

.momo-payment-wrapper {
  width: 100%;
  max-width: 680px;
  padding: 0 15px;
}

.momo-payment-card {
  background-color: #fdfdfb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.momo-card-header {
  background-color: #fdfdfb;
  border-bottom: 1px solid #e0e1e2;
  padding: 16px;
}
.momo-card-body {
  padding: 1.5rem;
}

/* Order Details */
.momo-order-summary {
  background-color: #fafaf7;
  border: 1px solid #e0e1e2;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}
.momo-section-title {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.momo-order-info {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.momo-payment-steps {
  counter-reset: step;
  padding-left: 0;
  margin-bottom: 0;
}
.momo-step-item {
  list-style: none;
  position: relative;
  padding-left: 40px;
  margin-bottom: 1rem;
  font-size: 15px;
}
.momo-step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #fdfdfb;
  border: 1px solid #e0e1e2;
  color: #000;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.momo-step-highlight {
  font-weight: 600;
}

.momo-footer {
  margin-top: 20px;
  text-align: center;
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
  .momo-card-body {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .momo-card-body {
    padding: 3rem;
  }
}

@media (min-width: 992px) {
  .momo-bg-decoration {
    display: block;
  }
}

@media (max-width: 400px) {
  .momo-step-item {
    font-size: 14px;
    padding-left: 36px;
  }
  .momo-step-item::before {
    width: 24px;
    height: 24px;
  }
}

/* Responsive adjustments Failed Via Mpesa aND sUCCESS*/
@media (max-width: 767.98px) {
  .detail-table tr {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .detail-table td {
    width: 50% !important;
    padding: 6px 0;
    box-sizing: border-box;
  }
  .detail-table td:nth-child(3) {
    width: 100% !important;
  }
  .card-body {
    padding: 1rem !important;
  }
}

@media (min-width: 768px) {
  .card-body {
    padding: 2rem;
  }
  .detail-table tr {
    display: table-row;
  }
  .detail-table td {
    width: auto;
    padding: 8px 0;
  }
}

@media (min-width: 992px) {
  .vector-bg {
    display: block;
  }
  .card-body {
    padding: 3rem;
  }
}

/* Responsive Styles for card styling, Payment failed and Payment Success */
@media (min-width: 992px) {
  .vector-bg {
    display: block;
  }
}

@media (max-width: 576px) {
  .payment-failed-card {
    padding: 1.5rem 1.25rem !important;
  }

  .loader-icon {
    width: 60px;
    height: 60px;
  }

  .logo-container {
    top: 26vh;
  }
}



/* Responsive Breakpoints pAY vIA Airtel and Momo */
@media (min-width: 576px) {
  .card-body {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .card-body {
    padding: 3rem;
  }
}

@media (min-width: 992px) {
  .vector-bg {
    display: block;
  }
}

@media (max-width: 400px) {
  .steps li {
    font-size: 14px;
    padding-left: 36px;
  }
  .steps li::before {
    width: 24px;
    height: 24px;
  }
}
