
html:has(.sale-engines-list-page) {
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

html:has(.sale-engines-list-page) body.compensate-for-scrollbar {
    margin-right: 0 !important;
}

html:has(.sale-engines-list-page) body.sale-engines-fancybox-open {
    overflow: hidden;
}

body.fancybox-active .sale-engines-result__image-preview,
body.fancybox-active .sale-engine-detail__main-preview {
    opacity: 0 !important;
    visibility: hidden !important;
}

body.sale-engines-fancybox-open .fancybox-show-thumbs .fancybox-thumbs,
body.autoparts-price-saleEnginePage.fancybox-active .fancybox-show-thumbs .fancybox-thumbs,
body.autoparts-price-saleEnginesListPage.fancybox-active .fancybox-show-thumbs .fancybox-thumbs,
.fancybox-container.sale-engine-gallery-fancybox.fancybox-show-thumbs .fancybox-thumbs {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: auto !important;
    height: 96px !important;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.88);
}

body.sale-engines-fancybox-open .fancybox-show-thumbs .fancybox-inner,
body.autoparts-price-saleEnginePage.fancybox-active .fancybox-show-thumbs .fancybox-inner,
body.autoparts-price-saleEnginesListPage.fancybox-active .fancybox-show-thumbs .fancybox-inner,
.fancybox-container.sale-engine-gallery-fancybox.fancybox-show-thumbs .fancybox-inner {
    right: 0 !important;
    bottom: 96px !important;
}

body.sale-engines-fancybox-open .fancybox-thumbs__list,
body.autoparts-price-saleEnginePage.fancybox-active .fancybox-thumbs__list,
body.autoparts-price-saleEnginesListPage.fancybox-active .fancybox-thumbs__list,
.fancybox-container.sale-engine-gallery-fancybox .fancybox-thumbs__list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 72px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: visible;
}

body.sale-engines-fancybox-open .fancybox-thumbs__list a,
body.autoparts-price-saleEnginePage.fancybox-active .fancybox-thumbs__list a,
body.autoparts-price-saleEnginesListPage.fancybox-active .fancybox-thumbs__list a,
.fancybox-container.sale-engine-gallery-fancybox .fancybox-thumbs__list a {
    float: none !important;
    flex: 0 0 auto;
    width: 96px;
    height: 72px;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.12);
    background-size: contain;
}

body.sale-engines-fancybox-open .fancybox-thumbs__list a::before,
body.autoparts-price-saleEnginePage.fancybox-active .fancybox-thumbs__list a::before,
body.autoparts-price-saleEnginesListPage.fancybox-active .fancybox-thumbs__list a::before,
.fancybox-container.sale-engine-gallery-fancybox .fancybox-thumbs__list a::before {
    border: 2px solid #ffffff;
    border-radius: 4px;
}

.engine-make-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.engine-make-select select {
    width: 100%;
    padding: 10px 40px 10px 10px;
    font-size: 12px;
    border: 2px solid #048c04;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f9f9f9;
}

.engine-make-select i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #fff;
    background-color: #048c04;
    border-radius: 5px;
    padding: 12px;
    pointer-events: none;
}
.compatibility {
    margin: 20px 10px 10px 10px;
}

.cart-manage {
    display: flex;
    flex-direction: row;
    max-width: 70%;
    margin-top: 10px;
    align-items:center;
}
.gallery .main-pic-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f0f0f0;
}

.gallery .main-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.engine-cards-list {
    max-width: 496px;
}
.engine-card .gallery {
    width: 50%;
}
.engine-card .info {
    width: 50%;
    padding-left:10px;
}
.engine-card .gallery .main-pic {
    width:100%;
}

.engine-card {
    width:100%;
    border: 1px solid;
    border-color: black;
    padding: 5px;
    margin:10px 0 0 0;
}

.engine-card .top {
    display:flex;
    flex-direction:row;
    justify-content:space-between;
}

.engine-options .option {
    border-bottom: 1px solid;
    border-color: #787878;
    margin-bottom:10px;
    padding-bottom: 5px;
    font-size:10pt;
}

.engine-options .option .val {
    font-weight: 600;
    margin-left:5px;
}

.engine-card .price-info {
    margin-top: 25px;
}

.price-info:first-child {
    font-size:2pt ! important;
}

.price-info .price {
    font-size: 18pt;
    margin-left: 5px;
    font-weight: 600;
}

.gallery .thumbnails {
    display: flex;
    justify-content: start;
    gap: 10px;
    margin-top: 10px;
    flex-wrap:wrap;
}

.gallery .thumbnail {
    width: 29.7%;
    height: auto;
    margin:0 !important;
    padding:0 !important;
    border-radius: 5px !important;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.main-pic-container img {
    border-radius: 10px !important;
}

.gallery .thumbnail:hover {
    border-color: #000;
}

.gallery .main-pic-container {
    margin-bottom: 10px;
    position: relative;
}

.ws-controls-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.download-cart-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

@media(width < 700px) {
    .ws-controls-wrapper {
      justify-content: space-around;
    }
    .enginelist-header-wrapper {
        flex-direction: column;
        gap:10px;
    }
  }

  .enginelist-header-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top:25px;
}

.sale-engines-block {
    margin: 24px 0 28px;
    padding: 20px;
    border: 1px solid #e3e8e3;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbf8 0%, #ffffff 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.sale-engines-block *,
.sale-engines-block *::before,
.sale-engines-block *::after {
    box-sizing: border-box;
}

.sale-engines-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8ece8;
}

.sale-engines-block__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.sale-engines-block__title-link {
    color: inherit;
    text-decoration: none;
}

