:root {
  --compare-sticky-top: 0px;
}

.compare-header-top {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.compare-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-diff-toggle,
.compare-clear,
.compare-share {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d7dce5;
  background: #fff;
  color: #111;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.compare-diff-toggle:hover,
.compare-clear:hover,
.compare-share:hover {
  border-color: #111;
}
.compare-diff-toggle.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.compare-diff-toggle[hidden],
.compare-clear[hidden],
.compare-share[hidden] {
  display: none !important;
}

.compare-diff-toggle:focus-visible,
.compare-clear:focus-visible,
.compare-share:focus-visible,
.compare-remove:focus-visible,
.compare-nav:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.compare-toast__action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.compare-count {
  margin-top: 8px;
  color: #5a6470;
  font-size: 14px;
}

.compare-empty {
  text-align: center;
  padding: 48px 16px;
  flex-direction: column;
  align-items: center;
  display: flex;
}
.compare-empty__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #16202b;
}
.compare-empty__hint {
  margin: 0;
  font-size: 15px;
  color: #5a6470;
}
.compare-empty__hint a {
  color: var(--te-red, #e00032);
  text-decoration: underline;
}

.compare-viewport {
  position: relative;
  min-height: 420px;
}
.compare-wrap {
  background: #fff;
}

.compare-head,
.compare-body {
  --cmp-col-w: 300px;
}

.compare-car-head,
.compare-cell-label,
.compare-cell {
  box-sizing: border-box;
}

.main-content.inner-page {
  overflow: clip;
}

.compare-head-wrap {
  position: sticky;
  top: var(--compare-sticky-top, 0px);
  z-index: 20;
  background: #fff;
  --compare-nav-top: 70px;
}

.compare-head {
  overflow: hidden;
  border-bottom: 1px solid #e6e9ef;
}

.compare-head-track {
  display: flex;
  width: max-content;
}

.compare-car-head {
  flex: 0 0 var(--cmp-col-w);
  position: relative;
  padding: 8px;
  scroll-snap-align: start;
}

.compare-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--te-pink, rgba(224, 0, 50, 0.12));
}

.compare-car-photo {
  display: block;
  position: relative;
  flex: 0 0 auto;
  height: 158px;
  background: #eef1f5;
}

.compare-car-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-head-wrap:not(.is-compact) .compare-car-photo {
  height: 166px;
  padding: 8px 8px 0;
  background: transparent;
}

.compare-head-wrap:not(.is-compact) .compare-car-photo img {
  border-radius: 1rem;
}

.compare-car-noimg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  background: #eef1f5
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab0b8' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 17l-5-5-4 4-2-2-5 5'/%3E%3C/svg%3E")
    center / 42px no-repeat;
}

.compare-car-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-width: 63px;
  padding: 3px 8px;
  border-radius: 5px 5px 5px 0;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.285px;
  text-transform: uppercase;
  background: #6b7280;
}

