/* =========================================================
   BOOKMAKER TABLE WRAP
========================================================= */

.bookmaker-table-wrap {
  position: relative;

  width: 100%;
  margin: 30px 0;

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

  background: rgba(255, 255, 255, 0.024);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;

  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 49, 87, 0.72) rgba(255, 255, 255, 0.04);
}

/* =========================================================
   TABLE
========================================================= */

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

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

  table-layout: fixed;
}

/* =========================================================
   COLUMNS
========================================================= */

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

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

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

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

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

/* =========================================================
   HEADER
========================================================= */

.bookmaker-table thead {
  background: rgba(255, 255, 255, 0.028);
}

.bookmaker-table th {
  padding: 15px 16px;

  color: rgba(255, 255, 255, 0.62);
  background: transparent;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =========================================================
   ROWS
========================================================= */

.bookmaker-table td {
  padding: 14px 16px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
}

.bookmaker-table tbody tr:last-child td {
  border-bottom: 0;
}

.bookmaker-table tbody tr {
  transition: background 180ms ease;
}

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

/* =========================================================
   BRAND
========================================================= */

.bookmaker-table__brand {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.bookmaker-table__logo,
.bookmaker-table__logo-placeholder {
  flex: 0 0 auto;

  width: 54px;
  height: 54px;

  border-radius: 12px;
}

.bookmaker-table__logo {
  display: block;

  margin: 0 !important;

  object-fit: contain;

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: none;
}

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

  color: var(--accent);
  background: rgba(255, 49, 87, 0.065);

  border: 1px solid rgba(255, 49, 87, 0.14);

  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.bookmaker-table__brand strong {
  min-width: 0;
  overflow: hidden;

  color: var(--text);

  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   BONUS
========================================================= */

.bookmaker-table td:nth-child(2) {
  color: var(--text-soft);

  font-size: 13px;
  font-weight: 600;
}

/* =========================================================
   RATING
========================================================= */

.bookmaker-table__rating-cell {
  text-align: center !important;
}

.bookmaker-table__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-width: 78px;

  text-align: center;
}

.bookmaker-table__stars-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
}

.bookmaker-table__stars {
  position: relative;

  display: inline-block;

  width: max-content;

  line-height: 1;
  white-space: nowrap;
}

.bookmaker-table__stars::after {
  display: block;

  color: rgba(255, 255, 255, 0.16);

  content: '★★★★★';

  font-size: 11px;
  line-height: 1;
  letter-spacing: 1px;
}

.bookmaker-table__stars::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;

  width: var(--rating);
  overflow: hidden;

  color: #f2c75a;

  content: '★★★★★';

  font-size: 11px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
}