.sale-engines-block__title-link:hover,
.sale-engines-block__title-link:focus {
    color: #048c04;
    text-decoration: none;
}

.sale-engines-block__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border-radius: 50%;
    background: #048c04;
    color: #fff;
    font-size: 14px;
    vertical-align: middle;
}

.sale-engines-block__title-icon.fa-engine-in-stock:before {
    height: 20px;
    width: 20px;
    background-size: 20px 20px;
}

.sale-engines-block__title-icon.fa-engine-in-stock:after {
    font-size: 9px;
    left: 52%;
    top: 56%;
    color: #048c04;
}

.sale-engines-block .sale-engines-slider__controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sale-engines-block .sale-engines-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d5ddd5;
    border-radius: 50%;
    background: #fff;
    color: #048c04;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sale-engines-block .sale-engines-slider__btn:hover {
    background: #048c04;
    border-color: #048c04;
    color: #fff;
    box-shadow: 0 2px 8px rgba(4, 140, 4, 0.25);
}

.sale-engines-block .sale-engines-slider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sale-engines-block .sale-engines-slider-viewport::-webkit-scrollbar {
    display: none;
}

.sale-engines-block .sale-engines-slider {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    width: max-content;
    margin: 0;
}

.sale-engines-block .sale-engine-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    border: 1px solid #e4e9e4;
    border-radius: 10px;
    background: #fff;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sale-engines-block .sale-engine-card:hover {
    transform: translateY(-2px);
    border-color: #b8d9b8;
    box-shadow: 0 8px 20px rgba(4, 140, 4, 0.1);
}

.sale-engines-block .sale-engine-card__media {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 168px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #f7f7f7;
}

.sale-engines-block .sale-engine-card__image {
    display: block;
    width: 100%;
    height: 168px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.sale-engines-block .sale-engine-card__media--diagram {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-engines-block .sale-engine-card__media--diagram .sale-engine-card__image {
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    object-fit: contain;
    transform: scale(1.18);
    transform-origin: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #f7f7f7;
}

.sale-engines-block .sale-engine-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(4, 140, 4, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.sale-engines-block .sale-engine-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px;
}

.sale-engines-block .sale-engine-card__content {
    flex: 1 1 auto;
    min-width: 0;
}

.sale-engines-block .sale-engine-card__title {
    display: block;
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: #222;
    text-decoration: none;
    word-break: break-word;
}

.sale-engines-block .sale-engine-card__title:hover {
    color: #048c04;
    text-decoration: none;
}

.sale-engines-block .sale-engine-card__vehicle {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sale-engines-block .sale-engine-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.sale-engines-block .sale-engine-card__tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f3f6f3;
    border: 1px solid #e2e8e2;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
}

.sale-engines-block .sale-engine-card__vrm {
    margin-bottom: 10px;
    font-size: 12px;
    color: #777;
    line-height: 1.3;
}

.sale-engines-block .sale-engine-card__vrm-label {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #eef2ee;
    color: #666;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sale-engines-block .sale-engine-card__price {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #048c04;
    line-height: 1;
}

.sale-engines-block .sale-engine-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef2ee;
}

.sale-engines-block .sale-engine-card__actions .btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
}

.sale-engines-block .sale-engine-card__btn-details {
    background: #fff;
    border-color: #d0d8d0;
    color: #444;
}

.sale-engines-block .sale-engine-card__btn-details:hover {
    background: #f5f8f5;
    border-color: #048c04;
    color: #048c04;
}

.sale-engine-detail__gallery {
    height: auto;
    overflow: visible;
}

.sale-engine-detail__panel {
    height: 100%;
}

.sale-engines-list-filter {
    margin: 15px 0;
    padding: 10px;
    background: #f6f095;
    border-radius: 5px;
    position: relative;
    z-index: 10;
    font-family: var(--main-font, Ubuntu, sans-serif);
}

.sale-engines-list-filter--loading {
    opacity: 0.78;
    transition: opacity 0.16s ease;
}

.sale-engines-list-filter__row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 20px;
}

.sale-engines-list-filter__field {
    flex: 1 1 0;
    min-width: 0;
}

.sale-engines-list-filter__custom-select {
    position: relative;
    width: 100%;
}

.sale-engines-list-filter__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sale-engines-list-filter__toggle {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.sale-engines-list-filter__toggle-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sale-engines-list-filter__menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    max-height: 300px;
    margin: 0;
    padding: 5px 0;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
}

.sale-engines-list-filter__custom-select--open .sale-engines-list-filter__menu {
    display: block;
}

.sale-engines-list-filter__custom-select--open .sale-engines-list-filter__toggle {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.sale-engines-list-filter__menu-option {
    padding: 8px 12px 8px 24px;
    color: #333;
    cursor: pointer;
    white-space: normal;
    word-break: break-word;
    text-align: left;
}

.sale-engines-list-filter__menu-option:hover,
.sale-engines-list-filter__menu-option--selected {
    background: #f8f9fa;
    color: #333;
}

.sale-engines-list-filter__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

.sale-engines-list-filter__control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    width: 100%;
    height: 40px;
    padding: 4px 36px 4px 12px;
    font-family: inherit;
    font-size: 13px;
    line-height: 30px;
    color: #333;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath fill='%23333333' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sale-engines-list-filter__custom-select--open .sale-engines-list-filter__toggle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath fill='%23333333' d='M10.59 8 6 3.42 1.41 8 0 6.59l6-6 6 6z'/%3E%3C/svg%3E");
}