.compare-car-badge.stock {
  background: #039823;
}
.compare-car-badge.wait {
  background: var(--te-green, #7ed957);
  color: #000;
}
.compare-car-badge.sold,
.compare-car-badge.reserved,
.compare-car-badge.leasing,
.compare-car-badge.blocked {
  background: var(--te-red, #e00032);
}

.compare-car-badge.is-ok {
  background: #039823;
}

.compare-car-badge--dealer {
  top: 32px;
  background: #fff8e6;
  color: #5f4100;
  cursor: help;
}

.compare-car-acc {
  position: absolute;
  bottom: 0;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 0 5px 5px 5px;
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
  background: var(--te-red, #e00032);
}

.compare-car-acc img {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
.compare-car-acc.is-none {
  background: #e88a2a;
}

.compare-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px 12px;
}

.compare-car-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  text-align: center;
  padding: 0 26px;
}

.compare-car-title b {
  color: var(--te-red, #e00032);
  font-weight: inherit;
}

.compare-car-subtitle {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--te-text-dark, #414141);
  text-align: center;
}

.compare-car-plate {
  max-width: max-content;
  margin: 0 auto;
  padding: 2px 14px;
  border: 1px solid #000;
  border-radius: 4px;
  font-size: 0.6rem;
  line-height: 1.4;
  white-space: nowrap;
}

.compare-specs {
  list-style: none;
  margin: 3px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.compare-spec {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 18px;
  color: #3d4149;
}

.compare-spec-ico {
  flex: 0 0 15px;
  margin-top: -1px;
}

.compare-spec-ico img {
  display: block;
  width: 15px;
  height: auto;
}

.compare-spec-txt {
  min-width: 0;
}
.compare-spec-txt sup {
  font-size: 0.7em;
}

.compare-car-views {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-right: 2px;
  color: #909090;
  font-size: 12px;
  line-height: 1;
}

.compare-car-views:empty {
  margin-top: auto;
  padding: 0;
}
.compare-car-views img {
  width: 14px;
  height: auto;
}

.compare-card-body {
  position: relative;
}

.compare-card-body > .auto-add-favorites {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
}

.compare-price-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgb(241 216 208 / 50%);
  color: var(--te-text, #1a1a1a);
}

.compare-price-text {
  min-width: 0;
}

.compare-price-city {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--te-text, #1a1a1a);
}

.compare-car-price {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--te-text, #1a1a1a);
}

.compare-price-action {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  outline: 0;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow:
    1px 0 1px var(--te-red),
    -1px 0 2px var(--te-orange);
  background: url("/wp-content/themes/trust-encar/images/card-action.svg") center / 22px 22px no-repeat;
}

.compare-price-action {
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .compare-price-action:hover {
    background-color: var(--te-orange, #f7893f);
  }
}

.compare-price-action:focus-visible {
  background-color: var(--te-orange, #f7893f);
}

.compare-head-wrap.is-compact .compare-car-plate,
.compare-head-wrap.is-compact .compare-car-views,
.compare-head-wrap.is-compact .compare-car-acc,
.compare-head-wrap.is-compact .compare-card-body > .auto-add-favorites,
.compare-head-wrap.is-compact .compare-car-badge--dealer,
.compare-head-wrap.is-compact .compare-price-action {
  display: none;
}

.compare-head-wrap.is-compact .compare-car-title {
  padding: 0;
}

.compare-head-wrap.is-compact .compare-price-block {
  display: block;
  border-radius: 0;
  overflow: visible;
}

@media (max-width: 767.98px) {
  .compare-car-title {
    font-size: 16px;
  }
  .compare-spec {
    font-size: 12px;
    line-height: 19px;
  }
  .compare-car-price {
    font-size: 16px;
  }
}

.compare-car-head.is-draggable {
  cursor: grab;
  touch-action: pan-y;
}
.compare-car-head.is-dragging {
  opacity: 0.4;
}

.compare-car-head.drop-before {
  box-shadow: inset 3px 0 0 #111;
}
.compare-car-head.drop-after {
  box-shadow: inset -3px 0 0 #111;
}

.compare-car-head .compare-car-photo,
.compare-car-head .compare-car-photo img {
  -webkit-user-drag: none;
  user-select: none;
}

.compare-drag-ghost {
  position: fixed;
  z-index: 1200;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  opacity: 0.95;
  transform: rotate(1.5deg);
}

.compare-drag-ghost > .compare-head-wrap {
  position: static;
  z-index: auto;
  background: none;
}
body.compare-dragging,
body.compare-dragging * {
  cursor: grabbing !important;
}
body.compare-dragging {
  -webkit-user-select: none;
  user-select: none;
}

body.compare-dragging .compare-body {
  scroll-snap-type: none !important;
}

.compare-head-wrap.is-compact {
  --compare-nav-top: 32px;
}

.compare-head-wrap.is-compact .compare-car-head {
  padding: 6px 8px;
}
.compare-head-wrap.is-compact .compare-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 10px;
  padding: 6px 8px;
  border-radius: 10px;
  box-shadow: none;
}
.compare-head-wrap.is-compact .compare-car-photo {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 66px;
  height: 44px;
  border-radius: 7px;
  overflow: hidden;
}
.compare-head-wrap.is-compact .compare-car-badge {
  display: none;
}

.compare-head-wrap.is-compact .compare-card-body {
  display: contents;
}
.compare-head-wrap.is-compact .compare-car-subtitle,
.compare-head-wrap.is-compact .compare-specs {
  display: none;
}
.compare-head-wrap.is-compact .compare-car-title {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 12px;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compare-head-wrap.is-compact .compare-price-block {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
  padding: 0;
  background: none;
}
.compare-head-wrap.is-compact .compare-price-city {
  font-size: 10px;
  line-height: 1.2;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-head-wrap.is-compact .compare-car-price {
  font-size: 14px;
}
.compare-head-wrap.is-compact .compare-remove {
  top: 3px;
  right: 5px;
  width: 20px;
  height: 20px;
  font-size: 13px;
}

.compare-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.compare-remove:hover {
  background: var(--te-red, #e00032);
}

.compare-remove::before {
  content: "";
  position: absolute;
  inset: -9px;
}

.compare-nav {
  position: absolute;
  top: var(--compare-nav-top, 70px);
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.compare-nav--prev {
  left: 6px;
}
.compare-nav--next {
  right: 6px;
}
@media (hover: hover) {
  .compare-nav:hover {
    transform: translateY(-50%) scale(1.06);
  }
}
.compare-nav[hidden] {
  display: none;
}
.compare-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.compare-body {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: 0;
  scrollbar-width: none;
}
.compare-body::-webkit-scrollbar {
  display: none;
}

.compare-body.is-wheeling {
  scroll-snap-type: none;
}

.compare-body:focus-visible {
  outline: 2px solid #111;
  outline-offset: -2px;
}
.compare-body-inner {
  width: max-content;
  min-width: 100%;
}

.compare-section-head {
  position: sticky;
  left: 0;
  width: var(--cmp-view-w, 100%);
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgb(17 19 24 / 10%);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(18, 24, 38, 0.07);
}
.compare-section-head:first-child {
  margin-top: 0;
}

.compare-section-head:not(.is-collapsed) {
  margin-bottom: 10px;
}

.compare-section-text {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: #010103;
  appearance: none;
  border: 0;
  background: none;
  border-radius: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.compare-section-text:focus-visible {
  outline: 2px solid #111;
  outline-offset: -2px;
}

.compare-section-ico {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}
.compare-section-ico::before,
.compare-section-ico::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 2px;
  border-radius: 1px;
  background: #010103;
  transition: transform 0.3s ease;
}
.compare-section-ico::after {
  transform: rotate(0deg);
}
.compare-section-head.is-collapsed .compare-section-ico::after {
  transform: rotate(90deg);
}

.compare-data-row.is-collapsed {
  display: none;
}

@media (max-width: 767.98px) {
  .compare-section-head {
    margin-top: 10px;
  }
  .compare-section-text {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-section-ico::before,
  .compare-section-ico::after {
    transition: none;
  }
}

.compare-data-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #eef1f5;
}

.compare-cell-label {
  align-self: flex-start;
  position: sticky;
  left: 0;
  z-index: 2;
  max-width: 100%;
  padding: 10px 14px 3px;
  font-weight: 600;
  font-size: 12px;
  color: #5a6470;
}

.compare-values {
  display: flex;
}

.compare-cell {
  flex: 0 0 var(--cmp-col-w);
  padding: 4px 14px 12px;
  scroll-snap-align: start;
}
.compare-cell + .compare-cell {
  border-left: 1px solid #eef1f5;
}

.compare-opt {
  text-align: left;
}

.compare-opt-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background-color: #929292;
  color: #fdfdfd;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.compare-opt--yes .compare-opt-mark {
  background-color: #c2192e;
}

@media (max-width: 767.98px) {
  .compare-opt-mark {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
}

.compare-data-row.cmp-alt {
  background: #fafbfd;
}

@media (hover: hover) {
  .compare-data-row:hover {
    background: #eef5fc;
  }
}

.is-diff-only .compare-data-row[data-same="1"] {
  display: none;
}

.compare-data-row[data-any="0"] .compare-cell-label {
  color: #8f97a1;
  font-weight: 500;
}

.compare-acc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.compare-acc-item {
  display: grid;
  gap: 2px;
  font-size: 13px;
}
.compare-acc-date {
  font-weight: 600;
}
.compare-acc-type {
  color: #5a6470;
}
.compare-acc-sum {
  color: #c62828;
}
.compare-acc-empty,
.compare-acc-note,
.compare-body-note {
  color: #667080;
  font-size: 12px;
  margin-top: 4px;
}

.compare-cell-block {
  text-align: center;
}
.compare-body-diagram {
  position: relative;
  width: 170px;
  margin: 0 auto;
}
.compare-body-pane {
  position: relative;
}
.compare-body-img {
  display: block;
  width: 100%;
  height: auto;
}

.compare-body-diagram .mark {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 3px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: #777;
  cursor: pointer;
}

.compare-body-diagram .mark.X,
.compare-body-legend__code.X {
  background: #d32f2f;
}
.compare-body-diagram .mark.W,
.compare-body-legend__code.W {
  background: #f57c00;
}
.compare-body-diagram .mark.C,
.compare-body-legend__code.C {
  background: #6d4c41;
}
.compare-body-diagram .mark.A,
.compare-body-legend__code.A {
  background: #fbc02d;
  color: #222;
}
.compare-body-diagram .mark.U,
.compare-body-legend__code.U {
  background: #1976d2;
}
.compare-body-diagram .mark.T,
.compare-body-legend__code.T {
  background: #7b1fa2;
}

.compare-body-legend {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #5a6470;
}
.compare-body-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.compare-body-legend__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #777;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

@media (max-width: 767.98px) {
  .compare-toolbar {
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }

  .compare-diff-toggle {
    flex: 1 1 100%;
  }

  .compare-clear,
  .compare-share {
    flex: 1 1 calc(50% - 4px);
  }

  .compare-diff-toggle,
  .compare-clear,
  .compare-share {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    hyphens: auto;
  }

  .compare-clear {
    color: #5a6470;
    border-color: #e3e7ee;
  }

  .compare-head,
  .compare-body {
    --cmp-col-w: min(74vw, 300px);
  }

  .compare-head-wrap {
    --compare-nav-top: 56px;
  }
  .compare-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .compare-remove {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-diff-toggle,
  .compare-clear,
  .compare-share,
  .compare-nav,
  .compare-remove {
    transition: none;
  }
  .compare-nav:hover {
    transform: translateY(-50%);
  }
}

.compare-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #1c2733;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: cmpToastIn 0.2s ease;
}
.compare-toast__text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.compare-toast__action {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: #6fb3ff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.compare-toast__action:hover {
  text-decoration: underline;
}

.compare-toast__timer {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  color: #cfd8e3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.compare-toast.has-timer {
  overflow: hidden;
}

.compare-toast.has-timer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #6fb3ff;
  transform-origin: left center;
  animation: cmpToastBar var(--cmp-toast-ms, 5000ms) linear forwards;
}

@keyframes cmpToastBar {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.compare-toast.is-paused .compare-toast__timer {
  opacity: 0.5;
}
.compare-toast.is-paused::after {
  animation-play-state: paused;
}

@keyframes cmpToastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-toast {
    animation: none;
  }
  .compare-toast.has-timer::after {
    display: none;
  }
}

.compare-limit {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #c62828;
}
.compare-limit[hidden] {
  display: none;
}

.sk {
  position: relative;
  overflow: hidden;
  background: #eef1f5;
  border-radius: 6px;
}
.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: skShimmer 1.2s infinite;
}
.sk-photo {
  width: 100%;
  height: 158px;
  border-radius: 0;
}
.sk-line {
  height: 12px;
  width: 90%;
  margin: 8px 0 0;
}
.sk-short {
  width: 60%;
}
@keyframes skShimmer {
  100% {
    transform: translateX(100%);
  }
}

.compare-add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 68px;
  margin: 8px;
  border: 2px dashed #cfd6e0;
  border-radius: 10px;
  color: #5a6470;
  text-decoration: none;
  text-align: center;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}
@media (hover: hover) {
  .compare-add-tile:hover {
    border-color: #111;
    color: #111;
    background: #f7f9fc;
  }
}
.compare-add-plus {
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
}
.compare-add-text {
  font-size: 13px;
  font-weight: 600;
}
.compare-add-col {
  border-left: 1px dashed #dfe4ec;
  background: #fcfdff;
}

.compare-pos {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 6;
  display: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(28, 39, 51, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.compare-expand {
  margin-top: 8px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d7dce5;
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.compare-expand:hover {
  border-color: #111;
}
.compare-expand:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 23, 30, 0.6);
  animation: cmpModalIn 0.15s ease;
}
.compare-modal__box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.compare-modal__head {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 60px 12px 20px;
  border-bottom: 1px solid #eef0f4;
}

.compare-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 20px;
}
.compare-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f3f7;
  color: #444;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.compare-modal__close:hover {
  background: var(--te-red, #e00032);
  color: #fff;
}
.compare-modal__close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.compare-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.compare-modal__diagram .compare-body-diagram {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.compare-modal .compare-body-legend {
  margin-top: 16px;
}
@keyframes cmpModalIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 767.98px) {
  .compare-pos:not([hidden]) {
    display: block;
  }
  .compare-car-head.is-active {
    background: #f4f9ff;
    border-radius: 8px;
  }

  .compare-add-tile {
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk::after {
    animation: none;
  }
  .compare-modal {
    animation: none;
  }
  .compare-add-tile,
  .compare-expand {
    transition: none;
  }
}

.compare-share-status {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  min-height: 20px;
}
.compare-share-status.is-success {
  color: #167a3d;
}
.compare-share-status.is-error {
  color: #c62828;
}

.compare-shared-note[hidden] {
  display: none !important;
}
.compare-shared-note {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #d7dce5;
  border-radius: 12px;
  background: #f6f8fc;
  font-size: 15px;
  line-height: 1.4;
}
.compare-shared-note__text {
  flex: 1 1 auto;
}
.compare-shared-note__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.compare-shared-note__btn:hover {
  opacity: 0.85;
}

body.compare-confirm-open {
  overflow: hidden;
}

.compare-confirm[hidden] {
  display: none !important;
}
.compare-confirm {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.compare-confirm__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
}
.compare-confirm__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.compare-confirm__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.compare-confirm__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: #4a4f5a;
}
.compare-confirm__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.compare-confirm__btn {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 auto;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.compare-confirm__btn--ghost {
  background: #fff;
  border-color: #d7dce5;
  color: #111;
}
.compare-confirm__btn--ghost:hover {
  border-color: #111;
}
.compare-confirm__btn--danger {
  background: #c62828;
  color: #fff;
}
.compare-confirm__btn--danger:hover {
  background: #a91f1f;
}

.compare-confirm__btn:focus-visible,
.compare-shared-note__btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .compare-confirm__btn {
    flex: 1 1 100%;
    width: 100%;
  }
  .compare-shared-note__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-shared-note__btn,
  .compare-confirm__btn {
    transition: none;
  }
}

#te-fui-tooltip {
  z-index: 1350;
}

body.cmp-modal-open {
  overflow: hidden;
}

.cmp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cmp-modal[hidden] {
  display: none;
}

.cmp-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 30, 0.55);
  backdrop-filter: blur(1px);
}

.cmp-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 940px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cmp-modal-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef1f5;
}
.cmp-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #16202b;
}
.cmp-modal-counter {
  margin-left: auto;
  font-size: 13px;
  color: #5a6470;
}
.cmp-modal-counter b {
  color: #16202b;
}
.cmp-modal-counter.is-flash {
  animation: cmpFlash 0.6s ease;
}
@keyframes cmpFlash {
  0%,
  100% {
    color: #5a6470;
  }
  30% {
    color: var(--te-red, #e00032);
    transform: scale(1.06);
  }
}
.cmp-modal-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f3f7;
  color: #444;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.cmp-modal-close:hover {
  background: var(--te-red, #e00032);
  color: #fff;
}

.cmp-modal-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid #eef1f5;
}
.cmp-tab {
  padding: 12px 6px;
  margin-right: 14px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #7a828c;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.cmp-tab.is-active {
  color: #16202b;
  border-bottom-color: var(--te-red, #e00032);
}

.cmp-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: #d32f2f;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  vertical-align: middle;
}

.cmp-tab-count[hidden] {
  display: none;
}

.cmp-tab:not(.is-active) .cmp-tab-count {
  background: #aab1ba;
}

.cmp-pane {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
}
.cmp-pane.is-active {
  display: block;
}

.cmp-filters {
  position: relative;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 12px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #eef1f5;
}
.cmp-f {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cmp-f > span {
  font-size: 11px;
  font-weight: 600;
  color: #667080;
}
.cmp-f select,
.cmp-f input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d9dee6;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  color: #1c2733;
  min-width: 0;
}
.cmp-f select:focus,
.cmp-f input:focus {
  outline: none;
  border-color: var(--te-red, #e00032);
}
.cmp-f select:focus-visible,
.cmp-f input:focus-visible {
  outline: 2px solid var(--te-red, #e00032);
  outline-offset: 1px;
}
.cmp-f select:disabled {
  background: #f4f6f9;
  color: #aab0b8;
}
.cmp-pair {
  display: flex;
  gap: 6px;
}
.cmp-pair > * {
  flex: 1 1 0;
}
.cmp-filters-reset {
  align-self: end;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #d9dee6;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #5a6470;
  cursor: pointer;
}
.cmp-filters-reset:hover {
  border-color: var(--te-red, #e00032);
  color: var(--te-red, #e00032);
}

.cmp-filters--extra {
  padding-top: 0;
  border-bottom: none;
}

.cmp-filters.is-hidden {
  display: none;
}

.cmp-filters-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px 16px;
  background: #fff;
  border-bottom: 1px solid #eef1f5;
}

.cmp-filters-extra {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #d9dee6;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #5a6470;
  cursor: pointer;
}

.cmp-filters-extra:hover {
  border-color: var(--te-red, #e00032);
  color: var(--te-red, #e00032);
}

.cmp-filters-extra:focus-visible,
.cmp-filters-reset:focus-visible {
  outline: 2px solid var(--te-red, #e00032);
  outline-offset: 1px;
}

.cmp-f--check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  align-self: end;
  height: 38px;
  cursor: pointer;
}

.cmp-f--check input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: var(--te-red, #e00032);
  cursor: pointer;
}

.cmp-f--check > span {
  font-size: 13px;
  font-weight: 500;
  color: #1c2733;
}

.cmp-results-info {
  padding: 12px 20px 0;
  font-size: 13px;
  color: #667080;
  min-height: 8px;
}

.cmp-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  padding: 14px 20px 20px;
}

.cmp-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
@media (hover: hover) {
  .cmp-card:hover {
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.1);
  }
}
.cmp-card.is-in {
  border-color: #1e7e34;
  box-shadow: 0 0 0 1px #1e7e34 inset;
}

.cmp-card-photo {
  position: relative;
  height: 130px;
  background: #eef1f5;
}
.cmp-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmp-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: #6b7280;
}
.cmp-card-badge.is-ok {
  background: #1e7e34;
}

.cmp-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
  flex: 1;
}
.cmp-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}
.cmp-card-sub {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.25;
}
.cmp-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 2px;
  font-size: 12px;
  color: #3d4149;
}
.cmp-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.cmp-card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--te-red, #e00032);
}

