:where(.bb-card-favorite-host) {
    position: relative;
    anchor-scope: --bb-fav-title;
}
.bb-card-favorite-host > .bb-card-favorite-tools {
    position: absolute;
    /* Its offsets use the whole card, including in lists with a photo column. */
    grid-area: auto !important;
    z-index: 4;
    top: 0;
    right: 0;
    left: auto;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: block;
}
.bb-card-favorite-tools > button.bb-card-favorite-button {
    appearance: none;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #31353a;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
}
.bb-card-favorite-button .bb-card-favorite-disc {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1px solid #dedfe0;
    border-radius: 50%;
    pointer-events: none;
}
.bb-card-favorite-tools .bb-card-favorite-button svg {
    display: block;
    width: 18px;
    height: 18px;
    color: inherit;
    fill: none;
    stroke: currentColor;
}
.bb-card-favorite-tools .bb-card-favorite-button[aria-pressed="true"] {color: #b34b06;}
.bb-card-favorite-tools .bb-card-favorite-button[aria-pressed="true"] path {fill: currentColor;}
.bb-card-favorite-tools .bb-card-favorite-button:focus-visible {outline: 2px solid #a54513; outline-offset: -3px;}
.bb-card-favorite-tools > .bb-card-favorite-feedback:not(:empty) {
    box-sizing: border-box;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    width: max-content;
    max-width: min(170px, 44vw);
    padding: 8px 10px;
    background: #fff;
    color: #252b27;
    border: 1px solid #d8ddda;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgb(27 35 29 / 9%);
    font: 400 14px/1.4 Roboto, Arial, sans-serif;
    text-align: left;
}
.bb-card-favorite-tools > .bb-card-favorite-feedback a {color: #9d4216; text-decoration: underline;}

.bb-card-favorite-host:not(:hover) > .bb-card-favorite-tools {
    opacity: 0;
    pointer-events: none;
}
.bb-card-favorite-host:not(:hover) > .bb-card-favorite-tools:has(:focus-visible, .bb-card-favorite-feedback:not(:empty)),
html.bb-favorites-touch .bb-card-favorite-host > .bb-card-favorite-tools {
    opacity: 1;
    pointer-events: auto;
}
@supports not selector(:has(:focus-visible)) {
    .bb-card-favorite-host:not(:hover) > .bb-card-favorite-tools:focus-within {
        opacity: 1;
        pointer-events: auto;
    }
}

.bbcat-root[data-view="list"] #bbcat-results .bbcat-card > .bbcat-name {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
    align-items: start;
    anchor-name: --bb-fav-title;
}
.bbcat-root[data-view="list"] .bbcat-card > .bbcat-name a {min-width: 0;}
.bbcat-root[data-view="list"] .bbcat-card > .bbcat-name::after {
    content: "";
    display: block;
    width: 44px;
    height: 44px;
}
.bbcat-root[data-view="list"] .bbcat-card > .bb-card-favorite-tools {
    display: block;
    right: auto;
    left: var(--bb-fav-title-x);
    top: var(--bb-fav-title-y);
}
@supports (anchor-scope: --bb-fav-title) and (left: anchor(--bb-fav-title right)) {
    .bbcat-root[data-view="list"] .bbcat-card > .bb-card-favorite-tools {
        left: calc(anchor(--bb-fav-title right) - 44px);
        top: anchor(--bb-fav-title top);
    }
}
