.h2pbp-open {
  overflow: hidden;
}

.h2pbp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.h2pbp-overlay.h2pbp-visible {
  opacity: 1;
  visibility: visible;
}

.h2pbp-modal {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 720px;
  min-height: 420px;
  overflow: hidden;
  border-radius: 18px;
  background-color: #222;
  background-position: center;
  background-size: cover;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  transform: translateY(12px) scale(.98);
  transition: transform .18s ease;
}

.h2pbp-visible .h2pbp-modal {
  transform: translateY(0) scale(1);
}

.h2pbp-content {
  width: 100%;
  padding: 42px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.h2pbp-content h2 {
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 700;
}

.h2pbp-description {
  max-width: 680px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.h2pbp-description p:last-child {
  margin-bottom: 0;
}

.h2pbp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.h2pbp-close:hover,
.h2pbp-close:focus {
  background: rgba(0, 0, 0, .72);
  outline: none;
}

@media (max-width: 767px) {
  .h2pbp-overlay {
    align-items: center;
    padding: 14px;
  }

  .h2pbp-modal {
    max-width: calc(100vw - 28px) !important;
    min-height: min(520px, calc(100vh - 28px)) !important;
    max-height: calc(100vh - 28px);
    border-radius: 14px;
  }

  .h2pbp-content {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 72px 22px 26px;
  }

  .h2pbp-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

.h2pbp-modal-prize .h2pbp-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.h2pbp-prize {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 420px;
}

.h2pbp-prize-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 260px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.h2pbp-prize-image img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.h2pbp-prize-name {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .52);
  color: #fff;
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.2;
  font-weight: 700;
}

.h2pbp-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

.h2pbp-claim:hover,
.h2pbp-claim:focus {
  background: #f2f2f2;
  outline: none;
}

.h2pbp-claim:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.h2pbp-claim-message {
  min-height: 20px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.h2pbp-claim-error {
  color: #ffd0d0;
}

.h2pbp-claim-success {
  color: #d6ffd6;
}

@media (max-width: 767px) {
  .h2pbp-prize {
    width: 100%;
    max-width: none;
  }

  .h2pbp-prize-image {
    max-width: min(260px, 100%);
  }

  .h2pbp-prize-image img {
    max-height: 180px;
  }

  .h2pbp-claim {
    width: 100%;
  }
}

/* Summer campaign: independent from surprise-prize layout. */
.h2pbp-summer{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;max-width:820px;max-height:calc(100vh - 48px);overflow:auto;border-radius:20px;background:#fff;color:#202631;box-shadow:0 24px 70px rgba(0,0,0,.35);}
.h2pbp-summer-picture{display:block;min-width:0;background:#f4f6f8;align-self:stretch;}
.h2pbp-summer-picture img{display:block;width:100%;height:100%;max-height:500px;object-fit:contain;}
.h2pbp-summer-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;padding:42px 36px;min-width:0;}
.h2pbp-summer-no-picture .h2pbp-summer-content{grid-column:1/-1;}
.h2pbp-summer-title{font-size:clamp(25px,4vw,36px);line-height:1.08;margin:0;color:#202631;font-weight:700;}
.h2pbp-summer-name{font-size:19px;font-weight:600;margin:0;line-height:1.35;}
.h2pbp-summer-description,.h2pbp-summer-validity{font-size:14px;line-height:1.4;margin:0;color:#4d5662;}
.h2pbp-summer-before{font-size:20px;color:#667085;}
.h2pbp-summer-today{font-size:clamp(33px,5vw,46px);line-height:1.1;color:#10386f;font-weight:800;}
.h2pbp-summer-cta{display:block;width:100%;box-sizing:border-box;text-align:center;padding:14px 20px;background:#10386f;color:#fff!important;text-decoration:none!important;border-radius:10px;font-size:17px;font-weight:700;}
.h2pbp-summer-cta:focus,.h2pbp-summer .h2pbp-close:focus{outline:3px solid #e6a625;outline-offset:2px;}
@media(max-width:767px){.h2pbp-summer{grid-template-columns:1fr;max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);border-radius:16px;}.h2pbp-summer-picture img{height:auto;max-height:36vh;object-fit:contain;}.h2pbp-summer-content{padding:22px;gap:8px;}.h2pbp-summer-title{font-size:26px;}.h2pbp-summer-today{font-size:34px;}}
