.router-compare {
  --compare-ink: #3b3e40;
  --compare-muted: #73777b;
  --compare-line: #e8e8ed;
  --compare-soft: #f4f5f7;
  --compare-brand: #00b99a;
  --compare-brand-strong: #00977e;
  --compare-max: 1110px;
  color: var(--compare-ink);
  background: #fff;
}

.router-compare *,
.router-compare *::before,
.router-compare *::after {
  box-sizing: border-box;
}

.router-compare button,
.router-compare select {
  font: inherit;
}

.router-compare button:focus-visible,
.router-compare a:focus-visible,
.router-compare select:focus-visible {
  outline: 2px solid var(--compare-brand-strong);
  outline-offset: 3px;
}

.compare-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compare-content,
.compare-note {
  width: min(var(--compare-max), calc(100% - 30px));
  margin-right: auto;
  margin-left: auto;
}

.compare-categories {
  overflow: hidden;
  padding: 30px 0 26px;
  background: var(--compare-soft);
}

.compare-categories-inner {
  width: min(1300px, calc(100% - 30px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.router-compare .compare-category {
  min-width: 0;
  padding: 2px 12px;
  border: 0;
  background: transparent;
  color: #26221e;
  text-align: center;
  cursor: pointer;
  transition: color 200ms ease;
}

.compare-category-icon {
  display: block;
  width: 112px;
  height: 82px;
  margin-right: auto;
  margin-bottom: 12px;
  margin-left: auto;
  object-fit: contain;
  transition: filter 200ms ease;
}

.compare-category strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.router-compare .compare-category:hover,
.router-compare .compare-category.is-active {
  color: var(--compare-brand);
}

.router-compare .compare-category:hover .compare-category-icon,
.router-compare .compare-category.is-active .compare-category-icon {
  filter: invert(52%) sepia(98%) saturate(1477%) hue-rotate(128deg) brightness(91%) contrast(101%);
}

.compare-content {
  margin-bottom: 58px;
  scroll-margin-top: 80px;
}

.compare-mobile-hint {
  display: none;
}

.compare-scroll-area {
  width: 100%;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compare-product-visual {
  min-width: 0;
  padding: 40px 24px 18px;
  text-align: center;
}

.compare-product-image {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-product-image img {
  max-width: min(100%, 230px);
  max-height: 195px;
  object-fit: contain;
}

.compare-image-fallback {
  display: none;
  color: var(--compare-muted);
  font-size: 13px;
}

.compare-selector-wrap {
  position: sticky;
  top: 67px;
  z-index: 10;
  padding: 11px 0;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.compare-selector-wrap.is-stuck {
  border-color: var(--compare-line);
}

.compare-selector-title,
.compare-product-head {
  min-width: 0;
  padding: 0 15px;
}

.compare-product-head {
  display: flex;
  align-items: center;
}

.compare-select-box {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid var(--compare-line);
  border-radius: 5px;
  transition: border-color 200ms ease;
}

.compare-select-box:hover,
.compare-select-box:focus-within {
  border-color: #bfc4c8;
}

.compare-select-box select {
  width: 100%;
  margin: 0;
  padding: 15px 38px 15px 14px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--compare-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.compare-select-box::after {
  content: "\f078";
  position: absolute;
  top: 50%;
  right: 17px;
  color: #b9b9ba;
  font-family: "Font Awesome 6 Free";
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
  transform: translateY(-50%);
}

.compare-action {
  min-width: 0;
  padding: 8px 15px 29px;
  text-align: center;
}

.router-compare .compare-learn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #636363;
  font-size: 14px;
  line-height: 1.4;
}

.router-compare .compare-learn-link i {
  font-size: 10px;
}

.router-compare .compare-learn-link:hover {
  color: #919191;
  text-decoration: underline;
}

.compare-section {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: 5px;
  background: #fff;
  scroll-margin-top: 142px;
}

.compare-section-heading {
  min-height: 57px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, .125);
  background: rgba(0, 0, 0, .03);
}

.router-compare .compare-section-heading h2 {
  margin: 0;
  color: #25282b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.compare-spec-row {
  border-bottom: 1px solid var(--compare-line);
}

.compare-section .compare-spec-row:last-child {
  border-bottom: 0;
}

.compare-spec-row > div {
  min-width: 0;
}

.compare-spec-label,
.compare-spec-value {
  min-height: 86px;
  padding: 18px 20px;
}

.compare-spec-label {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #35393d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.compare-spec-icon {
  width: 40px;
  flex: 0 0 40px;
  text-align: center;
  line-height: 1;
}

.compare-spec-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.compare-spec-value {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #4d5257;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.compare-spec-value.is-empty {
  color: #9a9da0;
}

.compare-spec-value.is-empty::after {
  content: "−";
}

.compare-package-variant + .compare-package-variant {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--compare-line);
}

.compare-package-variant strong {
  display: block;
  margin-bottom: 6px;
  color: #3d4246;
  font-size: 13px;
}

.compare-package-variant span {
  display: block;
}

.compare-note {
  margin-bottom: 65px;
  padding-top: 6px;
  color: #7a7e82;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 1000px) {
  .compare-category-icon {
    width: 94px;
    height: 70px;
  }

  .compare-product-image {
    height: 175px;
  }

  .compare-product-image img {
    max-width: min(100%, 190px);
    max-height: 165px;
  }

  .compare-select-box select {
    padding: 12px 34px 12px 9px;
    font-size: 14px;
  }

  .compare-spec-label,
  .compare-spec-value {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 720px) {
  .compare-content,
  .compare-note {
    width: calc(100% - 30px);
  }

  .compare-categories {
    overflow-x: auto;
    padding: 22px 0 19px;
    scrollbar-width: thin;
  }

  .compare-categories-inner {
    width: 590px;
    padding: 0 10px;
    grid-template-columns: repeat(5, 110px);
    gap: 6px;
  }

  .router-compare .compare-category {
    padding: 0 5px;
  }

  .compare-category-icon {
    width: 72px;
    height: 54px;
    margin-bottom: 7px;
  }

  .compare-category strong {
    font-size: 12px;
  }

  .compare-mobile-hint {
    display: block;
    margin: 17px 0 0;
    color: #74787c;
    font-size: 12px;
    line-height: 1.55;
  }

  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-label-cell,
  .compare-selector-title,
  .compare-spec-label {
    display: none;
  }

  .compare-product-visual {
    padding: 23px 8px 9px;
  }

  .compare-product-image {
    height: 138px;
  }

  .compare-product-image img {
    max-width: min(100%, 150px);
    max-height: 130px;
  }

  .compare-selector-wrap {
    top: 60px;
    padding: 8px 0;
  }

  .compare-product-head {
    padding: 0 5px;
  }

  .compare-select-box select {
    padding: 10px 27px 10px 8px;
    font-size: 12px;
  }

  .compare-select-box::after {
    right: 10px;
    font-size: 10px;
  }

  .compare-action {
    padding: 7px 5px 24px;
  }

  .router-compare .compare-learn-link {
    font-size: 12px;
  }

  .compare-section {
    margin-bottom: 14px;
  }

  .compare-section-heading {
    min-height: 50px;
    padding: 0 13px;
    gap: 10px;
  }

  .router-compare .compare-section-heading h2 {
    font-size: 13px;
  }

  .compare-spec-value {
    min-height: 118px;
    padding: 17px 8px;
    justify-content: flex-start;
    font-size: 12px;
    line-height: 1.5;
  }

  .compare-spec-value::before {
    content: attr(data-mobile-label);
    min-height: 43px;
    margin-bottom: 10px;
    color: #35393d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }

  .compare-spec-value.is-empty::after {
    margin-top: 2px;
  }

  .compare-package-variant + .compare-package-variant {
    margin-top: 12px;
    padding-top: 12px;
  }

  .compare-package-variant strong {
    font-size: 11px;
  }

  .compare-note {
    margin-bottom: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .router-compare .compare-category,
  .compare-select-box {
    transition: none;
  }
}
