/*\frontend\css\floynex.css*/
.floynex-container {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 16px !important; 
  background: #f4f7fa;
  height: auto !important;
  min-height: auto !important;
  box-sizing: border-box;
  overflow-y: auto !important;
}

/* Decorative corner ribbons */
.floynex-container::before,
.floynex-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Upper-left sweeping ribbons */
.floynex-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 */
.floynex-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 (Slightly taller for better balance) */
.floynex-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: 12px 14px; /* Increased padding */
  box-shadow: 0 3px 10px rgba(65, 184, 92, 0.06);
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.floynex-hero-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.floynex-hero-icon-circle {
  width: 44px;
  height: 44px;
  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: 36px; 
  height: 36px; 
  object-fit: contain;
}

.floynex-hero-text {
  text-align: left !important;
}
.floynex-hero-text h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #113821;
  letter-spacing: -0.3px;
  text-align: left !important;
}

.floynex-subtext {
  margin: 2px 0 2px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #277c3d;
  text-align: left !important;
}

.floynex-desc {
  margin: 0;
  font-size: 11px;
  color: #44554a;
  line-height: 1.3;
  text-align: left !important;
}

.floynex-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));
}

/* P2P Services Header */
.floynex-services-header {
  margin: 10px 0 8px 0; /* Slightly more top margin */
  text-align: left;
}

.floynex-services-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.floynex-services-header p {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  color: #6b7280;
}

/* Floynex Action Buttons Layout (P2P Cards height increased) */
.floynex-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Slightly wider gap */
  margin-top: 4px;
  width: 100%;
}

.floynex-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(65, 184, 92, 0.2);
  border-radius: 12px;
  padding: 12px 14px; /* Increased vertical padding to make them taller */
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.floynex-action-card:hover {
  border-color: rgba(47, 182, 83, 0.5);
  background: #fafdfb;
  transform: translateY(-1px);
}

.action-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Green Circle Icon */
.action-icon-circle {
  width: 44px;
  height: 44px;
  background: #2fb653;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(47, 182, 83, 0.25);
}

.action-icon-circle img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Text Styling */
.action-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.action-text-group h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #113821;
}

.action-text-group span {
  margin-top: 2px;
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
}

/* Right Arrow */
.action-arrow {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.floynex-action-card:hover .action-arrow {
  color: #2fb653;
  transform: translateX(2px);
}

/* Extra spacing before the next section */
.bank-services-top-space {
  margin-top: 16px !important;
}

/* Center single-line card text vertically */
.action-text-group.single-line-label {
  justify-content: center;
}

/* Horizontal Row Grid for 3 Bank Buttons */
.bank-row-grid {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

/* Individual Horizontal Card (Balanced height and padding) */
.bank-pill-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(65, 184, 92, 0.2);
  border-radius: 12px;
  padding: 18px 6px 22px 6px; /* Balanced padding */
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.bank-pill-card:hover {
  border-color: rgba(47, 182, 83, 0.5);
  background: #fafdfb;
  transform: translateY(-1px);
}

/* Direct Icon Image (No Green Circle Wrapper) */
.bank-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Bold Black Text Underneath */
.bank-pill-card h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #113821;
  line-height: 1.2;
}

/* Green Arrow at the far bottom right */
.card-arrow-bottom {
  position: absolute;
  bottom: 8px;
  right: 10px;
  color: #2fb653;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.bank-pill-card:hover .card-arrow-bottom {
  transform: translateX(2px);
}