/* AG Flash — dock fixo + sheet (portal, vitrine, marketplace) */
@import url('/css/messenger-stream.css?v=msg20');

:root {
  --ag-flash-dock-h: 52px;
}

/* Ícone ÁguiaON — três traços + plus (estilo “Mais” Mercado Livre). Só no dock: tamanho = FA (≈12px). */
.icon-aguiaon-mais {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
svg.icon-aguiaon-mais {
  display: block;
}
#ag-flash-dock .icon-aguiaon-mais,
.ag-flash-dock-bar .icon-aguiaon-mais {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
}

.ag-flash-dock-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: #131A25;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html.ag-flash-embed-host #ag-flash-dock-bar,
html.ag-flash-embed-host #ag-flash-sheet,
html.ag-flash-embed-host #ag-flash-backdrop,
html.ag-flash-embed-host #ag-flash-tip {
  display: none !important;
}

html.ag-embed body {
  padding-bottom: calc(var(--ag-flash-dock-h) + env(safe-area-inset-bottom, 0px));
}

/* Barras fixas no rodapé (carrinho etc.) ficam acima do dock */
html.ag-embed #cart-bar,
body.ag-flash-dock-on #cart-bar,
html.ag-embed .ag-dock-aware-bottom,
body.ag-flash-dock-on .ag-dock-aware-bottom {
  bottom: calc(var(--ag-flash-dock-h) + env(safe-area-inset-bottom, 0px));
  z-index: 109;
}

/* Checkout aberto: esconde barra do carrinho (z 109) que ficava por cima do modal (z 100) */
html.checkout-open #cart-bar,
body.checkout-open #cart-bar {
  transform: translateY(100%) !important;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

html.ag-embed #repeat-banner,
body.ag-flash-dock-on #repeat-banner {
  bottom: calc(var(--ag-flash-dock-h) + 80px + env(safe-area-inset-bottom, 0px));
}

body.ag-flash-dock-on #portal-bnav:not(.hidden) {
  bottom: calc(var(--ag-flash-dock-h) + env(safe-area-inset-bottom, 0px));
}

#ag-flash-dock {
  max-width: 640px;
  margin: 0 auto;
}

#ag-flash-tip {
  position: fixed;
  left: 50%;
  bottom: calc(var(--ag-flash-dock-h) + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 71;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #1B2432;
  color: #E6EDF3;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center;
}
#ag-flash-tip.ag-flash-tip-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#ag-flash-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #1B2432;
}

#ag-flash-install-toast { display: none !important; }

.ag-flash-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#ag-flash-install,
#ag-flash-install.ag-flash-install-btn {
  display: none !important;
}

.ag-flash-conta-btn,
.ag-flash-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #E6EDF3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.ag-flash-conta-btn:hover,
.ag-flash-home-btn:hover {
  background: rgba(242, 185, 62, 0.16);
  border-color: rgba(242, 185, 62, 0.45);
  color: #F7C766;
}
.ag-flash-conta-btn:active,
.ag-flash-home-btn:active { transform: scale(0.97); }
.ag-flash-conta-btn i,
.ag-flash-home-btn i { font-size: 12px; }
.ag-flash-conta-btn.ag-flash-conta-btn-active {
  background: rgba(242, 185, 62, 0.22);
  border-color: rgba(242, 185, 62, 0.55);
  color: #F7C766;
}

.ag-flash-tile-icon-photo {
  overflow: hidden;
  padding: 0 !important;
}
.ag-flash-chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-flash-repeat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  background: #F2B93E;
  color: #1B1508;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.ag-flash-repeat-btn:hover { filter: brightness(1.06); }
.ag-flash-repeat-btn:active { transform: scale(0.97); }

#ag-flash-backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 105;
}
#ag-flash-backdrop.ag-flash-backdrop-on { opacity: 1; }

#ag-flash-sheet {
  bottom: calc(var(--ag-flash-dock-h) + env(safe-area-inset-bottom, 0px));
  height: min(380px, calc(70dvh - var(--ag-flash-dock-h)));
  background: #131A25;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 106;
}
#ag-flash-sheet.ag-flash-sheet-open { transform: translateY(0); }

