/* =========================================================
   Wrapper
   ========================================================= */

.bookmaker-table-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 30px auto;

  overflow-x: auto;
  overflow-y: hidden;

  background: transparent;
  border: 0;
  border-radius: 15px;
  box-shadow: none;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 49, 90, 0.5) rgba(255, 255, 255, 0.035);
}

/* =========================================================
   Table
   ========================================================= */

.bookmaker-table {
  width: 100%;
  min-width: 1000px;

  overflow: hidden;

  border-collapse: separate;
  border-spacing: 0;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)), var(--card);

  border: 1px solid var(--line);
  border-radius: 15px;

  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   Header
   ========================================================= */

.bookmaker-table thead {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)), var(--card);
}

.bookmaker-table th {
  height: 42px;
  padding: 12px 16px;

  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;

  background: transparent;
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   Rows
   ========================================================= */

.bookmaker-table td {
  height: 108px;
  padding: 15px 16px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;

  background: transparent;
  border-top: 1px solid var(--line);
}

.bookmaker-table tbody tr:first-child td {
  border-top: 0;
}

.bookmaker-table tbody tr {
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.bookmaker-table tbody tr:hover {
  background: rgba(255, 49, 90, 0.026);
}

/* =========================================================
   Column widths
   ========================================================= */

.bookmaker-table th:nth-child(1),
.bookmaker-table td:nth-child(1) {
  width: 210px;
}

.bookmaker-table th:nth-child(2),
.bookmaker-table td:nth-child(2) {
  width: 185px;
}

.bookmaker-table th:nth-child(3),
.bookmaker-table td:nth-child(3) {
  width: 145px;
}

.bookmaker-table th:nth-child(4),
.bookmaker-table td:nth-child(4) {
  width: 185px;
}

.bookmaker-table th:nth-child(5),
.bookmaker-table td:nth-child(5) {
  width: 220px;
}

.bookmaker-table th:nth-child(6),
.bookmaker-table td:nth-child(6) {
  width: 145px;
}

/* =========================================================
   Brand
   ========================================================= */

.bookmaker-table__brand {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 12px;
}

.bookmaker-table__position {
  flex: 0 0 32px;

  width: 32px;
  height: 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;

  background: rgba(255, 49, 90, 0.065);
  border: 1px solid rgba(255, 49, 90, 0.24);
  border-radius: 50%;

  box-shadow: 0 0 14px rgba(255, 49, 90, 0.05);
}

.bookmaker-table__logo-wrap {
  min-width: 0;

  display: flex;
  align-items: center;
}

.bookmaker-table__logo,
.bookmaker-table__logo-placeholder {
  flex: 0 0 98px;

  width: 98px;
  height: 66px;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--bg-soft);

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.bookmaker-table__logo {
  display: block;
  margin: 0 !important;
  padding: 5px;

  object-fit: contain;
}

.bookmaker-table__logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
}

/* =========================================================
   Bonus
   ========================================================= */

.bookmaker-table__bonus {
  max-width: 170px;

  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

.bookmaker-table__empty {
  color: var(--muted-soft);
}

/* =========================================================
   Rating
   ========================================================= */

.bookmaker-table__rating {
  display: grid;
  gap: 5px;
}

.bookmaker-table__rating-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bookmaker-table__rating-top strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.bookmaker-table__stars {
  color: #f5b942;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

/* =========================================================
   Promo code
   ========================================================= */

.bookmaker-table__code {
  position: relative;

  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;

  color: var(--text);

  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 49, 90, 0.38);
  border-radius: 8px;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.bookmaker-table__code span {
  min-width: 0;

  overflow: hidden;

  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bookmaker-table__code small {
  width: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);
  font-size: 14px;
  line-height: 1;
}

.bookmaker-table__code:hover,
.bookmaker-table__code.is-copied {
  color: #fff;

  background: rgba(255, 49, 90, 0.08);
  border-color: rgba(255, 49, 90, 0.58);
}

.bookmaker-table__code.is-copied span,
.bookmaker-table__code.is-copied small {
  visibility: hidden;
}

.bookmaker-table__code.is-copied::after {
  content: 'Скопировано ✓';

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;

  pointer-events: none;
}

/* =========================================================
   Payments
   ========================================================= */

.bookmaker-table__payments {
  min-width: 0;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.bookmaker-table__payment {
  max-width: 100%;
  min-height: 29px;
  padding: 6px 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;

  white-space: normal;
  overflow-wrap: anywhere;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
}

.bookmaker-table__payment-count {
  min-width: 29px;
  height: 29px;
  padding: 0 8px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 10px;
  font-weight: 850;

  background: rgba(255, 49, 90, 0.09);
  border: 1px solid rgba(255, 49, 90, 0.22);
  border-radius: 999px;
}

/* =========================================================
   Action
   ========================================================= */

.bookmaker-table__button {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9px;

  box-shadow: 0 9px 22px rgba(255, 49, 90, 0.19);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bookmaker-table__button:hover {
  transform: translateY(-1px);

  background: var(--accent-hover);
  border-color: var(--accent-hover);

  box-shadow: 0 13px 28px rgba(255, 49, 90, 0.25);
}

/* =========================================================
   Scrollbar
   ========================================================= */

.bookmaker-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.bookmaker-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
}

.bookmaker-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 49, 90, 0.48);
  border-radius: 999px;
}

.bookmaker-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 49, 90, 0.7);
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {
  .bookmaker-table-wrap {
    margin: 26px 0;
  }

  .bookmaker-table {
    min-width: 900px;
  }

  .bookmaker-table th {
    padding: 11px 13px;
  }

  .bookmaker-table td {
    height: 102px;
    padding: 13px;
  }

  .bookmaker-table__logo,
  .bookmaker-table__logo-placeholder {
    flex-basis: 86px;

    width: 86px;
    height: 58px;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {
  .bookmaker-table-wrap {
    margin: 22px 0;
    border-radius: 13px;
  }

  .bookmaker-table {
    min-width: 840px;
    border-radius: 13px;
  }

  .bookmaker-table th {
    height: 38px;
    padding: 10px 12px;

    font-size: 9px;
  }

  .bookmaker-table td {
    height: 94px;
    padding: 12px;

    font-size: 12px;
  }

  .bookmaker-table__position {
    flex-basis: 29px;

    width: 29px;
    height: 29px;

    font-size: 11px;
  }

  .bookmaker-table__logo,
  .bookmaker-table__logo-placeholder {
    flex-basis: 76px;

    width: 76px;
    height: 52px;
  }

  .bookmaker-table__bonus {
    font-size: 12px;
  }

  .bookmaker-table__button {
    min-height: 40px;
    font-size: 11px;
  }
}

/* =========================================================
   Touch devices
   ========================================================= */

@media (hover: none) {
  .bookmaker-table tbody tr:hover {
    background: transparent;
  }

  .bookmaker-table__button:hover {
    transform: none;
  }
}
