/* Commerce presentation; table behavior is shared with the neutral starter. */
.ct-storefront .ct-compare-title {margin:0;font-size:clamp(30px,4vw,44px);letter-spacing:-.025em;}
.ct-storefront .ct-compare-hint {margin:0 0 12px;color:var(--ct-color-muted);font-size:var(--ct-font-size-sm);}
.ct-storefront .ct-compare-scroll {max-width:100%;overflow-x:auto;border:1px solid var(--ct-color-border);border-radius:var(--ct-radius-md);}
.ct-storefront .ct-compare-scroll:focus-visible {outline:2px solid var(--ct-color-primary);outline-offset:3px;}
.ct-storefront .ct-compare-empty {max-width:48rem;margin-top:24px;padding:clamp(20px,4vw,40px);border:1px solid var(--ct-color-border);border-radius:var(--ct-radius-md);background:var(--ct-color-surface);}
.ct-storefront .ct-compare-empty h2 {margin:0 0 12px;font-size:var(--ct-font-size-lg);}
.ct-storefront .ct-compare-empty p {margin:0;color:var(--ct-color-muted);}
.ct-storefront .ct-compare {
  margin-top: var(--ct-space-6);
}

.ct-storefront .ct-compare-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ct-space-3);
  margin-bottom: var(--ct-space-5);
}

.ct-storefront .ct-compare-controls .ct-cluster {
  gap: var(--ct-space-2);
}

.ct-storefront .ct-compare-controls [aria-pressed="true"] {
  background: var(--ct-color-primary);
  border-color: var(--ct-color-primary);
  color: var(--ct-color-on-primary);
}

.ct-storefront .ct-compare-controls [aria-pressed="true"]:hover {
  background: var(--ct-color-primary-hover);
  border-color: var(--ct-color-primary-hover);
}

.ct-storefront .ct-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.ct-storefront .ct-compare-table th,
.ct-storefront .ct-compare-table td {
  min-width: 12rem;
  max-width: 20rem;
  padding: var(--ct-space-4) var(--ct-space-5);
  border-bottom: var(--ct-border-width) solid var(--ct-color-border);
  vertical-align: top;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--ct-color-border);
}
.ct-storefront .ct-compare-table tr > :last-child {border-right:0;}
.ct-storefront .ct-compare-table tbody tr:not(.ct-compare-divider):nth-child(even) td {background:var(--ct-color-surface);}

.ct-storefront .ct-compare-table th {
  font-weight: var(--ct-font-weight-semibold);
}

.ct-storefront .ct-compare-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 11rem;
  min-width: 11rem;
  max-width: 11rem;
  background: var(--ct-color-surface);
  border-right: var(--ct-border-width) solid var(--ct-color-border);
  color: var(--ct-color-muted);
  font-size: var(--ct-font-size-sm);
}

.ct-storefront .ct-compare-table thead th {
  padding-block: var(--ct-space-6);
  background: var(--ct-color-bg);
}

.ct-storefront .ct-compare-table thead > tr > :first-child {
  vertical-align: bottom;
}

.ct-storefront .ct-compare-table tbody tr:last-child > * {
  border-bottom: 0;
}

.ct-storefront .ct-compare-product-link {
  display: block;
  margin-bottom: var(--ct-space-3);
  color: var(--ct-color-text);
  text-decoration: none;
  line-height: 1.4;
}

.ct-storefront .ct-compare-product-link:hover {
  color: var(--ct-color-primary);
  text-decoration: none;
}

.ct-storefront .ct-compare-product-link:focus-visible,
.ct-storefront .ct-compare-remove:focus-visible {
  outline: 2px solid var(--ct-color-primary);
  outline-offset: 3px;
  border-radius:var(--ct-control-radius);
}

.ct-storefront .ct-compare-table .ct-price {
  display: block;
  font-size: var(--ct-font-size-lg);
}

.ct-storefront .ct-compare-remove:not([hidden]) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--ct-space-1);
  font-size: var(--ct-font-size-sm);
  font-weight: 400;
  color: var(--ct-color-muted);
}

.ct-storefront .ct-compare-remove:hover {
  color: var(--ct-color-primary);
}

.ct-storefront .ct-compare-table .ct-compare-divider th {
  position: static;
  padding-block: var(--ct-space-4);
  background: var(--ct-color-surface);
  color: var(--ct-color-text);
}

.ct-storefront .ct-compare-media {display:grid;place-items:center;width:144px;height:144px;max-width:100%;margin-bottom:var(--ct-space-4);border-radius:var(--ct-radius-sm);overflow:hidden;background:var(--ct-color-surface);font-size:var(--ct-font-size-sm);font-weight:400;color:var(--ct-color-muted);}
.ct-storefront .ct-compare-product-name {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em;}
.ct-storefront .ct-compare-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--ct-radius-sm);
}

@media (max-width: 639px) {
  .ct-storefront .ct-compare-controls .ct-cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .ct-storefront .ct-compare-controls .ct-button {
    padding-inline: var(--ct-space-3);
    font-size: var(--ct-font-size-sm);
  }

  .ct-storefront .ct-compare-table th,
  .ct-storefront .ct-compare-table td {
    padding: var(--ct-space-3);
  }

  .ct-storefront .ct-compare-table tr > :first-child {
    width: 7rem;
    min-width: 7rem;
    max-width: 7rem;
  }

  .ct-storefront .ct-compare-media {
    width: 120px;
    height: 120px;
  }
}
