.bonus-registration-popup {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: min(760px, 90dvh, calc(100dvh - 32px));
  max-height: min(90dvh, calc(100dvh - 32px));
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bonus-registration-popup[open] {
  display: grid;
  /* Structural clearance keeps the close control outside the scrolling form. */
  grid-template-rows: 44px minmax(0, 1fr);
}

.bonus-registration-popup::backdrop {
  background: rgb(0 0 0 / 65%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bonus-registration-popup iframe {
  grid-row: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.bonus-registration-close {
  position: absolute;
  inset-block-start: 5px;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #b99d64;
  border-radius: 50%;
  background: #131b35;
  color: #fbe3a3;
  font: 26px/1 Arial, sans-serif;
  cursor: pointer;
}

[data-bonus-register] { cursor: pointer; }
.bonus-registration-close:focus-visible,
[data-bonus-register]:focus-visible {
  outline: 2px solid #fbe3a3;
  outline-offset: 3px;
}

.banner-general__ctas button[data-bonus-register],
.banner-sports-book-matches__cta-btn[data-bonus-register],
#sign-up-left-aside[data-bonus-register],
#sign-in-left-aside[data-bonus-register],
.landing-mobile-actions > button[data-bonus-register] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  height: auto;
  max-width: 100%;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(105deg, #b99d64, #ffe6a2);
  color: #03213e;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  box-shadow: inset 0 1px 0 #fff4, 0 3px 10px #0002;
  transition: filter 150ms ease, box-shadow 150ms ease;
}
.banner-general__ctas button[data-bonus-register] { min-height: 56px; min-width: 140px; font-size: 18px; }
.banner-sports-book-matches__cta-btn[data-bonus-register] { min-height: 56px; font-size: 18px; }
#sign-up-left-aside[data-bonus-register],
#sign-in-left-aside[data-bonus-register] { width: 100%; padding-inline: 16px; }
@media (hover: hover) {
  button[data-bonus-register]:hover { filter: brightness(1.08); }
}
button[data-bonus-register]:active {
  filter: brightness(.94);
  box-shadow: inset 0 2px 5px #03213e40;
}
.bonus-registration-close:hover { background: #28334e; }
@media (max-width: 767px) {
  .banner-general__ctas button[data-bonus-register] {
    min-width: 0;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 14px;
  }
  .banner-general__ctas { flex-wrap: wrap; }
  .landing-mobile-actions > button[data-bonus-register] {
    min-width: 0;
    min-height: 40px;
    padding: 8px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button[data-bonus-register] { transition: none; }
}
