/* Physics Sensei free account banner — a calm reminder, not a pop-up.
 * Uses the site color tokens so it follows light and dark mode. */

.psb {
  --psb-accent: #5cbf6c;
  --psb-text: var(--ps-text, #1c2a42);
  --psb-muted: var(--ps-text-muted, #5f6878);
  --psb-card: var(--ps-card, #ffffff);
  box-sizing: border-box;
  width: 80%;              /* same width as a Divi row */
  max-width: 1080px;
  margin: 28px auto;
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--psb-accent) 35%, var(--ps-border, #dddddd));
  border-left: 5px solid var(--psb-accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--psb-accent) 7%, var(--psb-card));
  color: var(--psb-text);
  font-size: 16px;
  line-height: 1.5;
}
.psb *, .psb *::before, .psb *::after { box-sizing: border-box; }
.psb p { margin: 0; padding: 0; }

.psb-full { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
/* In a narrow column the button drops below the text instead of squeezing it */
.psb-copy { flex: 1 1 340px; min-width: 0; }
.psb .psb-headline { font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--psb-text) !important; margin-bottom: 6px; }
.psb .psb-text { color: var(--psb-muted) !important; }
.psb .psb-extra { margin-top: 6px; font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--psb-accent) 65%, var(--psb-text)) !important; }
.psb-action { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.psb .psb-note { font-size: 13px; color: var(--psb-muted); }

.psb .psb-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 22px;
  border-radius: 999px;
  background: var(--psb-accent);
  color: #111827 !important; -webkit-text-fill-color: #111827 !important;
  font-weight: 800; font-size: 16px; line-height: 1.2;
  text-decoration: none !important; white-space: nowrap;
  transition: transform 160ms ease, filter 160ms ease;
}
.psb .psb-button:hover, .psb .psb-button:focus-visible { transform: translateY(-2px); filter: brightness(0.95); }
.psb .psb-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--psb-accent) 45%, transparent); outline-offset: 2px; }

/* Short reminder: one line, smaller */
.psb-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; margin: 22px auto; }
.psb-slim .psb-text { flex: 1 1 340px; font-size: 15px; color: var(--psb-text) !important; }
.psb-slim .psb-button { min-height: 38px; padding: 8px 16px; font-size: 14px; }

/* Inside an article the banner follows the text width */
.et_pb_post_content .psb, .entry-content .psb { width: 100%; max-width: 100%; }

@media (max-width: 700px) {
  .psb { width: 90%; }
  .psb-full, .psb-slim { flex-direction: column; align-items: stretch; text-align: left; }
  .psb-action { align-items: stretch; }
  .psb .psb-button { width: 100%; white-space: normal; }
  .psb .psb-note { text-align: center; }
}
