/* Compare controls — AVR blue (#0571D5), catalog card + header */

.brand_card {
    position: relative;
}

.brand_card > .icon-btn.js-compare-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 2;
}

.brand_card > .icon-btn.js-compare-btn,
.compare-header__actions .icon-btn.js-compare-remove {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(5, 113, 213, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    color: #0571D5;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.brand_card > .icon-btn.js-compare-btn:hover,
.compare-header__actions .icon-btn.js-compare-remove:hover {
    background: rgba(5, 113, 213, 0.08);
    border-color: #0571D5;
}

.brand_card > .icon-btn.js-compare-btn.compare-btn--active {
    background: #0571D5;
    border-color: #0571D5;
    color: #fff;
}

.brand_card > .icon-btn.js-compare-btn.compare-btn--active:hover {
    background: #0157a5;
    border-color: #0157a5;
}

.brand_card > .icon-btn.js-compare-btn .compare-icon,
.compare-header__actions .icon-btn.js-compare-remove .close-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.header_top_compare {
    position: relative;
    color: #0571D5;
}

.header_top_compare .compare-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.header_top_compare .js-compare-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #0571D5;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

