﻿.bookmaker-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 36px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 5px 18px #0002;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.bookmaker-table-wrap .bookmaker-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  font-size: 14px;
}
.bookmaker-table-wrap .bookmaker-table th,
.bookmaker-table-wrap .bookmaker-table td {
  padding: 14px 16px;
  border: 0;
  text-align: left;
  vertical-align: middle;
}
.bookmaker-table-wrap .bookmaker-table th {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bookmaker-table-wrap .bookmaker-table tbody tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bookmaker-table-wrap .bookmaker-table th:nth-child(1) {
  width: 250px;
}
.bookmaker-table-wrap .bookmaker-table th:nth-child(3) {
  width: 140px;
}
.bookmaker-table-wrap .bookmaker-table th:nth-child(4) {
  width: 170px;
}
.bookmaker-table-wrap .bookmaker-table th:nth-child(5) {
  width: 220px;
}
.bookmaker-table tbody td {
  transition: background-color var(--transition);
}
.bookmaker-table__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bookmaker-table__brand strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.bookmaker-table__logo,
.bookmaker-table__logo-placeholder {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  /* padding: 6px; */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  object-fit: contain;
}
.bookmaker-table__logo-placeholder {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}
.bookmaker-table__bonus {
  display: inline-block;
  max-width: 100%;
  color: var(--text-soft);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bookmaker-table__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.bookmaker-table__rating-star {
  color: var(--warning);
  font-size: 17px;
}
.bookmaker-table__rating strong {
  font-size: 14px;
}
.bookmaker-table__empty {
  color: var(--text-muted);
}
.bookmaker-table__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color var(--transition),
    border-color var(--transition);
}
.bookmaker-table__code-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.bookmaker-table__copy {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  overflow: hidden;
  color: var(--text-soft);
}
.bookmaker-table__copy svg {
  width: 14px;
  height: 14px;
}
.bookmaker-table__copy::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--success);
  font-size: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}
.bookmaker-table__code.is-copied {
  border-color: var(--success);
}
.bookmaker-table__code.is-copied .bookmaker-table__copy::after {
  opacity: 1;
}
.bookmaker-table__button {
  box-sizing: border-box;
  display: inline-flex;
  flex-shrink: 0;
  width: 100%;
  min-width: 185px;
  max-width: 210px;
  white-space: nowrap;
  overflow-wrap: normal;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff355c, #ef174c);
  box-shadow: 0 4px 12px #ff285426;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.bookmaker-table__button > span::after {
  content: '\2192';
  display: inline-block;
  margin-left: 8px;
  transition: transform var(--transition);
}
@media (max-width: 768px) {
  .bookmaker-table-wrap .bookmaker-table {
    font-size: 13px;
  }
  .bookmaker-table-wrap .bookmaker-table th:nth-child(1) {
    width: 190px;
  }
  .bookmaker-table-wrap .bookmaker-table th:nth-child(3) {
    width: 100px;
  }
  .bookmaker-table-wrap .bookmaker-table th:nth-child(4) {
    width: 140px;
  }
  .bookmaker-table-wrap .bookmaker-table th:nth-child(5) {
    width: 220px;
  }
  .bookmaker-table-wrap .bookmaker-table th,
  .bookmaker-table-wrap .bookmaker-table td {
    padding: 12px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .bookmaker-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
  }
  .bookmaker-table__code:hover {
    border-color: var(--accent);
    background: var(--surface-2);
  }
  .bookmaker-table__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #ff285447;
  }
  .bookmaker-table__button:hover > span::after {
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bookmaker-table__button:hover,
  .bookmaker-table__button:hover > span::after {
    transform: none;
  }
}

.bookmaker-table-wrap .bookmaker-table th:last-child,
.bookmaker-table-wrap .bookmaker-table td:last-child {
  padding-inline: 12px;
}

@media (max-width: 640px) {
  .bookmaker-table-wrap .bookmaker-table {
    min-width: 680px;
    font-size: 12px;
  }
  .bookmaker-table-wrap .bookmaker-table th,
  .bookmaker-table-wrap .bookmaker-table td {
    padding: 10px 12px;
  }
  .bookmaker-table-wrap .bookmaker-table th {
    font-size: 10px;
  }
  .bookmaker-table-wrap .bookmaker-table th:nth-child(1) {
    width: 155px;
  }
  .bookmaker-table-wrap .bookmaker-table th:nth-child(3) {
    width: 80px;
  }
  .bookmaker-table-wrap .bookmaker-table th:nth-child(4) {
    width: 105px;
  }
  .bookmaker-table-wrap .bookmaker-table th:nth-child(5) {
    width: 195px;
  }
  .bookmaker-table__logo,
  .bookmaker-table__logo-placeholder {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    padding: 4px;
  }
  .bookmaker-table__brand {
    gap: 8px;
  }
  .bookmaker-table__brand strong,
  .bookmaker-table__rating strong {
    font-size: 12px;
  }
  .bookmaker-table__button {
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }
  .bookmaker-table__code {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 11px;
    gap: 5px;
  }
}
