/* =============================================================================
   Ziosk × Yard House × MomentScience — shared stylesheet
   - Email page (Gmail replica): scoped under body.page-email
   - Web receipt page (Ziosk): scoped under body.page-web
   - MomentScience embed: shared .ms-embed block (cloned from demo-brookstone)
   ============================================================================= */

:root {
  --yh-black: #1a1a1a;
  --yh-black-2: #2a2a2a;
  --yh-gold: #b8902c;
  --ziosk-navy: #0a2540;
  --ziosk-coral: #ff5a1f;
  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-dim: #f0f0f3;
  --bg-light-dim: #fafafa;
  --border-color: #e5e5ea;
  --border-strong: #d2d2d7;
  --text-primary: #1d1d1f;
  --text-secondary: rgba(29, 29, 31, 0.65);
  --text-muted: rgba(29, 29, 31, 0.45);
  /* Ziosk's actual receipt template (cdn.zioskconnect.com) uses Verdana —
     match it for the host pages so the demo feels native to the kiosk. */
  --font-stack-ziosk: Verdana, Geneva, Tahoma, sans-serif;
  /* Original system stack — kept for the MomentScience ad unit so the embed
     retains the brand typography even when the host page changes fonts. */
  --font-stack:
    -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  /* Match Ziosk's receipt page typography (Verdana). The MomentScience ad
     unit overrides this back to the original brand stack so the embed keeps
     its own visual identity. */
  font-family: var(--font-stack-ziosk);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-page);
  overflow-x: hidden; /* iOS Safari guard for breakout patterns */
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1a73e8;
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
}

/* =============================================================================
   EMAIL PAGE (Gmail replica)
   Locked to a 640px-wide message column. Mimics Gmail typography (Arial-ish
   sans-serif, 14px base, dense line-height) and mostly-flat structure.
   ============================================================================= */
body.page-email {
  background: #ffffff;
  /* Inherit Verdana from body (matches Ziosk's actual receipt template).
     Ziosk's source is 12px; we bump one step to 14px for legibility on
     today's higher-DPI displays without losing the receipt feel. */
  color: #000000;
  font-size: 14px;
  line-height: 1.5;
}

.gmail-frame {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.gmail-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  margin-bottom: 18px;
}
.gmail-meta {
  flex: 1;
  min-width: 0;
}
/* Demo-only: link from the email back to the web-receipt version.
   Sits in the Gmail header, right-aligned. */
.gmail-webview-link {
  align-self: center;
  font-size: 12px;
  color: #000000;
  text-decoration: underline;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
}
.gmail-webview-link:hover {
  background: rgba(0, 0, 0, 0.06);
  text-decoration: none;
}
@media (max-width: 480px) {
  .gmail-webview-link {
    font-size: 11px;
    padding: 4px 6px;
  }
}
.gmail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #28a745;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Yard House avatar variant — black w/ gold "Y" matching the brand mark */
.gmail-avatar-yh {
  background: #1a1a1a;
  color: #b8902c;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 18px;
}
.gmail-from {
  font-weight: 700;
  color: #202124;
}
.gmail-to {
  color: #000000;
  font-size: 13px;
}
.gmail-caret {
  margin-left: 4px;
}

.email-body {
  max-width: 580px;
  margin: 0 auto;
}

.email-ms-header {
  margin: 4px 0 22px;
}
.email-ms-logo {
  width: 178px;
  height: auto;
}

.email-signature {
  font-size: 14px;
  color: #202124;
  margin: 0 0 22px;
}

/* Direct-email metadata (replaces the old forwarded-message block) */
.email-meta-direct {
  margin: 0 0 26px;
}
.email-meta-direct p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #000000;
}
.email-meta-direct strong {
  font-weight: 700;
}

.email-yh-logo {
  margin: 32px auto 28px;
  text-align: center;
}
.email-yh-logo img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 2px;
}

/* Location block — Ziosk centers, all text black, no bold needed for the
   address lines (only the brand name is implicit-bold via h-style). */
.email-location {
  text-align: center;
  margin: 0 0 22px;
  color: #000000;
  font-size: 14px;
}
.email-location p {
  margin: 0;
}
.email-location-name {
  font-weight: 700;
}

/* Phone + receipt-meta — Ziosk wraps every line in <b>. Bold the whole row. */
.email-phone-line {
  margin: 0 0 24px;
  font-size: 14px;
  color: #000000;
  font-weight: 700;
}

.email-meta-block {
  margin: 0 0 28px;
  font-size: 14px;
  color: #000000;
  font-weight: 700;
}
.email-meta-block p {
  margin: 0;
  line-height: 1.5;
}

