/* Ottelut.com – [top_bookmakers] shortcode: casino banner (default style) and top list (style="2").
   Built from dev/tasks/ottelut-optimizations. All classes are prefixed "ot-".
   Mobile layout applies below 720px. */


:root {
  --ot-orange: #F58220;
  --ot-orange-dark: #D96C10;
  --ot-orange-shadow: #B85A0C;
  --ot-link: #A84300;
  --ot-ink: #111111;
  --ot-muted: #4A4A4A;
  --ot-line: #E2E2E2;
}

/* ---------- shared pieces (also used by toplist.css) ---------- */

.ot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  box-sizing: border-box;
  background: var(--ot-orange);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: background-color .15s ease;
}
.ot-btn:hover,
.ot-btn:focus-visible { background: var(--ot-orange-dark); color: #FFFFFF; }
.ot-btn:focus-visible { outline: 3px solid var(--ot-ink); outline-offset: 2px; }
.ot-btn--lg {
  min-height: 60px;
  padding: 0 24px;
  font-size: 20px;
  box-shadow: 0 2px 0 var(--ot-orange-shadow);
}

.ot-badge {
  display: inline-block;
  background: var(--ot-ink);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.ot-only-mobile { display: none; }

/* ---------- banner ---------- */

.ot-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ot-ink);
}

.ot-banner__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.ot-banner__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 84px;
  background: #FFFFFF;
  border: 1px solid var(--ot-line);
  border-radius: 6px;
}
.ot-banner__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 84px;
  max-height: 72px;
}

.ot-banner__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ot-banner__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ot-banner__brand { font-size: 14px; color: var(--ot-muted); }
.ot-banner__offer {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.01em;
}

.ot-banner__cta { flex: 0 0 260px; }

.ot-banner__more {
  display: flex;
  justify-content: flex-end;
}
.ot-banner__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ot-link);
}
.ot-banner__more a:hover { color: #7A3000; }

/* ---------- mobile ---------- */

@media (max-width: 719px) {
  .ot-only-desktop { display: none; }
  .ot-only-mobile { display: inline; }

  .ot-banner { gap: 4px; }

  .ot-banner__card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }
  .ot-banner__logo { width: 68px; height: 60px; }
  .ot-banner__logo img { max-width: 56px; max-height: 52px; }

  .ot-banner__body { flex: 1 1 0; gap: 5px; }
  .ot-banner__brand { display: none; }
  .ot-banner__meta .ot-badge { font-size: 11px; padding: 3px 7px; }
  .ot-banner__offer { font-size: 22px; }

  .ot-banner__cta {
    flex: 1 1 100%;
    min-height: 54px;
    font-size: 19px;
  }

  .ot-banner__more a { font-size: 15px; gap: 6px; }
}


.ot-toplist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ot-ink, #111111);
}

.ot-toplist__head { display: flex; flex-direction: column; gap: 8px; }
.ot-toplist__title {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ot-toplist__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #333333;
}

.ot-toplist__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- one casino row ---------- */

.ot-casino {
  display: grid;
  grid-template-columns: 36px 128px minmax(0, 1.25fr) minmax(0, 1fr) 220px;
  align-items: center;
  column-gap: 24px;
  padding: 12px 20px;
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 8px;
}

