.promo-container {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.promo-title img {
  max-width: 50px;
  margin-right: 10px;
}

.promo-title h2 {
  font-size: 1.5em;
  margin: 0;
}

.cta-button:hover {
  background-color: #69ba56;
}

.cta-button.detail-button {
  display: flex;
  width: fit-content;
  padding: 10px 15px;
  text-decoration: none;
  text-align: right;
  align-self: end;
  border-radius: 100px;
}

.promo-bonus {
  margin-top: 20px;
}

.promo-bonus p {
  font-size: 1.2em;
}

.payment-options img {
  width: 50px;
  height: 32px;
  object-fit: contain;
  background-color: #fff;
  padding: 2px;
  /* border-radius: 4px;
  border: 1px solid #eee; */
}

/* Base styles for payment icons toggle (mobile-first) */
.payment-icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.payment-icons-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 32px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: background 0.2s;
}

.payment-icons-toggle:hover {
  background: #e0e0e0;
}

.payment-icons-toggle.expanded {
  display: none;
}

.promo-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.promo-info h3 {
  font-size: 1.3em;
}

.info-summary ul,
.detailed-info ul,
.bonus-details ul {
  list-style: none;
  padding: 0;
}

.info-summary li,
.detailed-info li,
.bonus-details li {
  margin-bottom: 5px;
  font-size: 1.1em;
}

a.cta-button.detail-button {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 16px !important;
}

@media (min-width: 768px) {
  .promo-info {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-header {
    flex-wrap: nowrap;
  }

  .promo-container {
    display: flex;
    flex-direction: column;
  }

  .promo-visible {
    display: flex;
  }

  .promo-left {
    display: flex;
    width: 280px;
    flex: 0 0 280px;
    align-items: center;
    gap: 10px;
  }

  .promo-middle {
    max-width: 520px;
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .promo-middle-inner {
    display: flex;
    justify-content: start;
    align-items: stretch;
  }

  .promo-right {
    display: flex;
    flex-wrap: wrap;
    padding-left: 15px;
    flex: 2;
    align-content: flex-start;
    align-items: flex-start;
    gap: 15px;
  }

  .promo-summary {
    flex: 2;
  }

  .promo-detail {
    flex: 3;
  }

  .promo-bonus-detail {
    flex: 2;
    padding-left: 20px;
  }

  .promo-middle .payment-options {
    max-width: 420px;
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .promo-middle .payment-options span {
    display: block;
    width: 100%;
    padding-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #666;
  }

  /* Desktop: show all icons, hide toggle */
  .payment-icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .payment-icons-toggle {
    display: none;
  }

  .promo-hidden {
    display: flex;
    justify-content: space-between;
  }

  .promo-title {
    display: flex;
    align-items: center;
    flex: 1;
  }

  .promo-title-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    gap: 4px;
  }

  .promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .promo-left .promo-title h2 {
    font-size: 18px;
    padding: 0;
    margin: 0;
    line-height: 1.3;
  }

  .promo-middle .promo-bonus,
  .promo-middle .promo-codes-extra {
    width: calc(50% - 8px);
    margin: 0 0 10px 0;
    min-height: 80px;
  }

  .promo-middle .promo-codes-extra {
    margin-left: 15px;
  }

  .promo-right .read-more {
    padding: 5px 10px;
  }

  .promo-detail ul li strong {
    min-width: 40%;
  }

  .promo-detail ul li {
    display: flex
  }
}

@media only screen and (min-width: 568px) and (max-width: 768px) {
  .promo-right .cta-button {
    padding: 20px 40px !important;
  }

  .promo-right {
    flex: 1
  }
}




@media (max-width: 767px) {


  /* Wrap safety (even if not wrapped) */
  table.has-fixed-layout {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    border-collapse: separate;
    border-spacing: 0;
    -webkit-overflow-scrolling: touch;
  }

  table.has-fixed-layout thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
  }

  table.has-fixed-layout th,
  table.has-fixed-layout td {
    padding: 12px 14px;
    font-size: 14px;
    white-space: normal;
  }

  table.has-fixed-layout tr {
    background: #fff;
  }

  table.has-fixed-layout tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
  }

  /* Rounded edges */
  table.has-fixed-layout tr:first-child th:first-child {
    border-top-left-radius: 12px;
  }

  table.has-fixed-layout tr:first-child th:last-child {
    border-top-right-radius: 12px;
  }

  .wp-block-table .has-fixed-layout td,
  .wp-block-table .has-fixed-layout th {
    word-break: keep-all!important;
  }

  .promo-left .promo-image {
    margin: 0 auto;
    text-align: center;
  }

  .promo-container {
    display: block;
  }

  .promo-visible {
    display: block;
  }

  .promo-left {
    display: block;
  }

  .promo-middle {
    display: block;
  }

  .promo-right {
    display: block;
    padding-top: 20px;
  }

  .promo-right .read-more {
    height: 50px;
    line-height: 50px;
    display: block;
    margin-top: 10px;
  }

  .promo-summary {
    display: block;
    margin-bottom: 20px;
  }

  .promo-detail {
    display: block;
    margin-bottom: 20px
  }

  .promo-bonus-detail {
    display: block;
  }

  .promo-left .promo-title h2 {
    text-align: center;
    padding-top: 20px;
  }

  .promo-title-inner {
    align-items: center;
  }

  .casino-rating {
    align-items: center !important;
  }

  .promo-bonus,
  .promo-codes-extra {
    margin: 10px auto 10px auto;
    text-align: center;
  }

  .payment-options {
    margin-top: 20px;
  }

  .payment-icons-wrapper {
    position: relative;
  }

  .payment-icons-container {
    max-height: 75px;
    overflow: hidden;
    transition: max-height 0.1s ease;
  }

  .payment-icons-container.expanded {
    max-height: 500px;
  }

  .payment-icons-toggle {
    position: absolute;
    right: 0;
    top: 39px;
  }

  .payment-icons-container.expanded .payment-icons-toggle {
    position: static;
  }

  a.cta-button.detail-button {
    width: 100%;
    justify-content: center;
    padding: 15px;
  }
}

