/* Primeiros passos da empresa (análise, checklist e convite de revendedores) */
.onb { position: relative; margin: 12px 16px 4px; padding: 18px; background: #fff; border: 1px solid #E4E7EC; border-radius: 16px; display: flex; flex-direction: column; gap: 14px; font-family: inherit; }
.onb__status { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.onb__status--pending { background: #FFFAEB; color: #7A2E0E; }
.onb__status--rejected { background: #FEF3F2; color: #912018; }
.onb__body { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.onb__steps { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.onb__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; font-size: 15px; color: #101828; }
.onb__head span { font-size: 13px; color: #475467; }
.onb__step { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border-radius: 8px; color: #101828 !important; font-size: 14px; text-decoration: none !important; }
.onb__step:hover { background: #F2F4F7; }
.onb__step--done { color: #475467 !important; text-decoration: line-through !important; }
.onb__check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #98A2B3; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.onb__step--done .onb__check { background: #12B76A; border-color: #12B76A; color: #fff; }
.onb__invite { flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #344054; line-height: 1.5; }
.onb__invite strong { font-size: 15px; color: #101828; }
.onb__link { display: flex; flex-wrap: wrap; gap: 8px; }
.onb__link input { flex: 1 1 220px; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #D0D5DD; border-radius: 8px; font-size: 13px; color: #101828; background: #F9FAFB; }
.onb__btn { height: 40px; padding: 0 14px; border: 1px solid #101828; border-radius: 8px; background: #101828; color: #fff !important; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none !important; }
.onb__btn--ghost { background: #fff; color: #101828 !important; border-color: #D0D5DD; }
.onb__pending { color: #93370D; font-weight: 500; }
.onb__hide { align-self: flex-end; border: 0; background: transparent; color: #475467; font-size: 13px; cursor: pointer; padding: 4px 6px; }
.onb__hide:hover { color: #101828; text-decoration: underline; }
.onb__status--trial { background: #ECFDF3; color: #054F31; }
.onb__btn--inline { align-self: flex-start; margin-top: 6px; }

/* Teste grátis em uma linha (primeiros passos completos) */
.onb-trial-line { margin: 12px 16px 4px; padding: 10px 16px; border-radius: 12px; background: #ECFDF3; border: 1px solid #ABEFC6; color: #05603A; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.onb-trial-line a { margin-left: auto; color: #05603A !important; font-weight: 600; text-decoration: underline; }

/* Botão "Minha loja" no topo do portal */
.toolbar-store { position: relative; flex-shrink: 0; }
.toolbar-store__btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; margin-right: 4px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 19px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.toolbar-store__btn:hover, .toolbar-store--open .toolbar-store__btn { background: rgba(255, 255, 255, .12); }
.toolbar-store__btn:focus-visible { outline: 3px solid #84ADFF; outline-offset: 2px; }
.toolbar-store__icon { flex-shrink: 0; }
.toolbar-store__dot { width: 8px; height: 8px; border-radius: 50%; background: #32D583; flex-shrink: 0; }
.toolbar-store__dot--off { background: #FDB022; }
.toolbar-store__backdrop { display: none; }
.toolbar-store-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 95; width: 400px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 18px; background: #fff; border-radius: 16px; box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .28), 0 0 0 1px rgba(16, 24, 40, .06); display: flex; flex-direction: column; gap: 14px; color: #101828; font-size: 14px; text-align: left; }
.toolbar-store-menu__grip { display: none; }
.toolbar-store-menu__head { display: flex; align-items: center; gap: 12px; }
.toolbar-store-menu__logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; border: 1px solid #EAECF0; flex-shrink: 0; }
.toolbar-store-menu__logo--fallback { display: inline-flex; align-items: center; justify-content: center; background: #101828; color: #fff; font-weight: 700; border: 0; }
.toolbar-store-menu__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toolbar-store-menu__title strong { font-size: 15px; }
.toolbar-store-menu__status { font-size: 13px; color: #067647; }
.toolbar-store-menu__status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #12B76A; vertical-align: 1px; }
.toolbar-store-menu__status--off { color: #93370D; }
.toolbar-store-menu__status--off::before { background: #F79009; }
.toolbar-store-menu__label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #344054; }
.toolbar-store-menu__link { display: flex; gap: 8px; }
.toolbar-store-menu__link input { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #D0D5DD; border-radius: 10px; background: #F9FAFB; color: #101828; font: inherit; font-size: 13px; }
.toolbar-store-menu__copy { height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: #101828; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-width: 88px; }
.toolbar-store-menu__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.toolbar-store-menu__action { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #EAECF0; border-radius: 12px; background: #fff; color: #101828 !important; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.toolbar-store-menu__action:hover { background: #F9FAFB; border-color: #D0D5DD; }
.toolbar-store-menu__qr { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; background: #F9FAFB; font-size: 13px; color: #475467; line-height: 1.45; }
.toolbar-store-menu__qr qrcode, .toolbar-store-menu__qr canvas, .toolbar-store-menu__qr img { width: 120px !important; height: 120px !important; flex-shrink: 0; }
.toolbar-store-menu__foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #EAECF0; font-size: 13px; }
.toolbar-store-menu__foot a { color: #101828 !important; text-decoration: underline; }

/* Celular: só o ícone no topo; o painel vira uma folha de baixo */
@media (max-width: 600px) {
  .toolbar-store__btn { width: 40px; height: 40px; padding: 0; justify-content: center; border: 0; border-radius: 20px; margin-right: 0; }
  .toolbar-store__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .toolbar-store__dot { position: absolute; top: 8px; right: 7px; border: 2px solid #1A1A1A; }
  .toolbar-store__backdrop { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(16, 24, 40, .48); }
  .toolbar-store-menu { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 88vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); }
  .toolbar-store-menu__grip { display: block; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #D0D5DD; }
  .toolbar-store-menu__link input, .toolbar-store-menu__copy { height: 46px; }
}
/* Celular estreito: com o botão da loja, o topo mostra só a foto do usuário */
@media (max-width: 420px) {
  .toolbar-identity__name { display: none; }
}