/* Receipt table — items + dividers + totals are one continuous table so
   the zebra rhythm is unbroken and every divider row shares the same
   width (one colspan='3' inside the same table). Matches Ziosk's
   template structure exactly.

   Layout: 3 columns (description / qty/label / price). For item rows
   the middle column carries the qty number; for totals rows it carries
   the label ("Sub Total", "Tip", etc.) right-aligned. */
.email-items {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1px;
  margin: 0 0 22px;
  font-size: 14px;
  color: #000000;
}
.email-items thead {
  background: #000000;
  color: #ffffff;
}
.email-items th {
  padding: 10px 12px;
  font-weight: 700;
  text-align: center;
  background: #000000;
}
.email-items th.col-desc {
  text-align: left;
}
.email-items th.col-qty,
.email-items th.col-price {
  text-align: right;
}

.email-items td {
  padding: 9px 12px;
  background: #ffffff;
}
.email-items tbody tr:nth-child(even) td {
  background: #efefef;
}
.email-items td.col-qty,
.email-items td.col-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.email-items td.col-label {
  text-align: right;
}

/* Dashed divider rows — every divider in the table shares this rule, so
   all dash strings render at identical width regardless of section. */
.email-items tr.email-items-divider td {
  text-align: right;
  letter-spacing: 1px;
  padding: 9px 12px;
}

/* "Amount Paid" row — bold to match Ziosk's emphasis on the grand total. */
.email-items tr.email-totals-paid td {
  font-weight: 700;
}

.email-footer-note {
  text-align: center;
  margin: 36px 0 8px;
  font-size: 14px;
  color: #000000;
}
.email-visit {
  text-align: center;
  margin: 0 0 28px;
  font-size: 14px;
  color: #000000;
}
.email-visit a {
  color: #000000;
}

.email-house-insiders {
  margin: 24px 0;
  text-align: center;
}
.email-house-insiders img {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  border-radius: 2px;
}

.email-auto-footer {
  text-align: center;
  font-size: 12px;
  color: #000000;
  margin: 28px 0 0;
}

/* Demo-only navigation chrome on the homepage (page-home).
   Small links at the top of the page that let reviewers flip between
   the three views (homepage / email replica / enhanced web receipt). */
.home-chrome {
  text-align: right;
  font-size: 12px;
  color: #000000;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.home-chrome a {
  color: #000000;
  text-decoration: underline;
}
.home-chrome a:hover {
  text-decoration: none;
}
.home-chrome span {
  margin: 0 8px;
  color: #000000;
}

/* Email page mobile tweaks */
@media (max-width: 600px) {
  .gmail-frame {
    padding: 16px 16px 56px;
  }
  .email-totals {
    max-width: 100%;
  }
  .email-items th,
  .email-items td {
    padding: 8px 6px;
    font-size: 13px;
  }
}

/* =============================================================================
   WEB RECEIPT PAGE (modern Ziosk)
   Two-column desktop, single-column mobile. Polished card-based layout that
   reads like a hosted receipt (Ziosk = the kiosk vendor; Yard House = brand).
   ============================================================================= */
body.page-web {
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}

/* Top bar */
.web-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.web-topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.web-topbar-brand {
  display: inline-flex;
  align-items: center;
}
.web-topbar-logo {
  height: 26px;
  width: auto;
  display: block;
}
.web-topbar-tag {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.web-topbar-tag strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Right-side cluster: email link + powered-by tag */
.web-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.web-topbar-emaillink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ziosk-navy);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.web-topbar-emaillink:hover,
.web-topbar-emaillink:focus-visible {
  background: rgba(10, 37, 64, 0.06);
  border-color: rgba(10, 37, 64, 0.18);
}
.web-topbar-emailicon {
  display: block;
  flex-shrink: 0;
}

/* On mobile, drop the powered-by tag (already done) and the label text,
   keep just the envelope icon as a tap target. */
@media (max-width: 520px) {
  .web-topbar-emaillabel {
    display: none;
  }
  .web-topbar-emaillink {
    padding: 8px;
  }
  .web-topbar-right {
    gap: 8px;
  }
}

/* Main content */
.web-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Hero */
.web-hero {
  text-align: center;
  margin: 12px 0 36px;
}
.web-hero-logo {
  background: var(--yh-black);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0 auto 22px;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.18);
  max-width: 520px;
  width: 100%;
}
.web-hero-logo img {
  max-width: 100%;
  margin: 0 auto;
}
.web-hero-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.web-hero-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 8px;
}
.web-hero-sub > span:not(.web-hero-dot) {
  white-space: nowrap;
}
.web-hero-dot {
  opacity: 0.5;
}