.sale-engines-list-filter__custom-select--open.sale-engines-list-filter__custom-select--active .sale-engines-list-filter__toggle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath fill='%23f8f8f8' d='M10.59 8 6 3.42 1.41 8 0 6.59l6-6 6 6z'/%3E%3C/svg%3E");
}

.sale-engines-list-filter__control:focus {
    outline: 0;
    border-color: #ced4da;
    box-shadow: none;
}

.sale-engines-list-filter__control--placeholder {
    color: #999;
}

.sale-engines-list-filter__control--active {
    background-color: #d70000;
    color: #f8f8f8;
    font-weight: 600;
    text-transform: uppercase;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath fill='%23f8f8f8' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
}

.sale-engines-list-filter__custom-select--disabled .sale-engines-list-filter__toggle {
    background-color: #d2d2d2;
    border-color: #ced4da;
    color: #666;
    cursor: not-allowed;
    font-weight: 400;
    text-transform: none;
}

.sale-engines-list-filter__custom-select--disabled .sale-engines-list-filter__toggle.sale-engines-list-filter__control--placeholder {
    color: #666;
}

.sale-engines-list-filter__control--active.sale-engines-list-filter__control--placeholder {
    color: #f8f8f8;
}

.sale-engines-list-filter__reset.btn-default {
    height: 40px;
    min-width: 44px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #333;
    box-shadow: none;
}

.sale-engines-list-filter__reset.btn-default:hover,
.sale-engines-list-filter__reset.btn-default:focus {
    background: #f8f8f8;
    border-color: #ced4da;
    color: #333;
    outline: 0;
    box-shadow: none;
}

.sale-engines-list-filter__reset .fa {
    display: block;
    line-height: 1;
    margin: 0;
    font-size: 16px;
}

@media (max-width: 480px) {
    .sale-engines-list-filter {
        padding: 30px 20px;
    }

    .sale-engines-list-filter__row {
        flex-direction: column;
        gap: 12px;
    }

    .sale-engines-list-filter__field,
    .sale-engines-list-filter__actions {
        width: 100%;
    }

    .sale-engines-list-filter__reset.btn-default {
        width: 100%;
    }
}

.sale-engines-results {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: visible;
    background: #fff;
    margin-bottom: 20px;
}

