/* WPBeginner AI Search — front-end widget (self-contained). Matches Figma "Ask WPBeginner". */
:root {
  --wpb-ai-orange: #f26522;
  --wpb-ai-orange-2: #f7941d;
  --wpb-ai-ink: #1d1d1f;
  --wpb-ai-muted: #6b6b73;
  --wpb-ai-line: #e5e5ea;
  --wpb-ai-gradient: linear-gradient(90deg, #f7941d, #f26522);
}

/* Hero "Popular:" chips (v7 intro placeholder) */
.wpb-block-intro__popular {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px;
}
.wpb-block-intro__popular-label { font-weight: 700; color: var(--wpb-ai-ink, #1d1d1f); font-size: 15px; white-space: nowrap; }
.wpb-block-intro__chip {
  border: 1px solid #e2e2e8; background: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: 14px; font-weight: 600; color: #2b2b30; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: border-color 0.12s, box-shadow 0.12s, color 0.12s;
  font-family: inherit;
}
.wpb-block-intro__chip:hover {
  border-color: #f26522; color: #f26522; box-shadow: 0 2px 10px rgba(242,101,34,0.12);
}
@media (max-width: 640px) {
  .wpb-block-intro__popular { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wpb-block-intro__popular::-webkit-scrollbar { display: none; }
  .wpb-block-intro__popular-label,
  .wpb-block-intro__chip { flex: 0 0 auto; }
}

/* Full-screen white takeover (not a dimmed modal — per design).
 * Figma "Ask WPBeginner – Contact Info Step" 2145:21917 (desktop) and
 * 2145:19323 / 2145:19208 (mobile). Inter throughout; 880px content column.
 * Icons are drawn with CSS masks so the widget markup stays unchanged. */
.wpb-ai-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: none; background: #fff; overflow-y: auto;
}
.wpb-ai-overlay.is-open { display: block; }

.wpb-ai-overlay .wpb-ai-shell {
  --wpb-ai-font: var(--wpb-font-2025, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  box-sizing: border-box;
  max-width: 928px; margin: 0 auto; padding: 64px 24px 120px;   /* question 64px under the nav */
  font-family: var(--wpb-ai-font);
  color: #404040; font-size: 16px; line-height: 24px; letter-spacing: -0.25px;
}
.wpb-ai-overlay .wpb-ai-shell input,
.wpb-ai-overlay .wpb-ai-shell button { font-family: inherit; }

/* Question + close */
.wpb-ai-overlay .wpb-ai-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 64px; }
.wpb-ai-overlay .wpb-ai-shell .wpb-ai-q {
  margin: 0; padding: 0; text-wrap: balance;
  font-family: var(--wpb-ai-font); font-weight: 700;
  font-size: 32px; line-height: 40px; letter-spacing: -1px;   /* Figma Heading/H6/Bold */
  color: #0a0a0a; text-transform: none;
}
.wpb-ai-overlay .wpb-ai-close {
  flex: 0 0 auto; position: relative; width: 33.5px; height: 33.5px; margin: -4px 0 0; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: #000;
  box-shadow: 0 1px 2px rgba(156, 156, 156, 0.25);
  font-size: 0; line-height: 0; cursor: pointer;
}
.wpb-ai-overlay .wpb-ai-close::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 17.5px; height: 17.5px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.4545 17.4545' fill='none'%3E%3Cpath d='M13.0909 4.36364L4.36364 13.0909M13.0909 13.0909L4.36364 4.36364' stroke='%23000' stroke-width='1.45455' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.4545 17.4545' fill='none'%3E%3Cpath d='M13.0909 4.36364L4.36364 13.0909M13.0909 13.0909L4.36364 4.36364' stroke='%23000' stroke-width='1.45455' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wpb-ai-overlay .wpb-ai-close:hover { color: #f60; }

/* Contact-info lead-gen gate */
.wpb-ai-gate { margin: 0; }
.wpb-ai-gate.is-hidden { display: none; }
.wpb-ai-overlay .wpb-ai-gate-copy { max-width: 476px; margin: 0 0 24px; font-size: 16px; line-height: 24px; letter-spacing: -0.25px; color: #404040; }
.wpb-ai-overlay .wpb-ai-gate-copy strong { font-weight: 600; }
.wpb-ai-overlay .wpb-ai-gate-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.wpb-ai-overlay .wpb-ai-gate-form input {
  box-sizing: border-box; flex: 0 1 271px; width: 271px; min-width: 0; height: 42px; margin: 0; padding: 0 12px;
  border: 1px solid #eaeaea; border-radius: 6px; background: #fff; box-shadow: none; outline: none;
  font-size: 14px; line-height: 22px; letter-spacing: -0.1px; color: #0a0a0a;
}
.wpb-ai-overlay .wpb-ai-gate-form input::placeholder { color: #737373; opacity: 1; }
.wpb-ai-overlay .wpb-ai-gate-form input:focus { border-color: #f60; box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12); }
.wpb-ai-overlay .wpb-ai-submit {
  flex: 0 0 auto; height: 42px; margin: 0; padding: 9px 17px; border: 0; border-radius: 6px; cursor: pointer;
  background: #f60; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: -0.25px;
}
.wpb-ai-overlay .wpb-ai-submit:hover { background: #e65c00; }
.wpb-ai-overlay .wpb-ai-gate-skip {
  margin: 0; padding: 0 4px; border: 0; background: none; box-shadow: none; cursor: pointer;
  font-size: 14px; line-height: 22px; letter-spacing: -0.1px; color: #737373; text-decoration: underline;
}
.wpb-ai-overlay .wpb-ai-gate-skip:hover { color: #404040; }
/* Reset the v7 theme's decorative <hr> (it adds a ::before line + tall box → double line). */
.wpb-ai-overlay .wpb-ai-divider { border: 0; border-top: 1px solid #eaeaea; height: 0; background: none; margin: 32px 0 64px; }
.wpb-ai-divider::before, .wpb-ai-divider::after { content: none !important; display: none !important; }

.wpb-ai-overlay .wpb-ai-status { color: #737373; font-size: 16px; line-height: 24px; min-height: 0; }
.wpb-ai-overlay .wpb-ai-status:not(:empty) { margin-bottom: 24px; }
.wpb-ai-status:not(:empty)::before {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px;
  border: 2px solid #ffd9c2; border-top-color: #f60; border-radius: 50%;
  vertical-align: -2px; animation: wpb-ai-spin 0.7s linear infinite;
}
@keyframes wpb-ai-spin { to { transform: rotate(360deg); } }

/* Answer — Figma Body/SM 16/24/-0.25 #404040 (the theme's orange h4 must not leak in) */
.wpb-ai-overlay .wpb-ai-answer { font-size: 16px; line-height: 24px; letter-spacing: -0.25px; color: #404040; }
.wpb-ai-overlay .wpb-ai-answer p { margin: 0 0 16px; font-size: inherit; line-height: inherit; color: inherit; }
.wpb-ai-overlay .wpb-ai-answer h4 {
  margin: 16px 0 24px; padding: 0;
  font-family: var(--wpb-ai-font); font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: -0.25px;
  color: #404040; text-transform: none;
}
.wpb-ai-overlay .wpb-ai-answer h4:first-child { margin-top: 0; }
.wpb-ai-overlay .wpb-ai-answer ul { margin: 0 0 16px; padding-left: 24px; list-style: disc; }
.wpb-ai-overlay .wpb-ai-answer li { margin: 0 0 16px; padding: 0; font-size: inherit; line-height: inherit; color: inherit; }
.wpb-ai-overlay .wpb-ai-answer li:last-child { margin-bottom: 0; }
.wpb-ai-overlay .wpb-ai-answer li::marker { color: #404040; }
.wpb-ai-overlay .wpb-ai-answer li::before { content: none; }
.wpb-ai-overlay .wpb-ai-answer li strong { display: inline; }
.wpb-ai-overlay .wpb-ai-answer strong { font-weight: 700; }
.wpb-ai-overlay .wpb-ai-answer > :last-child { margin-bottom: 0; }
.wpb-ai-overlay .wpb-ai-answer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.wpb-ai-overlay .wpb-ai-answer a:hover { color: #f60; }
.wpb-ai-cite { color: #f60; font-weight: 700; font-size: 0.72em; vertical-align: super; line-height: 0; }
.wpb-ai-empty { color: #737373; }

/* Lead gate: blur the answer until the user submits their email or skips. */
.wpb-ai-answer, .wpb-ai-sources { transition: filter 0.25s ease; }
.wpb-ai-overlay.is-gated .wpb-ai-answer,
.wpb-ai-overlay.is-gated .wpb-ai-sources {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
/* Hide the post-answer controls until the content is revealed. */
.wpb-ai-overlay.is-gated .wpb-ai-actions,
.wpb-ai-overlay.is-gated .wpb-ai-followup-wrap { display: none !important; }

/* Sources */
.wpb-ai-overlay .wpb-ai-sources { margin-top: 32px; }
.wpb-ai-overlay .wpb-ai-sources:empty { margin-top: 0; }
.wpb-ai-overlay .wpb-ai-sources-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wpb-ai-overlay .wpb-ai-sources-title { font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: -0.25px; color: #404040; }
.wpb-ai-overlay .wpb-ai-carousel-nav { display: flex; gap: 12px; }
.wpb-ai-overlay .wpb-ai-arrow {
  position: relative; width: 40px; height: 40px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: #000;
  box-shadow: 0 1px 4px rgba(156, 156, 156, 0.25);
  font-size: 0; line-height: 0; cursor: pointer;
}
.wpb-ai-overlay .wpb-ai-arrow::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22.857px; height: 22.857px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22.8571 22.8571' fill='none'%3E%3Cpath d='M9.09524 6.23809L13.8571 11L9.09524 15.7619' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22.8571 22.8571' fill='none'%3E%3Cpath d='M9.09524 6.23809L13.8571 11L9.09524 15.7619' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wpb-ai-overlay .wpb-ai-arrow:first-child::before { transform: rotate(180deg); }
.wpb-ai-overlay .wpb-ai-arrow:hover { color: #f60; }
.wpb-ai-arrow:disabled { opacity: 0.35; cursor: default; }
.wpb-ai-sources-row { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.wpb-ai-sources-row::-webkit-scrollbar { display: none; }
.wpb-ai-overlay .wpb-ai-source {
  box-sizing: border-box; flex: 0 0 286px; max-width: 286px; padding: 10px;
  border: 0; border-radius: 12px; background: transparent; box-shadow: none;
  text-decoration: none; color: inherit; transition: background-color 0.12s;
}
.wpb-ai-overlay .wpb-ai-source:first-child,
.wpb-ai-overlay .wpb-ai-source:hover { background: #f5f5f5; box-shadow: none; }
.wpb-ai-overlay .wpb-ai-source-icon {
  display: block; width: 20px; height: 20px; margin: 0 0 8px; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Crect width='20' height='20' rx='10' fill='white'/%3E%3Cpath d='M10 4C6.68615 4 4 6.19176 4 8.88938C4.00186 9.6806 4.23274 10.4561 4.66738 11.1311C4.28731 11.5296 4.07475 12.047 4.07015 12.5847C4.07015 13.919 5.39846 15 7.03692 15C8.14462 15 9.11292 14.5038 9.62154 13.7726C9.748 13.7788 9.87446 13.7823 10.0018 13.7823C10.1292 13.7823 10.2566 13.7823 10.3822 13.7726C10.8908 14.5082 11.8591 15 12.9668 15C14.6043 15 15.9335 13.919 15.9335 12.5847C15.9289 12.047 15.7164 11.5296 15.3363 11.1311C15.7698 10.4558 15.9994 9.68028 16 8.88938C16 6.19176 13.3138 4 10 4ZM6.544 8.99721V7.63832H7.46708V8.99721H6.544ZM10.5852 11.5169C9.18769 11.5221 8.07077 11.0241 7.34246 10.3947V9.78098C8.116 10.357 9.26154 10.8602 10.5465 10.8558C11.1003 10.8701 11.6523 10.789 12.1757 10.6165V11.203C11.6747 11.4128 11.1327 11.5198 10.5852 11.5169ZM12.5523 8.99721H8.28031V7.63832H12.5523V8.99721Z' fill='%23FF6600'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wpb-ai-overlay .wpb-ai-source-icon svg { display: none; }
/* Citation number, matching the [n] markers in the answer text. */
.wpb-ai-overlay .wpb-ai-source { position: relative; }
.wpb-ai-overlay .wpb-ai-source-ref { position: absolute; top: 10px; right: 10px; font-size: 12px; line-height: 20px; font-weight: 700; color: #f60; }
.wpb-ai-overlay .wpb-ai-source-title { display: block; margin: 0 0 8px; font-weight: 700; font-size: 14px; line-height: 22px; letter-spacing: -0.1px; color: #171717; }
.wpb-ai-overlay .wpb-ai-source-desc { display: block; font-size: 12px; line-height: 16px; letter-spacing: 0; color: #404040; }

/* Action row: copy + thumbs (Figma 16px line icons) */
.wpb-ai-overlay .wpb-ai-actions { display: none; align-items: center; gap: 8px; margin-top: 33px; color: #404040; }
.wpb-ai-overlay .wpb-ai-act {
  position: relative; width: 16px; height: 16px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #404040; font-size: 0; line-height: 0; cursor: pointer;
}
.wpb-ai-overlay .wpb-ai-act::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M9.33333 6.66667H12.5093C12.7366 6.66667 12.96 6.72476 13.1585 6.83542C13.357 6.94607 13.5239 7.10562 13.6434 7.29891C13.7629 7.4922 13.831 7.71283 13.8413 7.93984C13.8515 8.16686 13.8036 8.39272 13.702 8.596L11.3687 13.2627C11.2579 13.4843 11.0876 13.6707 10.8768 13.8009C10.666 13.9312 10.4231 14.0001 10.1753 14H7.49733C7.38867 14 7.28 13.9867 7.174 13.96L4.66667 13.3333M9.33333 6.66667V3.33333C9.33333 2.97971 9.19286 2.64057 8.94281 2.39052C8.69276 2.14048 8.35362 2 8 2H7.93667C7.60333 2 7.33333 2.27 7.33333 2.60333C7.33333 3.07933 7.19267 3.54467 6.928 3.94067L4.66667 7.33333V13.3333M9.33333 6.66667H8M4.66667 13.3333H3.33333C2.97971 13.3333 2.64057 13.1929 2.39052 12.9428C2.14048 12.6928 2 12.3536 2 12V8C2 7.64638 2.14048 7.30724 2.39052 7.05719C2.64057 6.80714 2.97971 6.66667 3.33333 6.66667H5' stroke='%23000' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M9.33333 6.66667H12.5093C12.7366 6.66667 12.96 6.72476 13.1585 6.83542C13.357 6.94607 13.5239 7.10562 13.6434 7.29891C13.7629 7.4922 13.831 7.71283 13.8413 7.93984C13.8515 8.16686 13.8036 8.39272 13.702 8.596L11.3687 13.2627C11.2579 13.4843 11.0876 13.6707 10.8768 13.8009C10.666 13.9312 10.4231 14.0001 10.1753 14H7.49733C7.38867 14 7.28 13.9867 7.174 13.96L4.66667 13.3333M9.33333 6.66667V3.33333C9.33333 2.97971 9.19286 2.64057 8.94281 2.39052C8.69276 2.14048 8.35362 2 8 2H7.93667C7.60333 2 7.33333 2.27 7.33333 2.60333C7.33333 3.07933 7.19267 3.54467 6.928 3.94067L4.66667 7.33333V13.3333M9.33333 6.66667H8M4.66667 13.3333H3.33333C2.97971 13.3333 2.64057 13.1929 2.39052 12.9428C2.14048 12.6928 2 12.3536 2 12V8C2 7.64638 2.14048 7.30724 2.39052 7.05719C2.64057 6.80714 2.97971 6.66667 3.33333 6.66667H5' stroke='%23000' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wpb-ai-overlay .wpb-ai-copy::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.66667 7.25L2.66667 12.0001C2.66667 13.1046 3.56211 14.0001 4.66669 14.0001L9.41667 14M6.66667 2L11.1667 2C11.9951 2 12.6667 2.67157 12.6667 3.5L12.6667 10C12.6667 10.8284 11.9951 11.5 11.1667 11.5L6.66667 11.5C5.83824 11.5 5.16667 10.8284 5.16667 10L5.16667 3.5C5.16667 2.67157 5.83824 2 6.66667 2Z' stroke='%23000' stroke-width='1.33333' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.66667 7.25L2.66667 12.0001C2.66667 13.1046 3.56211 14.0001 4.66669 14.0001L9.41667 14M6.66667 2L11.1667 2C11.9951 2 12.6667 2.67157 12.6667 3.5L12.6667 10C12.6667 10.8284 11.9951 11.5 11.1667 11.5L6.66667 11.5C5.83824 11.5 5.16667 10.8284 5.16667 10L5.16667 3.5C5.16667 2.67157 5.83824 2 6.66667 2Z' stroke='%23000' stroke-width='1.33333' stroke-linecap='round'/%3E%3C/svg%3E"); transform: rotate(180deg); }
.wpb-ai-overlay .wpb-ai-fb[data-v="-1"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M11.3327 2.66667L8.826 2.04C8.72026 2.0135 8.61167 2.00007 8.50267 2H5.824C5.57634 2.00001 5.33357 2.069 5.12292 2.19923C4.91226 2.32946 4.74204 2.51579 4.63133 2.73733L2.298 7.404C2.19642 7.60728 2.14848 7.83315 2.15874 8.06016C2.16899 8.28717 2.23709 8.5078 2.35658 8.70109C2.47607 8.89438 2.64298 9.05393 2.84147 9.16458C3.03995 9.27524 3.26342 9.33333 3.49067 9.33333H6.66667H8M11.3327 2.66667L11.3333 8.66667L9.072 12.0587C8.80733 12.4553 8.66667 12.9207 8.66667 13.3973C8.66667 13.73 8.39667 14 8.06333 14H7.99933C7.64571 14 7.30657 13.8595 7.05652 13.6095C6.80648 13.3594 6.666 13.0203 6.666 12.6667V9.33333M11.3327 2.66667H12.6667C13.0203 2.66667 13.3594 2.80714 13.6095 3.05719C13.8595 3.30724 14 3.64638 14 4V8C14 8.35362 13.8595 8.69276 13.6095 8.94281C13.3594 9.19286 13.0203 9.33333 12.6667 9.33333H11' stroke='%23000' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M11.3327 2.66667L8.826 2.04C8.72026 2.0135 8.61167 2.00007 8.50267 2H5.824C5.57634 2.00001 5.33357 2.069 5.12292 2.19923C4.91226 2.32946 4.74204 2.51579 4.63133 2.73733L2.298 7.404C2.19642 7.60728 2.14848 7.83315 2.15874 8.06016C2.16899 8.28717 2.23709 8.5078 2.35658 8.70109C2.47607 8.89438 2.64298 9.05393 2.84147 9.16458C3.03995 9.27524 3.26342 9.33333 3.49067 9.33333H6.66667H8M11.3327 2.66667L11.3333 8.66667L9.072 12.0587C8.80733 12.4553 8.66667 12.9207 8.66667 13.3973C8.66667 13.73 8.39667 14 8.06333 14H7.99933C7.64571 14 7.30657 13.8595 7.05652 13.6095C6.80648 13.3594 6.666 13.0203 6.666 12.6667V9.33333M11.3327 2.66667H12.6667C13.0203 2.66667 13.3594 2.80714 13.6095 3.05719C13.8595 3.30724 14 3.64638 14 4V8C14 8.35362 13.8595 8.69276 13.6095 8.94281C13.3594 9.19286 13.0203 9.33333 12.6667 9.33333H11' stroke='%23000' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.wpb-ai-overlay .wpb-ai-act:hover { color: #0a0a0a; background: none; }
.wpb-ai-overlay .wpb-ai-act.is-active { color: #f60; }

/* Follow-up field — same component as the Ask field (880×76, r20) */
.wpb-ai-overlay .wpb-ai-followup-wrap { max-width: none; margin: 64px 0 0; }
.wpb-ai-overlay .wpb-ai-followup {
  box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 10px;
  height: 76px; margin: 0; padding: 4px 18px 4px 24px;
  background: #fff; border: 1.5px solid #fff; border-radius: 20px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.06);
}
.wpb-ai-overlay .wpb-ai-followup::before { content: none; }
.wpb-ai-overlay .wpb-ai-followup input {
  flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
  font-size: 20px; line-height: 28px; letter-spacing: -0.5px; color: #0a0a0a;
}
.wpb-ai-overlay .wpb-ai-followup input::placeholder { color: #737373; opacity: 1; }
.wpb-ai-overlay .wpb-ai-followup button {
  position: relative; flex: 0 0 auto; width: 40px; height: 40px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: rgba(217, 217, 217, 0.27); box-shadow: none;
  color: #404040; font-size: 0; line-height: 0; cursor: pointer;
}
.wpb-ai-overlay .wpb-ai-followup button::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 23.4px; height: 23.4px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23.4146 23.4146' fill='none'%3E%3Cpath d='M18.5366 10.4065L11.7073 3.90244L4.87805 10.4065M11.7073 3.90244V19.5122' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23.4146 23.4146' fill='none'%3E%3Cpath d='M18.5366 10.4065L11.7073 3.90244L4.87805 10.4065M11.7073 3.90244V19.5122' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wpb-ai-overlay .wpb-ai-followup button:hover { background: rgba(217, 217, 217, 0.5); }

/* "Press esc to close" */
.wpb-ai-overlay .wpb-ai-esc {
  display: flex; align-items: center; justify-content: center; gap: 7px; margin: 46px 0 0;
  font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: 0; color: rgba(0, 0, 0, 0.32);
}
.wpb-ai-overlay .wpb-ai-esc kbd {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 20px; padding: 0; border: 0; border-radius: 4px; box-shadow: none;
  background: rgba(0, 0, 0, 0.2); color: #fcfcf9;
  font-family: inherit; font-weight: 700; font-size: 10px; line-height: 1; letter-spacing: 0; text-transform: lowercase;
}

/* Mobile — Figma 2145:19323 / 2145:19208 (Mobile Nav 57) */
@media (max-width: 700px) {
  .wpb-ai-overlay .wpb-ai-shell { padding: 24px 24px 120px; }
  .wpb-ai-overlay .wpb-ai-head { flex-direction: column-reverse; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
  .wpb-ai-overlay .wpb-ai-shell .wpb-ai-q { align-self: stretch; font-size: 24px; line-height: 32px; letter-spacing: -0.5px; }
  .wpb-ai-overlay .wpb-ai-close { width: 24px; height: 24px; margin: 0; }
  .wpb-ai-overlay .wpb-ai-gate-copy { max-width: none; }
  .wpb-ai-overlay .wpb-ai-gate-form input { flex: 1 1 100%; width: 100%; }
  .wpb-ai-overlay .wpb-ai-submit { width: 100%; }
  .wpb-ai-overlay .wpb-ai-gate-skip { margin: 0 auto; }
  .wpb-ai-overlay .wpb-ai-divider { margin: 32px 0; }
  .wpb-ai-overlay .wpb-ai-answer { font-size: 14px; line-height: 22px; letter-spacing: -0.1px; }
  .wpb-ai-overlay .wpb-ai-answer h4 { font-size: 14px; line-height: 22px; letter-spacing: -0.1px; }
  .wpb-ai-overlay .wpb-ai-answer ul { padding-left: 21px; }
  .wpb-ai-overlay .wpb-ai-sources-head { margin-bottom: 9px; }
  .wpb-ai-overlay .wpb-ai-carousel-nav { display: none; }
  .wpb-ai-sources-row { flex-direction: column; gap: 9px; }
  .wpb-ai-overlay .wpb-ai-source { flex-basis: auto; max-width: none; }
  .wpb-ai-overlay .wpb-ai-actions { margin-top: 12px; }
  .wpb-ai-overlay .wpb-ai-followup-wrap {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 16px 24px;
    background: #fff; border: 0;
  }
  .wpb-ai-overlay .wpb-ai-followup { height: 52px; padding: 0 10px 0 24px; border-radius: 16px; }
  .wpb-ai-overlay .wpb-ai-followup input { font-size: 16px; line-height: 24px; letter-spacing: -0.25px; }
  .wpb-ai-overlay .wpb-ai-followup button { width: 32px; height: 32px; }
  .wpb-ai-overlay .wpb-ai-followup button::before { width: 18.7px; height: 18.7px; }
  .wpb-ai-overlay .wpb-ai-esc { display: none; }
}

/* Theme signup forms (assets/signup.js): thank-you / error line under or in place of the fields. */
.wpb-lead-msg { margin: 12px 0 0; font-size: 14px; line-height: 22px; font-weight: 600; color: inherit; }
.wpb-lead-msg.is-error { font-weight: 500; }
