.mpfav-toggle{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:36px;
  margin:0;
  padding:6px 9px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#000fff;
  font:800 14px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  text-decoration:none;
  cursor:pointer;
  box-shadow:none;
}
.mpfav-toggle:hover,.mpfav-toggle:focus-visible{background:#eef1ff;color:#000dcc;outline:none}
.mpfav-toggle:focus-visible{box-shadow:0 0 0 3px rgba(0,15,255,.2)}
.mpfav-toggle[disabled]{opacity:.58;cursor:wait}
.mpfav-toggle__icon{display:block;width:21px;height:21px;flex:0 0 21px}
.mpfav-toggle__icon path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mpfav-toggle.is-favorite .mpfav-toggle__icon path{fill:currentColor}
.mpfav-toggle.is-favorite,.mpfav-toggle.is-favorite:hover,.mpfav-toggle.is-favorite:focus-visible{background:linear-gradient(135deg,#ffe86b 0%,#ffd43b 100%)!important;color:#000fff!important;box-shadow:0 3px 10px rgba(255,216,59,.42)!important}
.mpfav-toggle--compact{width:38px;min-width:38px;height:38px;min-height:38px;padding:7px;border-radius:999px}
.mpfav-toggle--compact .mpfav-toggle__label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mpfav-detail-action{display:flex;justify-content:flex-end;margin:8px 0 14px}
.mpfav-detail-global-actions{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,calc(env(safe-area-inset-bottom) + 18px));z-index:99958;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none}
.mp-pp-global-actions .mpfav-detail-floating{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:0 0 52px!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.72)!important;border-radius:999px!important;background:linear-gradient(135deg,#000fff 0%,#007bff 100%)!important;color:#fff!important;box-shadow:0 8px 24px rgba(0,0,0,.30),0 0 12px rgba(0,123,255,.42)!important;pointer-events:auto!important}
.mp-pp-global-actions .mpfav-detail-floating:hover,.mp-pp-global-actions .mpfav-detail-floating:focus-visible{transform:translateY(-2px);background:linear-gradient(135deg,#0015d8 0%,#0068d8 100%)!important;color:#fff!important;box-shadow:0 11px 28px rgba(0,0,0,.34),0 0 15px rgba(0,123,255,.52)!important;outline:3px solid #fff!important;outline-offset:3px!important}
.mp-pp-global-actions .mpfav-detail-floating.is-favorite,.mp-pp-global-actions .mpfav-detail-floating.is-favorite:hover,.mp-pp-global-actions .mpfav-detail-floating.is-favorite:focus-visible{border-color:#fff3a6!important;background:linear-gradient(135deg,#ffe86b 0%,#ffd43b 100%)!important;color:#000fff!important;box-shadow:0 8px 24px rgba(0,0,0,.30),0 0 14px rgba(255,216,59,.62)!important}
.mp-pp-global-actions .mpfav-detail-floating.is-favorite .mpfav-toggle__icon path{fill:#000fff!important;stroke:#000fff!important}
.mp-pp-global-actions .mpfav-detail-floating .mpfav-toggle__icon{width:27px;height:27px;flex-basis:27px}
.mp-pp-global-actions .mpfav-detail-floating .mpfav-toggle__label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mpfav-created-footer{display:flex;justify-content:flex-end!important}
.mpfav-created-footer .mpo-card-actionbuttons{margin-left:auto}
.mpf-card-actions .mpfav-toggle,.mp-libros-card-actions .mpfav-toggle,.mp-publication-actions .mpfav-toggle{flex:0 0 auto!important;width:38px!important;min-width:38px!important;max-width:38px!important;padding:7px!important}
.mpf-card-actions.mpfav-has-action{display:flex!important;align-items:center!important;gap:8px!important}
.mpf-card-actions.mpfav-has-action .mpf-card-share{flex:1 1 auto!important;width:auto!important;min-width:0!important}

.mpfav-page{width:min(1120px,100%);margin:0 auto;padding:18px 12px 32px;color:#111}
.mpfav-page__header{margin:0 0 18px;padding:20px 22px;border-radius:18px;background:#fff;box-shadow:0 0 20px rgba(0,123,255,.72)}
.mpfav-page__header h1{margin:0;color:#000;font-size:clamp(27px,4vw,40px);line-height:1.1}
.mpfav-page__header p{margin:0;color:#333;line-height:1.55}
.mpfav-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:10px;border-radius:14px;background:#fff;box-shadow:0 0 14px rgba(0,123,255,.45)}
.mpfav-filter{appearance:none;border:1px solid rgba(0,15,255,.25);border-radius:999px;background:#fff;color:#000fff;font:800 14px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;padding:9px 13px;cursor:pointer}
.mpfav-filter:hover,.mpfav-filter:focus-visible{background:#eef1ff;outline:none}
.mpfav-filter.is-active{border-color:#000fff;background:#000fff;color:#fff}
.mpfav-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.mpfav-card{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(0,15,255,.14);border-radius:18px;background:#fff;box-shadow:0 0 18px rgba(0,123,255,.55)}
.mpfav-card[hidden]{display:none!important}
.mpfav-card__type{padding:9px 14px;background:#000fff;color:#fff;font:900 13px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.03em;text-transform:uppercase}
.mpfav-card__media{display:block;background:#f5f7ff;text-align:center}
.mpfav-card__media img{display:block;width:100%;height:240px;object-fit:contain;background:#f5f7ff}
.mpfav-card__body{display:flex;flex:1;flex-direction:column;padding:16px}
.mpfav-card__body h2{margin:0 0 10px;font-size:20px;line-height:1.3}
.mpfav-card__body h2 a{color:#000fff!important;text-decoration:none!important}
.mpfav-card__body h2 a:hover,.mpfav-card__body h2 a:focus-visible{text-decoration:underline!important}
.mpfav-card__body p{margin:0 0 14px;color:#333;line-height:1.55;text-align:justify}
.mpfav-card__actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid rgba(0,15,255,.12)}
.mpfav-card__open{color:#000fff!important;font-weight:900;text-decoration:none!important}
.mpfav-card__open:hover,.mpfav-card__open:focus-visible{text-decoration:underline!important}
.mpfav-remove{color:#555;font-size:13px}
.mpfav-remove:hover,.mpfav-remove:focus-visible{background:#f2f2f2;color:#222}
.mpfav-empty,.mpfav-login{padding:24px;border-radius:18px;background:#fff;box-shadow:0 0 18px rgba(0,123,255,.55);text-align:center;font-weight:700}
.mpfav-empty[hidden]{display:none!important}
.mpfav-live{position:fixed;left:50%;bottom:22px;z-index:100000;transform:translateX(-50%);max-width:min(92vw,520px);padding:10px 14px;border-radius:10px;background:#111;color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.35);font:800 14px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;text-align:center}

@media(max-width:720px){
  .mpfav-grid{grid-template-columns:1fr;gap:20px}
  .mpfav-page{padding:12px 8px 24px}
  .mpfav-page__header{padding:17px}
  .mpfav-filters{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
  .mpfav-filter{flex:0 0 auto}
  .mpfav-card__media img{height:220px}
  .mpfav-detail-global-actions{right:max(12px,env(safe-area-inset-right));bottom:max(14px,calc(env(safe-area-inset-bottom) + 14px));gap:8px}
  .mp-pp-global-actions .mpfav-detail-floating{flex-basis:48px!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}
  .mp-pp-global-actions .mpfav-detail-floating .mpfav-toggle__icon{width:25px;height:25px;flex-basis:25px}
}
