/* === AGO Unified Summary — COMPLETE CSS === */

/* Hide native summary blocks only when our table exists */
.ago-summary-built .frm-summary-page-wrapper { display: none !important; }

/* Table */
.ago-summary-table { width:100%; border-collapse:collapse; margin:0; background:transparent; }
.ago-summary-table tr { border-bottom:1px solid #e2e8f0; }
.ago-summary-table td { padding:10px 12px; vertical-align:top; }

/* Columns */
.ago-summary-table .ago-td-label { width:26%; font-weight:600; color:#2a2f45; white-space:nowrap; }
.ago-summary-table .ago-td-value { width:60%; }
.ago-summary-table .ago-td-edit  { width:14%; text-align:right; white-space:nowrap; }

/* Section headers */
.ago-summary-table .ago-summary-heading{
  background:#132e52; color:#fff; font-weight:700; letter-spacing:.02em;
  border-radius:10px; padding:10px 14px; margin:18px 0 10px;
}

/* Edit pill (active, not grey) */
.ago-edit-proxy{
  appearance:none; border:0; background:#e9eff7!important; border-radius:999px;
  padding:6px 10px; line-height:1; display:inline-flex; align-items:center; gap:6px;
  cursor:pointer; color:inherit; opacity:1!important; filter:none!important; pointer-events:auto!important;
}
.ago-edit-proxy:hover{ background:#dae6f5; }
.ago-edit-proxy svg{ width:14px; height:14px; }

/* Cap big icons/images shown as values */
.ago-summary-table td .frm_show_images img,
.ago-summary-table td img { max-width:84px!important; height:auto!important; }
.ago-summary-table td .frm_text_label_for_image_inner{ display:block; margin-top:6px; font-size:.85rem; color:#6b7280; text-align:center; }

/* Make tiles always get the click */
.custom-icon-select .icon-option,
.ff-icon-select-wrapper .ff-icon-option { position:relative; z-index:1; pointer-events:auto!important; cursor:pointer; }
.custom-icon-select .icon-option * ,
.ff-icon-select-wrapper .ff-icon-option * { pointer-events:none!important; }

/* Responsive */
@media (max-width:640px){
  .ago-summary-table td{ padding:8px 10px; }
  .ago-summary-table .ago-td-label{ width:40%; white-space:normal; }
  .ago-summary-table .ago-td-value{ width:46%; }
  .ago-summary-table .ago-td-edit { width:14%; }
}


/* Keep image + label inline and reasonably small in the summary values */
.ago-summary-table td .frm_show_images {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ago-summary-table td .frm_show_images img {
  width: 48px !important;
  height: auto !important;
}
.ago-summary-table td .frm_text_label_for_image_inner {
  margin: 0 !important;
  font-size: 0.95rem;
  line-height: 1.2;
}
.custom-icon-select .icon-option { pointer-events: auto !important; cursor: pointer; }
.custom-icon-select .icon-option * { pointer-events: none !important; }