/* Two-column grid */
.web-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

/* Cards */
.web-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.web-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.web-loc-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}
.web-loc-line {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}
.web-loc-line a {
  color: inherit;
  text-decoration: none;
}
.web-loc-line a:hover {
  color: var(--ziosk-navy);
}

/* Items list */
.web-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.web-items li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  align-items: baseline;
}
.web-items li:last-child {
  border-bottom: 0;
}
.web-item-desc {
  font-weight: 500;
}
.web-item-qty {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}
.web-item-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: right;
}

/* Transaction meta grid */
.web-meta-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}
.web-meta-grid dt {
  color: var(--text-secondary);
  font-weight: 500;
}
.web-meta-grid dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* Payment summary card (right column) */
.web-pay-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.web-pay-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.web-pay-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}
.web-pay-row .web-pay-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.web-pay-row-total {
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 700;
}
.web-pay-paid {
  margin: 18px 0 0;
  padding: 18px 18px;
  background: linear-gradient(135deg, var(--ziosk-navy) 0%, #112e4f 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.web-pay-paid-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  font-weight: 700;
}
.web-pay-paid-value {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.web-thanks {
  text-align: center;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Standalone offer card — renders below the payment-summary card */
.web-offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  margin-top: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
/* Inside the offer card the embed has no extra outer chrome — let it sit flush */
.web-offer-card .ms-embed {
  margin: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.web-visit {
  text-align: center;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.web-visit a {
  color: var(--ziosk-navy);
  text-decoration: none;
  font-weight: 600;
}
.web-visit a:hover {
  text-decoration: underline;
}

.web-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 20px 24px;
  text-align: center;
}
.web-footer-line {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.web-footer-line a {
  color: var(--ziosk-navy);
  text-decoration: none;
}
.web-footer-line a:hover {
  text-decoration: underline;
}

/* Web page responsive */
@media (max-width: 880px) {
  .web-grid {
    grid-template-columns: 1fr;
  }
  .web-main {
    padding: 24px 16px 56px;
  }
  .web-topbar-inner {
    padding: 12px 16px;
  }
  .web-hero-logo {
    padding: 16px 18px;
  }
  .web-card {
    padding: 18px;
  }
}
@media (max-width: 520px) {
  .web-meta-grid {
    grid-template-columns: 90px 1fr;
    gap: 6px 10px;
    font-size: 13px;
  }
  .web-items li {
    grid-template-columns: 1fr auto;
    grid-template-areas: "desc price" "qty qty";
    gap: 4px 10px;
    padding: 12px 0;
  }
  .web-item-desc {
    grid-area: desc;
  }
  .web-item-price {
    grid-area: price;
  }
  .web-item-qty {
    grid-area: qty;
    text-align: left;
    min-width: 0;
    color: var(--text-muted);
    font-size: 12px;
  }
  .web-pay-paid {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .web-pay-paid-value {
    font-size: 22px;
  }
  .web-topbar-tag {
    display: none;
  }
  .web-hero-logo {
    padding: 14px 16px;
  }
  .web-card {
    padding: 16px;
  }
  .web-pay-card {
    padding: 18px;
  }
}

/* =============================================================================
   MOMENTSCIENCE EMBED — popeyes-style vertical layout (cloned from demo-brookstone)
   Hero image on top, pill overlapping the seam, headline + description + CTAs
   centered below. Same surface used on every viewport (no modal). Sits
   directly under "Amount Paid" on both pages.
   ============================================================================= */

/* Unlock headline shown directly above the embed when offers reveal. */
.ms-embed-unlock {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ziosk-navy, #0a2540);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.ms-embed-unlock.active {
  opacity: 1;
  transform: translateY(0);
}

/* Email page: align the headline with the embed width and use the same
   accent treatment as the email links. */
body.page-email .ms-embed-unlock {
  max-width: 540px;
  margin: 0 auto 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1a73e8;
}

.ms-embed {
  display: block;
  max-width: 100%;
  margin: 6px 0 4px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(28, 29, 29, 0.06);
  overflow: hidden;
  text-align: center;
  position: relative;
  /* Anchor the ad unit to the MomentScience brand stack so it keeps its own
     typography even when the host page uses a different font (e.g. Verdana
     on the Ziosk pages). Buttons inherit from here. */
  font-family: var(--font-stack);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.ms-embed.active {
  opacity: 1;
  transform: translateY(0);
}

.ms-embed .ms-hero-wrap {
  background: var(--bg-light-dim);
}
.ms-embed .ms-hero {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.ms-embed .ms-body {
  padding: 0 22px 22px;
}

.ms-embed .ms-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 4px 14px 4px 4px;
  margin: -18px auto 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.ms-embed .ms-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.ms-embed .ms-pill span {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

.ms-embed h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.25;
}

.ms-embed .ms-desc {
  font-size: 14px;
  color: rgba(28, 29, 29, 0.7);
  line-height: 1.45;
  margin: 0 0 16px;
}

.ms-embed .ms-ctas {
  display: flex;
  gap: 8px;
}

.ms-embed .ms-cta-yes {
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  background: var(--ziosk-navy);
  border: none;
  color: #ffffff;
  cursor: pointer;
  flex: 1;
  font-family: inherit;
  transition: background 0.15s ease;
  letter-spacing: 0.02em;
}
.ms-embed .ms-cta-yes:hover {
  background: #112e4f;
}

.ms-embed .ms-cta-no {
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 1px solid var(--border-color);
  color: rgba(28, 29, 29, 0.7);
  cursor: pointer;
  flex: 1;
  font-family: inherit;
  transition: all 0.15s ease;
}
.ms-embed .ms-cta-no:hover {
  background: var(--bg-light-dim);
  color: var(--text-primary);
  border-color: rgba(28, 29, 29, 0.3);
}

/* Confirmation state after the user taps "Save for later" */
.ms-embed .ms-cta-no.ms-cta-saved,
.ms-embed .ms-cta-no.ms-cta-saved:hover {
  background: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.35);
  color: #1f8a3a;
  cursor: default;
}
.ms-embed .ms-cta-no.ms-cta-saved::before {
  content: "✓";
  margin-right: 6px;
  font-weight: 800;
}
.ms-embed .ms-cta-yes:disabled {
  opacity: 0.45;
  cursor: default;
}

.ms-embed .ms-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
}
.ms-embed .ms-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(28, 29, 29, 0.15);
}
.ms-embed .ms-dots span.active {
  background: var(--yh-black);
}

.ms-embed .ms-powered {
  font-size: 10px;
  color: rgba(28, 29, 29, 0.4);
  margin-top: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =============================================================================
   EMAIL-PAGE EMBED — flat, link-only "1-800-GOT-JUNK" style layout.
   Replaces the popeyes-style vertical card on the email page only. Avoids
   JS-dependent UX (no in-place save, no carousel, no animated reveal).
   Heading bar / two-column body / two anchor CTAs / privacy footer.
   ============================================================================= */

body.page-email .ms-embed.ms-email {
  max-width: 540px;
  margin: 24px auto 18px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  box-shadow: none;
  text-align: left;
  padding: 0;
  overflow: hidden;
}

/* Black heading bar — matches the Yard House logo card's pure black */
.ms-embed.ms-email .ms-email-bar {
  background: #000000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 18px;
  letter-spacing: -0.005em;
}

/* Body — text on left, brand mark on right */
.ms-embed.ms-email .ms-email-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}
.ms-embed.ms-email .ms-email-text {
  flex: 1;
  min-width: 0;
}
.ms-embed.ms-email .ms-email-text h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
  color: #1a1a1a;
}
.ms-embed.ms-email .ms-email-desc {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  color: #555;
}
.ms-embed.ms-email .ms-email-mark {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ms-embed.ms-email .ms-email-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* CTAs — anchor links styled as buttons */
.ms-embed.ms-email .ms-email-ctas {
  display: flex;
  gap: 12px;
  padding: 0 18px 18px;
}
.ms-embed.ms-email .ms-email-cta-yes,
.ms-embed.ms-email .ms-email-cta-no {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.ms-embed.ms-email .ms-email-cta-yes {
  background: #000000;
  color: #ffffff;
}
.ms-embed.ms-email .ms-email-cta-yes:hover {
  background: #1a1a1a;
}
.ms-embed.ms-email .ms-email-cta-no {
  background: #f0f0f3;
  color: #1a1a1a;
  border: 1px solid #d8d8d8;
}
.ms-embed.ms-email .ms-email-cta-no:hover {
  background: #e5e5ea;
}

/* Footer */
.ms-embed.ms-email .ms-email-foot {
  font-size: 11px;
  color: #888;
  text-align: right;
  padding: 10px 18px 14px;
  border-top: 1px solid #f0f0f0;
}
.ms-embed.ms-email .ms-email-foot a {
  color: #888;
  text-decoration: none;
}
.ms-embed.ms-email .ms-email-foot a:hover {
  text-decoration: underline;
}

/* Mobile: stack the brand mark below the text */
@media (max-width: 480px) {
  .ms-embed.ms-email .ms-email-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .ms-embed.ms-email .ms-email-mark {
    width: 80px;
    height: 80px;
    align-self: center;
  }
}