.promo-container {
  position: relative;
  margin-bottom: 30px;
}

.promo-top-text {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.promo-top-text {
  --f: .5em;
  --r: .8em;
  position: absolute;
  top: -10px;
  left: -10px;
  padding-inline: 1em;
  line-height: 1.8;
  background: #69ba56;
  border-bottom: var(--f) solid #0005;
  border-right: var(--r) solid #0000;
  clip-path: polygon(0 0, 0 calc(100% - var(--f)), var(--f) 100%, var(--f) calc(100% - var(--f)), 100% calc(100% - var(--f)), calc(100% - var(--r)) calc(50% - var(--f)/2), 100% 0);
}

.promo-visible {
  padding-top: 15px;
  width: 100%;
}

.promo-left .promo-image {
  position: relative;
  height: 120px;
}

.promo-left .promo-image span {
  position: absolute;
  bottom: -15px;
  left: 0px;
  right: 0px;
  margin-left: auto;
  margin-right: auto;
  background-color: #f5da49;
  padding: 5px 10px;
  font-size: 18px;
  color: #000;
  display: block;
  width: fit-content;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
}

.promo-left .promo-image img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 60px;
}

.promo-left .promo-title h2 {
  font-size: 24px;
}



.promo-middle .promo-bonus,
.promo-middle .promo-codes-extra {
  padding: 10px 14px;
  border-radius: 8px;
  background-color: #fff;
  display: block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  line-height: 1.4;
}

.promo-middle .promo-bonus strong,
.promo-middle .promo-codes-extra strong {
  display: block;
}

.promo-right a {
  text-align: center;
  font-weight: 500;
  margin: 0 auto;
}

.promo-right .cta-button {
  display: block;
  width: 100%;
  text-decoration: none;
  align-self: start;
  font-size: 20px;
  padding: 20px 59px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  background-color: #69ba56;
  color: #fff;
  border: none;
  cursor: pointer;
}

.promo-right .read-more {
  width: 50%;
  text-decoration: none;
  background-color: #3a8bda;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  align-self: center;
}

.promo-hidden {
  border-top: 1px solid #dedede;
  padding-top: 15px;
  margin-top: 15px;
  gap: 30px;
}

.promo-bonus-detail ul {
  list-style: none;
  margin: 0;
}

.promo-bonus-detail li {
  background-color: #dedede;
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 5px 10px;
}

.promo-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%
}

.promo-detail ul li {
  padding: 10px;
  font-size: 16px;
  width: 100%
}

.promo-detail ul li:nth-child(even) {
  background-color: #f9f9f9;
}

.promo-detail ul li:nth-child(odd) {
  background-color: #e0e0e0;
}

.promo-summary ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.promo-summary ul li {
  font-size: 16px;
  padding-left: 20px;
  position: relative;
  line-height: 28px
}

