/* Customer UI only. Loaded after legacy styles; print layouts are untouched.
   Existing global palette is reused when present. State/display rules stay local. */
.ofx-client-ui {
  --ofx-navy: #082b50;
  --ofx-text: #102a47;
  --ofx-border: #d8e3ee;
  --ofx-radius: 14px;
  --ofx-shadow: 0 6px 22px rgb(8 43 80 / 8%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
.ofx-client-ui *, .ofx-client-ui *::before, .ofx-client-ui *::after { box-sizing: border-box; }
.ofx-client-ui :where(h1, h2, h3) { line-height: 1.25; text-wrap: balance; }
.ofx-client-ui :where(input, select, textarea, button) { font-family: inherit; }
.ofx-client-ui :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]), select, textarea) {
  max-width: 100%; min-width: 0; border-radius: 10px;
}
.ofx-client-ui :where(textarea) { resize: vertical; }
.ofx-client-ui :where(button, .btn, .voltar, .btn-voltar) {
  border-radius: 10px !important; line-height: 1.35 !important;
  white-space: normal; overflow-wrap: anywhere;
  box-shadow: 0 2px 6px rgb(8 43 80 / 12%) !important;
}
.ofx-client-ui :where(button, .btn, .voltar, .btn-voltar):hover {
  transform: none !important;
  box-shadow: 0 4px 12px rgb(8 43 80 / 16%) !important;
}
.ofx-client-ui :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #087ff5 !important; outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff !important;
}
.ofx-client-ui > :where(header.topo, header.ofx-header, header.ofx-mercado-header, header.planos-header) {
  gap: 16px; background: var(--ofx-navy) !important;
  padding-inline: max(20px, calc((100% - 1180px) / 2)) !important;
}
.ofx-client-ui > :where(main.container, main.wrapper, main.ofx-mercado-main, main.area-planos) {
  width: calc(100% - 40px) !important; max-width: 1180px !important;
  margin-inline: auto !important;
}
.ofx-client-ui :where(.table-wrap, .table-responsive, .tabela-container, .tabela-wrapper) {
  max-width: 100%; overflow-x: auto;
}
.ofx-client-ui :where(.table-wrap, .table-responsive, .tabela-container, .tabela-wrapper) :where(th, td) {
  padding: 12px 14px; vertical-align: middle;
}
.ofx-client-ui :where(main.container, main.wrapper) > :where(.card, .painel) {
  border-radius: var(--ofx-radius) !important; box-shadow: var(--ofx-shadow) !important;
}
/* Dashboard shortcuts share the same card hierarchy, including the fifth card. */
.ofx-client-ui .quick-card {
  background: #fff !important; color: #082b50 !important;
  border: 1px solid #d8e3ee; border-radius: 14px; box-shadow: var(--ofx-shadow);
}
.ofx-client-ui .quick-card span { color: #52677d !important; }
.ofx-client-ui .quick-card:hover { border-color: #087ff5; }
.ofx-client-ui .btn-criar { background: #ffd400 !important; color: #082b50 !important; }
.ofx-client-ui :is(.ofx-mercado-header, .container > .ofx-header) { background: #082b50 !important; }
.ofx-client-ui .ofx-mercado-main { max-width: 1180px; margin-inline: auto; }
.ofx-client-ui .ofx-mercado-main :is(h1,h2,label),
.ofx-client-ui .ofx-campo label,
.ofx-client-ui .biblioteca-produtos > label { color: #102a47 !important; }
.ofx-client-ui .ofx-mercado-main :is(p,.ofx-info) { color: #52677d !important; }
/* Keep the A4 preview at its original size; contain it in the mobile viewport. */
.ofx-client-ui .area:has(> .cartaz-wrap) { grid-template-columns: minmax(0,390px) minmax(0,1fr); }
.ofx-client-ui .area:has(> .cartaz-wrap) > * { min-width: 0; }
@media (max-width: 900px) {
  .ofx-client-ui .area:has(> .cartaz-wrap) { grid-template-columns: minmax(0,1fr); }
  .ofx-client-ui .cartaz-wrap { max-width: 100%; overflow-x: auto; justify-content: flex-start; }
  .ofx-client-ui .cartaz-wrap .cartaz { flex-shrink: 0; transform-origin: top left; }
}
@media (max-width: 700px) {
  .ofx-client-ui > :where(main.container, main.wrapper, main.ofx-mercado-main, main.area-planos) {
    width: calc(100% - 24px) !important;
  }
  .ofx-client-ui > :where(header.topo, header.ofx-header, header.ofx-mercado-header, header.planos-header) {
    padding-inline: 12px !important; flex-wrap: wrap;
  }
  .ofx-client-ui :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]), select, textarea) {
    font-size: 16px !important;
  }
  .ofx-client-ui :where(button, .btn, .voltar, .btn-voltar) { min-height: 44px; }
  .ofx-client-ui .ofx-whatsapp { right: 12px; bottom: 12px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .ofx-client-ui :where(button, .btn, a) { transition: none !important; }
}

/* Platform communication: static HTML, no changes to application behavior. */
.ofx-home-copy .ofx-header .ofx-menu a { color: #fff; }
.ofx-home-copy .ofx-kicker { max-width: 42ch; letter-spacing: 1.5px; line-height: 1.6; }
.ofx-home-copy .ofx-features { grid-template-columns: repeat(12,minmax(0,1fr)); }
.ofx-home-copy .ofx-feature { grid-column: span 3; text-align: left; padding: 24px; }
.ofx-home-copy .ofx-feature:nth-child(n+5) { grid-column: span 4; }
.ofx-home-copy .ofx-feature .ofx-feature-icon { margin-left: 0; background: #eaf3fc; color: #0c5797; }
.ofx-home-copy .ofx-feature:nth-child(3) .ofx-feature-icon,
.ofx-home-copy .ofx-feature:nth-child(5) .ofx-feature-icon { background: #fff1d8; color: #975100; }
.ofx-home-copy .ofx-more { background: #082b50; padding: 64px 0; color: #fff; }
.ofx-home-copy .ofx-more-heading { max-width: 760px; margin-bottom: 32px; }
.ofx-home-copy .ofx-more-heading h2 { font-size: clamp(30px,4vw,48px); color: #fff; margin: 12px 0; }
.ofx-home-copy .ofx-more-heading > p:first-child { color: #ffc84a; font-size: 12px; letter-spacing: 1.5px; font-weight: 800; }
.ofx-home-copy .ofx-more-heading > p:last-child { color: #e2edf8; font-size: 20px; }
.ofx-home-copy .ofx-more-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ofx-home-copy .ofx-more-grid article { background: #103a61; border: 1px solid #3a5b7b; border-radius: 14px; padding: 24px; }
.ofx-home-copy .ofx-more-grid article > span { color: #ffc84a; font-size: 28px; }
.ofx-home-copy .ofx-more-grid h3 { color: #fff; font-size: 17px; margin: 14px 0 10px; line-height: 1.4; }
.ofx-home-copy .ofx-more-grid p { color: #e2edf8; font-size: 15px; margin: 0; line-height: 1.6; }
.ofx-home-copy .ofx-qr-story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.ofx-home-copy .ofx-qr-story h2 { font-size: clamp(26px,3vw,38px); margin: 12px 0 20px; }
.ofx-home-copy .ofx-qr-story p { line-height: 1.65; color: #52677d; }
.ofx-home-copy .ofx-copy-eyebrow { font-size: 13px; letter-spacing: 2px; font-weight: 800; color: #0c5797 !important; }
.ofx-home-copy .ofx-copy-emphasis { color: #082b50 !important; font-size: 21px; font-weight: 700; }
.ofx-client-ui .ofx-qr-flow { list-style: none; padding: 22px; margin: 0; border: 1px solid #d8e3ee; border-radius: 16px; background: #f5f8fc; }
.ofx-client-ui .ofx-qr-flow li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; margin-bottom: 24px; color: #082b50; font-size: 13px; font-weight: 800; }
.ofx-client-ui .ofx-qr-flow li:last-child { margin-bottom: 0; }
.ofx-client-ui .ofx-qr-flow b { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #082b50; color: #fff; }
.ofx-client-ui .ofx-qr-flow li:last-child b { background: #ffd400; color: #082b50; }
.ofx-client-ui .ofx-qr-flow i { position: absolute; bottom: -25px; left: 12px; color: #57718b; font-style: normal; font-size: 24px; }
.ofx-qr-copy .titulo { max-width: 840px; margin: 0 auto 32px; }
.ofx-qr-copy .titulo h1 { font-size: 16px; letter-spacing: 2px; color: #0c5797; }
.ofx-qr-copy .ofx-qr-headline { font-size: clamp(26px,4vw,38px); color: #082b50; margin: 14px 0; }
.ofx-qr-copy .ofx-qr-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; margin-bottom: 30px; padding: 26px; background: #fff; border: 1px solid #d8e3ee; border-radius: 16px; }
.ofx-qr-copy .ofx-qr-explainer h2 { grid-column: 1 / -1; font-size: 23px; color: #082b50; margin: 0 0 6px; }
.ofx-qr-copy .ofx-qr-flow { grid-row: span 2; }
.ofx-qr-copy .ofx-qr-uses { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; list-style: none; padding: 0; margin: 0; }
.ofx-qr-copy .ofx-qr-uses li { padding: 8px 12px; background: #eef5fc; border-radius: 8px; color: #164a7c; font-size: 13px; }
.ofx-qr-copy .ofx-qr-explainer > p { color: #52677d; line-height: 1.65; margin: 0; }
.ofx-qr-copy .ofx-qr-closing { padding: 24px; background: #082b50; color: #fff; border-radius: 12px; text-align: center; font-weight: 800; line-height: 1.6; }
.ofx-team-copy .titulo h1 { font-size: clamp(25px,3vw,34px); color: #082b50; }
.ofx-team-copy .ofx-team-intro { margin-bottom: 24px; padding: 22px; background: #eaf3fc; border: 1px solid #c7dced; border-radius: 14px; color: #082b50; }
.ofx-team-copy .ofx-team-intro > p:first-child { margin: 0 0 16px; font-size: 17px; }
.ofx-team-copy .ofx-team-intro ul { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 0; list-style: none; }
.ofx-team-copy .ofx-team-intro li { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; }
.ofx-team-copy .ofx-team-days { margin: 18px 0 0; color: #52677d; font-size: 12px; letter-spacing: 1px; }
@media (max-width: 850px) {
  .ofx-home-copy .ofx-features { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ofx-home-copy .ofx-feature, .ofx-home-copy .ofx-feature:nth-child(n+5) { grid-column: auto; }
  .ofx-home-copy .ofx-more-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ofx-home-copy .ofx-qr-story-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .ofx-home-copy .ofx-features, .ofx-home-copy .ofx-more-grid, .ofx-qr-copy .ofx-qr-explainer { grid-template-columns: minmax(0,1fr); }
  .ofx-qr-copy .ofx-qr-explainer { padding: 18px; }
  .ofx-home-copy .ofx-more { padding: 42px 0; }
  .ofx-home-copy .ofx-product { flex-wrap: wrap; }
  .ofx-home-copy .ofx-nav { height: auto; min-height: 72px; gap: 12px; padding: 10px 0; }
  .ofx-home-copy .ofx-logo { width: 140px; max-width: 100%; }
  .ofx-home-copy .ofx-actions .ofx-btn { padding: 12px; font-size: 13px; }
  .ofx-home-copy .ofx-hero h1 { font-size: clamp(30px,8vw,42px); }
  .ofx-home-copy .ofx-intro h2 { font-size: 28px; }
  .ofx-client-ui .ofx-qr-flow { padding: 16px; }
}