.sale-engines-result {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.sale-engines-result:last-child {
    border-bottom: 0;
}

.sale-engines-result:hover {
    background: #fafafa;
}

.sale-engines-result__image {
    flex: 0 0 168px;
    width: 168px;
    overflow: visible;
}

.sale-engines-result__image-link {
    position: relative;
    display: block;
    border-radius: 4px;
}

.sale-engines-result__image-thumb {
    display: block;
    width: 168px;
    height: 168px;
    object-fit: cover;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #f7f7f7;
    transition: border-color 0.2s ease;
}

.sale-engines-result__image-link:hover .sale-engines-result__image-thumb {
    border-color: #048c04;
}

.sale-engines-result__image-preview {
    position: absolute;
    right: calc(100% + 12px);
    left: auto;
    top: 50%;
    z-index: 20;
    display: block;
    width: 260px;
    padding: 6px;
    background: #fff;
    border: 1px solid #d5ddd5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.96);
    transform-origin: right center;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.sale-engines-result__image-preview::before {
    content: "";
    position: absolute;
    right: -7px;
    left: auto;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid #d5ddd5;
    border-top: 1px solid #d5ddd5;
    transform: translateY(-50%) rotate(45deg);
}

.sale-engines-result__image-preview img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.sale-engines-result__image-link:hover .sale-engines-result__image-preview {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.sale-engines-result__media-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    overflow: visible;
}

.sale-engines-result__media-thumb {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    background: #f7f7f7;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sale-engines-result__media-thumb--image {
    position: relative;
    overflow: hidden;
}

.sale-engines-result__media-thumb:hover,
.sale-engines-result__media-thumb:focus,
.sale-engines-result__media-thumb--active {
    border-color: #048c04;
    outline: none;
}

.sale-engines-result__media-thumb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-engines-result__media-thumb-image--diagram {
    object-fit: contain;
    background: #fff;
}

.sale-engines-result__media-thumb--video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    text-decoration: none;
}

.sale-engines-result__media-thumb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sale-engines-result__media-thumb-icon .fa {
    font-size: 18px;
    line-height: 1;
}

.sale-engines-result__gallery-source {
    display: none;
}

.sale-engines-result__main {
    flex: 1;
    display: flex;
    gap: 24px;
    min-width: 0;
}

.sale-engines-result__details {
    flex: 1;
    min-width: 0;
}

.sale-engines-result__title {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.sale-engines-result__title-link {
    color: #111;
    text-decoration: none;
}

.sale-engines-result__title-link:hover,
.sale-engines-result__title-link:focus {
    color: #048c04;
    text-decoration: underline;
}

.sale-engines-result__condition {
    margin-top: 4px;
    font-size: 13px;
    color: #767676;
}

.sale-engines-result__spec-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0 0;
    font-size: 13px;
}

.sale-engines-result__spec-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sale-engines-result__spec {
    flex: 1;
    display: flex;
    gap: 6px;
    min-width: 0;
}

.sale-engines-result__spec dt {
    flex: 0 0 118px;
    margin: 0;
    color: #767676;
    font-weight: 400;
    white-space: nowrap;
}

.sale-engines-result__spec dd {
    flex: 1;
    margin: 0;
    color: #111;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: break-word;
}

.sale-engines-result__spec-value--vin {
    word-break: break-all;
}

.sale-engines-result__buybox {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sale-engines-result__price-slot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sale-engines-result__price {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sale-engines-result__price .sale-engine-offer-price {
    justify-content: center;
}

.sale-engines-result__price strong {
    font-weight: 700;
}

.sale-engines-result__buy-label {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.sale-engines-result__price-slot .sale-engine-buy-label {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.sale-engine-buy-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.sale-engine-buy-label__best-offer {
    font-weight: 400;
    color: #767676;
}

.sale-engines-result__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.sale-engines-result__actions .btn {
    width: 100%;
    text-transform: none;
}

.sale-engines-result__listed {
    align-self: flex-end;
    margin: 0 0 10px;
}

.sale-engines-result__listed .label {
    display: inline-block;
    margin: 0;
    font-weight: 400;
}

.sale-engines-result__mobile-meta {
    display: none;
}

.sale-engines-result__mobile-price-slot {
    display: none;
}

.sale-engines-result__mobile-specs {
    display: none;
}

@media (min-width: 768px) and (max-width: 991px) {
    .sale-engines-list-filter__row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .sale-engines-list-filter__control--make,
    .sale-engines-list-filter__control--search {
        grid-column: 1 / -1;
        max-width: none;
    }

    .sale-engines-list-filter__reset {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .sale-engines-result {
        gap: 16px;
        padding: 14px 16px;
    }

    .sale-engines-result__image {
        flex: 0 0 150px;
        width: 150px;
        align-self: flex-start;
    }

    .sale-engines-result__image-thumb {
        width: 150px;
        height: 150px;
    }

    .sale-engines-result__image-preview {
        display: none;
    }

    .sale-engines-result__main {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .sale-engines-result__details {
        flex: 1;
        min-width: 0;
    }

    .sale-engines-result__title {
        font-size: 15px;
    }

    .sale-engines-result__spec-row {
        flex-direction: column;
        gap: 3px;
    }

    .sale-engines-result__spec dt {
        flex: 0 0 132px;
    }

    .sale-engines-result__spec dd {
        word-break: normal;
        overflow-wrap: normal;
    }

    .sale-engines-result__spec-grid {
        margin-top: 8px;
        gap: 3px;
    }

    .sale-engines-result__mobile-specs {
        display: none;
    }

    .sale-engines-result__buybox {
        flex: 0 0 176px;
        width: 176px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        border-top: 0;
        padding-top: 0;
        margin-top: 0;
    }

    .sale-engines-result__price-slot {
        width: 100%;
        max-width: none;
        align-items: center;
        text-align: center;
        gap: 4px;
        margin-top: 0;
        padding-top: 0;
    }

    .sale-engines-result__price {
        font-size: 26px;
        text-align: center;
        width: 100%;
        align-items: center;
    }

    .sale-engines-result__price .sale-engine-offer-price__new {
        font-size: 26px;
    }

    .sale-engines-result__buy-label,
    .sale-engines-result__price-slot .sale-engine-buy-label {
        justify-content: center;
        text-align: center;
        font-size: 13px;
    }

    .sale-engines-result__actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 12px;
    }

    .sale-engines-result__actions .btn {
        width: 100%;
        padding: 7px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .sale-engines-list-filter__row {
        flex-wrap: wrap;
    }

    .sale-engines-list-filter__control {
        flex: 1 1 calc(33.333% - 7px);
        min-width: 140px;
    }

    .sale-engines-list-filter__control--make {
        flex: 1 1 100%;
    }

    .sale-engines-list-filter__control--search {
        flex: 1 1 calc(50% - 5px);
        max-width: none;
    }

    .sale-engines-result__image {
        flex: 0 0 150px;
        width: 150px;
    }

    .sale-engines-result__image-thumb {
        width: 150px;
        height: 150px;
    }

    .sale-engines-result__media-thumb {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .sale-engines-result__media-thumb-icon .fa {
        font-size: 16px;
    }

    .sale-engines-result__buybox {
        flex: 0 0 170px;
    }

    .sale-engines-result__spec-row {
        flex-direction: column;
        gap: 3px;
    }

    .sale-engines-result__spec dt {
        flex: 0 0 132px;
    }

    .sale-engines-result__spec dd {
        word-break: normal;
        overflow-wrap: normal;
    }

    .sale-engines-result__price {
        font-size: 24px;
    }

    .sale-engines-result__price .sale-engine-offer-price__new {
        font-size: 24px;
    }
}

.sale-engine-detail__main {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.sale-engine-detail__fancybox-sources {
    display: none;
}

.sale-engine-detail__main-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    overflow: visible;
    cursor: pointer;
    background: #f7f7f7;
}

.sale-engine-detail__main-preview {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 20;
    display: block;
    width: 320px;
    padding: 6px;
    background: #fff;
    border: 1px solid #d5ddd5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.96);
    transform-origin: left center;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.sale-engine-detail__main-preview::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #d5ddd5;
    border-bottom: 1px solid #d5ddd5;
    transform: translateY(-50%) rotate(45deg);
}

.sale-engine-detail__main-preview img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
}

.sale-engine-detail__main-photo:hover .sale-engine-detail__main-preview {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.sale-engine-detail__main-video-preview {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    pointer-events: none;
}

.sale-engine-detail__main-video-preview[hidden] {
    display: none !important;
}

.sale-engine-detail__main-video-preview-icon .fa {
    font-size: 4em;
    line-height: 1;
}

.sale-engine-detail__main-video-preview-label {
    font-size: 18px;
    font-weight: 700;
}

.sale-engine-detail__main-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sale-engine-detail__main-photo--diagram .sale-engine-detail__main-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

.sale-engine-detail__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.sale-engine-detail__thumb-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f7f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 90px;
}

.sale-engine-detail__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.2s ease;
    display: block;
}

.sale-engine-detail__thumb--diagram {
    object-fit: contain;
}

.sale-engine-detail__thumb-wrap .sale-engine-detail__thumb {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.sale-engine-detail__thumb:hover,
.sale-engine-detail__thumb--active,
.sale-engine-detail__thumb-wrap:hover,
.sale-engine-detail__thumb-wrap--active {
    border-color: #048c04;
}

.sale-engine-detail__thumb-wrap--video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.sale-engine-detail__video-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sale-engine-detail__video-icon .fa {
    font-size: 2.5em;
    line-height: 1;
}

.sale-engine-detail__thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.sale-engine-detail__thumb-play i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding-left: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sale-engine-detail__title {
    margin-top: 0;
    margin-bottom: 5px;
}

.sale-engine-detail__description {
    margin-bottom: 20px;
    color: #444;
}

.sale-engine-detail__purchase {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sale-engine-detail__purchase .sale-engine-buy-label {
    justify-content: center;
}

.sale-engine-detail__purchase .sale-engine-detail__offer-price {
    justify-content: center;
}

.sale-engine-detail__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.sale-engine-detail__actions .btn {
    text-transform: none;
}

.sale-engine-detail__actions .btn-lg {
    min-width: 140px;
}

.sale-engine-detail__offer-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.sale-engine-detail__old-price {
    color: #777;
    font-size: 22px;
    text-decoration: line-through;
}

.sale-engine-detail__new-price {
    color: #048c04;
}

.sale-engine-detail__offer-status {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.sale-engine-detail__offer-status--accepted {
    color: #048c04;
}

.sale-engine-detail__offer-status--countered {
    color: #a94442;
}

.sale-engine-detail__offer-status--rejected {
    color: #a94442;
}

.sale-engine-detail__offer-status--pending {
    color: #337ab7;
}

.sale-engine-offer-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.sale-engine-offer-price__old {
    color: #777;
    text-decoration: line-through;
}

.sale-engine-offer-price__new {
    color: #048c04;
}

.sale-engine-offer-price__status {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.sale-engine-offer-price__status--accepted {
    color: #048c04;
}

.sale-engine-offer-price__status--countered {
    color: #a94442;
}

.sale-engine-offer-price__status--rejected {
    color: #a94442;
}

.sale-engine-offer-price__status--pending {
    color: #337ab7;
}

.sale-engines-result__price .sale-engine-offer-price__old {
    font-size: 14px;
}

.sale-engines-result__price .sale-engine-offer-price__new {
    font-size: 28px;
}

.sale-engines-block .sale-engine-card__price .sale-engine-offer-price__old {
    font-size: 16px;
}

.sale-engines-block .sale-engine-card__price .sale-engine-offer-price__new {
    font-size: 22px;
}

.sale-engine-make-offer-btn {
    border-color: #5cb85c;
    color: #333;
    background: #fff;
}

.sale-engine-make-offer-btn:hover,
.sale-engine-make-offer-btn:focus {
    border-color: #449d44;
    color: #333;
    background: #f5fff5;
}

.sale-engine-offer-modal-dialog {
    width: 336px;
    max-width: calc(100vw - 32px);
    margin: 30px auto;
}

#saleEngineOfferModal .modal-dialog.sale-engine-offer-modal-dialog {
    width: 336px;
    max-width: calc(100vw - 32px);
}

#saleEngineOfferModal .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

#saleEngineOfferModal .modal-header,
.sale-engine-offer-modal__header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 0;
    padding: 20px 48px 8px;
    text-align: center;
    position: relative;
}

#saleEngineOfferModal .modal-header .modal-title,
.sale-engine-offer-modal__title {
    flex: 1 1 auto;
    width: 100%;
    float: none;
    display: block;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    text-transform: none;
    margin: 0;
    line-height: 1.2;
}

#saleEngineOfferModal .modal-header .close,
.sale-engine-offer-modal__close {
    float: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    opacity: 1;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    background: #fff;
    color: #333;
    margin: 0;
    z-index: 1;
}

#saleEngineOfferModal .modal-body {
    padding: 8px 24px 28px;
    border: 0;
}

.sale-engine-offer-modal {
    text-align: center;
}

.sale-engine-offer-modal__buy-now {
    font-size: 16px;
    margin-bottom: 6px;
}

.sale-engine-offer-modal__offers-left {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.sale-engine-offer-modal form,
#saleEngineOfferModal #saleEngineOfferForm {
    width: 100%;
    margin: 0;
}

#saleEngineOfferModal .sale-engine-offer-modal__input-wrap {
    width: 100%;
    text-align: center;
}

.sale-engine-offer-modal__label {
    color: #d9534f;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

#saleEngineOfferModal .sale-engine-offer-modal__price {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

#saleEngineOfferModal .sale-engine-offer-modal__price-row {
    display: inline-flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    min-height: 58px;
}

.sale-engine-offer-modal__currency {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
}

#saleEngineOfferModal .sale-engine-offer-modal__input {
    width: 36px;
    min-width: 36px;
    max-width: 220px;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    color: #333;
    padding: 0;
    margin: 0;
    box-sizing: content-box;
}

.sale-engine-offer-modal__input:focus {
    outline: none;
}

.sale-engine-offer-modal__input::placeholder {
    color: #333;
    opacity: 1;
}

.sale-engine-offer-modal__underline {
    height: 2px;
    background: #d9534f;
    margin: 8px 0 10px;
    width: 100%;
    align-self: stretch;
}

.sale-engine-offer-modal__hint {
    color: #d9534f;
    font-size: 14px;
    margin-bottom: 28px;
}

.sale-engine-offer-modal__continue {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    color: #fff;
    background: #cfcfcf;
}

.sale-engine-offer-modal__continue:not(:disabled) {
    background: #048c04;
    cursor: pointer;
    pointer-events: auto;
}

.sale-engine-offer-modal__continue:disabled {
    cursor: default;
    pointer-events: none;
}

.sale-engine-offer-modal__help {
    display: block;
    width: 100%;
    margin-top: 18px;
    border: 0;
    background: transparent;
    color: #333;
    text-decoration: underline;
    font-size: 16px;
    text-transform: none;
    padding: 0;
}

.sale-engine-offer-modal__help-content {
    display: none;
    text-align: left;
}

.sale-engine-offer-modal__help-back {
    display: block;
    width: 100%;
    margin-top: 24px;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    color: #333;
    background: #f0f0f0;
}

.sale-engine-offer-help-modal-dialog {
    max-width: 480px;
}

.sale-engine-offer-help-modal p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.5;
}

#saleEngineBuyModal .sale-engine-buy-modal__price {
    color: #048c04;
    font-weight: 700;
}

.sale-engine-counter-offer-modal-dialog {
    width: calc(100% - 32px);
    max-width: 720px;
}

.sale-engine-counter-offer-list-modal-dialog {
    width: calc(100% - 32px);
    max-width: 960px;
}

#saleEngineCounterOfferModal .modal-dialog.sale-engine-counter-offer-modal-dialog,
#saleEngineCounterOfferModal .modal-dialog.sale-engine-counter-offer-list-modal-dialog {
    margin: 16px auto;
}

#saleEngineCounterOfferModal .sale-engine-counter-offer-modal__content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

#saleEngineCounterOfferModal .modal-body,
#saleEngineCounterOfferModal .sale-engine-counter-offer-modal__body {
    max-height: calc(100vh - 140px);
    padding: 24px 32px 28px;
    overflow-y: auto;
    background: #fff;
}

#saleEngineCounterOfferModal .modal-header,
#saleEngineCounterOfferModal .sale-engine-counter-offer-modal__header {
    position: relative;
    padding: 16px 52px 14px;
    border-bottom: 1px solid #ececec;
    background: #fff;
    text-align: center;
}