.promo-summary ul li::before {
  content: '★';
  color: gold;
  font-size: 18px;
  position: absolute;
  left: 0;
  top: 0;
}

.promo-hidden.hide {
  display: none;
}



/* Casino Rating Styles */
.casino-rating {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-left: 1px;
}

.casino-rating-score {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: #555;
}

.casino-rating-stars {
  font-size: 18px;
  line-height: 1;
  color: #ffd700;
  display: flex;
  gap: 0;
  letter-spacing: 0;
  margin-left: -2px;
}

.casino-rating-stars .star.empty {
  color: #ccc;
}

.casino-rating-stars .star.half {
  background: linear-gradient(90deg, #ffd700 50%, #ccc 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Casino Bottom Text Styles */
.casino-bottom-text {
  margin: 20px -20px -20px -20px;
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95em;
  color: #555;
  background-color: #f1f1f1;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Pros and Cons Styles */
.casino-pros-cons-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.casino-pros-box,
.casino-cons-box {
  padding: 15px;
  border-radius: 8px;
  font-size: 0.95em;
  line-height: 1.5;
}

.casino-pros-box {
  background-color: rgba(105, 186, 86, 0.1);
  border-left: 4px solid #69ba56;
}

.casino-cons-box {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
}

.casino-pros-title {
  color: #69ba56;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

.casino-cons-title {
  color: #dc3545;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

.casino-pros-box ul,
.casino-cons-box ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc !important;
}

.casino-pros-box li,
.casino-cons-box li {
  margin-bottom: 5px;
  padding-left: 0 !important;
}

/* Override the star icon from .promo-summary */
.casino-pros-box ul li::before,
.casino-cons-box ul li::before {
  content: none !important;
}

/* ==========================================================================
   Grid layout — opt-in via [casino_display layout="grid"]
   Wraps cards in a CSS grid (4-up desktop / 2-up tablet / 1-up mobile)
   and forces each card's interior to render as a stacked vertical tile
   (matching the mobile card design) regardless of viewport width.
   ========================================================================== */

.casino-display-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Reset the absolute "ribbon" treatment from the base rule — in grid mode
   .promo-top-text is a full-width banner, not a corner tag. Applied at ALL
   widths (not just desktop) so on mobile the banner is a normal in-flow
   block and the casino logo no longer overlaps the text. */
.casino-display-grid .promo-top-text {
  position: static;
  top: auto;
  left: auto;
  clip-path: none;
  border-bottom: none;
  border-right: none;
  width: auto;
  padding: 8px 14px;
  margin: -20px -20px 0 -20px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  line-height: 1.3;
  /* Fixed height (not min-height) so the banner is identical across every
     card — keeps logos, names and everything below aligned row to row. */
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Clamp the banner copy to 4 lines so longer promo text never overflows
   the fixed-height banner. Lives on an inner span because -webkit-line-clamp
   needs display:-webkit-box, which can't also be the flex centering box. */
.casino-display-grid .promo-top-text-inner {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Grid cards must be able to shrink below their content's intrinsic width,
   otherwise long unbreakable Estonian words (spordiennustused, etc.) blow
   out the 1fr track and 4 columns overflow the viewport. */
.casino-display-grid .promo-container {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ...but never break words inside the buttons — keep CTA / See more labels
   on one line. The base CTA has 59px side padding which, on a narrow 4-up
   card, would otherwise force "KASIINOSSE" to wrap. */
.casino-display-grid .cta-button,
.casino-display-grid .read-more {
  overflow-wrap: normal;
  word-wrap: normal;
}

.casino-display-grid .promo-right .cta-button {
  padding: 18px 16px !important;
}

/* Ranking badge: sit it just below the logo edge — clear of the image but
   without a big floating gap. The base rule's bottom: -15px tucks it in. */
.casino-display-grid .promo-left .promo-image {
  margin-bottom: 24px;
}

.casino-display-grid .promo-left .promo-image span {
  bottom: -32px;
}

/* If a casino has no featured image, the 120px-tall slot leaves a huge
   empty void with the #N badge floating in space. Collapse the empty box
   and render the rank badge inline just above the title. (All widths.) */
.casino-display-grid .promo-left .promo-image:not(:has(img)) {
  height: auto;
  margin-bottom: 10px;
}

.casino-display-grid .promo-left .promo-image:not(:has(img)) span {
  position: static;
  bottom: auto;
  margin: 0 auto;
}

/* Tighten the gap between the banner and the logo. */
.casino-display-grid .promo-visible {
  padding-top: 12px;
}

@media (min-width: 768px) {
  .casino-display-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }

  /* Force stacked card interior (override horizontal desktop layout).
     Card is a flex column at full row-height so CTAs align across cards. */
  .casino-display-grid .promo-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch;
    margin-bottom: 0;
  }

  .casino-display-grid .promo-bonus,
  .casino-display-grid .promo-codes-extra {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .casino-display-grid .promo-visible {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .casino-display-grid .promo-left,
  .casino-display-grid .promo-middle {
    display: block;
    width: auto;
    max-width: none;
    flex: none;
    padding-left: 0;
  }

  /* Pin CTA + See more to the bottom of every card so buttons line up
     across the row regardless of varying middle-content height.
     Reset flex/align rules from the horizontal-mode .promo-right block
     above so margin-top: auto actually has slack to push into. */
  .casino-display-grid .promo-right {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: stretch;
    gap: 10px;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-top: 20px;
    margin-top: auto;
  }

  .casino-display-grid .promo-right .read-more {
    height: 50px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    width: 100%;
    padding: 0;
  }

  .casino-display-grid .promo-left .promo-image {
    margin: 0 auto 24px;
    text-align: center;
  }

  .casino-display-grid .promo-left .promo-title h2 {
    text-align: center;
    padding-top: 20px;
    font-size: 24px;
  }

  .casino-display-grid .promo-title-inner {
    align-items: center;
  }

  .casino-display-grid .casino-rating {
    align-items: center !important;
  }

  .casino-display-grid .promo-middle .promo-bonus,
  .casino-display-grid .promo-middle .promo-codes-extra {
    width: auto;
    max-width: none;
    margin: 10px auto;
    min-height: 0;
    text-align: center;
  }

  .casino-display-grid .promo-middle .promo-middle-inner {
    display: block;
  }

  .casino-display-grid .promo-middle .payment-options {
    max-width: none;
    margin-top: 20px;
  }

  /* Use the mobile-style payment-icons collapse (+X overflow) in grid mode */
  .casino-display-grid .payment-icons-wrapper {
    position: relative;
  }

  .casino-display-grid .payment-icons-container {
    max-height: 75px;
    overflow: hidden;
    transition: max-height 0.1s ease;
  }

  .casino-display-grid .payment-icons-container.expanded {
    max-height: 500px;
  }

  .casino-display-grid .payment-icons-toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 39px;
  }

  .casino-display-grid .payment-icons-container.expanded .payment-icons-toggle {
    position: static;
  }

  /* Grid mode: never expand details inline — they open in a modal instead. */
  .casino-display-grid .promo-hidden {
    display: none !important;
  }

  /* Grid mode: hide the descriptive bottom_text inside the tile. It varies
     in length per casino, which knocks button alignment off across cards.
     Surfaced in the See-more modal instead. */
  .casino-display-grid .casino-bottom-text {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .casino-display-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* ==========================================================================
   See-more modal — used by grid mode (.casino-display-grid) to keep all
   cards uniform height. JS clones the card's .promo-hidden into the modal.
   ========================================================================== */

.casino-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.casino-modal[hidden] {
  display: none;
}

.casino-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.casino-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: casinoModalIn 180ms ease-out;
  font-size: 14px;
  line-height: 1.45;
}

@keyframes casinoModalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.casino-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #444;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.casino-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #000;
  transform: scale(1.05);
}

.casino-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 52px 14px 20px;
  border-bottom: 1px solid #eef0f3;
  background: #fafbfd;
  border-radius: 12px 12px 0 0;
}

.casino-modal-header:empty {
  display: none;
}

/* Reset the cloned .promo-left to a horizontal name+logo strip. */
.casino-modal-header .promo-left {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.casino-modal-header .promo-image {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  margin: 0;
  text-align: left;
}

.casino-modal-header .promo-image img {
  width: 56px;
  height: 56px;
  max-width: none;
  max-height: none;
  border-radius: 50%;
  object-fit: cover;
}

.casino-modal-header .promo-image span {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f5da49;
  padding: 2px 7px;
  font-size: 11px;
  color: #000;
  border-radius: 8px;
  font-weight: 600;
  width: auto;
  margin: 0;
  line-height: 1.2;
}

.casino-modal-header .promo-title {
  flex: 1;
  display: block;
  text-align: left;
}

.casino-modal-header .promo-title-inner {
  display: block;
  align-items: flex-start;
  text-align: left;
}

.casino-modal-header .promo-title h2 {
  margin: 0;
  font-size: 18px;
  text-align: left;
  padding-top: 0;
  line-height: 1.25;
  font-weight: 700;
}

.casino-modal-body {
  padding: 16px 20px 20px;
}

.casino-modal-body .promo-hidden {
  display: block !important;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  gap: 0;
}

.casino-modal-body .promo-summary,
.casino-modal-body .promo-detail,
.casino-modal-body .promo-bonus-detail {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef0f3;
}

.casino-modal-body .promo-summary:last-child,
.casino-modal-body .promo-detail:last-child,
.casino-modal-body .promo-bonus-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.casino-modal-body h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Multiple <h3> sections live inside .promo-summary (Summary + Resources).
   Push subsequent headings down so they don't collide with prior content. */
.casino-modal-body .promo-summary h3 + *,
.casino-modal-body .promo-detail h3 + *,
.casino-modal-body .promo-bonus-detail h3 + * {
  margin-top: 0;
}

.casino-modal-body .promo-summary > h3 ~ h3,
.casino-modal-body .promo-summary > h3:not(:first-child),
.casino-modal-body .promo-detail > h3:not(:first-child),
.casino-modal-body .promo-bonus-detail > h3:not(:first-child) {
  margin-top: 20px;
}

/* Inline rank badge fallback used when the casino has no logo image. */
.casino-modal-rank-inline {
  display: inline-block;
  background-color: #f5da49;
  color: #000;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
  line-height: 1.3;
}

/* Compact list styling overrides — direct-child only so the pros/cons
   <ul>s nested deeper inside .promo-summary don't get the grid treatment. */
.casino-modal-body .promo-summary > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px 16px;
  margin: 0;
}

.casino-modal-body .promo-summary > ul > li {
  font-size: 13px;
  line-height: 1.5;
  padding-left: 16px;
}

.casino-modal-body .promo-summary > ul > li::before {
  font-size: 13px;
  top: 1px;
}

.casino-modal-body .promo-detail ul li {
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.casino-modal-body .promo-bonus-detail ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
  margin: 0;
  padding: 0 !important;
  padding-inline-start: 0 !important;
  list-style: none;
}

.casino-modal-body .promo-bonus-detail ul li {
  margin-bottom: 0;
  padding: 5px 9px;
  font-size: 12.5px;
  line-height: 1.35;
  border-radius: 5px;
}

@media (max-width: 600px) {
  .casino-modal-body .promo-bonus-detail ul {
    grid-template-columns: 1fr;
  }
}

.casino-modal-body a.cta-button.detail-button {
  margin: 16px auto 0;
  padding: 12px 28px;
  font-size: 14px !important;
  display: inline-flex;
  width: auto;
  align-self: center;
}

.casino-modal-body .promo-bonus-detail,
.casino-modal-body .promo-summary,
.casino-modal-body .promo-detail {
  padding-left: 0;
  flex: none;
}

.casino-modal-body .promo-bonus-detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.casino-modal-body .promo-bonus-detail h3,
.casino-modal-body .promo-bonus-detail ul {
  text-align: left;
}

.casino-modal-body .casino-bottom-text {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: #f5f7fa;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.casino-modal-body .casino-pros-cons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .casino-modal-body .casino-pros-cons-container {
    grid-template-columns: 1fr;
  }
}

.casino-modal-body .casino-pros-box,
.casino-modal-body .casino-cons-box {
  padding: 10px 14px;
}

.casino-modal-body .casino-pros-title,
.casino-modal-body .casino-cons-title {
  font-size: 13px;
}

.casino-modal-body .casino-pros-box ul,
.casino-modal-body .casino-cons-box ul {
  margin: 4px 0 0;
}

.casino-modal-body .casino-pros-box ul li,
.casino-modal-body .casino-cons-box ul li {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 2px;
}

body.casino-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .casino-modal {
    padding: 0;
  }
  .casino-modal-dialog {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }
  .casino-modal-header {
    padding: 14px 48px 12px 16px;
    border-radius: 0;
  }
  .casino-modal-body {
    padding: 14px 16px 20px;
  }
  .casino-modal-header .promo-image,
  .casino-modal-header .promo-image img {
    width: 48px;
    height: 48px;
  }
  .casino-modal-header .promo-title h2 {
    font-size: 16px;
  }
  .casino-modal-body .promo-summary ul {
    grid-template-columns: 1fr 1fr;
  }
}