/* Conversas — painel expandido estilo WhatsApp (mobile quase tela cheia) */
#ag-flash-sheet.ag-flash-sheet-chat {
  height: min(
    calc(100dvh - var(--ag-flash-dock-h) - env(safe-area-inset-top, 0px) - 8px),
    calc(92dvh - var(--ag-flash-dock-h))
  );
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
#ag-flash-sheet.ag-flash-sheet-chat.ag-flash-sheet-open {
  transform: translateY(0);
}
#ag-flash-body.ag-flash-body-chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
}
.ag-flash-conversas-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ag-flash-conversas-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
}
.ag-flash-conversas-compose {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}
.ag-flash-conversas-wrap--list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ag-flash-chat-row--pinned {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  padding-bottom: 12px;
}
.ag-flash-chat-row--aguia .ag-flash-chat-avatar--aguia {
  background: rgba(242, 185, 62, 0.18);
  color: #F2B93E;
  overflow: hidden;
}
.ag-flash-chat-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F2B93E;
  background: rgba(242, 185, 62, 0.12);
  border-radius: 999px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.ag-flash-aguia-msgs .ag-public-msg {
  display: flex;
  margin-bottom: 8px;
}
.ag-flash-aguia-msgs .ag-public-msg-user { justify-content: flex-end; }
.ag-flash-aguia-msgs .ag-public-msg-bot { justify-content: flex-start; }
.ag-flash-aguia-msgs .ag-public-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.ag-flash-aguia-msgs .ag-public-msg-user .ag-public-bubble {
  background: rgba(242, 185, 62, 0.22);
  color: #F7C766;
  border-bottom-right-radius: 4px;
}
.ag-flash-aguia-msgs .ag-public-msg-bot .ag-public-bubble {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}
.ag-flash-aguia-suggestions {
  flex-shrink: 0;
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 8px;
  padding-right: 2px;
}

.ag-flash-chat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ag-flash-chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ag-flash-chat-row:hover,
.ag-flash-chat-row:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.ag-flash-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #1B1508;
  background: #F2B93E;
  flex-shrink: 0;
}
.ag-flash-chat-meta {
  flex: 1;
  min-width: 0;
}
.ag-flash-chat-top,
.ag-flash-chat-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ag-flash-chat-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-flash-chat-time {
  font-size: 10px;
  color: #64748b;
  flex-shrink: 0;
}
.ag-flash-chat-preview {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.ag-flash-chat-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #F2B93E;
  color: #1B1508;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  #ag-flash-sheet.ag-flash-sheet-chat {
    left: 50%;
    right: auto;
    width: min(420px, calc(100vw - 2rem));
    height: min(85dvh, 720px);
    bottom: calc(1rem + var(--ag-flash-dock-h) + env(safe-area-inset-bottom, 0px));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  }
  #ag-flash-sheet.ag-flash-sheet-chat:not(.ag-flash-sheet-open) {
    transform: translateX(-50%) translateY(calc(100% + 2rem));
  }
  #ag-flash-sheet.ag-flash-sheet-chat.ag-flash-sheet-open {
    transform: translateX(-50%) translateY(0);
  }
}
.ag-flash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.ag-flash-utility-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1B2432;
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: pointer;
  color: #E6EDF3;
  text-align: left;
}
.ag-flash-utility-tile:hover { filter: brightness(1.08); }
.ag-flash-utility-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 16px;
  flex-shrink: 0;
}
.ag-flash-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 12px;
  background: #1B2432;
  border: none;
  cursor: pointer;
  color: #E6EDF3;
}
.ag-flash-tile:hover { filter: brightness(1.08); }
.ag-flash-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 185, 62, 0.15);
  font-size: 14px;
}
.ag-flash-tile-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
/* Pedido do Carlos: "Conversar com a Águia" agora é um quadradinho normal
   dentro do grid (ao lado do card de Delivery) em vez de uma barra larga
   sozinha embaixo — deixa o painel mais simples e compacto. */