#saleEngineCounterOfferModal .sale-engine-counter-offer-modal__header .close {
    position: absolute;
    top: 12px;
    right: 16px;
    margin: 0;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: #999;
    opacity: 1;
}

#saleEngineCounterOfferModal .modal-title,
#saleEngineCounterOfferModal .sale-engine-counter-offer-modal__title {
    margin: 0;
    padding: 0;
    width: 100%;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #111;
    text-align: center;
}

#saleEngineCounterOfferModal .modal-footer,
#saleEngineCounterOfferModal .sale-engine-counter-offer-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-top: 1px solid #ececec;
    background: #f7f7f7;
}

.sale-engine-counter-offer-modal__btn {
    min-width: 118px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    border-radius: 4px;
}

.sale-engine-counter-offer-modal__btn--buy {
    min-width: 140px;
}

.sale-engine-counter-offer-modal__btn--offer {
    border-color: #048c04;
    color: #048c04;
    background: #fff;
}

.sale-engine-counter-offer-modal__btn--offer:hover,
.sale-engine-counter-offer-modal__btn--offer:focus {
    border-color: #037203;
    color: #037203;
    background: #f3fbf3;
}

.sale-engine-counter-offer-list-modal__table-wrap {
    margin: 0;
}

.sale-engine-counter-offer-list-modal__table {
    margin: 0;
    font-size: 13px;
}

