/* Fiskers Bank — page-level components. */

/* ---------- Account summary ---------- */

.summary-table td { vertical-align: middle; }
.summary-table .group-row td {
  padding: 7px 14px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}
.summary-table .cell-main { font-size: 15px; }
.summary-table tfoot td {
  padding: 11px 14px;
  border-top: 2px solid var(--line);
  background: var(--panel-2);
  font-weight: 700;
}

.cell-main { display: block; color: var(--ink); }
a.cell-main { color: var(--link); }

.message-list li { border-top: 1px solid var(--line); }
.message-list li:first-child { border-top: 0; }
.message-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 18px;
  border: 0;
  background: none;
  text-align: left;
}
.message-item:hover { background: #f5f9fb; }
.message-item.unread .mi-title { font-weight: 700; }
.mi-title { font-size: 14px; color: var(--link); }
.mi-date { font-size: 12px; color: var(--muted); }

.promo-box { background: #fff8f0; border-color: #f1d5b8; }
.promo-box h3 { color: var(--accent-dark); }

/* ---------- Account activity ---------- */

.account-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.account-picker label { font-weight: 600; color: var(--ink); }
.account-picker .select { max-width: 360px; }

.balance-head {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  padding: 18px;
  flex-wrap: wrap;
}
.balance-block { display: grid; gap: 2px; }
.balance-block .lbl { font-size: 13px; color: var(--muted); }
.balance-block .val { font-size: 26px; color: var(--ink); }
.balance-actions { margin-left: auto; display: flex; gap: 8px; }

.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  flex-wrap: wrap;
}
.filter-bar .input { max-width: 260px; min-height: 34px; }
.filter-bar .select { max-width: 360px; min-height: 34px; width: auto; }

.txn-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.txn-detail-party { font-size: 16px; font-weight: 600; color: var(--ink); }
.txn-detail-amt { font-size: 22px; color: var(--ink); }
.txn-detail-amt.pos { color: var(--green); }

/* ---------- Transfer & pay ---------- */

.payment-form { display: grid; gap: 16px; }
.form-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.form-row > label, .form-row > .label {
  padding-top: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.form-row .select, .form-row .input { max-width: 440px; }
.form-row .helper { display: block; margin-top: 4px; }
.optional { font-weight: 400; color: var(--muted); }
.type-list { display: grid; gap: 10px; padding-top: 8px; }
.amount-field { max-width: 200px; }
.amount-field .input { max-width: 200px; }
.date-field { max-width: 200px !important; }
.transfer-total { font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.transfer-total[hidden] { display: none; }

.scheduled-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.scheduled-list li:first-child { border-top: 0; }
.sl-name { color: var(--ink); font-weight: 600; }
.sl-sub { font-size: 12px; color: var(--muted); }
.sl-right { text-align: right; white-space: nowrap; }
.sl-right .link { font-size: 12px; }

.status-steps { display: grid; gap: 0; }
.status-steps li {
  position: relative;
  display: grid;
  padding: 0 0 16px 26px;
}
.status-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: #fff;
}
.status-steps li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.status-steps li:last-child { padding-bottom: 0; }
.status-steps li:last-child::after { display: none; }
.status-steps li.done::before { border-color: var(--green); background: var(--green); }
.status-steps li.active::before { border-color: var(--amber); background: var(--amber-2); }
.step-label { font-size: 14px; color: var(--ink); font-weight: 600; }
.step-time, .step-detail { font-size: 13px; color: var(--muted); }

/* ---------- Cards ---------- */

.card-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.card-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  background: none;
  color: var(--link);
  font-size: 14px;
}
.card-tab:hover { text-decoration: underline; }
.card-tab.active {
  border-color: var(--line-2);
  border-bottom-color: var(--bg);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.card-summary { display: flex; gap: 24px; padding: 18px; align-items: flex-start; flex-wrap: wrap; }
.card-facts { flex: 1; min-width: 240px; }
.card-facts h2 { font-size: 17px; margin-bottom: 6px; }

.bank-card {
  position: relative;
  width: 240px;
  aspect-ratio: 1.586;
  flex: none;
  padding: 14px 16px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1a6f83, #0a4352);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--sans);
}
.bank-card.gold { background: linear-gradient(135deg, #3a3f44, #1d2124); }
.bank-card.frozen { filter: grayscale(0.9); opacity: 0.7; }
.bc-top { display: flex; justify-content: space-between; align-items: center; }
.bc-brand { font-weight: 700; font-size: 14px; }
.bc-type { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.8; }
.bc-chip {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e5c77d, #b8913f);
}
.bc-number { font-family: var(--mono); font-size: 15px; letter-spacing: 0.06em; }
.bc-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.bc-holder { font-size: 11px; letter-spacing: 0.04em; }
.bc-network { font-size: 18px; font-weight: 800; font-style: italic; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; cursor: pointer; }
.switch {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #b9c1c5;
  position: relative;
  cursor: pointer;
  flex: none;
  margin: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.switch:checked { background: var(--red); }
.switch:checked::after { left: 21px; }

/* ---------- Statements ---------- */

.statement-sheet {
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: #222;
}
.ss-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ss-brand { display: flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 700; color: var(--brand); }
.ss-brand img { width: 24px; height: 24px; }
.ss-addr { margin-top: 6px; font-size: 12px; line-height: 1.5; }
.ss-meta { font-size: 12px; line-height: 1.6; text-align: right; }
.ss-summary { margin-top: 18px; border: 1px solid #ccc; }
.ss-summary td { padding: 6px 10px; border-bottom: 1px solid #e3e3e3; font-size: 13px; }
.ss-summary .num, .ss-table .num { text-align: right; white-space: nowrap; }
.ss-summary .ss-total td { font-weight: 700; border-bottom: 0; background: #f4f4f4; }
.ss-section { margin: 18px 0 6px; font-size: 14px; }
.ss-table th {
  padding: 6px 8px;
  border-bottom: 2px solid #999;
  font-size: 12px;
  text-align: left;
}
.ss-table td { padding: 6px 8px; border-bottom: 1px solid #e3e3e3; font-size: 12px; vertical-align: top; }
.ss-fine { margin-top: 16px; font-size: 11px; color: #666; }

.rate-table td, .rate-table th { padding-left: 18px; padding-right: 18px; }

/* ---------- Customer service ---------- */

.inbox tr.unread td { font-weight: 700; }

.chat-window { display: flex; flex-direction: column; }
.chat-body {
  height: 260px;
  overflow-y: auto;
  padding: 14px 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: var(--panel-2);
}
.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
}
.chat-msg.user { justify-self: end; background: var(--brand-light); border-color: #c4dde2; }
.chat-msg.typing { color: var(--muted); font-style: italic; }
.cm-who { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--brand); }
.cm-time { font-weight: 400; color: var(--muted-2); }
.chat-input { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }

.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  padding: 12px 18px;
  color: var(--link);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 16px; color: var(--muted); font-weight: 700; }
.faq details[open] summary::before { content: "−"; }
.faq details p { padding: 0 18px 14px 34px; font-size: 14px; color: var(--text); }

.bullets { margin-top: 8px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.bullets li { padding-left: 14px; position: relative; }
.bullets li::before { content: "•"; position: absolute; left: 2px; color: var(--accent); }

.kv-row small { display: block; font-size: 12px; color: var(--muted-2); }

@media (max-width: 760px) {
  .form-row { grid-template-columns: 1fr; gap: 4px; }
  .form-row > label, .form-row > .label { padding-top: 0; }
  .balance-head { gap: 18px; }
  .balance-actions { margin-left: 0; }
  .account-picker { flex-direction: column; align-items: stretch; }
  .bank-card { width: 100%; max-width: 280px; }
}

.form-row[hidden] { display: none; }
.side-box .kv-row .k { flex: 1; }
.side-box .kv-row .v { white-space: nowrap; }
