.ru-has-compare-panel .compare-property-active-push-toleft,
body.single-property .compare-property-active-push-toleft {
    left: 0;
    right: 0;
}

body.single-property #compare-property-panel,
#compare-property-panel[hidden] {
    display: none !important;
}

body.ru-compare-view,
.ru-compare-view .compare-property-active {
    overflow: visible;
    overflow-x: clip;
}

#compare-property-panel.ru-compare-panel {
    --ru-panel-width: min(20rem, 100vw);
    --ru-panel-top: 0px;
    box-sizing: border-box;
    width: var(--ru-panel-width);
    right: calc(-1 * var(--ru-panel-width));
    top: var(--ru-panel-top);
    height: calc(100% - var(--ru-panel-top));
    padding: 0;
    transition: right .2s ease;
    z-index: 1100;
}

#compare-property-panel.ru-compare-panel.compare-property-panel-open {
    right: 0;
}

.admin-bar #compare-property-panel.ru-compare-panel {
    --ru-panel-top: 32px;
}

.ru-compare-panel-content {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
}

.ru-compare-panel:not(.compare-property-panel-open) .ru-compare-panel-content {
    visibility: hidden;
}

.ru-compare-panel.compare-property-panel-open {
    box-shadow: -5px 0 20px rgb(0 0 0 / 12%);
}

.ru-compare-panel .compare-property-label {
    width: auto;
    min-height: 44px;
    height: auto;
    left: auto;
    right: 100%;
    padding: .375rem .625rem;
    font-size: .875rem;
    line-height: 1.25;
    white-space: nowrap;
}

.ru-compare-panel .compare-property-label .compare-count {
    display: inline;
    position: static;
    background: transparent;
    font: inherit;
}

.ru-compare-panel .compare-property-label > i {
    display: none;
}

.ru-compare-panel-content > p {
    margin: 0 0 .75rem;
    font-weight: 650;
}

.ru-compare-panel-content .compare-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: .75rem;
}

.ru-compare-panel-content .compare-item {
    float: none;
    width: auto;
    margin: 0;
}

.ru-compare-panel-content .compare-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.ru-compare-panel-content .compare-item .remove-icon {
    top: 4px;
    right: 4px;
    bottom: auto;
    width: 36px;
    height: 36px;
    font-size: 18px;
    line-height: 36px;
    background: rgb(0 0 0 / 68%);
}

.ru-compare-caption {
    margin: .375rem 0 0;
    font-size: .875rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ru-compare-panel .compare-btn[aria-disabled="true"] {
    opacity: .55;
    cursor: default;
}

.ru-compare-page [hidden] {
    display: none !important;
}

.ru-compare-page .ru-compare-header {
    padding-block: .625rem;
}

.ru-compare-toolbar,
.ru-compare-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
}

.ru-compare-options > a,
.ru-compare-differences {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: .5rem;
    margin: 0;
    cursor: pointer;
}

.ru-compare-differences {
    padding: .375rem .75rem;
    border: 1px solid #d8cbd0;
    border-radius: .5rem;
    background: #fff;
    color: #34262a;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
}

.ru-compare-differences:hover,
.ru-compare-differences[aria-pressed="true"] {
    border-color: #ab4962;
}

.ru-compare-differences[aria-pressed="true"] {
    background: #f8edf0;
    color: #802e45;
}

.ru-compare-differences:focus-visible {
    outline: 2px solid #802e45;
    outline-offset: 2px;
}

.ru-compare-differences-mark {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 1.125em;
    height: 1.125em;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.ru-compare-differences[aria-pressed="true"] .ru-compare-differences-mark::before {
    content: "✓";
    font-size: .875em;
    line-height: 1;
}

.ru-compare-pager {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    margin-bottom: .5rem;
}

.ru-compare-pager .btn {
    padding: .375rem .625rem;
    font-size: inherit;
    min-height: 44px;
}

.ru-compare-note {
    font-size: .9em;
}

.ru-compare-table {
    --ru-compare-top: 0px;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    vertical-align: top;
    margin-bottom: 1.5rem;
    font-size: .9375rem;
    line-height: 1.4;
}

.admin-bar .ru-compare-table {
    --ru-compare-top: 32px;
}

.ru-compare-table thead {
    position: sticky;
    top: var(--ru-compare-top);
    z-index: 2;
    background: #fff;
    box-shadow: 0 3px 5px rgb(0 0 0 / 8%);
}

.ru-compare-table th,
.ru-compare-table td {
    padding: .625rem;
    border-bottom: 1px solid #e8e8e8;
    text-align: start;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.ru-compare-label {
    width: clamp(7rem, 16%, 12rem);
}

.ru-compare-table tbody th {
    font-weight: 650;
}

.ru-compare-table tbody tr:nth-child(odd) {
    background: #f7f6f7;
}

.ru-compare-table td ul {
    padding-inline-start: 1.1em;
    margin: 0;
}

.ru-compare-table td li + li {
    margin-top: .375rem;
}

.ru-compare-table small {
    display: block;
    margin-top: .125rem;
    font-size: .85em;
}

.ru-compare-photo {
    display: block;
    max-width: 14rem;
    margin-bottom: .375rem;
}

.ru-compare-photo:empty {
    display: none;
}

.ru-compare-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 114px;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.ru-compare-name,
.ru-compare-price {
    display: block;
}

.ru-compare-price {
    font-weight: 650;
    margin-top: .25rem;
}

.ru-compare-recommendation {
    display: inline-block;
    padding: .125rem .5rem;
    border-radius: .5rem;
    background: #f8edf0;
    color: #802e45;
    font-size: .825em;
    font-weight: 600;
}

.ru-compare-table [data-ru-service-control] button {
    border: 0;
    background: transparent;
    padding: .375rem 0;
    min-height: 44px;
    color: inherit;
    text-decoration: underline;
    font-weight: 650;
    text-underline-offset: .15em;
}

.ru-compare-table [data-ru-same-note] {
    display: block;
    font-size: .875rem;
}

.ru-compare-table tfoot .btn {
    display: block;
    width: 100%;
    margin: 0 0 .375rem;
    padding: .375rem .5rem;
    min-height: 44px;
    font-size: .875rem;
    line-height: 1.3;
    white-space: normal;
    align-content: center;
}

@media (max-width: 782px) {
    .admin-bar #compare-property-panel.ru-compare-panel,
    .admin-bar .ru-compare-table {
        --ru-panel-top: 46px;
        --ru-compare-top: 46px;
    }
}

@media (max-width: 699px) {
    .ru-compare-table {
        font-size: .8125rem;
    }

    .ru-compare-table .ru-compare-label {
        width: clamp(4.5rem, 24%, 6rem);
    }

    .ru-compare-table th,
    .ru-compare-table td {
        padding: .4375rem .3125rem;
    }

    .ru-compare-photo img {
        max-height: 68px;
    }

    .ru-compare-table [data-ru-mobile-hidden] {
        display: none;
    }
}

@media (max-width: 600px) {
    .admin-bar #compare-property-panel.ru-compare-panel,
    .admin-bar .ru-compare-table {
        --ru-panel-top: 0px;
        --ru-compare-top: 0px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #compare-property-panel.ru-compare-panel {
        transition: none;
    }
}