.sale-engine-counter-offer-list-modal__table > thead > tr > th {
    border-bottom-width: 1px;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
    vertical-align: middle;
}

.sale-engine-counter-offer-list-modal__table > tbody > tr > td {
    vertical-align: middle;
}

.sale-engine-counter-offer-list-modal__engine {
    font-weight: 700;
    white-space: nowrap;
}

.sale-engine-counter-offer-list-modal__vehicle {
    min-width: 140px;
}

.sale-engine-counter-offer-list-modal__price {
    white-space: nowrap;
}

.sale-engine-counter-offer-list-modal__price--counter {
    color: #048c04;
}

.sale-engine-counter-offer-list-modal__actions {
    min-width: 220px;
}

.sale-engine-counter-offer-list-modal__actions .btn {
    margin: 2px 4px 2px 0;
}

.sale-engine-counter-offer-list-modal__actions .sale-engine-counter-offer-modal__btn--buy {
    min-width: 0;
}

.sale-engine-counter-offer-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sale-engine-counter-offer-modal__notice {
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: #eff6ff;
    font-size: 13px;
    line-height: 1.35;
    color: #1e3a5f;
}

.sale-engine-counter-offer-modal__product {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fafafa;
}

.sale-engine-counter-offer-modal__image-link {
    flex: 0 0 96px;
    display: block;
}

.sale-engine-counter-offer-modal__image {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fff;
}

.sale-engine-counter-offer-modal__product-text {
    flex: 1;
    min-width: 0;
}

.sale-engine-counter-offer-modal__code {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #111;
}

.sale-engine-counter-offer-modal__vehicle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.sale-engine-counter-offer-modal__vehicle:hover,
.sale-engine-counter-offer-modal__vehicle:focus {
    color: #048c04;
    text-decoration: none;
}

.sale-engine-counter-offer-modal__panel {
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.sale-engine-counter-offer-modal__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #ececec;
    background: #fafafa;
}

