.petfood-selected-compare {
    position: fixed;
    right: 16px;
    bottom: calc(var(--petfood-selected-offset, 16px) + env(safe-area-inset-bottom));
    z-index: 9999;
    background: #22303f;
    color: #fff;
    border-radius: 8px;
    padding: 0.7em 0.8em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.55em;
    align-items: flex-start;
    max-width: min(92vw, 360px);
}

.petfood-selected-text {
    margin: 0;
    font-size: 0.92em;
    line-height: 1.3;
}

.petfood-selected-count {
    font-weight: bold;
}

.petfood-selected-actions {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

a.petfood-selected-open,
a.petfood-selected-open:visited,
a.petfood-selected-open:hover,
a.petfood-selected-open:focus {
    color: #fff !important;
}

@media screen and (max-width: 600px) {
    .petfood-selected-compare {
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

.petfood-compare-toggle,
.petfood-selected-open,
.petfood-selected-clear {
    display: inline-block;
    padding: 0.45em 0.75em;
    border: 1px solid #b96829;
    background: #d8782f;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
}

.petfood-selected-compare[hidden] {
    display: none !important;
}