/* form.css */
/* Partner form look — ported from the standalone Co-Branded Menu Form. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #F7CFD6;
  font-family: 'Poppins', sans-serif;
  color: #43383A;
}

a { color: #C4243E; text-decoration: none; }
a:hover { color: #A81E3C; }
input, textarea, button { font-family: 'Poppins', sans-serif; }
input:focus, textarea:focus { outline: 2px solid #E58CA0; outline-offset: 1px; }

/* ————— Site header ————— */
.site-header {
  background: #F7F3EE;
  padding: 14px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(90, 40, 50, 0.08);
}
.site-header .wordmark { display: flex; align-items: center; }
.site-header .wordmark .mark {
  width: 38px; height: 38px; border-radius: 10px; object-fit: cover;
  margin-right: 10px; box-shadow: 0 1px 3px rgba(90, 40, 50, 0.25);
}
.site-header .wordmark .text { display: flex; align-items: baseline; gap: 2px; }
.site-header .wordmark .name { font-weight: 700; font-size: 27px; color: #C4243E; letter-spacing: -0.5px; }
.site-header .wordmark .reg { font-weight: 700; font-size: 11px; color: #C4243E; }
.site-header nav { display: flex; gap: clamp(14px, 2.5vw, 34px); font-size: 15.5px; font-weight: 500; }
.site-header nav a { color: #55484B; white-space: nowrap; }
.site-header nav a.active { color: #C4243E; font-weight: 600; }
.site-header .cta {
  background: #B01E3F; color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 11px 24px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.site-header .cta:hover { background: #A81E3C; color: #fff; }

/* ————— Hero ————— */
.hero { position: relative; text-align: center; padding: 76px 24px 26px; overflow: hidden; }
.hero .spark { position: absolute; color: #C4243E; }
.hero .eyebrow { font-weight: 700; font-size: 15px; color: #C4243E; margin-bottom: 10px; }
.hero h1 { font-weight: 700; font-size: 52px; color: #C4243E; margin: 0 0 20px; letter-spacing: -0.5px; }
.hero p {
  font-family: 'Lora', serif; font-weight: 500; font-size: 20px; line-height: 1.6;
  max-width: 540px; margin: 0 auto;
}

/* ————— Form layout ————— */
.form-wrap { max-width: 900px; margin: 34px auto 0; padding: 0 24px 90px; display: grid; gap: 22px; }

.section-card {
  background: #FFFDFB; border-radius: 18px; padding: 34px 38px;
  box-shadow: 0 2px 10px rgba(160, 30, 60, 0.08);
}
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.section-head .num {
  width: 34px; height: 34px; border-radius: 50%; background: #C4243E; color: #fff;
  font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-head h2 { font-weight: 700; font-size: 23px; color: #C4243E; margin: 0; }
.section-note { font-family: 'Lora', serif; font-size: 15.5px; line-height: 1.6; margin: 0 0 20px 48px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 14px; }
.field { display: grid; gap: 7px; font-weight: 600; font-size: 13px; }
.field .req { color: #C4243E; }
.field input {
  border: 1.5px solid #EAD6DA; border-radius: 999px; padding: 12px 18px;
  font-size: 15px; background: #fff; font-weight: 400; width: 100%;
}

/* ————— Logo upload ————— */
.logo-drop {
  margin-left: 48px; display: flex; align-items: center; gap: 18px;
  border: 2px dashed #E0A9B5; border-radius: 14px; padding: 22px 26px;
  cursor: pointer; background: #FDF6F7;
}
.logo-drop:hover { background: #FBEDEF; border-color: #C4243E; }
.logo-drop .plus {
  width: 46px; height: 46px; border-radius: 50%; background: #C4243E; color: #fff;
  font-size: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-drop img.preview { max-height: 60px; max-width: 160px; object-fit: contain; }
.logo-drop .label { font-weight: 600; font-size: 15px; color: #C4243E; }
.logo-drop .hint { font-size: 13px; color: #8A767A; margin-top: 2px; }

/* ————— Pop catalog ————— */
.group-title {
  font-weight: 700; font-size: 15px; color: #C4243E;
  margin: 26px 0 12px; letter-spacing: 0.3px;
}
.group-title:first-of-type { margin-top: 18px; }
.group-title .count { font-weight: 500; color: #8A767A; font-size: 13px; margin-left: 8px; }

.pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .pop-grid { grid-template-columns: 1fr; } .field-grid { grid-template-columns: 1fr; } }

.pop-card {
  border: 2px solid #EAD6DA; background: #FDF9F8; color: #43383A;
  border-radius: 14px; padding: 16px 18px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pop-card.on { border-color: #C4243E; background: #C4243E; color: #fff; }
/* `pop-row`, not `row`: this markup is embedded in arbitrary WordPress themes by the
   plugin, and `.row` is a grid class in most of them. On jonnypops.com the theme's
   `.row` carried a clearfix ::after, which inside this display:flex row became a
   phantom ~197px flex item and squeezed the text column to one word per line. */
.pop-card .pop-row { display: flex; align-items: flex-start; gap: 12px; }
/* The text column next to the fixed-width check + thumb. min-width:0 lets it actually
   shrink to the flex line instead of being floored at min-content by min-width:auto. */
.pop-card .pop-row > .pop-text { flex: 1 1 auto; min-width: 0; }
.pop-card .check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D9BEC4;
  color: #C4243E; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
  background: transparent;
}
.pop-card.on .check { border-color: #fff; background: #fff; }
.pop-card .thumb {
  width: 44px; height: 56px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(60, 20, 30, 0.18));
}
.pop-card .name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.pop-card .desc { font-size: 12px; line-height: 1.45; margin-top: 4px; opacity: 0.82; }
.pop-card .price-row {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.pop-card .price-row .lbl { font-weight: 600; font-size: 13px; }
.price-pill {
  display: flex; align-items: center; background: #fff; border-radius: 999px;
  padding: 6px 14px; gap: 4px;
}
.price-pill .dollar { color: #C4243E; font-weight: 700; font-size: 14px; }
.price-pill input {
  border: none; font-size: 14px; font-weight: 600; color: #43383A;
  width: 52px; background: transparent; padding: 0;
}

/* ————— Extras ————— */
.extras { display: grid; gap: 12px; margin-left: 48px; }
.extra-row { display: flex; gap: 12px; align-items: center; }
.extra-row input.name {
  flex: 1; border: 1.5px solid #EAD6DA; border-radius: 999px;
  padding: 12px 18px; font-size: 15px; background: #fff;
}
.extra-row .price-pill { border: 1.5px solid #EAD6DA; padding: 11px 16px; }
.extra-row .price-pill input { font-size: 15px; font-weight: 400; }
/* Icon button, so every box metric is stated explicitly. WordPress themes routinely set
   a global `button { padding: … }` for pill buttons — jonnypops.com's uses 18px 40px —
   and with border-box that padding becomes a FLOOR: 40+40 makes the 34px width
   unreachable, so the circle rendered as an 80x36 ellipse with the glyph off-centre.
   Our other buttons escaped only because they each declare their own padding.
   padding:0 + min-* pin the box; inline-flex centring beats the theme's 160% line-height
   (which is what pushed the × below centre). */
.extra-row .remove {
  width: 34px; height: 34px; min-width: 34px; min-height: 34px;
  padding: 0; border-radius: 50%; border: none;
  background: #F7E4E8; color: #C4243E; font-size: 16px; line-height: 1;
  cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.extra-row .remove:hover { background: #C4243E; color: #fff; }
.btn-outline {
  justify-self: start; background: none; border: 2px solid #C4243E; color: #C4243E;
  font-weight: 600; font-size: 13.5px; padding: 9px 20px; border-radius: 999px; cursor: pointer;
}
.btn-outline:hover { background: #C4243E; color: #fff; }

/* ————— Submit ————— */
.submit-block { text-align: center; margin-top: 8px; }
.btn-primary {
  background: #B01E3F; color: #fff; font-weight: 700; font-size: 17px;
  padding: 16px 46px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 3px 12px rgba(176, 30, 63, 0.35);
}
.btn-primary:hover { background: #A81E3C; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.error-msg { margin-top: 14px; font-weight: 600; font-size: 14px; color: #B01E3F; }
.footnote { font-family: 'Lora', serif; font-size: 14.5px; color: #6E5C60; margin-top: 18px; }

/* ————— Preview screen ————— */
.preview-wrap { max-width: 1000px; margin: 40px auto 0; padding: 0 24px 90px; }
.preview-head { text-align: center; margin-bottom: 24px; }
.preview-head h1 { font-weight: 700; font-size: 42px; color: #C4243E; margin: 0 0 10px; letter-spacing: -0.5px; }
.preview-head p { font-family: 'Lora', serif; font-size: 17px; line-height: 1.6; max-width: 560px; margin: 0 auto; }
.preview-actions { display: flex; justify-content: center; gap: 14px; margin: 22px 0 30px; flex-wrap: wrap; }
.preview-actions .btn-primary { font-size: 15px; padding: 13px 32px; }
.preview-actions .btn-outline { font-size: 15px; padding: 12px 28px; justify-self: unset; }

.poster-stage { display: flex; justify-content: center; }
.poster-scaler { }

.summary-card {
  background: #FFFDFB; border-radius: 18px; padding: 28px 34px; margin-top: 34px;
  box-shadow: 0 2px 10px rgba(160, 30, 60, 0.08);
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.summary-card h3 { font-weight: 700; font-size: 18px; color: #C4243E; margin: 0 0 14px; }
.summary-card dl { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.summary-card dt { font-weight: 600; color: #6E5C60; }
.summary-card dd { margin: 0; }

/* ————— Template gallery (the customer's landing) ————— */
.tpl-gallery-wrap { max-width: 1000px; margin: 40px auto 0; padding: 0 24px 90px; }
.tpl-gallery-title { font-weight: 700; font-size: 40px; color: #C4243E; margin: 0 0 8px; letter-spacing: -0.5px; text-align: center; }
.tpl-gallery-wrap .collected-lede { text-align: center; max-width: 560px; margin: 0 auto 30px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tpl-card {
  text-align: left; background: #FFFDFB; border: 2px solid #EAD6DA; border-radius: 16px;
  padding: 0; cursor: pointer; overflow: hidden; font: inherit; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tpl-card:hover { border-color: #C4243E; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(160, 30, 60, .14); }
.tpl-thumb { aspect-ratio: 4 / 5; background: #F7EEF0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tpl-thumb img { width: 100%; height: 100%; object-fit: contain; }
.tpl-meta { padding: 14px 16px 16px; }
.tpl-name { font-weight: 700; font-size: 16px; color: #43383A; line-height: 1.3; }
.tpl-sub { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.tpl-kind { font-size: 12px; font-weight: 700; color: #6F052D; background: #F4C9D0; border-radius: 999px; padding: 3px 10px; }
.tpl-fields { font-size: 12.5px; color: #8A767A; }

/* Package tile: a 2x2 collage of member previews + a "Package" chip. */
.tpl-package .tpl-kind { color: #6F052D; background: #F4C9D0; }
.tpl-thumb-collage { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 3px; padding: 3px; background: #F1D9DE; }
.tpl-thumb-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; background: #fff; }

/* ————— Generic template field form ————— */
.tpl-field-grid { align-items: start; }
.tpl-field-full { grid-column: 1 / -1; }
.field textarea {
  border: 1.5px solid #EAD6DA; border-radius: 14px; padding: 12px 16px; font-size: 15px;
  background: #fff; font-weight: 400; width: 100%; resize: vertical; font-family: 'Poppins', sans-serif;
}
.tpl-field-full .logo-drop { margin-left: 0; }
.tpl-clear {
  background: none; border: 0; padding: 0; margin-top: 10px; font-size: 13.5px;
  font-weight: 600; color: #C4243E; text-decoration: underline; cursor: pointer; display: block;
}

/* ————— Generate result / working screen (also scoped in the WP wrap.css) ————— */
.templates-back {
  background: none; border: 0; padding: 0; margin: 6px 0 0 4px; font-size: 14px;
  font-weight: 600; color: #C4243E; cursor: pointer;
}
.templates-back:hover { color: #A81E3C; }
.menu-working { text-align: center; padding: 48px 0; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 18px; border: 3px solid #F0D3D9;
  border-top-color: #C4243E; border-radius: 50%; animation: jp-spin 0.8s linear infinite;
}
@keyframes jp-spin { to { transform: rotate(360deg); } }
.menu-preview { margin-top: 20px; text-align: center; }
.menu-preview img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.menu-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.menu-actions .btn-primary { text-decoration: none; display: inline-block; }


/* chat.css */
/* Chat intake mode + form/chat toggle.
   Chat view is deliberately white with red (#C4243E) and black text —
   the form keeps its pink/cream look (form.css, untouched). */

/* ---- mode toggle (sits on the pink page, above form or chat) ---- */

.mode-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  width: fit-content;
  margin: 0 auto 28px;
  background: #fff;
  border: 2px solid #C4243E;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(196, 36, 62, 0.12);
}

.mode-seg {
  appearance: none;
  border: 0;
  background: transparent;
  color: #C4243E;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mode-seg.on {
  background: #C4243E;
  color: #fff;
}

/* ---- layout ---- */

.chat-wrap {
  max-width: 1060px;
  margin: 0 auto 70px;
  padding: 0 24px;
  font-family: "Poppins", sans-serif;
  color: #1A1A1A;
}

.chat-banner {
  background: #fff;
  border: 1.5px solid #C4243E;
  border-radius: 14px;
  color: #1A1A1A;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14.5px;
  line-height: 1.5;
}

.chat-banner strong { color: #C4243E; }

.chat-banner code {
  background: #F6F6F6;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 13px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .chat-layout { grid-template-columns: 1fr; }
}

/* ---- chat panel ---- */

.chat-panel {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.chat-messages {
  height: 460px;
  overflow-y: auto;
  padding: 22px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFFFFF;
}

.bubble-row { display: flex; }
.bubble-row.user { justify-content: flex-end; }
.bubble-row.assistant { justify-content: flex-start; }

.bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.bubble.assistant {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  color: #1A1A1A;
  border-bottom-left-radius: 6px;
  font-family: "Lora", serif;
}

.bubble.user {
  background: #C4243E;
  color: #FFFFFF;
  border-bottom-right-radius: 6px;
}

.bubble-thumb {
  display: block;
  max-width: 140px;
  max-height: 90px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 6px;
}

/* Skip button under optional questions */
.skip-btn {
  appearance: none;
  background: #fff;
  border: 1.5px solid #C4243E;
  color: #C4243E;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 22px;
  border-radius: 999px;
  cursor: pointer;
  margin: -4px 0 2px 4px;
  transition: background 0.12s, color 0.12s;
}

.skip-btn:hover {
  background: #C4243E;
  color: #fff;
}

/* two-option row under the display-name question */
.choice-row { gap: 8px; }

/* primary action variant (e.g. "Yes, generate") — filled red */
.skip-btn.generate {
  background: #C4243E;
  color: #fff;
}

.skip-btn.generate:hover {
  background: #A81D35;
  border-color: #A81D35;
}

/* draws the eye to the text box after "Enter new name" */
.chat-composer textarea.hinted {
  border-color: #C4243E;
  animation: hint-pulse 1.4s 2;
}

@keyframes hint-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 36, 62, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(196, 36, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 36, 62, 0); }
}

/* typing indicator */
.bubble.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.bubble.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #C4243E; opacity: 0.35;
  animation: chat-typing 1.2s infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chat-typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---- in-chat pop picker widget ---- */

.picker-bubble {
  width: 94%;
  max-width: 94%;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  overflow: hidden;
}

.picker-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  border-bottom: 1px solid #F0F0F0;
}

.picker-head .count { font-size: 12.5px; font-weight: 600; color: #C4243E; }

.picker-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px 8px;
  align-content: start;
}

.picker-group {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C4243E;
  padding: 8px 6px 2px;
}

.picker-item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: #fff;
  border: 1.5px solid #EEE;
  border-radius: 10px;
  padding: 5px 8px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  color: #1A1A1A;
  transition: border-color 0.12s, background 0.12s;
}

.picker-item:hover { border-color: #C4243E; }

.picker-item.on {
  border-color: #C4243E;
  background: #FDF0F2;
}

.picker-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.picker-item .pk-name { flex: 1; line-height: 1.25; }

.picker-item .pk-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: #F3F3F3;
  color: transparent;
}

.picker-item.on .pk-check { background: #C4243E; color: #fff; }

.picker-note {
  padding: 6px 16px 0;
  font-size: 12.5px;
  color: #8F0A2A;
}

.picker-foot {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 12px;
  border-top: 1px solid #F0F0F0;
  margin-top: 6px;
}

.picker-confirm {
  appearance: none;
  border: 0;
  background: #C4243E;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
}

.picker-confirm:hover:not(:disabled) { background: #A81D35; }
.picker-confirm:disabled { opacity: 0.45; cursor: default; }

.picker-done {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #C4243E;
}

.chat-inline-error {
  margin: 0 20px 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #FDECEF;
  border: 1px solid #C4243E;
  color: #8F0A2A;
  font-size: 13px;
}

/* ---- composer ---- */

.chat-composer {
  display: flex;
  align-items: stretch; /* buttons match the textarea height */
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #E5E5E5;
  background: #FFFFFF;
}

.chat-composer textarea {
  flex: 1;
  resize: none;
  border: 1.5px solid #E5E5E5;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 14.5px;
  color: #1A1A1A;
  line-height: 1.4;
  outline: none;
  background: #fff;
}

.chat-composer textarea:focus { border-color: #C4243E; }
.chat-composer textarea:disabled { background: #FAFAFA; color: #999; }

/* Icon button. Every box metric is stated, padding included — see the note on
   `.extra-row .remove`. This rule previously declared no padding, so a host theme's global
   `button { padding: 18px 40px }` applied: under border-box that padding is a FLOOR, and
   80px of it against a 44px width collapses the content box to zero, which is why the 📎
   glyph was invisible inside an over-wide box. The mic button beside it rendered correctly
   for the only reason that matters here — `.icon-btn.mic` below happens to declare its own
   padding, so the theme rule never reached it. */
.icon-btn {
  appearance: none;
  border: 1.5px solid #E5E5E5;
  background: #fff;
  color: #C4243E;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.icon-btn:hover:not(:disabled) { border-color: #C4243E; }
.icon-btn:disabled { opacity: 0.45; cursor: default; }

.icon-btn.mic { width: auto; min-width: 44px; padding: 0 10px; }

.icon-btn.mic.recording {
  background: #C4243E;
  color: #fff;
  border-color: #C4243E;
  font-size: 13px;
  font-weight: 600;
  animation: mic-pulse 1.4s infinite;
}

@keyframes mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 36, 62, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(196, 36, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 36, 62, 0); }
}

.send-btn {
  appearance: none;
  border: 0;
  background: #C4243E;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.send-btn:hover:not(:disabled) { background: #A81D35; }
.send-btn:disabled { opacity: 0.45; cursor: default; }

/* ---- print request modal (preview screen) ---- */

.pm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 10, 16, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.pm-card {
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 46px 24px;
  font-family: "Poppins", sans-serif;
  color: #1A1A1A;
}

.pm-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #C4243E;
}

.pm-blurb {
  margin: 0 0 18px;
  font-family: "Lora", serif;
  font-size: 15px;
  color: #4A3B3E;
}

.pm-banner {
  background: #FDECEF;
  border: 1px solid #C4243E;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #8F0A2A;
  margin-bottom: 16px;
}

.pm-grid {
  display: grid;
  /* minmax(0,…) lets rows shrink below the inputs' intrinsic width */
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.pm-row3 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.pm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pm-field span {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
}

.pm-field span .req { color: #C4243E; }

.pm-field input {
  border: 1.5px solid #E5E5E5;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 14.5px;
  color: #1A1A1A;
  outline: none;
  width: 100%;
  min-width: 0; /* inputs otherwise refuse to shrink below intrinsic width */
  box-sizing: border-box;
}

.pm-field input:focus { border-color: #C4243E; }

.pm-error { margin-top: 14px; }

.pm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.pm-footnote {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #8A767A;
  text-align: right;
}

/* ---- draft summary panel ---- */

.draft-panel {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 18px;
  padding: 20px 20px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 16px;
}

.draft-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #C4243E;
}

.checklist {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.checklist li {
  font-size: 13.5px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist li.ok { color: #1A1A1A; }

.checklist .tick {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #F3F3F3;
  color: #999;
  flex-shrink: 0;
}

.checklist li.ok .tick { background: #C4243E; color: #fff; }

.draft-facts {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 13.5px;
}

.draft-facts dt { color: #C4243E; font-weight: 600; }
.draft-facts dd { margin: 0; color: #1A1A1A; overflow-wrap: anywhere; }

.draft-logo {
  height: 26px;
  max-width: 80px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 2px 4px;
}

.draft-pops-head {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 6px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.draft-pops-head .count { font-size: 12.5px; font-weight: 600; color: #C4243E; }

.draft-empty { font-size: 13px; color: #999; }

.draft-pops, .draft-extras {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.draft-pops li, .draft-extras li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.draft-pops img {
  width: 30px; height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.draft-pops .nm, .draft-extras .nm { flex: 1; color: #1A1A1A; }
.draft-pops .pr, .draft-extras .pr { font-weight: 700; color: #C4243E; }


/* wrap.css */
/* Wrapper + result-screen styles for the ported menu builder. The demo kept these
   inline in its standalone index.html; here they're scoped under .jpcobrand-menu so
   they don't bleed into (or inherit oddly from) the host WordPress theme. */

/* --- Theme pseudo-element quarantine -------------------------------------------------
   The components ship generic class names (`row`, `name`, `desc`, `check`, `label`),
   and a WordPress theme is free to claim any of them globally. On jonnypops.com the
   theme styled a bare `.row` as a grid row with a clearfix ::after; because our
   `.pop-card` row is display:flex, that pseudo-element became a real FLEX ITEM ~197px
   wide and crushed the flavor text to one word per line. The class has since been
   renamed to `pop-row`, but the underlying hazard is structural, not specific to that
   one name — so neutralise theme pseudo-elements across our whole subtree.

   Safe as a blanket rule: none of form.css / chat.css / wrap.css uses ::before or
   ::after, so nothing here is ours to break. Anything the components genuinely need
   must be a real element, or must opt out below. */
.jpcobrand-menu *::before,
.jpcobrand-menu *::after {
  content: none !important;
}

/* Same story for the theme's negative grid gutters (it sets a -30px right margin on
   `.row`), which skew the width our flex math is done against. */
.jpcobrand-menu .pop-row,
.jpcobrand-menu .pop-grid,
.jpcobrand-menu .field-grid {
  margin-left: 0;
  margin-right: 0;
}

.jpcobrand-menu {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 64px;
  background: #FBF6F2;
  color: #2b2b2b;
  font-family: 'Poppins', system-ui, sans-serif;
  border-radius: 16px;
}

.jpcobrand-menu .demo-ribbon {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #6F052D;
  background: #F4C9D0;
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-block;
}

.jpcobrand-menu .collected-wrap { max-width: 720px; margin: 0 auto; }
.jpcobrand-menu .collected-title { font-family: 'Poppins', sans-serif; }
.jpcobrand-menu .collected-lede { color: #6b5f61; margin-top: -6px; }

.jpcobrand-menu .menu-preview { margin-top: 20px; }
.jpcobrand-menu .menu-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

.jpcobrand-menu .menu-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.jpcobrand-menu .menu-actions .btn-primary { text-decoration: none; display: inline-block; }

.jpcobrand-menu .menu-working { text-align: center; padding: 48px 0; }

.jpcobrand-menu .spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 18px;
  border: 3px solid #F0D3D9;
  border-top-color: #C4243E;
  border-radius: 50%;
  animation: jpcobrand-spin 0.8s linear infinite;
}
@keyframes jpcobrand-spin { to { transform: rotate(360deg); } }
