/* Site layout adjustments. Partner artwork/colours stay in TrafficMint.
   Separate from the vendor plugin and the remote theme build. */
/* Own font name: a site stylesheet cannot remap it the way it can remap "Arial".
   Uses the system Arial; Arimo (same metrics) where Arial is not installed. */
@font-face {
  font-family: tmx-sans;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Arial"), local("ArialMT"), url("fonts/arimo-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: tmx-sans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Arial Bold"), local("Arial-BoldMT"), url("fonts/arimo-latin-700.woff2") format("woff2");
}
/* Signup banner: copy + email form + Telegram. One design for every width:
   the actions wrap under the copy when a single row does not fit. */
.article-content > .disclaimer-text:has(+ .tmx-signup[data-tmx-retention-content]) { margin-bottom: 0; }
.tmx-signup[data-tmx-retention-content] {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #284c61;
  border-radius: 14px;
  background: radial-gradient(ellipse at 0 120%, #12647b88, transparent 52%), linear-gradient(110deg, #102d40, #101e32 65%, #15394d);
  color: #fff;
  box-shadow: 0 8px 24px #102d4014;
  box-sizing: border-box;
}
.tmx-signup[data-tmx-retention-content]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 70%, #ffffff05 70%, #ffffff05 80%, transparent 80%);
  pointer-events: none;
}
.tmx-signup[data-tmx-retention-content],
.tmx-signup[data-tmx-retention-content] :is(strong, span, input, button, a) { font-family: tmx-sans, Arial, sans-serif !important; }
.tmx-signup .tmx-signup__copy { display: flex; flex: 0 1 auto; flex-direction: column; gap: 4px; min-width: 0; }
.tmx-signup .tmx-signup__headline-row { display: flex; align-items: flex-start; gap: 10px; }
.tmx-signup[data-tmx-retention-content] svg.tmx-signup__crown {
  position: static !important;
  display: block;
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  margin: -3px 0 0 !important;
  transform: none !important;
  color: #f0c77c !important;
  fill: #f0c77c !important;
}
.tmx-signup[data-tmx-retention-content] svg.tmx-signup__crown path { fill: #f0c77c !important; stroke: none !important; }
.tmx-signup .tmx-signup__headline { color: #fff; font: 700 17px/1.2 tmx-sans, Arial, sans-serif; letter-spacing: -.3px; }
.tmx-signup .tmx-signup__caption { padding-left: 32px; color: #b9cbd8; font-size: 12px; line-height: 16px; }
.tmx-signup .tmx-signup__actions { display: flex; flex: 1 1 460px; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; }
.tmx-signup .tm-present-banner__form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 44px;
  flex: 1 1 300px;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.tmx-signup .tm-present-banner__input[type=email] {
  grid-column: 1; grid-row: 1;
  width: 100%; min-width: 0; height: 44px; margin: 0; padding: 10px 14px;
  box-sizing: border-box; border: 1px solid #648297; border-radius: 9px;
  background: #ffffff09; color: #fff; font: 400 16px/1.25 tmx-sans, Arial, sans-serif;
  transition: border-color .15s, background-color .15s;
}
.tmx-signup .tm-present-banner__input::placeholder { color: #b9cbd8; opacity: 1; }
.tmx-signup .tm-present-banner__input:focus { border-color: #f0c77c; background: #ffffff12; }
.tmx-signup .tm-present-banner__btn,
.tmx-signup .tm-tg-banner__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-width: 0; min-height: 44px; margin: 0; padding: 10px 14px;
  border-radius: 9px; box-shadow: none; box-sizing: border-box;
  font: 700 12px/1.25 tmx-sans, Arial, sans-serif; letter-spacing: .3px; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.tmx-signup .tm-present-banner__btn { grid-column: 2; grid-row: 1; border: 1px solid #f6ce83; background: #f0be68; color: #142435 !important; }
/* Drawn arrow: a text glyph sits on the font baseline, not the caps centre. */
.tmx-signup .tm-present-banner__btn::after {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h12M10 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tmx-signup .tm-present-banner__btn.loading::after { display: none; }
.tmx-signup .tm-present-banner__btn:hover { background: #ffcf83; }
.tmx-signup .tm-present-banner__btn:disabled { opacity: .65; cursor: wait; }
.tmx-signup .tm-tg-banner__btn { position: relative; flex: 1 1 auto; border: 1px solid #2da8d6; background: #1285b4; color: #fff !important; }
.tmx-signup .tm-tg-banner__btn::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.6 3.3 2.9 10.5c-1.2.5-1.2 1.1-.2 1.4l4.8 1.5 1.8 5.8c.2.7.5.9 1 .4l2.7-2.6 5 3.7c.9.5 1.4.2 1.6-.8l3-14.4c.3-1.3-.5-1.9-1-1.5ZM9 13l10-6.3-8 7.5-.5 3.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tmx-signup .tm-tg-banner__btn:hover { background: #179bcf; }
.tmx-signup :is(input, button, a):focus-visible { outline: 2px solid #f0c77c; outline-offset: 3px; }
.tmx-signup .tm-present-banner__success img,
.tmx-signup .tm-present-banner__btn img { width: 20px !important; height: 20px !important; margin: 0 !important; }
.tmx-signup .tm-present-banner__error {
  display: block; visibility: hidden; position: absolute; top: calc(100% + 6px); left: 0;
  z-index: 5; width: max-content; max-width: 100%; box-sizing: border-box; margin: 0;
  padding: 6px 9px; border: 1px solid #efb5b5; border-radius: 6px;
  background: #fff4f4; box-shadow: 0 3px 10px #172b361a;
  color: #a51d1d; font: 400 13px/18px tmx-sans, Arial, sans-serif;
}
.tmx-signup .tm-present-banner__form.error .tm-present-banner__error { visibility: visible; }
.tmx-signup .tm-present-banner__success { display: flex; flex: 1 1 300px; align-items: center; gap: 8px; color: #fff; font: 400 14px/1.4 tmx-sans, Arial, sans-serif; }
@media (min-width: 769px) {
  .tmx-signup[data-tmx-retention-content] { min-height: 96px; margin: 24px 0; border-radius: 16px; }
  .tmx-signup .tmx-signup__headline { font-size: 18px; white-space: nowrap; }
  .tmx-signup .tmx-signup__caption { font-size: 11px; }
  .tmx-signup .tm-present-banner__form { grid-template-rows: 48px; }
  .tmx-signup .tm-present-banner__input[type=email] { height: 48px; font-size: 14px; }
  .tmx-signup .tm-present-banner__btn,
  .tmx-signup .tm-tg-banner__btn { min-height: 48px; padding: 12px; }
  .tmx-signup .tm-tg-banner__btn { flex: 0 0 auto; margin-left: 10px; }
  .tmx-signup .tm-tg-banner__btn::after { content: ""; position: absolute; left: -15px; top: 4px; bottom: 4px; width: 1px; background: #ffffff26; }
}
@media (max-width: 768px) {
  /* Shorter banner so the offers table shows up sooner on mobile. */
  .tmx-signup[data-tmx-retention-content] svg.tmx-signup__crown { display: none; }
  .tmx-signup .tmx-signup__headline { font-size: 16px; }
  .tmx-signup .tmx-signup__caption { padding-left: 0; }
}
@media (max-width: 480px) {
  .tmx-signup[data-tmx-retention-content] { gap: 12px; }
  .tmx-signup .tm-present-banner__form { gap: 6px; }
  .tmx-signup .tm-present-banner__input[type=email] { padding-inline: 10px; }
  .tmx-signup .tm-present-banner__btn { padding-inline: 10px; letter-spacing: 0; }
  .tmx-signup .tm-present-banner__btn::after { display: none; }
}
.tmx-retention-gift[hidden] {
  display: none;
}
.tmx-retention-gift {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  margin-inline-start: 12px;
}
.tmx-retention .tm-contacts__header {
  position: relative;
  inset: auto;
  margin: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  overflow: visible;
}
.tmx-retention .tm-contacts__header img {
  content: url("gift.svg");
  display: block;
  width: 28px;
  height: 28px;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  object-fit: contain;
}
.tmx-retention .tm-contacts__header .indicator {
  top: 0;
  right: 0;
}
.tmx-retention .tm-container {
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
  margin-inline: auto;
}
.tmx-retention-slot,
.tmx-retention-tail {
  margin-block: 28px;
}
.tmx-retention-tail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.tmx-retention .tmx-retention-tail > section {
  margin: 0;
  padding-block: 0;
  min-width: 0;
}
.tmx-retention .casino-table .tmx-retention-row > td {
  display: table-cell;
  width: auto;
  padding: 18px 0;
  border: 0;
  background: transparent;
}
.tmx-retention .tmx-retention-row > td::before {
  content: none;
}
.tmx-retention .tm-wheel__banner .title,
.tmx-retention .tm-wheel__banner .description {
  margin: 0;
}
.tmx-retention .tm-wheel__banner .btn,
.tmx-retention .tm-present-banner__btn,
.tmx-retention .tm-tg-banner__btn {
  text-decoration: none;
}
.tmx-retention .article-content .tm-present-banner__title,
.tmx-retention .article-content .tm-tg-banner__title {
  color: var(--tm-white);
  margin: 10px 0 0;
}
.tmx-retention .article-content a.tm-tg-banner__btn {
  color: var(--tm-white);
}
.tmx-retention .tm-contacts__wrapper,
.tmx-retention .tm-wheel__wrapper {
  z-index: 1000001;
}
.tmx-retention .tm-toast__wrapper {
  z-index: 1000002;
}
.tmx-retention .tm-contacts__popup,
.tmx-retention .tm-wheel__popup {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}
/* A rotated square's overflow bounds change on every frame even when it looks
   circular. Clip the spinning layers at the stationary circular rim, not the
   whole dialog: the reward form must remain scrollable on short screens. */
.tmx-retention .tm-wheel__popup .tm-wheels__circle--inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.tmx-retention .tm-wheel__popup .tm-wheels__labels {
  width: 300px;
  height: 300px;
}
.tmx-retention .tm-contacts__header:focus-visible,
.tmx-retention .tm-wheel__banner:focus-visible,
.tmx-retention [class^="tm-"] button:focus-visible,
.tmx-retention [class^="tm-"] input:focus-visible,
.tmx-retention .tm-tg-banner__btn:focus-visible {
  outline: 3px solid #ffb000;
  outline-offset: 3px;
}
@media (max-width: 768px) {
  .tmx-retention .casino-table .tmx-retention-row {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .tmx-retention .casino-table .tmx-retention-row > td {
    display: block;
    width: 100%;
  }
  .tmx-retention-gift {
    grid-area: 1 / 2 / 2 / 3;
    justify-self: start;
    width: 36px;
    flex-basis: 36px;
    margin-inline-start: 0;
  }
  .tmx-retention .tm-tg-banner__list {
    flex-wrap: wrap;
    gap: 12px;
  }
  .tmx-retention .tm-tg-banner__item {
    margin: 0;
  }
  .tmx-retention .tm-tg-banner__right,
  .tmx-retention .tm-present-banner__right {
    min-width: 0;
  }
}

/* Anchor each caption to the same 300px centre as the spinning sectors.
   Vendor coordinates assumed a larger label canvas and pushed text outside. */
.tmx-retention .tm-wheel__popup .tm-wheels__labels p {
  top: 142px;
  left: 100px;
  width: 100px;
  height: 16px;
  margin: 0;
  padding: 0;
  line-height: 16px;
  transform-origin: 50% 50%;
  transform: rotate(var(--tmx-label-angle)) translateX(85px) rotate(180deg);
}
.tmx-retention .tm-wheel__popup .tm-wheels__labels p span {
  min-width: 0;
  max-width: 100%;
}
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(1) { --tmx-label-angle: -90deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(2) { --tmx-label-angle: -60deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(3) { --tmx-label-angle: -30deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(4) { --tmx-label-angle: 0deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(5) { --tmx-label-angle: 30deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(6) { --tmx-label-angle: 60deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(7) { --tmx-label-angle: 90deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(8) { --tmx-label-angle: 120deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(9) { --tmx-label-angle: 150deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(10) { --tmx-label-angle: 180deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(11) { --tmx-label-angle: 210deg; }
.tmx-retention .tm-wheel__popup .tm-wheels__labels p:nth-child(12) { --tmx-label-angle: 240deg; }


.tmx-retention .tmx-retention-gift--replacement { margin: 0; flex: 0 0 44px; width: 44px; grid-area: auto; }
.tmx-retention .tmx-retention-gift--replacement .tm-contacts__header { background: #fff2db; border-color: #efc58b; }
@media (max-width: 768px) {
  .tmx-retention .header__buttons.tmx-header-offers { flex-direction: row; align-items: center; justify-content: flex-end; justify-self: end; width: max-content; gap: 6px; }
}

@media (min-width: 1024px) {
  .tmx-retention .tm-wheel__banner { min-height: 68px; padding: 12px 132px 12px 24px; gap: 20px; margin-block: 12px; }
  .tmx-retention .tm-wheel__banner .title { flex: 1; width: auto; min-width: 0; font-size: 20px; line-height: 26px; }
  .tmx-retention .tm-wheel__banner .btn__container { flex: 0 0 auto; width: auto; min-width: 0; }
  .tmx-retention .tm-wheel__banner .btn { min-width: 156px; min-height: 44px; }
  .tmx-retention .tm-wheel__banner .circle { width: 112px; height: 112px; min-width: 112px; min-height: 112px; }
  .tmx-retention .tmx-retention-row .tm-wheel__banner { margin-block: 0; }
  .tmx-retention .casino-table .tmx-retention-row > td { padding-block: 12px; }
}

/* Header gift and in-table wheel row (moved from the theme's _retention-layout.scss). */
.header .header__buttons > .tmx-retention-gift { display: flex; align-items: center; flex: 0 0 36px; width: 36px; }
@media (max-width: 768px) {
  .header:has(.header__buttons > .tmx-retention-gift) .site-branding .logo { width: 64px; }
  .header:has(.header__buttons > .tmx-retention-gift) .header__buttons { gap: 4px; }
  .header:has(.header__buttons > .tmx-retention-gift) .header__button { padding: 6px 5px; gap: 3px; }
  .header:has(.header__buttons > .tmx-retention-gift) .header__button span { font-size: 10px; }
  .header:has(.header__buttons > .tmx-retention-gift) .header__buttons > .tmx-retention-gift { flex-basis: 30px; width: 30px; }
  .tmx-retention-row > td { padding: 0 !important; }
  .tmx-retention-row #tmWheelBanner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 84px; padding: 12px; }
  .tmx-retention-row #tmWheelBanner .title { position: relative; z-index: 1; width: 100%; min-width: 0; margin: 0; padding: 0; font-size: 14px !important; line-height: 1.3; }
  .tmx-retention-row #tmWheelBanner .title .tm-label[data-tm-before]::before { position: static; transform: none; margin-right: 4px; }
  .tmx-retention-row #tmWheelBanner .description { font-size: inherit; }
  .tmx-retention-row #tmWheelBanner .btn__container { position: relative; z-index: 1; width: auto; min-width: 0; margin: 0; padding: 0; }
  .tmx-retention-row #tmWheelBanner .btn { min-width: 0; min-height: 40px; padding: 8px 10px; font-size: 11px; }
  .tmx-retention-row #tmWheelBanner .circle { width: 84px; height: 84px; min-width: 84px; min-height: 84px; right: -20px; top: 0; opacity: .25; pointer-events: none; }
}
@media (max-width: 359px) {
  .header:has(.header__buttons > .tmx-retention-gift) .site-branding .logo { width: 54px; }
  .header:has(.header__buttons > .tmx-retention-gift) .header__buttons { gap: 3px; }
}
