/* Homepage conversion: mobile-first listing + sticky + top3 + purpose */

.home-update-line {
  margin: 8px 0 16px;
  font-size: 13px;
  line-height: 18px;
  color: #6b7c8a;
}

.home-intro-after {
  margin: 18px 0 28px;
}

.offer-brand-line {
  display: none;
}

.offer-highlight {
  display: none;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: #165C7D;
  font-weight: 600;
}

.offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.offer-legal {
  font-size: 12px;
  line-height: 16px;
  color: #6b7c8a;
  white-space: nowrap;
}

.offer-legal--top5 {
  margin-top: 4px;
}

.cos-pay-more__badge {
  min-width: 40px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef2;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #165C7D;
}

.cos-pay-extra {
  /* shown on desktop swiper; compact mobile uses +N */
}

/* Desktop: keep table layout, show brand line only as a11y helper hidden */
@media screen and (min-width: 768px) {
  .offers .offer-brand-line {
    display: none;
  }
  .offers .offer-highlight {
    display: block;
    margin-top: 8px;
  }
  .top5-accordion {
    display: contents;
  }
  .top5-accordion > summary {
    display: none;
  }
  .top5-compare__title-desk {
    display: block;
  }

  /* PREVZEMI BONUS must stay on one line (base .btn has height:60px / line-height:60px) */
  .offers .td-cta .btn.btn-play,
  .offers .td-cta a.btn-play,
  .top5-table__actions .btn.btn-play,
  .top5-table__actions a.btn-play,
  .top5-actions .btn.btn-play,
  .top5-actions a.btn-play,
  .quick-picks__actions .btn.btn-play,
  .quick-picks__actions a.btn-play,
  .cos-top3__row .btn.btn-play,
  .cos-top3__row a.btn-play {
    white-space: nowrap !important;
    height: auto !important;
    min-height: 48px !important;
    max-height: none !important;
    line-height: 1.2 !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    letter-spacing: 0.01em;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible;
  }

  .offers .td-cta {
    text-align: center;
    vertical-align: middle;
  }

  .offers .offer-foot {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
  }

  .offers .offer-table .btn-play {
    margin-bottom: 0;
  }

  .top5-actions {
    min-height: 0;
  }

  .top5-table__actions .btn-play,
  .top5-actions__btn-ph {
    width: auto;
    min-width: 160px;
    height: auto;
    min-height: 48px;
  }
}

@media screen and (max-width: 767px) {
  .promo h1 {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .offers > h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin: 8px 0 10px !important;
  }

  .rank-meta {
    margin: 0 0 10px;
  }

  .rank-criteria {
    margin-top: 16px;
  }

  /* Compact offer cards */
  .offers .offer-table {
    border-spacing: 0 10px;
  }

  .offers .offer-table .tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px !important;
    margin-bottom: 10px !important;
    position: relative;
    max-width: 100%;
  }

  .offers .offer-table .td {
    padding: 0 !important;
    width: 100% !important;
  }

  .offers .offer-table .td .title {
    display: none;
  }

  .offers .td-score {
    display: none !important;
  }

  .offers .td-payment {
    display: none !important; /* payments off mobile → image budget */
  }

  .offers .offer-logo-wrap {
    display: grid;
    grid-template-columns: auto 72px 1fr;
    align-items: center;
    gap: 8px 10px;
    position: relative;
    min-height: 48px;
  }

  .offers .offer-rank {
    grid-row: 1;
  }

  .offers .offer-logo {
    width: 72px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 5px;
    padding: 4px;
  }

  .offers .offer-logo img {
    max-width: 64px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .offers .offer-brand-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
  }

  .offers .offer-brand-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #165C7D;
  }

  .offers .offer-score-inline {
    font-size: 14px;
    font-weight: 700;
    color: #000;
  }

  .offers .offer-badge {
    position: absolute;
    top: 0;
    right: 0;
    max-width: 42%;
    padding: 2px 6px;
    font-size: 9px;
    line-height: 1.15;
    pointer-events: none;
  }

  .offers .td-bonus .bonus {
    font-size: 18px !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .offers .offer-highlight {
    display: block;
  }

  .offers .td-cta .btn-play {
    display: flex;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 15px;
    font-weight: 700;
    box-sizing: border-box;
  }

  .offers .offer-foot {
    margin-top: 6px;
  }

  .offers .offer-foot .review {
    text-decoration: none;
    font-size: 12px;
  }

  .btn-more {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    line-height: 48px;
  }

  /* Top5 accordion on mobile */
  .top5-compare__title-desk {
    display: none;
  }

  .top5-accordion {
    display: block;
    background: #fff;
    border: 1px solid rgba(193, 209, 225, 0.85);
    border-radius: 8px;
    margin-bottom: 24px;
  }

  .top5-accordion__summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #165C7D;
  }

  .top5-accordion__summary::-webkit-details-marker {
    display: none;
  }

  .top5-accordion__body {
    padding: 0 12px 16px;
  }

  .top5-accordion:not([open]) .top5-accordion__body {
    display: none;
  }

  /* Sticky bar */
  .cos-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    max-height: 64px;
    padding: 8px 12px 8px 10px;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(193, 209, 225, 0.9);
  }

  .cos-sticky-cta[hidden] {
    display: none !important;
  }

  .cos-sticky-cta__close {
    position: absolute;
    top: 2px;
    right: 6px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #6b7c8a;
    padding: 4px;
  }

  .cos-sticky-cta__logo img {
    display: block;
    width: 56px;
    height: 36px;
    object-fit: contain;
    background: #111;
    border-radius: 4px;
  }

  .cos-sticky-cta__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 18px;
  }

  .cos-sticky-cta__name {
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cos-sticky-cta__bonus {
    font-size: 11px;
    line-height: 1.15;
    font-weight: 700;
    color: #165C7D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cos-sticky-cta__btn .btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 118px;
    padding: 0 10px;
    margin: 0;
    line-height: 1;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  body.cos-sticky-open {
    padding-bottom: 68px;
  }
}

@media screen and (min-width: 768px) {
  .cos-sticky-cta {
    display: none !important;
  }
}

/* Purpose cards with CTA */
.quick-picks__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.quick-picks__item .quick-picks__card {
  background: #fff;
  border: 1px solid rgba(193, 209, 225, 0.85);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.06);
}

.quick-picks__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.quick-picks__actions .btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  .quick-picks__actions .btn-play {
    width: 100%;
    height: 48px;
  }
}

/* Shortcode top3 */
.cos-top3 {
  margin: 0 0 36px;
}

.cos-top3__title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 35px;
  line-height: 43px;
  text-transform: uppercase;
  color: inherit;
}

@media screen and (max-width: 768px) {
  .cos-top3__title {
    font-size: 28px;
    line-height: 32px;
  }
}

.cos-top3__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cos-top3__row {
  background: #F5F5F5;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12);
}

.cos-top3__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cos-top3__brand img {
  width: 72px;
  height: 48px;
  object-fit: contain;
  background: #111;
  border-radius: 5px;
  padding: 4px;
}

.cos-top3__score {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.cos-top3__bonus {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #165C7D;
}

.cos-top3__hl {
  margin: 0 0 8px;
  font-size: 13px;
  color: #165C7D;
}

.cos-top3__row .btn-play {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  .cos-top3__list {
    grid-template-columns: repeat(3, 1fr);
  }
}
