/* All rules are limited to the offers module. Existing cards retain their design. */
.mgaf-root.mgaf-offers{max-width:100%;min-width:0}.mgaf-offers [data-mgaf-offers-section]{margin:24px 0}.mgaf-offers .mgaf-offers-grid{display:grid;grid-template-columns:repeat(var(--mgaf-offers-columns,4),minmax(0,1fr));gap:var(--mgaf-offers-gap,16px);align-items:stretch}.mgaf-offers .mgaf-offers-grid[aria-busy=true]{min-height:180px}.mgaf-offers .mgaf-card{width:100%;max-width:100%;min-width:0;min-height:0;height:auto;display:flex;flex-direction:column;gap:10px;justify-content:flex-start;box-sizing:border-box;overflow-wrap:anywhere}.mgaf-offers .mgaf-card-header{min-height:0;order:0}.mgaf-offers [data-mgaf-title]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--mgaf-offers-title-lines,3);overflow:hidden;min-height:0;margin:0}.mgaf-offers .mgaf-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--mgaf-offers-description-lines,3);overflow:hidden;min-height:0;margin:8px 0 0}.mgaf-offers .mgaf-media{height:160px;min-height:0;flex:none}.mgaf-offers .mgaf-media img{height:100%;max-width:100%;object-fit:contain}.mgaf-offers .mgaf-body{display:flex;flex-direction:column;justify-content:flex-start;gap:10px;flex:0 1 auto;min-height:0;padding-top:0}.mgaf-offers .mgaf-feature-bar{margin:0;min-height:0}.mgaf-offers .mgaf-live{min-height:0;margin:0}.mgaf-offers .mgaf-button{margin:0;width:100%;min-height:44px;box-sizing:border-box}.mgaf-offers .mgaf-legal{margin:0}.mgaf-offers-compact .mgaf-card{gap:6px;padding:12px}.mgaf-offers-compact .mgaf-media{height:125px}.mgaf-offers [hidden]{display:none!important}.mgaf-offers a:focus-visible,.mgaf-offers summary:focus-visible{outline:3px solid #146c94;outline-offset:3px}.mgaf-offers .mgaf-offers-diagnostics{background:#f5f5f5;padding:12px}.mgaf-offers .mgaf-offers-diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere}.mgaf-offers .mgaf-offers-intro{max-width:80ch}
@media(max-width:1024px){.mgaf-offers .mgaf-offers-grid{grid-template-columns:repeat(var(--mgaf-offers-tablet,2),minmax(0,1fr))}}@media(max-width:600px){.mgaf-offers .mgaf-offers-grid{grid-template-columns:repeat(var(--mgaf-offers-mobile,1),minmax(0,1fr))}.mgaf-offers .mgaf-card{padding:12px}.mgaf-offers .mgaf-media{height:145px}}@media(max-width:359px){.mgaf-offers .mgaf-offers-grid{grid-template-columns:minmax(0,1fr)}}

/* A published page has no empty offer headings or loading placeholders. */
.mgaf-root.mgaf-offers[hidden]{display:none!important}

/* T-008: filtro público por marcas (solo se genera con el filtro activado). */
.mgaf-offers .mgaf-offers-brands{border:1px solid currentColor;border-radius:8px;margin:16px 0;padding:12px;min-width:0}.mgaf-offers .mgaf-offers-brands[hidden]{display:none}.mgaf-offers .mgaf-offers-brand-list{display:flex;flex-wrap:wrap;gap:8px 16px}.mgaf-offers .mgaf-offers-brand-list label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.mgaf-offers .mgaf-offers-brand-clear{margin-top:8px;cursor:pointer}
