/* XFartura v372: confirmacao de dados, feed fiel e carregamento resiliente. */
.restaurant-public-badges{
  align-items:center;
}
.restaurant-public-badges .restaurant-verify-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:100%;
  min-height:30px;
  padding:7px 12px;
  line-height:1.05;
  text-align:center;
  letter-spacing:0;
  vertical-align:middle;
  white-space:nowrap;
}

.ad-post-card:not(.local-opportunity-card){
  border-color:rgba(148,163,184,.2);
  background:rgba(255,255,255,.98);
  box-shadow:0 8px 24px rgba(15,23,42,.055),inset 0 1px 0 rgba(255,255,255,.92);
}
.ad-post-card .ad-post-media-shell{
  position:relative;
  background:#f4f6f8!important;
}
.ad-post-card .ad-post-media,
.ad-post-card .ad-post-carousel img,
.public-profile-post-tile img{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  transform:none!important;
}
.ad-post-media-shell:not(.is-empty):not(.is-broken) .ad-post-media-placeholder{
  display:none!important;
}
.ad-post-media-shell.is-broken .ad-post-media,
.public-profile-post-tile.is-broken img{
  display:none!important;
}
.ad-post-card>.ad-post-actions{
  grid-template-columns:repeat(5,minmax(38px,1fr));
  gap:4px;
  padding:6px 10px;
  background:rgba(255,255,255,.96)!important;
  backdrop-filter:blur(8px);
}
.ad-post-card>.ad-post-actions button{
  display:grid;
  place-items:center;
  min-height:38px;
  padding:4px;
  border-radius:7px!important;
}
.ad-post-card>.ad-post-actions button::after{
  display:none!important;
}
.xf-social-icon{
  position:relative;
  display:inline-grid;
  width:18px;
  height:18px;
  place-items:center;
  color:currentColor;
  font:400 0.98rem/1 Arial,sans-serif;
}
.xf-social-like::before{
  content:none;
}
.ad-action-like.active .xf-social-like::before{
  content:none;
}
.xf-social-like{
  line-height:1;
  font-size:1.15rem;
  font-weight:500;
}
.order-details .order-items>span>b,
.order-details .order-items>span>small{
  display:block;
}
.order-details .order-items>span>small{
  margin-top:3px;
  color:var(--muted,#64748b);
  font-size:.76rem;
  font-weight:500;
  line-height:1.35;
}
.xf-social-comment::before{
  content:"";
  width:15px;
  height:12px;
  border:1.6px solid currentColor;
  border-radius:5px;
}
.xf-social-comment::after{
  content:"";
  position:absolute;
  left:4px;
  bottom:1px;
  width:5px;
  height:5px;
  border-bottom:1.6px solid currentColor;
  border-left:1.6px solid currentColor;
  transform:skewY(-32deg);
  background:#fff;
}
.xf-social-save::before{
  content:"";
  width:12px;
  height:16px;
  border:1.6px solid currentColor;
  border-bottom:0;
  border-radius:3px 3px 0 0;
  clip-path:polygon(0 0,100% 0,100% 100%,50% 73%,0 100%);
}
.xf-social-share::before{
  content:"";
  width:14px;
  height:14px;
  border-top:1.6px solid currentColor;
  border-right:1.6px solid currentColor;
  transform:translate(-1px,2px) rotate(45deg);
}
.xf-social-share::after{
  content:"";
  position:absolute;
  width:11px;
  height:8px;
  left:2px;
  bottom:2px;
  border-left:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  border-radius:0 0 0 4px;
}
.xf-social-link::before,
.xf-social-link::after{
  content:"";
  position:absolute;
  width:11px;
  height:6px;
  border:1.6px solid currentColor;
  border-radius:999px;
  transform:rotate(-38deg);
}
.xf-social-link::before{left:0;top:4px}
.xf-social-link::after{right:0;bottom:4px}
.attachment-upload-control{
  display:grid;
  gap:10px;
}
.attachment-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.attachment-chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(17,27,39,.1);
  background:rgba(255,255,255,.88);
  box-shadow:0 8px 22px rgba(17,27,39,.05);
  max-width:100%;
}
.attachment-chip a,
.attachment-chip span{
  min-width:0;
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-decoration:none;
  color:#162033;
  font-weight:600;
}
.attachment-chip small{
  color:#627086;
  font-size:.78rem;
}
.attachment-chip .media-remove-button{
  position:static;
  width:26px;
  height:26px;
  margin-left:auto;
}
.attachment-empty-note{
  display:block;
}
.public-profile-post-tile{
  border-color:rgba(148,163,184,.2);
  background:#edf2f5;
  box-shadow:0 6px 18px rgba(15,23,42,.055);
}
.public-profile-post-tile .public-profile-post-shade{
  background:linear-gradient(180deg,transparent 78%,rgba(15,23,42,.28))!important;
}
.public-profile-post-tile .public-profile-post-monogram{
  display:grid;
}
.public-profile-post-tile.has-image:not(.is-broken) .public-profile-post-monogram{
  opacity:0;
}
.social-notification-center:not([open]) .social-notification-list,
.social-notification-center:not([open])>.social-notification-expand,
.social-notification-center:not([open])>[data-toggle-social-notifications]{
  display:none;
}
.admin-loading-state,
.admin-recovery-state{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:110px;
}
.admin-loading-state>div,
.admin-recovery-state{
  display:grid;
  gap:4px;
  flex-direction:column;
  align-items:flex-start;
}
.admin-loading-state small,
.admin-recovery-state p{
  color:var(--xf-muted);
}

@media(max-width:560px){
  .restaurant-public-badges .restaurant-verify-chip{
    white-space:normal;
  }
  .ad-post-card>.ad-post-actions{
    padding-inline:7px;
  }
  .admin-loading-state,
  .admin-recovery-state{
    align-items:flex-start;
    padding:14px;
  }
}

.structured-import-control{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px;
  margin:10px 0;
  border:1px dashed rgba(6,182,212,.42);
  border-radius:8px;
  background:rgba(240,253,250,.72);
}
.structured-import-control div{display:grid;gap:3px;min-width:0}
.structured-import-control small{color:#64748b;line-height:1.35}
.structured-import-overlay{z-index:10040;padding:18px}
.structured-import-modal{width:min(1080px,96vw);max-height:90vh;display:flex;flex-direction:column;gap:12px;overflow:hidden}
.structured-import-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.structured-import-head h3,.structured-import-head p{margin:3px 0}
.structured-import-list{display:grid;gap:10px;overflow:auto;padding-right:3px}
.structured-import-row{border:1px solid #dbe4ee;border-radius:8px;padding:10px;background:#fff}
.structured-import-check{display:flex;align-items:center;gap:8px;font-weight:700;margin-bottom:8px}
.structured-import-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.structured-import-fields label{display:grid;gap:4px;min-width:0;color:#64748b;font-size:12px;font-weight:700}
.structured-import-fields input,.structured-import-fields textarea{width:100%;min-width:0;border:1px solid #dbe4ee;border-radius:7px;padding:9px 10px;font:inherit;color:#111827;background:#fff}
.structured-import-fields textarea{min-height:68px;resize:vertical}
.structured-import-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}
@media(max-width:760px){
  .structured-import-control{grid-template-columns:1fr}
  .structured-import-control .ghost-btn{width:100%}
  .structured-import-fields{grid-template-columns:1fr}
  .structured-import-modal{width:100%;max-height:92vh;padding:14px}
  .structured-import-actions{display:grid;grid-template-columns:1fr 1fr}
}
