.cr-header-favorites{position:relative;cursor:pointer}
.cr-header-favorites svg{fill:none;stroke:currentColor;transition:fill .18s ease,stroke .18s ease}
.cr-header-favorites.is-active svg{fill:#fff;stroke:#fff}
.cr-favorites-badge{position:absolute;z-index:3;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 3px;border-radius:999px;background:#ef4763!important;color:#fff!important;font-size:10px;font-weight:800;line-height:1;display:grid;place-items:center;box-sizing:border-box;box-shadow:none!important;opacity:1!important;filter:none!important;isolation:isolate;pointer-events:none}
.cr-favorites-badge[hidden]{display:none!important}
.cr-favorites-modal[hidden]{display:none!important}
.cr-favorites-modal{position:fixed;inset:0;z-index:10050;display:flex;justify-content:flex-end}
.cr-favorites-backdrop{position:absolute;inset:0;background:rgba(10,25,16,.55)}
.cr-favorites-panel{position:relative;width:min(440px,100%);height:100%;max-height:100dvh;overflow-y:auto;box-sizing:border-box;background:#fff;padding:24px 20px calc(24px + env(safe-area-inset-bottom));box-shadow:-15px 0 40px rgba(0,0,0,.15);color:#183c27}
.cr-favorites-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}
.cr-favorites-heading h2{margin:0;font-size:23px;line-height:1.2;font-weight:900;color:#134b2a}
.cr-favorites-heading h2 span{display:inline-block;margin-left:5px;font-size:14px;color:#47725a;vertical-align:baseline}
.cr-favorites-heading p{margin:7px 0 0;font-size:13px;color:#65796a;line-height:1.4}
.cr-favorites-close{width:36px;height:36px;flex-shrink:0;border:0;border-radius:50%;background:#edf6ed;color:#194e30;font-size:27px;cursor:pointer}
.cr-favorites-list{display:grid;gap:10px}
.cr-favorites-item{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #e3ede3;border-radius:16px;background:#fbfefb}
.cr-favorites-item-logo{width:54px;height:54px;flex-shrink:0;border-radius:14px;background:#eaf5e9;display:grid;place-items:center;overflow:hidden;color:#226b3a;font-weight:900}
.cr-favorites-item-logo img{width:100%;height:100%;object-fit:cover}
.cr-favorites-item-info{min-width:0;flex:1}
.cr-favorites-item-info a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:800;color:#174f2e;text-decoration:none}
.cr-favorites-item-info small{display:block;margin-top:4px;color:#738676;font-size:12px}
.cr-favorites-remove{border:0;background:#fbeef1;color:#c83755;border-radius:10px;min-height:34px;padding:0 10px;cursor:pointer;font-size:12px;font-weight:800}
.cr-favorites-empty{padding:30px 14px;text-align:center;color:#667b6b;line-height:1.5;font-size:14px;border:1px dashed #d6e7d7;border-radius:16px}
.cr-favorites-more{width:100%;margin-top:16px;min-height:42px;border:0;border-radius:12px;background:#087638;color:#fff;font-weight:800;cursor:pointer}
.cr-favorites-more[hidden]{display:none!important}
.cr-favorites-footnote{font-size:12px;line-height:1.5;color:#738676;margin-top:20px}

/* Home 2.0: eliminar el estado visual deshabilitado heredado de fase 2. */
body.cr-home-v2 .cr-home-v2-header .cr-header-favorites {
    opacity: 1 !important;
    filter: none !important;
    cursor: pointer !important;
    color: #fff !important;
}
body.cr-home-v2 .cr-home-v2-header .cr-header-favorites svg {
    opacity: 1 !important;
    filter: none !important;
    stroke: #fff !important;
}
body.cr-home-v2 .cr-home-v2-header .cr-header-favorites.is-active svg {
    fill: #fff !important;
    stroke: #fff !important;
}
/* Mismo tratamiento que el contador de la cesta, sin oscurecimiento. */
body.cr-home-v2 .cr-home-v2-header .cr-favorites-badge {
    position: absolute !important;
    top: -6px !important;
    right: -5px !important;
    z-index: 4 !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: #ef3340 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 15px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    display: grid !important;
    place-items: center !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}
body.cr-home-v2 .cr-home-v2-header .cr-favorites-badge[hidden] {
    display: none !important;
}
