/* "Add to Compare" buttons and the floating tray (compare.js). */

/* Round icon button beside the heart on grid cards */
.wedding-listing .img .img-content .bottom .compare-toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    margin-left: 6px;
}
.wedding-listing .img .img-content .bottom .compare-toggle:hover { background: #bcaa98; }
.wedding-listing .img .img-content .bottom .compare-toggle.active { background: #a3c9a8; }
.wedding-listing .img .img-content .bottom .compare-toggle .compare-label { display: none; }

/* Text button in list rows and on the listing page */
.compare-toggle.compare-text { color: #5b5b5b; font-weight: 600; white-space: nowrap; }
.compare-toggle.compare-text i { margin-right: 4px; }
.compare-toggle.compare-text.active { color: #2f7a6f; }
.result-list .bottom .compare-toggle.compare-text { margin-right: 14px; }

/* Tray */
.compare-tray {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #ece6e0;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .16);
    padding: 10px 14px;
    max-width: calc(100vw - 32px);
}
.compare-tray .ct-thumbs { display: flex; gap: 6px; }
.compare-tray .ct-item { position: relative; width: 46px; height: 46px; border-radius: 8px; background: #f6f4f2; overflow: visible; }
.compare-tray .ct-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.compare-tray .ct-item.ct-empty { border: 1px dashed #d8d0c8; background: transparent; }
.compare-tray .ct-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #b9aea3; }
.compare-tray .ct-remove {
    position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
    border: 0; background: #232323; color: #fff; font-size: 14px; line-height: 20px; padding: 0; cursor: pointer;
}
.compare-tray .ct-text { font-weight: 700; color: #232323; font-size: .92rem; white-space: nowrap; }
.compare-tray .ct-go.disabled { opacity: .5; pointer-events: auto; cursor: not-allowed; }
.compare-tray .ct-clear { border: 0; background: none; color: #8a7461; font-size: .85rem; padding: 0; cursor: pointer; }
body.has-compare-tray { padding-bottom: 84px; }

@media (max-width: 767px) {
    .compare-tray { left: 8px; right: 8px; transform: none; bottom: 8px; max-width: none; gap: 10px; padding: 8px 10px; }
    .compare-tray .ct-text { display: none; }
    .compare-tray .ct-thumbs { flex: 1; }
    .compare-tray .ct-item { width: 40px; height: 40px; }
}
@media (max-width: 991px) {
    /* Listing page has its own fixed action bar at the bottom on small screens */
    body.has-lp-mobile-bar .compare-tray { bottom: 80px; }
    body.has-compare-tray.has-lp-mobile-bar { padding-bottom: 150px; }
}
@media print { .compare-tray { display: none !important; } }
