.aov-product-comparison {
  width: 100%;
  margin: 2rem 0 0;
  color: hsl(var(--foreground, 222 47% 11%));
}

.aov-product-comparison [hidden] {
  display: none !important;
}

.aov-product-comparison__intro {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.aov-product-comparison__intro h2,
.aov-product-comparison__intro p,
.aov-product-comparison__scope {
  margin: 0;
}

.aov-product-comparison__intro h2 {
  margin-top: .35rem;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.aov-product-comparison__intro p {
  max-width: 48rem;
  margin-top: .65rem;
  color: hsl(var(--muted-foreground, 215 16% 47%));
  line-height: 1.65;
}

.aov-product-comparison__eyebrow {
  color: hsl(var(--primary, 200 80% 42%));
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.aov-product-comparison__scope {
  min-width: 10rem;
  border: 1px solid hsla(200, 80%, 50%, .2);
  border-radius: 14px;
  background: hsl(var(--aov-blue-light, 200 100% 97%));
  padding: .85rem 1rem;
  font-size: .86rem;
  line-height: 1.65;
}

.aov-product-comparison__filters {
  display: grid;
  gap: .8rem;
  border: 1px solid hsl(var(--border, 214 32% 91%));
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
  padding: 1rem;
}

.aov-product-comparison__filters label {
  display: grid;
  min-width: 0;
  gap: .35rem;
  margin: 0;
}

.aov-product-comparison__filters label > span {
  color: hsl(var(--muted-foreground, 215 16% 47%));
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.aov-product-comparison__filters select,
.aov-product-comparison__filter-actions button,
.aov-product-comparison__selection-bar button,
.aov-product-comparison__matrix-head button,
.aov-product-comparison__matrix thead button,
.aov-product-comparison__show-more {
  min-height: 2.7rem;
  border: 1px solid hsl(var(--border, 214 32% 91%));
  border-radius: 10px;
  background: #fff;
  color: inherit;
  padding: .58rem .75rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 750;
}

.aov-product-comparison__filters select {
  width: 100%;
}

.aov-product-comparison__filter-actions {
  display: flex;
  align-items: end;
}

.aov-product-comparison__filter-actions button,
.aov-product-comparison__selection-bar button,
.aov-product-comparison__matrix-head button,
.aov-product-comparison__matrix thead button,
.aov-product-comparison__show-more {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.aov-product-comparison__filter-actions button:hover,
.aov-product-comparison__matrix-head button:hover,
.aov-product-comparison__show-more:hover {
  border-color: hsla(200, 80%, 50%, .4);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.aov-product-comparison__result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin: .9rem 0;
}

.aov-product-comparison__result,
.aov-product-comparison__hint {
  margin: 0;
  color: hsl(var(--muted-foreground, 215 16% 47%));
  font-size: .84rem;
}

.aov-product-comparison__hint {
  font-weight: 700;
}

.aov-product-comparison__table-wrap {
  overflow: hidden;
  border: 1px solid hsl(var(--border, 214 32% 91%));
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .055);
}

.aov-product-comparison__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .84rem;
  line-height: 1.45;
}

.aov-product-comparison__table th,
.aov-product-comparison__table td {
  border: 0;
  border-bottom: 1px solid hsl(var(--border, 214 32% 91%));
  padding: .85rem .8rem;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.aov-product-comparison__table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: hsl(var(--aov-blue-light, 200 100% 97%));
  color: hsl(var(--muted-foreground, 215 16% 40%));
  font-size: .72rem;
  letter-spacing: .02em;
}

.aov-product-comparison__table thead th:first-child {
  width: 35%;
}

.aov-product-comparison__table thead th:nth-child(2) {
  width: 22%;
}

.aov-product-comparison__table thead th:nth-child(3) {
  width: 12%;
}

.aov-product-comparison__table thead th:nth-child(4) {
  width: 16%;
}

.aov-product-comparison__table thead th:last-child {
  width: 15%;
}

.aov-product-comparison__table tbody tr:last-child th,
.aov-product-comparison__table tbody tr:last-child td {
  border-bottom: 0;
}

.aov-product-comparison__table tbody tr {
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.aov-product-comparison__table tbody tr:hover {
  background: #fbfdff;
}

.aov-product-comparison__table tbody tr.is-selected {
  background: hsl(var(--aov-blue-light, 200 100% 97%));
  box-shadow: inset 4px 0 0 hsl(var(--primary, 200 80% 42%));
}

.aov-product-comparison__table a,
.aov-product-comparison__matrix a {
  color: hsl(var(--primary, 200 80% 42%));
  font-weight: 750;
}

.aov-product-comparison__identity {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  align-items: center;
  gap: .9rem;
}

.aov-product-comparison__table .aov-product-comparison__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 3.5rem;
  border: 1px solid hsl(var(--border, 214 32% 91%));
  border-radius: 9px;
  background: #fff;
  padding: .4rem;
  color: inherit;
  font-size: .78rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.aov-product-comparison__logo-image {
  display: block;
  width: 100%;
  height: 2.5rem;
  object-fit: contain;
}

.aov-product-comparison__table a.aov-product-comparison__logo:hover {
  border-color: hsla(200, 80%, 50%, .4);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.aov-product-comparison__product-info {
  display: grid;
  justify-items: start;
  gap: .3rem;
  min-width: 0;
}

.aov-product-comparison__table .aov-product-comparison__product-name {
  color: inherit;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}

.aov-product-comparison__table a.aov-product-comparison__product-name:hover {
  color: hsl(var(--primary, 200 80% 42%));
  text-decoration: underline;
}

.aov-product-comparison__kind {
  border-radius: 5px;
  background: hsl(var(--muted, 210 40% 96%));
  padding: .12rem .4rem;
  color: hsl(var(--muted-foreground, 215 16% 47%));
  font-size: .68rem;
  font-weight: 600;
}

.aov-product-comparison__table .aov-product-comparison__action {
  text-align: right;
  padding-right: 1rem;
}

.aov-product-comparison__table .aov-product-comparison__direct-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 2.75rem;
  color: hsl(var(--secondary, 31 92% 48%));
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.aov-product-comparison__no-link {
  color: hsl(var(--muted-foreground, 215 16% 47%));
  font-size: .72rem;
}

.aov-product-comparison__table .aov-product-comparison__direct-link:hover,
.aov-product-comparison__table .aov-product-comparison__direct-link:focus-visible {
  color: hsl(var(--secondary, 31 92% 42%));
  text-decoration: underline;
}

.aov-product-comparison__select {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  min-height: 1.6rem;
  margin: .1rem 0 0;
  cursor: pointer;
  color: hsl(var(--muted-foreground, 215 16% 47%));
  font-size: .72rem;
  font-weight: 700;
}

.aov-product-comparison__select input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: hsl(var(--primary, 200 80% 42%));
}

.aov-product-comparison__show-more {
  display: block;
  margin: 1rem auto 0;
  color: hsl(var(--primary, 200 80% 42%));
}

.aov-product-comparison__empty {
  margin: 1rem 0 0;
  border: 1px solid hsl(var(--border, 214 32% 91%));
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.aov-product-comparison__selection-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: hsl(222 47% 14% / .97);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .25);
  padding: .8rem .9rem;
  color: #fff;
  backdrop-filter: blur(10px);
}

.aov-product-comparison__selection-bar p {
  margin: 0;
  font-size: .88rem;
}

.aov-product-comparison__selection-bar p span {
  margin-left: .35rem;
  color: rgba(255, 255, 255, .72);
}

.aov-product-comparison__selection-bar > div {
  display: flex;
  gap: .5rem;
}

.aov-product-comparison__selection-bar button {
  min-height: 2.45rem;
  border-color: rgba(255, 255, 255, .18);
  background: transparent;
  color: #fff;
}

.aov-product-comparison__selection-bar .aov-product-comparison__selection-submit {
  border-color: transparent;
  background: hsl(var(--secondary, 31 92% 56%));
  color: hsl(var(--secondary-foreground, 0 0% 100%));
}

.aov-product-comparison__selection-bar button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.aov-product-comparison__matrix-panel {
  scroll-margin-top: 6rem;
  margin-top: 1.5rem;
  border: 1px solid hsla(200, 80%, 50%, .25);
  border-radius: 18px;
  background: linear-gradient(180deg, hsl(var(--aov-blue-light, 200 100% 97%)), #fff 12rem);
  box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
  padding: clamp(1rem, 3vw, 1.6rem);
}

.aov-product-comparison__matrix-panel:focus {
  outline: none;
}

.aov-product-comparison__matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.aov-product-comparison__matrix-head h3 {
  margin: .25rem 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.aov-product-comparison__matrix-panel > p {
  max-width: 52rem;
  margin: .75rem 0 1.1rem;
  color: hsl(var(--muted-foreground, 215 16% 47%));
}

.aov-product-comparison__matrix-wrap {
  overflow-x: auto;
  border: 1px solid hsl(var(--border, 214 32% 91%));
  border-radius: 14px;
  background: #fff;
}

.aov-product-comparison__matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .85rem;
  line-height: 1.5;
}

.aov-product-comparison__matrix th,
.aov-product-comparison__matrix td {
  min-width: 13rem;
  border-right: 1px solid hsl(var(--border, 214 32% 91%));
  border-bottom: 1px solid hsl(var(--border, 214 32% 91%));
  padding: .85rem;
  text-align: left;
  vertical-align: top;
}

.aov-product-comparison__matrix th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 10rem;
  background: hsl(var(--muted, 210 40% 96%));
}

.aov-product-comparison__matrix thead th {
  background: hsl(var(--aov-blue-light, 200 100% 97%));
}

.aov-product-comparison__matrix thead th:first-child {
  z-index: 3;
}

.aov-product-comparison__matrix tr > *:last-child {
  border-right: 0;
}

.aov-product-comparison__matrix tbody tr:last-child > * {
  border-bottom: 0;
}

.aov-product-comparison__matrix thead th > strong,
.aov-product-comparison__matrix thead th > span {
  display: block;
}

.aov-product-comparison__matrix thead th > span {
  margin-top: .2rem;
  color: hsl(var(--muted-foreground, 215 16% 47%));
  font-weight: 500;
}

.aov-product-comparison__matrix thead button {
  min-height: auto;
  margin-top: .65rem;
  padding: .35rem .55rem;
  color: hsl(var(--muted-foreground, 215 16% 47%));
  font-size: .72rem;
}

.aov-product-comparison__source-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
}

.aov-product-comparison__matrix td > a {
  display: block;
  width: fit-content;
  margin-top: .35rem;
}

.aov-product-comparison__cta {
  margin-top: .7rem !important;
  border-radius: 9px;
  background: hsl(var(--secondary, 31 92% 56%));
  padding: .52rem .7rem;
  color: #fff !important;
  text-decoration: none;
}

.aov-product-comparison__note {
  margin: .85rem 0 0;
  color: hsl(var(--muted-foreground, 215 16% 47%));
  font-size: .76rem;
}

.aov-product-comparison :focus-visible {
  outline: 3px solid hsla(200, 80%, 50%, .4);
  outline-offset: 2px;
}

@media (min-width: 760px) {
  .aov-product-comparison__intro {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

@media (min-width: 1100px) {
  .aov-product-comparison__identity {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 1rem;
  }

  .aov-product-comparison__filters {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  }
}

@media (max-width: 759px) {
  .aov-product-comparison {
    margin-top: 1.5rem;
  }

  .aov-product-comparison__scope {
    width: fit-content;
  }

  .aov-product-comparison__table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .aov-product-comparison__table,
  .aov-product-comparison__table tbody {
    display: block;
    width: 100%;
  }

  .aov-product-comparison__table thead {
    display: none;
  }

  .aov-product-comparison__table tbody {
    display: grid;
    gap: .85rem;
  }

  .aov-product-comparison__table tr {
    display: block;
    overflow: hidden;
    border: 1px solid hsl(var(--border, 214 32% 91%));
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
  }

  .aov-product-comparison__table th,
  .aov-product-comparison__table td {
    display: block;
    width: auto;
    border-bottom: 1px solid hsl(var(--border, 214 32% 91%));
    padding: .8rem .9rem;
  }

  .aov-product-comparison__table tbody th {
    background: hsl(var(--aov-blue-light, 200 100% 97%));
  }

  .aov-product-comparison__table td {
    display: grid;
    grid-template-columns: minmax(7.25rem, .8fr) minmax(0, 1.2fr);
    gap: .75rem;
  }

  .aov-product-comparison__table td::before {
    color: hsl(var(--muted-foreground, 215 16% 47%));
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .aov-product-comparison__table .aov-product-comparison__action {
    display: flex;
    justify-content: flex-end;
    padding: .35rem .9rem;
  }

  .aov-product-comparison__table .aov-product-comparison__action::before {
    content: none;
  }

  .aov-product-comparison__table tr > *:last-child {
    border-bottom: 0;
  }

  .aov-product-comparison__selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .aov-product-comparison__selection-bar p span {
    display: block;
    margin: .2rem 0 0;
  }

  .aov-product-comparison__selection-bar > div {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
  }

  .aov-product-comparison__matrix-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .aov-product-comparison__matrix th,
  .aov-product-comparison__matrix td {
    min-width: 11.5rem;
  }

  .aov-product-comparison__matrix th:first-child {
    min-width: 8.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aov-product-comparison *,
  .aov-product-comparison *::before,
  .aov-product-comparison *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
