.psp-banner,
.psp-popup-wrap,
.psp-popup-wrap * {
  box-sizing: border-box;
}

.psp-banner {
  width: 100%;
  max-width: var(--psp-max-width, 880px);
  margin: 24px auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.psp-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  position: relative;
}

.psp-copy {
  min-width: 0;
}

.psp-headline {
  font-size: clamp(22px, 2vw, 38px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--psp-accent, #0d2366);
}

.psp-subheadline {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.72);
}

.psp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}

.psp-button:hover {
  transform: translateY(-1px);
}

.psp-button-label {
  font-weight: 700;
}

.psp-google-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  background: conic-gradient(#4285F4 0 25%, #34A853 25% 50%, #FBBC05 50% 75%, #EA4335 75% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.psp-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.08);
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}

.psp-template-soft_card .psp-banner-inner {
  padding: 30px 34px;
  border-radius: 24px;
  background: var(--psp-highlight, #e9dbd1);
  border: 2px solid rgba(13, 35, 102, 0.08);
}

.psp-template-soft_card .psp-button {
  padding: 18px 24px;
  border-radius: 18px;
  background: var(--psp-button-bg, #f4f4f4);
  color: var(--psp-button-text, #0d2366);
  border: 2px solid rgba(13, 35, 102, 0.10);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.psp-template-soft_card .psp-button-label {
  font-size: clamp(16px, 1.4vw, 22px);
}

.psp-template-split_minimal .psp-banner-inner {
  padding: 22px 26px;
  border: 1px solid #ddd;
  background: #fff;
  position: relative;
}

.psp-template-split_minimal .psp-banner-inner::before,
.psp-template-split_minimal .psp-banner-inner::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  width: 8px;
  background: #ef3d4f;
}

.psp-template-split_minimal .psp-banner-inner::before { left: 0; }
.psp-template-split_minimal .psp-banner-inner::after { right: 0; }

.psp-template-split_minimal .psp-headline {
  color: #151515;
  text-transform: uppercase;
  font-size: clamp(20px, 1.8vw, 32px);
  letter-spacing: .2px;
}

.psp-template-split_minimal .psp-button {
  padding: 14px 22px;
  border-radius: 14px;
  background: #111;
  color: #fff;
}

.psp-template-split_minimal .psp-button-label {
  font-size: clamp(15px, 1.2vw, 22px);
}

.psp-template-clean_banner .psp-banner-inner {
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid rgba(13,35,102,.12);
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.psp-template-clean_banner .psp-button {
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--psp-button-bg, #f4f4f4);
  color: var(--psp-button-text, #0d2366);
  border: 1px solid rgba(13,35,102,.15);
}

.psp-mode-sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 20px), var(--psp-max-width, 880px));
  z-index: 99997;
  margin: 0;
}

.psp-sticky-top { top: 10px; }
.psp-sticky-bottom { bottom: 10px; }

.psp-mode-floating {
  position: fixed;
  z-index: 99997;
  width: min(calc(100% - 20px), 420px);
  margin: 0;
}

.psp-floating-bottom_right { right: 14px; bottom: 14px; }
.psp-floating-bottom_left { left: 14px; bottom: 14px; }

.psp-mode-floating .psp-banner-inner,
.psp-mode-sticky .psp-banner-inner {
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  gap: 14px;
  padding-right: 48px;
}

.psp-mode-floating .psp-headline,
.psp-mode-sticky .psp-headline {
  font-size: clamp(16px, 1.2vw, 24px);
}

.psp-mode-floating .psp-button-label,
.psp-mode-sticky .psp-button-label {
  font-size: 15px;
}

.psp-popup-wrap {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.psp-popup-wrap.psp-active {
  display: flex;
}

.psp-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
}

.psp-popup-panel {
  position: relative;
  width: min(calc(100% - 24px), 960px);
  z-index: 2;
}

.psp-popup-panel .psp-banner {
  margin: 0;
  max-width: none;
}

.psp-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.08);
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.psp-dismissed { display: none !important; }

@media (max-width: 782px) {
  .psp-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .psp-button {
    width: 100%;
  }

  .psp-headline {
    font-size: clamp(20px, 6vw, 32px);
  }

  .psp-template-split_minimal .psp-banner-inner::before,
  .psp-template-split_minimal .psp-banner-inner::after {
    width: 6px;
    top: 18px;
    bottom: 18px;
  }

  .psp-mode-floating,
  .psp-mode-sticky {
    width: calc(100% - 16px);
  }

  .psp-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 783px) {
  .psp-hide-desktop { display: none !important; }
}
