/* BridgeFort customer interface: shared page banners and rectangular corners.
 * Presentation only. Keep this file after customer.css in the banking layout.
 */
body.bf-customer {
  --bf-box-radius: 5px;
}

/* Match the approved International Transfer header on every customer page. */
.bf-customer .bf-page-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  border-radius: var(--bf-box-radius);
  background: var(--bf-navigation, #19316b);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
}
.bf-customer .bf-page-banner__content {
  flex: 1 1 220px;
  min-width: 0;
}
.bf-customer .bf-page-banner__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.bf-customer .bf-page-banner__icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: #fff;
}
.bf-customer .bf-page-banner__description {
  margin: 4px 0 0;
  color: rgb(255 255 255 / 75%);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bf-customer .bf-page-banner__meta {
  /* Keep each page's hidden/block/flex breakpoint utilities authoritative. */
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.bf-customer .bf-page-banner__badge,
.bf-customer .bf-page-banner__action {
  max-width: 100%;
  border-radius: var(--bf-box-radius);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bf-customer .bf-page-banner__badge > svg,
.bf-customer .bf-page-banner__action > svg {
  flex: none;
}
.bf-customer .bf-page-banner :focus-visible {
  outline-color: #ffbd28;
}

/* Amount fields must shrink within their currency-prefix row on small screens. */
.bf-customer input.flex-1 {
  min-width: 0;
}

/* Normalize the existing rectangular utility classes without rounding every
 * element on the page. Full circles remain available for avatars, step
 * indicators, status dots and icon-only circular controls.
 */
.bf-customer :is(
  .rounded, .rounded-sm, .rounded-md, .rounded-lg, .rounded-xl,
  .rounded-2xl, .rounded-3xl, [class*="rounded-["],
  .panel, .account-card, .quick-action, .see-more, .status-pill,
  .bf-account-status, .bf-balance-toggle, .bf-box-radius,
  .bf-live-chat__panel, .bf-live-chat__frame, .bf-live-chat__start,
  .swal-modal, .swal-button, .swal-content__input, .swal-content__textarea
) {
  border-radius: var(--bf-box-radius) !important;
}
/* Text badges and filter buttons were previously pills; they are boxes too.
 * Horizontal padding distinguishes these from the fixed-size full circles.
 */
.bf-customer .rounded-full[class*="px-"] {
  border-radius: var(--bf-box-radius) !important;
}
.bf-customer .bf-live-chat > summary {
  border-radius: var(--bf-box-radius) !important;
}
.bf-customer .rounded-t,
.bf-customer .rounded-t-lg,
.bf-customer .rounded-t-xl,
.bf-customer .rounded-t-2xl {
  border-top-left-radius: var(--bf-box-radius) !important;
  border-top-right-radius: var(--bf-box-radius) !important;
}
.bf-customer .rounded-b,
.bf-customer .rounded-b-lg,
.bf-customer .rounded-b-xl,
.bf-customer .rounded-b-2xl {
  border-bottom-left-radius: var(--bf-box-radius) !important;
  border-bottom-right-radius: var(--bf-box-radius) !important;
}

/* A longer navigation label can wrap without shrinking its icon. */
.bf-customer .bf-customer-sidebar nav a > svg {
  flex: none;
}
.bf-customer .bf-customer-sidebar nav a > span {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 639px) {
  .bf-customer .bf-page-banner {
    padding: 20px;
  }
  .bf-customer .bf-page-banner__title {
    font-size: 16px;
  }
  .bf-customer .bf-page-banner__icon {
    width: 16px;
    height: 16px;
  }
}
