/* Cashback Pro V36.10.57 — compact linked bank rows and edit-mode close badges.
   Surface colors, animations and transparency still come from the active theme. */
html body #tab-finance .customer-bank-item.bank-linked-card {
  position: relative;
  overflow: visible;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 10px;
  min-height: 91px;
  padding: 14px 15px !important;
}
html body #tab-finance .bank-linked-card .customer-bank-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 6px;
}
html body #tab-finance .bank-linked-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
html body #tab-finance .bank-linked-name strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
html body #tab-finance :is(.bank-linked-logo,.bank-linked-logo-fallback) {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(152, 171, 212, .34);
  background: rgba(255,255,255,.95);
  object-fit: contain;
}
html body #tab-finance .bank-linked-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #24344e;
  font-size: 11px;
  font-weight: 850;
}
html body #tab-finance .bank-linked-logo-fallback[hidden] { display: none !important; }
html body #tab-finance .bank-linked-card .customer-bank-actions {
  flex: 0 0 auto;
  min-width: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 5px 0 auto;
}
html body #tab-finance .bank-linked-card .bank-default-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 92px;
  min-width: 0 !important;
  max-width: 92px;
  min-height: 34px !important;
  padding: 7px 9px !important;
  text-align: center !important;
  line-height: 1.25 !important;
  font-size: 11px !important;
  font-weight: 650;
  border-radius: 10px;
  white-space: normal;
}
/* Overlap the upper-right border rather than reserving a full-width Delete button. */
html body #tab-finance .bank-linked-card .bank-linked-remove {
  position: absolute;
  z-index: 3;
  top: -11px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid rgba(26,32,56,.86);
  border-radius: 50%;
  color: #fff;
  background: #bd395b;
  box-shadow: 0 3px 10px rgba(0,0,0,.23);
  font: 700 21px/1 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
html body #tab-finance .bank-linked-card .bank-linked-remove:hover { background: #d54b6a; }
html body #tab-finance .bank-linked-card .bank-linked-remove:focus-visible {
  outline: 2px solid var(--scene-accent, #98b5ff);
  outline-offset: 3px;
}
@media (max-width: 560px) {
  html body #tab-finance .customer-bank-item.bank-linked-card { padding: 12px 13px !important; gap: 7px; }
  html body #tab-finance .bank-linked-card .customer-bank-actions { margin-right: 2px; }
  html body #tab-finance .bank-linked-card .bank-default-btn { width: 85px; max-width: 85px; min-height: 34px !important; font-size: 10px !important; }
  html body #tab-finance :is(.bank-linked-logo,.bank-linked-logo-fallback) { flex-basis: 30px; width: 30px; height: 30px; }
}