.sale-engine-counter-offer-modal__panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.sale-engine-counter-offer-modal__listed {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eee;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #555;
    white-space: nowrap;
}

.sale-engine-counter-offer-modal__spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sale-engine-counter-offer-modal__spec-line {
    display: grid;
    grid-template-columns: minmax(104px, 42%) 1fr;
    gap: 10px;
    align-items: start;
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    line-height: 1.35;
}

.sale-engine-counter-offer-modal__spec-line:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.sale-engine-counter-offer-modal__spec-line:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
}

.sale-engine-counter-offer-modal__spec-label {
    color: #767676;
    font-weight: 400;
}

.sale-engine-counter-offer-modal__spec-value {
    color: #111;
    font-weight: 600;
    word-break: break-word;
}

.sale-engine-counter-offer-modal__pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.sale-engine-counter-offer-modal__price-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
}

.sale-engine-counter-offer-modal__price-card--counter {
    border-color: #b8dfb8;
    background: #f3fbf3;
}

.sale-engine-counter-offer-modal__price-label {
    font-size: 13px;
    line-height: 1.3;
    color: #767676;
}

.sale-engine-counter-offer-modal__price-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    color: #666;
}

.sale-engine-counter-offer-modal__price-value--counter {
    font-size: 28px;
    color: #048c04;
}

@media (max-width: 767px) {
    #saleEngineCounterOfferModal .modal-body,
    #saleEngineCounterOfferModal .sale-engine-counter-offer-modal__body,
    #saleEngineCounterOfferModal .modal-header,
    #saleEngineCounterOfferModal .sale-engine-counter-offer-modal__header,
    #saleEngineCounterOfferModal .modal-footer,
    #saleEngineCounterOfferModal .sale-engine-counter-offer-modal__footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    #saleEngineCounterOfferModal .modal-header,
    #saleEngineCounterOfferModal .sale-engine-counter-offer-modal__header {
        padding-left: 48px;
        padding-right: 48px;
    }

    .sale-engine-counter-offer-modal__product {
        flex-direction: column;
        text-align: center;
    }

    .sale-engine-counter-offer-modal__spec-line {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .sale-engine-counter-offer-modal__spec-list {
        grid-template-columns: 1fr;
    }

    .sale-engine-counter-offer-modal__spec-line:nth-child(odd) {
        border-right: 0;
    }

    .sale-engine-counter-offer-modal__spec-line:nth-last-child(-n + 2) {
        border-bottom: 1px solid #f0f0f0;
    }

    .sale-engine-counter-offer-modal__spec-line:last-child {
        border-bottom: 0;
    }

    .sale-engine-counter-offer-modal__pricing {
        grid-template-columns: 1fr;
    }

    .sale-engine-counter-offer-list-modal__actions {
        min-width: 0;
    }

    .sale-engine-counter-offer-list-modal__actions .btn {
        display: block;
        width: 100%;
        margin: 0 0 6px;
    }

    .sale-engine-counter-offer-list-modal__actions .btn:last-child {
        margin-bottom: 0;
    }

    #saleEngineCounterOfferModal .sale-engine-counter-offer-modal__footer {
        flex-direction: column-reverse;
    }

    #saleEngineCounterOfferModal .sale-engine-counter-offer-modal__footer .sale-engine-counter-offer-modal__btn {
        width: 100%;
        min-width: 0;
        margin: 0;
    }
}

.sale-engine-offer-help-modal p:last-child {
    margin-bottom: 0;
}

.engine-compatibility-summary {
    font-size: 14px;
}

.engine-compatibility-table__grid th,
.engine-compatibility-table__grid td {
    vertical-align: top;
    font-size: 13px;
}

