/* =============================
  Iyzico Installment — Fixed: No hover, true responsive (no horizontal scroll)
  Replace your existing CSS with this
   ============================= */

:root {
  --iy-blue: #1779c2;
  --iy-muted: #6b7280;
  --card-bg: #fff;
  --card-border: #e6eaf0;
  --row-dash: rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  --max-width: 1200px;
  --gap: 22px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* avoid unexpected overflow from padding/borders */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.iyzico-installment-container {
  margin: 28px auto;
  max-width: var(--max-width);
  font-family: var(--font-family);
  color: #0f172a;
  padding: 8px;
}

/* Title */
.iyzico-installment-title {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 8px 18px;
  color: #0b1220;
}

/* grid: auto-fit prevents overflow and makes it fully responsive */
.iyzico-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* card */
.iyzico-bank-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  /* removed hover transform & heavy box-shadow per request */
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: none;
}

/* keep focus visible but without transform */
.iyzico-bank-card:focus {
  outline: 2px solid rgba(23, 121, 194, 0.15);
  outline-offset: 2px;
  box-shadow: none;
  transform: none;
}

/* logo top */
.iyzico-bank-logo-top {
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.iyzico-bank-logo-top img,
.iyzico-bank-logo-top .bank-logo {
  max-height: 46px;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

/* table area: make table responsive by allowing wrapping; remove horizontal scroll */
.table-area {
  overflow: visible;
  /* no horizontal scrolling */
  padding: 0 10px 14px;
}

/* table: fluid, allow wrapping and avoid fixed-width cells */
.iyzico-installment-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 0;
  font-size: 14px;
  table-layout: auto;
  /* let cells wrap */
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

/* table header */
.iyzico-installment-table thead th {
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border-radius: 4px;
}

/* cells: enable wrapping; remove whitespace:nowrap */
.iyzico-installment-table tbody tr td,
.iyzico-installment-table thead th {
  padding: 10px 12px;
  border-bottom: 1px dashed var(--row-dash);
  vertical-align: middle;
  color: #111827;
  white-space: normal;
  /* allow wrap */
  word-break: break-word;
  /* break long tokens */
}

/* amounts: right aligned but wrapping allowed */
.iyzico-installment-table td.amount,
.iyzico-installment-table th.amount {
  text-align: right;
  white-space: normal;
  /* changed from nowrap */
  font-variant-numeric: tabular-nums;
}

/* total style */
.iyzico-installment-table td.total {
  color: var(--iy-muted);
  font-weight: 600;
}

/* compact adjustments for narrow screens */
@media (max-width: 640px) {
  .iyzico-installment-title {
    font-size: 16px;
  }

  .iyzico-bank-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .iyzico-bank-logo-top {
    padding: 10px 8px;
  }

  .iyzico-installment-table thead th {
    font-size: 12px;
    padding: 8px 10px;
  }

  .iyzico-installment-table tbody tr td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .bank-logo {
    max-height: 40px;
  }
}

/* very small devices — reduce paddings */
@media (max-width:420px) {
  .iyzico-installment-container {
    padding: 6px;
  }

  .iyzico-installment-table td {
    padding: 6px;
    font-size: 13px;
  }

  .iyzico-installment-table thead th {
    padding: 6px;
    font-size: 12px;
  }

  .iyzico-bank-logo-top img {
    max-height: 34px;
  }
}

/* small visual helpers */
.bank-logo-default {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  color: #6b7280;
  font-size: 14px;
  padding: 6px 8px;
  text-align: center;
}

/* remove any possible horizontal scrollbar from table by preventing overflow on parent */
.iyzico-installment-container,
.iyzico-bank-grid,
.iyzico-bank-card,
.iyzico-installment-table {
  max-width: 100%;
  overflow-x: hidden;
}