.ot-casino__rank {
  font-size: 22px;
  font-weight: 800;
  color: var(--ot-muted, #4A4A4A);
}

.ot-casino__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 68px;
  box-sizing: border-box;
  border: 1px solid var(--ot-line, #E2E2E2);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ot-ink, #111111);
}
.ot-casino__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 104px;
  max-height: 56px;
}
.ot-casino__logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ot-casino__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ot-casino__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.ot-casino__name { font-size: 14px; color: var(--ot-muted, #4A4A4A); }
.ot-casino__offer {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.ot-casino__points {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #222222;
}

/* ---------- #1 row ---------- */

.ot-casino--top {
  grid-template-columns: 36px 128px minmax(0, 1.8fr) minmax(0, 1fr) 220px;
  padding: 18px 20px;
  border: 2px solid var(--ot-orange, #F58220);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.ot-casino--top .ot-casino__rank { font-size: 26px; color: var(--ot-ink, #111111); }
.ot-casino--top .ot-casino__logo { height: 92px; }
.ot-casino--top .ot-casino__logo img { max-width: 96px; max-height: 80px; }
.ot-casino--top .ot-casino__name { font-size: 15px; }
.ot-casino--top .ot-casino__offer { font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.ot-casino--top .ot-casino__points { font-size: 15px; line-height: 1.55; }
.ot-casino--top .ot-casino__cta { min-height: 58px; font-size: 19px; padding: 0 20px; }

/* ---------- below the list ---------- */

.ot-toplist__more {
  display: none; /* only used on mobile, see below */
  height: 50px;
  background: #FFFFFF;
  color: var(--ot-ink, #111111);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--ot-ink, #111111);
  border-radius: 8px;
  cursor: pointer;
}

.ot-toplist__note {
  margin: 0;
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ot-muted, #4A4A4A);
  text-align: center;
}
.ot-toplist__note a { color: var(--ot-link, #A84300); }

/* ---------- tablet: bullets drop under the offer ---------- */

@media (max-width: 1023px) and (min-width: 720px) {
  .ot-casino,
  .ot-casino--top {
    grid-template-columns: 36px 128px minmax(0, 1fr) 200px;
    row-gap: 8px;
  }
  .ot-casino__points { grid-column: 3; grid-row: 2; }
  .ot-casino__rank,
  .ot-casino__logo,
  .ot-casino__cta { grid-row: 1 / span 2; }
}

/* ---------- mobile cards ---------- */

@media (max-width: 719px) {
  .ot-toplist { gap: 12px; }
  .ot-toplist__head { gap: 6px; }
  .ot-toplist__title { font-size: 28px; }
  .ot-toplist__intro { font-size: 14px; line-height: 1.4; }
  .ot-toplist__list { gap: 12px; }

  .ot-casino {
    grid-template-columns: 22px 64px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    padding: 12px;
  }
  .ot-casino__rank { font-size: 18px; }
  .ot-casino__logo { width: 64px; height: 52px; }
  .ot-casino__logo img { max-width: 54px; max-height: 44px; }
  .ot-casino__logo-text { font-size: 11px; letter-spacing: .04em; }
  .ot-casino__main { gap: 3px; }
  .ot-casino__name { font-size: 12px; }
  .ot-casino__offer { font-size: 17px; }
  .ot-casino__points,
  .ot-casino__cta { grid-column: 1 / -1; }
  .ot-casino__cta { min-height: 46px; font-size: 16px; }

  /* #1 card: no separate rank number, "#1" moves into the badge */
  .ot-casino--top {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    padding: 14px;
  }
  .ot-casino--top .ot-casino__rank { display: none; }
  .ot-casino--top .ot-casino__logo { width: 76px; height: 68px; }
  .ot-casino--top .ot-casino__logo img { max-width: 62px; max-height: 58px; }
  .ot-casino--top .ot-casino__main { gap: 5px; }
  .ot-casino--top .ot-casino__meta { flex-direction: column; align-items: flex-start; gap: 5px; }
  .ot-casino--top .ot-casino__badge::before { content: "#1 "; }
  .ot-casino--top .ot-casino__name { font-size: 13px; }
  .ot-casino--top .ot-casino__offer { font-size: 23px; }
  .ot-casino--top .ot-casino__points { font-size: 14px; line-height: 1.5; }
  .ot-casino--top .ot-casino__cta { min-height: 54px; }

  /* collapse to the first five until the button is pressed (class set by toplist.js) */
  .ot-toplist.is-collapsed .ot-casino:nth-child(n+6) { display: none; }
  .ot-toplist.is-collapsed .ot-toplist__more { display: block; }

  .ot-toplist__note { font-size: 12px; padding-top: 0; }
}

/* ---------- site context ---------- */

/* banner is printed by Ad Inserter (block 1) in a centred .code-block-1 wrapper above the content */
.ot-banner { text-align: left; padding: 16px 20px 0; }

/* undo parent theme defaults for sections (5rem/8rem padding), links, lists and buttons */
.ot-toplist { padding: 0; }
.ot-banner a,
.ot-toplist a,
.ot-banner a:hover,
.ot-toplist a:hover { text-decoration: none; }
.ot-toplist .ot-toplist__list { margin: 0; }
.ot-toplist .ot-casino { margin: 0; font-size: 16px; line-height: 1.4; }
.ot-toplist .ot-casino__points { margin: 0; }
.ot-toplist .ot-casino__points li { margin: 0; font-size: inherit; line-height: inherit; }
.ot-toplist .ot-toplist__more { padding: 0; text-transform: none; letter-spacing: normal; text-decoration: none; }
