/**
 * COB Property Compare – CSS
 * Drawer shown at bottom of viewport when compare list is non-empty.
 */
.cob-compare-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    z-index: 9000;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
    transition: bottom .3s ease;
    padding: 12px 20px;
}
.cob-compare-drawer--open {
    bottom: 0;
}
.cob-compare-drawer__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cob-compare-drawer__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex: 1 1 auto;
}
.cob-compare-drawer__item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: .85rem;
}
.cob-compare-drawer__item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.cob-compare-drawer__item-title {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cob-compare-drawer__remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 4px;
    opacity: .6;
}
.cob-compare-drawer__remove:hover { opacity: 1; }

.cob-compare-drawer__submit {
    flex-shrink: 0;
}
.cob-compare-drawer__submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.cob-compare-drawer__clear {
    flex-shrink: 0;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: .8rem;
}

/* Toggle button active state */
[data-compare].is-compared .compare-icon { color: var(--cob-primary, #e23638); }
