/*frontend\css\mpesaMain.css*/
.mpesa-container {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 10px !important; /* Reduced bottom padding */
  background: #f4f7fa;
  height: auto !important;
  min-height: auto !important; /* Removes the forced empty screen space */
  box-sizing: border-box;
  overflow-y: auto !important;
}
/* Decorative corner ribbons */
.mpesa-container::before,
.mpesa-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Upper-left sweeping ribbons */
.mpesa-container::before {
  background:
    linear-gradient(
      132deg,
      transparent 0%,
      transparent 9%,
      rgba(65, 184, 92, 0.09) 9.2%,
      rgba(65, 184, 92, 0.09) 17%,
      transparent 17.2%,
      transparent 21%,
      rgba(65, 184, 92, 0.055) 21.2%,
      rgba(65, 184, 92, 0.055) 25%,
      transparent 25.2%
    );
}

/* Lower-right sweeping ribbons */
.mpesa-container::after {
  background:
    linear-gradient(
      312deg,
      transparent 0%,
      transparent 10%,
      rgba(65, 184, 92, 0.09) 10.2%,
      rgba(65, 184, 92, 0.09) 18%,
      transparent 18.2%,
      transparent 22%,
      rgba(65, 184, 92, 0.055) 22.2%,
      rgba(65, 184, 92, 0.055) 26%,
      transparent 26.2%
    );
}

/* M-PESA Hero Banner Styles (Compact) */
.mpesa-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f2fcf5 0%, #e3f7ea 100%);
  border: 1px solid rgba(65, 184, 92, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 3px 10px rgba(65, 184, 92, 0.06);
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.mpesa-hero-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mpesa-hero-icon-circle {
  width: 42px;
  height: 42px;
  background: #2fb653;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(47, 182, 83, 0.2);
}

.left-badge-img {
  width: 30px; 
  height: 30px; 
  object-fit: contain;
}

/* Forced left alignment override for the text block */
.mpesa-hero-text {
  text-align: left !important;
}
.mpesa-hero-text h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #113821;
  letter-spacing: -0.3px;
  text-align: left !important;
}

.mpesa-subtext {
  margin: 1px 0 2px 0;
  font-size: 11px;
  font-weight: 600;
  color: #277c3d;
  text-align: left !important;
}

.mpesa-desc {
  margin: 0;
  font-size: 10.5px;
  color: #44554a;
  line-height: 1.3;
  text-align: left !important;
}

.mpesa-hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.hero-phone-art {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

/* M-PESA Services Header (Compact) */
.mpesa-services-header {
  margin: 12px 0 8px 0;
  text-align: left;
}

.mpesa-services-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.mpesa-services-header p {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  color: #6b7280;
}

/* 3-Column Horizontal Grid */
.mpesa-services-grid {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 12px;
  box-sizing: border-box;
}

/* Individual Service Card (Compact & Left-aligned) */
.mpesa-service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 10px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  flex: 1;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mpesa-service-card:active {
  transform: scale(0.98);
}

/* Green circle and icon */
.service-icon-circle {
  width: 42px;
  height: 42px;
  background: #2fb653;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 8px;
  box-shadow: 0 3px 8px rgba(47, 182, 83, 0.25);
  align-self: flex-start;
}

.service-info {
  width: 100%;
  text-align: left;
}

.service-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.service-title-row h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Show the chevron arrow ( > ) on the right side of the title row */
.service-title-row .fa-chevron-right {
  display: inline-block !important;
  font-size: 9px;
  color: #6b7280;
  margin-left: 3px;
  flex-shrink: 0;
}

.service-info p {
  margin: 3px 0 0 0;
  font-size: 10px;
  color: #6b7280;
  line-height: 1.15;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* WHITE CONTAINER FOR QUICK PAYBILL */
.quick-paybill-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 12px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.quick-card {
  align-items: center !important;
  text-align: center !important;
  background: #fafafa !important;
  border: 1px solid #f0f0f0 !important;
  padding: 12px 6px !important;
}

.quick-icon {
  background: transparent !important;
  box-shadow: none !important;
  width: 38px !important;
  height: 38px !important;
  margin-bottom: 6px !important;
  align-self: center !important;
}

.quick-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================
   CUSTOM FIX: Quick Paybills Text & Arrow
   ========================================= */
.quick-card .service-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 100% !important;
}

.quick-card .service-title-row h4 {
  font-size: 8px !important;
  text-align: center !important;
  margin: 0 auto !important;
}

/* Keeps the chevron arrow slightly bigger and pinned to the far right */
.quick-card .service-title-row .fa-chevron-right {
  position: absolute !important;
  right: 0 !important;
  font-size: 11px !important;
}