.ag-flash-tile-chat {
  gap: 6px;
}
/* Produto da plataforma (Vida Fitness): tile colorido e em destaque */
.ag-flash-tile-promoted {
  border: 1px solid color-mix(in srgb, var(--ag-tile-accent, #22c55e) 55%, transparent);
  background: color-mix(in srgb, var(--ag-tile-accent, #22c55e) 16%, #1B2432);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ag-tile-accent, #22c55e) 18%, transparent);
}
.ag-flash-tile-promoted .ag-flash-tile-icon {
  background: color-mix(in srgb, var(--ag-tile-accent, #22c55e) 22%, transparent);
}
.ag-flash-tile-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ag-tile-accent, #22c55e);
  line-height: 1;
}
.ag-flash-promo {
  padding: 4px 2px 8px;
}
.ag-flash-promo-card {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ag-promo-accent, #22c55e) 45%, transparent);
  background: color-mix(in srgb, var(--ag-promo-accent, #22c55e) 10%, #131A25);
  padding: 14px 14px 12px;
}
.ag-flash-promo-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
}
.ag-flash-promo-blurb {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 10px;
}
.ag-flash-promo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 6px;
}
.ag-flash-promo-list li {
  font-size: 11px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ag-flash-promo-list li i {
  color: var(--ag-promo-accent, #22c55e);
  width: 14px;
  text-align: center;
}
.ag-flash-promo-cta {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: #04140c;
  background: var(--ag-promo-accent, #22c55e);
  margin-bottom: 8px;
}
.ag-flash-promo-cta.secondary {
  background: transparent;
  color: var(--ag-promo-accent, #22c55e);
  border: 1px solid color-mix(in srgb, var(--ag-promo-accent, #22c55e) 50%, transparent);
}
.ag-flash-link-all {
  width: 100%;
  text-align: center;
  font-size: 12px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 12px;
  background: #1B2432;
  color: #F2B93E;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.ag-flash-store-list { display: flex; flex-direction: column; gap: 10px; }
.ag-flash-store-row { display: flex; align-items: center; gap: 6px; }
.ag-flash-store-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
.ag-flash-store-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.ag-flash-heart {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.ag-flash-menu-row {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  font-size: 14px;
  color: #E6EDF3;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  cursor: pointer;
}
.ag-flash-order {
  padding: 12px;
  border-radius: 12px;
  background: #1B2432;
  margin-bottom: 10px;
}
.ag-flash-order-clickable { cursor: pointer; transition: background 0.15s ease; }
.ag-flash-order-clickable:hover { background: #212B3B; }

.ag-flash-conversas-order-card {
  display: none;
}
.ag-flash-order-details {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.ag-flash-order-details.hidden { display: none; }
.ag-flash-order-details-card {
  width: min(360px, 100%);
  max-height: min(70dvh, 480px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 16px;
  background: #131A25;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.ag-flash-order-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ag-flash-order-details-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.35;
}
.ag-flash-orders-badge-on-conversas {
  font-size: 8px;
  min-width: 14px;
  height: 14px;
}

/* Status do pedido — só etapa atual (compacto) */
.ag-flash-order-status-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(242, 185, 62, 0.12);
  border: 1px solid rgba(242, 185, 62, 0.35);
}
.ag-flash-order-status-done {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
}
.ag-flash-order-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: #F2B93E;
  color: #1B1508;
}
.ag-flash-order-status-done .ag-flash-order-status-icon {
  background: #22c55e;
  color: #1B1508;
}
.ag-flash-order-status-label {
  font-size: 11px;
  font-weight: 700;
  color: #F7C766;
}
.ag-flash-order-status-done .ag-flash-order-status-label { color: #86efac; }

/* (stepper antigo — mantido só por compat, não usado) */
.ag-flash-order-steps {
  display: flex;
  align-items: flex-start;
  margin: 10px 0 2px;
}
.ag-flash-order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  width: 44px;
}
.ag-flash-order-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: #263049;
  color: #5b6785;
  transition: background 0.25s ease, color 0.25s ease;
}
.ag-flash-order-step-label {
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  color: #5b6785;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ag-flash-order-step-line {
  flex: 1 1 auto;
  height: 2px;
  background: #263049;
  margin-top: 10px;
  transition: background 0.25s ease;
}
.ag-flash-order-step-line-done { background: #F2B93E; }
.ag-flash-order-step-done .ag-flash-order-step-dot {
  background: #F2B93E;
  color: #1B1508;
}
.ag-flash-order-step-done .ag-flash-order-step-label { color: #F2B93E; }
.ag-flash-order-step-active .ag-flash-order-step-dot {
  background: #F2B93E;
  color: #1B1508;
  box-shadow: 0 0 0 3px rgba(242, 185, 62, 0.25);
}
.ag-flash-order-step-active .ag-flash-order-step-label { color: #F7C766; }
.ag-flash-order-cancelled {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 2px;
  font-size: 11px;
  font-weight: 700;
  color: #f87171;
}
.ag-flash-dock-active { color: #F2B93E !important; }

#ag-flash-dock-aguia,
.ag-flash-dock-aguia {
  color: #F7C766 !important;
  font-weight: 700;
  background: rgba(242, 185, 62, 0.17);
  border: 1px solid rgba(242, 185, 62, 0.38);
  border-radius: 999px;
  padding: 4px 9px;
  gap: 4px;
  box-shadow: 0 0 14px rgba(242, 185, 62, 0.16);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
#ag-flash-dock-aguia:hover,
.ag-flash-dock-aguia:hover {
  color: #fff !important;
  background: rgba(242, 185, 62, 0.31);
  border-color: rgba(242, 185, 62, 0.55);
  box-shadow: 0 0 18px rgba(242, 185, 62, 0.28);
}
#ag-flash-dock-aguia.ag-flash-dock-active,
.ag-flash-dock-aguia.ag-flash-dock-active {
  color: #1B1508 !important;
  background: #F2B93E;
  border-color: #E8B86D;
  box-shadow: 0 0 20px rgba(242, 185, 62, 0.38);
}
#ag-flash-dock-aguia i,
.ag-flash-dock-aguia i,
#ag-flash-dock-aguia .icon-aguiaon-mais,
.ag-flash-dock-aguia .icon-aguiaon-mais {
  color: #F2B93E;
}
#ag-flash-dock-aguia:hover i,
.ag-flash-dock-aguia:hover i,
#ag-flash-dock-aguia.ag-flash-dock-active i,
.ag-flash-dock-aguia.ag-flash-dock-active i,
#ag-flash-dock-aguia:hover .icon-aguiaon-mais,
.ag-flash-dock-aguia:hover .icon-aguiaon-mais,
#ag-flash-dock-aguia.ag-flash-dock-active .icon-aguiaon-mais,
.ag-flash-dock-aguia.ag-flash-dock-active .icon-aguiaon-mais {
  color: inherit;
}
.ag-flash-invite {
  padding: 14px;
  border-radius: 14px;
  background: rgba(242, 185, 62, 0.12);
  border: 1px solid rgba(242, 185, 62, 0.28);
  margin-top: 12px;
}
.ag-flash-invite p { margin: 0; }
.ag-flash-invite a,
.ag-flash-invite button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #F2B93E;
  color: #1B1508;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.ag-flash-status-open { color: #4ade80; }
.ag-flash-status-closed { color: #94a3b8; }

/* Chat público (concierge guest) */
#ag-public-chat {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 72;
  width: min(380px, calc(100vw - 1.5rem));
}
@media (min-width: 768px) {
  #ag-public-chat { bottom: 6rem; right: 2rem; }
}
#ag-public-chat.hidden { display: none !important; }
.ag-public-chat-card {
  display: flex;
  flex-direction: column;
  max-height: min(520px, 72dvh);
  border-radius: 18px;
  overflow: hidden;
  background: #131A25;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.ag-public-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #F2B93E;
}
.ag-public-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ag-public-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ag-public-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ag-public-msg { display: flex; }
.ag-public-msg-user { justify-content: flex-end; }
.ag-public-msg-bot { justify-content: flex-start; }
.ag-public-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #E6EDF3;
  background: #1B2432;
  white-space: pre-wrap;
}
.ag-public-msg-user .ag-public-bubble {
  background: #F2B93E;
  color: #1B1508;
  border-bottom-right-radius: 4px;
}
.ag-public-msg-bot .ag-public-bubble { border-bottom-left-radius: 4px; }
.ag-public-chat-suggestions {
  padding: 0 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ag-public-sug-label {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B93A1;
}
.ag-public-sug-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(242, 185, 62, 0.1);
  border: 1px solid rgba(242, 185, 62, 0.25);
  text-decoration: none;
}
.ag-public-sug-name {
  font-size: 12px;
  font-weight: 700;
  color: #F7C766;
}
.ag-public-sug-meta {
  font-size: 10px;
  color: #8B93A1;
}
.ag-public-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f172a;
}
.ag-public-chat-input-row input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #131A25;
  color: #E6EDF3;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}
.ag-public-chat-input-row input:focus {
  border-color: rgba(242, 185, 62, 0.5);
}
.ag-public-chat-input-row button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #F2B93E;
  color: #1B1508;
  cursor: pointer;
}

.ag-flash-session-ticket summary::-webkit-details-marker { display: none; }
.ag-flash-session-ticket summary { list-style: none; }

/* O dock inferior (Início/Favoritos/Conversas/AguiaON) é um bloco de marca
   fixo — igual ao shell do PWA, sempre no visual escuro, independente do
   tema claro/escuro da página. Não escuta html.theme-portal:not(.dark)
   de propósito: ele é "um caso à parte" e não deve mudar de cor (#3028). */
