:root{--ee-accent:#0056A8;}

/* Utilities */
.ee-hidden{display:none!important;}
.ee-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* Wrapper */
.ee-fav-wrap{display:inline-flex;align-items:center;gap:8px;}
.ee-fav-wrap.ee-fav-inline{gap:6px;}

/* Heart button (Coches.net-ish: pill, compact, no heavy shadow) */
.ee-fav-btn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #d9dee8;
  background:#fff;
  color:#0f172a;
  border-radius:999px;
  padding:8px 12px;
  line-height:1;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .05s ease;
}
.ee-fav-btn:hover{border-color:#c7cedc;background:#f8fafc;}
.ee-fav-btn:active{transform:translateY(1px);}
.ee-fav-btn:focus{outline:none;box-shadow:0 0 0 3px rgba(0,86,168,.15);} /* fallback */

.ee-fav-btn.is-small{padding:7px 10px;}

/* Variant icon: circular */
.ee-fav-btn.ee-fav-icon{width:36px;height:36px;padding:0;border-radius:999px;gap:0;}
.ee-fav-btn.ee-fav-icon.is-small{width:32px;height:32px;}

.ee-fav-ico{display:inline-flex;align-items:center;justify-content:center;}
.ee-fav-heart{width:18px;height:18px;fill:transparent;stroke:#64748b;stroke-width:1.7;}
.ee-fav-btn.is-fav .ee-fav-heart{fill:var(--ee-accent);stroke:var(--ee-accent);}

.ee-fav-txt{font-size:13px;font-weight:500;}

/* Actions (links/buttons) */
.ee-fav-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 12px;
  border-radius:10px;
  font-size:13px;
  line-height:1;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  box-sizing:border-box;
  user-select:none;
}

.ee-fav-action-primary{background:var(--ee-accent);border-color:var(--ee-accent);color:#fff;}
.ee-fav-action-primary:hover{filter:brightness(.95);} 

.ee-fav-action-ghost{background:#fff;border-color:#d9dee8;color:#0f172a;font-weight:400;} /* quita negrita */
.ee-fav-action-ghost:hover{background:#f8fafc;border-color:#c7cedc;}

.ee-fav-action-disabled{background:#f1f5f9;border-color:#e2e8f0;color:#64748b;cursor:not-allowed;}

/* "Ver favoritos" (solo dentro de la oferta): más compacto */
.ee-fav-viewall{
  height:30px;
  padding:0 10px;
  border-radius:999px;
  font-size:12.5px;
  font-weight:400;
  white-space:nowrap;
}

/* Favorites page layout */
.ee-favs{max-width:980px;margin:22px auto;padding:0 14px;}
.ee-favs-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px;}
.ee-favs-title{margin:0;font-size:20px;line-height:1.2;}
.ee-favs-count{font-weight:500;color:#64748b;}

.ee-favs-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.ee-favs-search{
  height:36px;
  padding:0 12px;
  border:1px solid #d9dee8;
  border-radius:10px;
  min-width:240px;
}
.ee-favs-sort{
  height:36px;
  padding:0 12px;
  border:1px solid #d9dee8;
  border-radius:10px;
  background:#fff;
}

.ee-favs-grid{display:grid;grid-template-columns:1fr;gap:12px;}

.ee-fav-card{border:1px solid #e2e8f0;background:#fff;border-radius:14px;padding:14px 14px 12px;}
.ee-fav-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.ee-fav-card-title a,.ee-fav-card-title span{font-size:15px;font-weight:600;color:#0f172a;text-decoration:none;}
.ee-fav-card-title a:hover{text-decoration:underline;}

.ee-fav-status{font-size:12px;padding:4px 8px;border-radius:999px;border:1px solid transparent;white-space:nowrap;}
.ee-fav-status.is-ok{background:rgba(16,185,129,.10);color:#065f46;border-color:rgba(16,185,129,.25);} 
.ee-fav-status.is-bad{background:rgba(239,68,68,.10);color:#7f1d1d;border-color:rgba(239,68,68,.25);} 

.ee-fav-card-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;color:#64748b;font-size:13px;}
.ee-fav-meta-item{display:inline-flex;align-items:center;}

/* Actions: same size, never collide */
.ee-fav-card-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px;}
.ee-fav-card-actions .ee-fav-action{min-width:120px;}

/* Mobile: stack buttons nicely with same width */
@media (max-width:520px){
  .ee-favs-search{min-width:unset;flex:1 1 220px;}
  .ee-fav-card-actions .ee-fav-action{flex:1 1 140px;min-width:unset;}
  .ee-fav-btn.ee-fav-button{padding:8px 10px;}
}

/* ===== Integración ficha oferta (Paneles) ===== */
/* Por defecto permitimos que el wrap pueda romper línea para no tapar contenido */
.ee-fav-wrap.ee-fav-top{flex-wrap:wrap;justify-content:flex-end;}

/* En móvil, evitamos la posición absoluta (que puede tapar el título) */
@media (max-width:680px){
  .be-offer-fav{
    position:static !important;
    top:auto !important;
    right:auto !important;
    left:auto !important;
    bottom:auto !important;
    width:100% !important;
    justify-content:flex-end !important;
    margin:0 0 10px 0 !important;
  }
  .be-offer-fav .ee-fav-wrap{width:100%;justify-content:flex-end;}
}

@media (max-width:520px){
  /* Compactamos un poco más el conjunto en pantallas muy pequeñas */
  .be-offer-fav .ee-fav-top .ee-fav-btn.ee-fav-icon{width:34px !important;height:34px !important;}
  .be-offer-fav .ee-fav-top .ee-fav-heart{width:17px;height:17px;}
  .be-offer-fav .ee-fav-viewall{height:32px;}
}

/* ===== Invitados: CTA en /mis-favoritos/ ===== */
.ee-favs-auth{max-width:980px;margin:22px auto;padding:0 14px;}
.ee-favs-auth-card{border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:18px;text-align:center;}
.ee-favs-auth-icon{width:46px;height:46px;margin:0 auto 10px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:rgba(var(--ee-accent-rgb,0,86,168),.10);}
.ee-favs-auth-heart{width:22px;height:22px;fill:var(--ee-accent);}
.ee-favs-auth-title{margin:0 0 6px;font-size:18px;line-height:1.2;}
.ee-favs-auth-text{margin:0 0 14px;color:#475569;font-size:14px;}
.ee-favs-auth-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
.ee-favs-auth-note{margin:12px 0 0;font-size:12.5px;color:#64748b;}

@media (max-width:520px){
  .ee-favs-auth-actions{flex-direction:column;}
  .ee-favs-auth-actions .ee-fav-action{width:100%;}
}


/* Likes counter (público) */
.ee-fav-like-meta{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1;color:#64748b;white-space:nowrap;}
.ee-fav-like-prefix{color:var(--ee-accent);font-weight:700;}
.ee-fav-like-num{font-weight:600;}
.ee-fav-like-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;border:1px solid rgba(100,116,139,.35);background:#f8fafc;color:#0f172a;font-size:11px;}

/* ===== Integración Paneles (buscador): favoritos/likes debajo del botón "Ver oferta" ===== */
.be-search-actions{
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.be-search-actions .be-btn{order:1;}
.be-search-actions .ee-fav-wrap{order:2;}
.be-search-actions .ee-fav-wrap.ee-fav-inline{
  justify-content:flex-end;
  gap:6px;
  margin-top:2px;
}
.be-search-actions .ee-fav-wrap.ee-fav-inline .ee-fav-btn.ee-fav-icon{
  width:34px;
  height:34px;
}
@media (max-width:520px){
  .be-search-actions .ee-fav-wrap.ee-fav-inline .ee-fav-btn.ee-fav-icon{
    width:32px;
    height:32px;
  }
}