@media (max-width: 767px) {
    .sale-engines-list-page h1 {
        font-size: 22px;
        margin-top: 0;
        margin-bottom: 12px;
    }

    .sale-engines-list-page #content {
        background: #f7f7f7;
        padding-bottom: 16px;
    }

    .sale-engines-list-filter {
        padding: 30px 20px;
        margin-bottom: 10px;
        border-radius: 0;
    }

    .sale-engines-list-filter__row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sale-engines-list-filter__field,
    .sale-engines-list-filter__actions {
        width: 100%;
    }

    .sale-engines-list-filter__control,
    .sale-engines-list-filter__control--search {
        width: 100%;
        max-width: none;
    }

    .sale-engines-list-filter__reset.btn-default {
        width: 100%;
    }

    .sale-engines-list-filter__button {
        width: auto;
        min-width: 44px;
    }

    .sale-engines-list-filter__reset {
        justify-self: stretch;
    }

    .sale-engines-results {
        border: 0;
        border-radius: 0;
        background: transparent;
        margin: 0 -15px 16px;
    }

    .sale-engines-result {
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
        grid-template-areas: "image main";
        position: relative;
        align-items: start;
        gap: 0 12px;
        padding: 12px 15px;
        margin-bottom: 8px;
        border-bottom: 0;
        background: #fff;
    }

    .sale-engines-result:last-child {
        margin-bottom: 0;
    }

    .sale-engines-result__image {
        grid-area: image;
        flex: none;
        width: 128px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .sale-engines-result__image-thumb {
        width: 128px;
        height: 128px;
        border-color: #e5e5e5;
    }

    .sale-engines-result__media-thumbs {
        gap: 4px;
        margin-top: 6px;
    }

    .sale-engines-result__media-thumb {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .sale-engines-result__media-thumb-icon .fa {
        font-size: 14px;
    }

    .sale-engines-result__mobile-price-slot {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        width: 100%;
        max-width: 128px;
        margin-top: 25px;
        text-align: center;
    }

    .sale-engines-result__image-preview {
        display: none;
    }

    .sale-engines-result__main {
        grid-area: main;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .sale-engines-result__details {
        min-width: 0;
    }

    .sale-engines-result__buybox {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        margin-top: 10px;
    }

    .sale-engines-result__price-slot {
        display: none;
    }

    .sale-engines-result__title {
        font-size: 14px;
        line-height: 1.35;
    }

    .sale-engines-result__title-link {
        color: #111;
    }

    .sale-engines-result__title-link:hover,
    .sale-engines-result__title-link:focus {
        color: #048c04;
    }

    .sale-engines-result__condition {
        margin-top: 4px;
        font-size: 12px;
    }

    .sale-engines-result__mobile-specs {
        display: block;
        margin: 8px 0 0;
    }

    .sale-engines-result__mobile-spec {
        display: flex;
        gap: 6px;
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }

    .sale-engines-result__mobile-spec + .sale-engines-result__mobile-spec {
        margin-top: 3px;
    }

    .sale-engines-result__mobile-spec dt {
        flex: 0 0 auto;
        margin: 0;
        color: #767676;
        font-weight: 400;
        white-space: nowrap;
    }

    .sale-engines-result__mobile-spec dd {
        margin: 0;
        color: #111;
        font-weight: 600;
        min-width: 0;
        word-break: break-word;
    }

    .sale-engines-result__mobile-spec--vin {
        display: flex;
        gap: 2px;
        font-size: 12px;
        line-height: 1.4;
    }

    .sale-engines-result__mobile-spec--vin dt,
    .sale-engines-result__mobile-spec--vin dd {
        display: block;
        white-space: nowrap;
    }

    .sale-engines-result__mobile-spec-value--vin {
        word-break: normal;
        overflow-wrap: normal;
    }

    .sale-engines-result__spec-grid {
        display: none;
    }

    .sale-engines-result__price {
        font-size: 30px;
        line-height: 1.1;
        width: 100%;
        text-align: center;
    }

    .sale-engines-result__price .sale-engine-offer-price__old {
        font-size: 16px;
    }

    .sale-engines-result__price .sale-engine-offer-price__new {
        font-size: 30px;
    }

    .sale-engines-result__price .sale-engine-offer-price__status {
        font-size: 12px;
        margin-top: 2px;
    }

    .sale-engines-result__buy-label,
    .sale-engines-result__mobile-price-slot .sale-engine-buy-label,
    .sale-engines-result__price-slot .sale-engine-buy-label {
        margin-top: 0;
        font-size: 14px;
        line-height: 1.3;
        justify-content: center;
        text-align: center;
    }

    .sale-engines-result__actions {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
        min-width: 0;
        margin-top: 0;
        align-self: stretch;
    }

    .sale-engines-result__actions .btn {
        width: 100%;
        padding: 6px 8px;
        font-size: 11px;
        line-height: 1.25;
        white-space: nowrap;
    }

    .sale-engines-result__listed {
        position: absolute;
        top: 12px;
        right: 15px;
        margin: 0;
    }

    .sale-engines-result--has-listed .sale-engines-result__details {
        padding-right: 68px;
    }

    .sale-engines-list-page .pagination-wrapper,
    .sale-engines-list-page .row .text-left,
    .sale-engines-list-page .row .text-right {
        text-align: center;
    }

    .sale-engines-block {
        padding: 16px 14px;
        margin: 16px 0 20px;
    }

    .sale-engines-block__title {
        font-size: 17px;
    }

    .sale-engines-block__title-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .sale-engines-block__title-icon.fa-engine-in-stock:before {
        height: 18px;
        width: 18px;
        background-size: 18px 18px;
    }

    .sale-engines-block__title-icon.fa-engine-in-stock:after {
        font-size: 8px;
        left: 52%;
        top: 56%;
    }

    .sale-engines-block .sale-engine-card {
        flex-basis: 250px;
        width: 250px;
        min-width: 250px;
        max-width: 250px;
    }

    .sale-engines-block .sale-engine-card__media {
        height: 150px;
    }

    .sale-engines-block .sale-engine-card__image {
        height: 150px;
    }

    .sale-engines-block .sale-engine-card__media--diagram .sale-engine-card__image {
        width: 100%;
        height: 100%;
        padding: 0;
        transform: scale(1.14);
    }

    .sale-engines-block .sale-engine-card__price {
        font-size: 20px;
    }

    .sale-engine-detail__main-photo {
        min-height: 260px;
    }

    .sale-engine-detail__main-preview {
        display: none;
    }

    .sale-engine-detail__main-image {
        height: 260px;
    }

    .sale-engine-detail__main-photo--diagram .sale-engine-detail__main-image {
        max-height: 260px;
    }
}

@media (max-width: 420px) {
    .sale-engines-result {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .sale-engines-result__image {
        width: 112px;
    }

    .sale-engines-result__image-thumb {
        width: 112px;
        height: 112px;
    }

    .sale-engines-result__media-thumb {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }

    .sale-engines-result__media-thumb-icon .fa {
        font-size: 12px;
    }

    .sale-engines-result__price-slot {
        max-width: 112px;
    }

    .sale-engines-result__mobile-price-slot {
        max-width: 112px;
    }

    .sale-engines-result__title {
        font-size: 13px;
    }

    .sale-engines-result__price {
        font-size: 28px;
    }

    .sale-engines-result__price .sale-engine-offer-price__new {
        font-size: 28px;
    }

    .sale-engines-result__buy-label,
    .sale-engines-result__price-slot .sale-engine-buy-label {
        font-size: 13px;
    }
}