.cmp-card-add {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid var(--te-red, #e00032);
  border-radius: 8px;
  background: var(--te-red, #e00032);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}
.cmp-card-add:hover {
  background: #c4002c;
  border-color: #c4002c;
}
.cmp-card.is-in .cmp-card-add {
  background: #fff;
  color: #1e7e34;
  border-color: #1e7e34;
}
.cmp-card-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cmp-more-wrap {
  padding: 0 20px 20px;
  text-align: center;
}
.cmp-more {
  padding: 10px 22px;
  border: 1px solid #d9dee6;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #1c2733;
  cursor: pointer;
}
.cmp-more:hover {
  border-color: var(--te-red, #e00032);
  color: var(--te-red, #e00032);
}

.cmp-card--sk .cmp-card-photo.sk {
  border-radius: 0;
}
.cmp-card--sk .cmp-card-body .sk-line {
  margin: 0 0 6px;
}

@media (max-width: 767.98px) {
  .cmp-modal {
    padding: 0;
  }
  .cmp-modal-dialog {
    max-width: none;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
  .cmp-filters {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px;
  }

  .cmp-filters--extra {
    padding-top: 0;
  }
  .cmp-filters-actions {
    padding: 0 14px 14px;
  }
  .cmp-modal-head,
  .cmp-modal-tabs {
    padding-left: 14px;
    padding-right: 14px;
  }
  .cmp-results {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 12px 14px 18px;
  }
  .cmp-results-info {
    padding-left: 14px;
    padding-right: 14px;
  }
  .cmp-card-photo {
    height: 110px;
  }
  .cmp-card-foot {
    flex-wrap: wrap;
  }
  .cmp-card-add {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

.compare-noscript {
  margin: 24px 0;
  padding: 14px 18px;
  border: 1px solid #f0c9a0;
  border-radius: 12px;
  background: #fff7ec;
  font-size: 15px;
  line-height: 1.5;
  color: #6b4b1f;
}
.compare-noscript a {
  color: var(--te-red, #e00032);
  text-decoration: underline;
}

.compare-seo-text {
  font-size: 15px;
  line-height: 1.6;
  color: #3d4149;
}
.compare-seo-text h2,
.compare-seo-text h3 {
  margin: 1.2em 0 0.5em;
  color: #16202b;
}
.compare-seo-text p {
  margin: 0 0 1em;
}

@media (max-width: 767.98px) {
  .compare-viewport {
    min-height: 320px;
  }
}

.compare-car-photo .compare-car-badge.deleted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  z-index: 1;
  padding: 0;
  border-radius: 0;
  background: rgb(0 0 0 / 50%);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  pointer-events: none;
}

.compare-head-wrap:not(.is-compact) .compare-car-photo .compare-car-badge.deleted {
  inset: 8px 8px 0;
  border-radius: 1rem;
}

.compare-head-wrap.is-compact .compare-car-photo .compare-car-badge.deleted {
  display: none;
}

.fui-tooltip .thumb {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 8px;
}

@media print {
  .compare-toolbar,
  .compare-nav,
  .compare-remove,
  .compare-add-tile,
  .compare-add-col,
  .compare-pos,
  .compare-toast,
  .compare-shared-note,
  .compare-expand,
  .compare-share-status,
  .compare-confirm,
  .cmp-modal,
  .compare-modal {
    display: none !important;
  }

  .main-content.inner-page {
    overflow: visible;
  }

  .compare-head-wrap {
    position: static;
  }

  .compare-head,
  .compare-body {
    overflow: visible;
    --cmp-col-w: 46mm;
  }

  .compare-head-track,
  .compare-body-inner {
    width: auto;
  }

  .compare-data-row {
    break-inside: avoid;
  }

  .compare-card {
    box-shadow: none;
  }

  .compare-body-diagram .mark,
  .compare-body-legend__code,
  .compare-opt-mark {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
