/* MediaPronos e-book opt-in — scoped so it can coexist with WordPress themes. */
#mp-ebook-ui {
  --mp-black: #111111;
  --mp-white: #ffffff;
  --mp-yellow: #ffd400;
  --mp-gray: #f2f2f2;
  --mp-muted: #565656;
  color: var(--mp-black);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#mp-ebook-ui *, #mp-ebook-dialog * { box-sizing: border-box; }
#mp-ebook-open {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.2rem; border: 0; border-radius: 6px;
  background: var(--mp-yellow); color: var(--mp-black); font: inherit; font-weight: 750;
  text-align: center; text-decoration: none; cursor: pointer;
}
#mp-ebook-open:hover { background: #eac300; }
#mp-ebook-open:focus-visible, #mp-ebook-dialog :focus-visible {
  outline: 3px solid #1769aa; outline-offset: 3px;
}
#mp-ebook-dialog {
  width: min(94vw, 560px); max-width: 560px; max-height: min(92dvh, 800px); padding: 0;
  border: 0; border-radius: 10px; background: var(--mp-white); color: var(--mp-black);
  box-shadow: 0 20px 70px rgb(0 0 0 / 35%); overflow: auto;
}
#mp-ebook-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.mp-ebook-panel { padding: clamp(1.15rem, 5vw, 2rem); }
.mp-ebook-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.mp-ebook-kicker { margin: 0 0 .45rem; color: #4b4b4b; font-size: .8rem; font-weight: 700; }
.mp-ebook-title { max-width: 15ch; margin: 0; font-size: clamp(1.65rem, 7vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; }
.mp-ebook-close {
  flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid #c8c8c8; border-radius: 50%;
  background: #fff; color: #111; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.mp-ebook-intro { margin: .95rem 0 1.15rem; color: #333; }
.mp-ebook-lessons { margin: 0 0 1.2rem; padding: .9rem 1rem; border-radius: 6px; background: var(--mp-gray); }
.mp-ebook-lessons strong { display: block; margin-bottom: .2rem; }
.mp-ebook-form { display: grid; gap: .85rem; }
.mp-ebook-field { display: grid; gap: .3rem; }
.mp-ebook-field label, .mp-ebook-check label { font-weight: 650; }
.mp-ebook-field input[type="text"], .mp-ebook-field input[type="email"] {
  width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid #777; border-radius: 5px;
  background: #fff; color: #111; font: inherit;
}
.mp-ebook-check { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); align-items: start; gap: .55rem; }
.mp-ebook-check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: #111; }
.mp-ebook-check label { font-size: .9rem; font-weight: 450; line-height: 1.4; }
.mp-ebook-submit {
  min-height: 48px; padding: .75rem 1rem; border: 0; border-radius: 6px; background: #111; color: #fff;
  font: inherit; font-weight: 750; cursor: pointer;
}
.mp-ebook-submit:hover { background: #333; }
.mp-ebook-submit:disabled { opacity: .65; cursor: wait; }
.mp-ebook-privacy { margin: -.2rem 0 0; color: var(--mp-muted); font-size: .78rem; }
#mp-ebook-message { min-height: 1.4em; margin: 0; font-weight: 650; }
#mp-ebook-message[data-state="error"] { color: #9c1b1b; }
#mp-ebook-message[data-state="success"] { color: #155c2b; }
.mp-ebook-trap { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 380px) {
  #mp-ebook-open { width: 100%; }
  .mp-ebook-panel { padding: 1rem; }
  .mp-ebook-title { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) { #mp-ebook-ui, #mp-ebook-ui *, #mp-ebook-ui *::before, #mp-ebook-ui *::after { scroll-behavior: auto !important; } }