.bookmaker-table__rating-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.bookmaker-table__rating-value {
  color: var(--text);

  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.bookmaker-table__rating-max {
  color: var(--muted-dark);

  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
/* =========================================================
   PROMO CODE
========================================================= */

.bookmaker-table__code {
  position: relative;

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

  width: 100%;
  max-width: 156px;
  min-height: 50px;
  padding: 7px 7px 7px 12px;

  overflow: hidden;

  color: inherit;

  background: linear-gradient(180deg, #25243b 0%, #202137 100%);

  border: 1px solid rgba(255, 47, 91, 0.48);
  border-radius: 10px;

  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  cursor: pointer;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.bookmaker-table__code:hover {
  background: linear-gradient(180deg, #29273f 0%, #222239 100%);

  border-color: rgba(255, 47, 91, 0.68);

  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.16),
    0 0 12px rgba(255, 47, 91, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  transform: translateY(-1px);
}

/* =========================================================
   PROMO CONTENT
========================================================= */

.bookmaker-table__code-main {
  display: contents;
}

.bookmaker-table__code-value {
  grid-column: 1;
  grid-row: 1;

  display: flex;
  align-items: center;

  min-width: 0;
  height: 100%;
  padding: 0;

  overflow: hidden;

  color: #ffffff;

  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: left;

  text-overflow: ellipsis;
  white-space: nowrap;
}
/* =========================================================
   COPY BUTTON
========================================================= */

.bookmaker-table__code-copy {
  grid-column: 2;
  grid-row: 1;

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

  width: 32px;
  height: 32px;

  color: var(--accent);

  background: linear-gradient(180deg, #28243a 0%, #211f35 100%);

  border: 1px solid rgba(255, 47, 91, 0.32);
  border-radius: 7px;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.bookmaker-table__code-copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);

  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

/* =========================================================
   COPY HOVER
========================================================= */

.bookmaker-table__code:hover .bookmaker-table__code-copy {
  background: linear-gradient(180deg, rgba(255, 47, 91, 0.16), rgba(255, 47, 91, 0.07));

  border-color: rgba(255, 47, 91, 0.7);

  box-shadow: 0 0 10px rgba(255, 47, 91, 0.09);
}

.bookmaker-table__code:hover .bookmaker-table__code-copy-icon {
  color: #ffffff;

  transform: scale(1.07);
}

/* =========================================================
   COPIED STATE
========================================================= */

.bookmaker-table__code.is-copied {
  border-color: rgba(255, 47, 91, 0.72);

  transform: none;
}

.bookmaker-table__code.is-copied .bookmaker-table__code-copy {
  background: linear-gradient(180deg, rgba(255, 47, 91, 0.2), rgba(255, 47, 91, 0.09));

  border-color: var(--accent);

  box-shadow: 0 0 11px rgba(255, 47, 91, 0.1);
}

.bookmaker-table__code.is-copied .bookmaker-table__code-copy-icon {
  color: #ffffff;

  font-size: 14px;
  font-weight: 900;

  transform: none;
}

/* =========================================================
   TABLE CTA BUTTON
========================================================= */

.bookmaker-table__button {
  position: relative;

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

  width: 100%;
  min-height: 40px;
  padding: 9px 34px 9px 14px;

  overflow: hidden;

  color: #ffffff !important;
  text-decoration: none;

  background:
    linear-gradient(180deg, #29253f 0%, #1d1e34 52%, #17192d 100%) padding-box,
    linear-gradient(110deg, rgba(255, 47, 91, 0.88) 0%, rgba(151, 72, 150, 0.72) 48%, rgba(112, 117, 149, 0.58) 100%) border-box;

  border: 1px solid transparent;
  border-radius: 10px;

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    0 0 12px rgba(255, 47, 91, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  white-space: nowrap;

  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

/* =========================================================
   BOTTOM ACCENT
========================================================= */

.bookmaker-table__button::after {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 30%;
  height: 2px;

  content: '';

  background: linear-gradient(90deg, #ff2f66 0%, #d72b79 62%, rgba(215, 43, 121, 0) 100%);

  border-radius: 0 999px 999px 0;

  opacity: 0.85;

  transition:
    width 220ms ease,
    opacity 180ms ease;
}

/* =========================================================
   ARROW
========================================================= */

.bookmaker-table__button::before {
  position: absolute;
  top: 50%;
  right: 14px;

  width: 6px;
  height: 6px;

  content: '';

  border-top: 1.5px solid rgba(255, 255, 255, 0.72);
  border-right: 1.5px solid rgba(255, 255, 255, 0.72);

  transform: translateY(-50%) rotate(45deg);

  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

/* =========================================================
   HOVER
========================================================= */

.bookmaker-table__button:hover {
  color: #ffffff !important;

  filter: brightness(1.07);

  box-shadow:
    0 11px 24px rgba(0, 0, 0, 0.22),
    0 0 17px rgba(255, 47, 91, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  transform: translateY(-1px);
}

.bookmaker-table__button:hover::after {
  width: 52%;
  opacity: 1;
}

.bookmaker-table__button:hover::before {
  border-color: #ffffff;

  transform: translateY(-50%) translateX(2px) rotate(45deg);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  .bookmaker-table__button {
    min-height: 38px;
    padding: 8px 29px 8px 11px;

    font-size: 10px;
  }

  .bookmaker-table__button::before {
    right: 11px;

    width: 5px;
    height: 5px;
  }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {
  .bookmaker-table__button:hover {
    filter: none;

    transform: none;
  }

  .bookmaker-table__button:hover::after {
    width: 30%;
  }

  .bookmaker-table__button:hover::before {
    transform: translateY(-50%) rotate(45deg);
  }
}

/* =========================================================
   SCROLLBAR
========================================================= */

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

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

.bookmaker-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 49, 87, 0.62);

  border: 2px solid #181a1c;
  border-radius: 999px;
}

.bookmaker-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.bookmaker-table-wrap::-webkit-scrollbar-corner {
  background: transparent;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .bookmaker-table {
    min-width: 760px;
  }

  .bookmaker-table th,
  .bookmaker-table td {
    padding-inline: 13px;
  }

  .bookmaker-table__brand {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .bookmaker-table__logo,
  .bookmaker-table__logo-placeholder {
    width: 48px;
    height: 48px;

    border-radius: 11px;
  }

  .bookmaker-table__brand strong {
    font-size: 13px;
  }

  .bookmaker-table__code {
    max-width: 130px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  /* Give PLAY a little more room */
  .bookmaker-table th:nth-child(4),
  .bookmaker-table td:nth-child(4) {
    width: 18%;
  }

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

  .bookmaker-table th:nth-child(4),
  .bookmaker-table td:nth-child(4),
  .bookmaker-table th:nth-child(5),
  .bookmaker-table td:nth-child(5) {
    padding-inline: 8px;
  }

  /* Promo */
  .bookmaker-table__code {
    grid-template-columns: minmax(0, 1fr) 28px;
    column-gap: 6px;

    max-width: 104px;
    min-height: 34px;
    padding: 4px 4px 4px 9px;

    border-radius: 9px;
  }

  .bookmaker-table__code-value {
    font-size: 9px;
  }

  .bookmaker-table__code-copy {
    width: 26px;
    height: 26px;

    border-radius: 6px;
  }

  .bookmaker-table__code-copy-icon {
    font-size: 11px;
  }

  /* CTA */
  .bookmaker-table__button {
    min-height: 34px;

    padding: 7px 23px 7px 9px;

    border-radius: 9px;

    font-size: 9px;
  }

  .bookmaker-table__button::before {
    right: 9px;

    width: 5px;
    height: 5px;
  }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

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

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

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .bookmaker-table tbody tr,
  .bookmaker-table__code,
  .bookmaker-table__button {
    transition: none;
  }
}
