.scpa-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.scpa-overlay.is-hidden {
  display: none;
}

.scpa-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.scpa-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  max-height: 88vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scpa-close {
  position: fixed;
  left: calc(18px + env(safe-area-inset-left));
  right: auto;
  top: auto;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 2147483002;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.scpa-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.scpa-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  background: #fff;
}

@media (max-width: 640px) {
  .scpa-overlay {
    padding: 16px;
  }

  .scpa-dialog {
    width: min(94vw, 520px);
  }

  .scpa-close {
    left: calc(14px + env(safe-area-inset-left));
    right: auto;
    top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    font-size: 34px;
    line-height: 42px;
  }

  .scpa-banner-image {
    border-radius: 10px;
  }
}
