/* Basic styles for the popup banner */
#wpb-popup-root { position: fixed; inset: 0; z-index: 999999; }
#wpb-popup-root.wpb-hidden { display: none; }

.wpb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }

.wpb-modal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: var(--wpb-width, 520px);
  width: calc(100% - 32px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.wpb-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  max-width: var(--wpb-width, 960px);
  width: calc(100% - 32px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wpb-theme-dark { background: #111827; color: #e5e7eb; border: 1px solid rgba(255,255,255,.08); }
.wpb-theme-light { background: #ffffff; color: #111827; border: 1px solid rgba(0,0,0,.08); }

.wpb-content { padding: 18px 20px; line-height: 1.45; font-size: 16px; }
.wpb-actions { display: flex; justify-content: flex-end; padding: 10px 12px; gap: 8px; }

.wpb-close {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-size: 14px; padding: 8px 12px; border-radius: 8px;
}
.wpb-close:hover { filter: brightness(1.1); }
.wpb-theme-dark .wpb-close { color: #e5e7eb; background: rgba(255,255,255,.08); }
.wpb-theme-light .wpb-close { color: #111827; background: rgba(0,0,0,.06); }

.wpb-xbtn {
  position: absolute; top: 8px; right: 10px;
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; font-weight: 700;
  background: rgba(0,0,0,.15); color: #fff;
}
.wpb-theme-light .wpb-xbtn { background: rgba(0,0,0,.06); color: #111; }

@media (max-width: 600px) {
  .wpb-modal { top: 50%; }
}
