/* L4E piezas sueltas — Agenda Cultural. Reutiliza las clases ag-* del plugin
   base antequera-info (CSS global en wp_head: calendario, chips, lista, modal).
   Aqui solo layout de pieza y los pocos helpers propios l4e-ag-*. */
.ai-widget.l4e-ag-piece {
  border: 0 !important; box-shadow: none !important; background: transparent !important;
  padding: 0 !important; margin: 0 !important; overflow: visible !important;
}
.l4e-ag-piece { width: 100%; max-width: 100%; box-sizing: border-box; }
.l4e-ag-piece * { box-sizing: border-box; }
.l4e-ag-piece .ag-app { width: 100%; }

/* La pieza de filtros no necesita el marco de app completo */
.l4e-ag-piece .ag-app--filtros .ag-toolbar { border-radius: 12px; }

/* Cursor en celdas y filas interactivas */
.l4e-ag-piece .ag-month-cell { cursor: pointer; }
.l4e-ag-piece .ag-list-row { cursor: pointer; }
.l4e-ag-piece .ag-chip { cursor: pointer; }

/* Aviso de dia filtrado en el listado */
.l4e-ag-dayfilter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; margin-bottom: 10px; border-radius: 10px;
  background: #f1f5f9; color: #334155; font-size: .9rem;
}
.l4e-ag-dayfilter .l4e-ag-clearday {
  border: 1px solid #cbd5e1; background: #fff; border-radius: 8px;
  padding: 3px 10px; font-size: .82rem; cursor: pointer; color: #2563eb;
}
.l4e-ag-dayfilter .l4e-ag-clearday:hover { background: #eff6ff; }

.l4e-ag-piece .ai-loading { padding: 16px; color: #64748b; font-size: .85rem; }

/* Fallback por si el modal ag-modal-back del base no fija overlay */
.l4e-ag-piece .ag-modal-back {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
}
