/* Comparison page — scoped to avoid changing other website pages. */
.mc-compare-page .mc-catalog-layout {
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 24px;
}

.mc-compare-filter {
  top: 112px;
}

.mc-compare-selection-summary {
  display: grid;
  margin: 0 0 18px;
  padding: 14px;
  gap: 2px;
  color: var(--mc-text);
  background: linear-gradient(135deg, #eefaf9, #ffffff);
  border: 1px solid #bfe8e4;
  border-radius: 12px;
}

.mc-compare-selection-summary span {
  color: #008f87;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mc-compare-selection-summary strong {
  color: var(--mc-black);
  font-size: 27px;
  line-height: 1.1;
}

.mc-compare-selection-summary small {
  margin-top: 5px;
  color: var(--mc-muted);
  font-size: 11px;
  line-height: 1.45;
}

.mc-compare-toolbar {
  margin-bottom: 16px;
}

.mc-compare-toolbar .mc-toolbar-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mc-compare-scroll-note {
  display: none;
  margin: 0 0 10px;
  padding: 9px 11px;
  align-items: center;
  gap: 8px;
  color: #536170;
  background: #f5f8f9;
  border: 1px solid #dfe7e9;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.mc-compare-shell {
  overflow: auto;
  border-color: #dce5e7;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
  scrollbar-color: #00a79d #edf3f4;
  scrollbar-width: thin;
}

.mc-compare-shell::-webkit-scrollbar {
  height: 10px;
}

.mc-compare-shell::-webkit-scrollbar-track {
  background: #edf3f4;
}

.mc-compare-shell::-webkit-scrollbar-thumb {
  background: #00a79d;
  border: 2px solid #edf3f4;
  border-radius: 999px;
}

.mc-compare-page .mc-compare-table {
  min-width: 1080px;
  table-layout: fixed;
}

.mc-compare-page .mc-compare-table th,
.mc-compare-page .mc-compare-table td {
  padding: 13px 15px;
  color: #263244;
  background: #ffffff;
  border-color: #e2e8ea;
  font-size: 13px;
  line-height: 1.5;
}

.mc-compare-page .mc-compare-table thead th {
  padding: 0;
  vertical-align: top;
  background: #ffffff;
}

.mc-compare-page .mc-compare-table thead th:first-child,
.mc-compare-page .mc-compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 165px;
  min-width: 165px;
  color: #102033;
  background: #eefaf9;
  border-right: 1px solid #cbe8e5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.mc-compare-page .mc-compare-table thead th:first-child {
  z-index: 8;
  padding: 18px 15px;
  color: #ffffff;
  background: #00a79d;
  font-size: 17px;
  text-align: left;
}

.mc-compare-page .mc-compare-table tbody tr:nth-child(even) td {
  background: #fbfcfc;
}

.mc-compare-page .mc-compare-product {
  width: 270px;
  min-width: 270px;
  text-align: left;
}

.mc-compare-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: #ffffff;
}

.mc-compare-card-media {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid #e8edef;
}

.mc-compare-card-media > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.mc-compare-card-media img {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px;
  object-fit: contain;
  transition: transform .2s ease;
}

.mc-compare-card:hover .mc-compare-card-media img {
  transform: scale(1.025);
}

.mc-compare-discount {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: #00a79d;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 167, 157, .24);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.mc-compare-card-body {
  display: flex;
  padding: 13px;
  flex: 1;
  flex-direction: column;
}

.mc-compare-card h2 {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 7px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mc-compare-card h2 a {
  color: #111827;
  text-decoration: none;
}

.mc-compare-card h2 a:hover,
.mc-compare-card h2 a:focus-visible {
  color: #00a79d;
}

.mc-compare-card-category,
.mc-compare-category-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  color: #008f87;
  background: #eefaf9;
  border: 1px solid #bfe8e4;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.mc-compare-card-category {
  margin-bottom: 7px;
  padding: 4px 8px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-compare-category-link {
  padding: 5px 9px;
  font-size: 12px;
}

.mc-compare-card-category:hover,
.mc-compare-card-category:focus-visible,
.mc-compare-category-link:hover,
.mc-compare-category-link:focus-visible {
  color: #ffffff;
  background: #00a79d;
  border-color: #00a79d;
  text-decoration: none;
}

.mc-compare-card-brand {
  margin: 0 0 7px;
  color: #667085;
  font-size: 12px;
}

.mc-compare-card-brand strong {
  color: #344054;
}

.mc-compare-card-status {
  display: flex;
  min-height: 29px;
  margin-bottom: 7px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mc-compare-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mc-compare-stock i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #00a79d;
  border-radius: 50%;
}

.mc-compare-stock.is-unavailable {
  color: #c62828;
}

.mc-compare-stock.is-unavailable i {
  background: #c62828;
}

.mc-compare-rating {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: #ffffff;
  background: #00a79d;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.mc-compare-rating > span {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, .65);
}

.mc-compare-card-price {
  display: flex;
  min-height: 31px;
  margin: 0 0 10px;
  align-items: baseline;
  gap: 8px;
}

.mc-compare-card-price del,
.mc-compare-page .mc-compare-table td del {
  color: #7a8696;
  font-size: 12px;
}

.mc-compare-value-price {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.mc-compare-value-request {
  color: #c64b0b;
  font-size: 15px;
  font-weight: 800;
}

.mc-compare-saving {
  color: #00a79d;
  font-size: 12px;
}

.mc-compare-card-actions {
  display: grid;
  margin-top: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.mc-compare-card-actions .mc-btn {
  min-width: 0;
  min-height: 39px;
  padding: 7px 8px;
  justify-content: center;
  border-radius: 9px;
  font-size: 10px;
  white-space: nowrap;
}

.mc-compare-card-actions .mc-btn,
.mc-compare-card-actions .mc-btn span,
.mc-compare-card-actions .mc-btn i {
  color: #ffffff !important;
}

.mc-compare-enquiry {
  background: #19a453;
  border-color: #19a453;
}

.mc-compare-enquiry:hover,
.mc-compare-enquiry:focus-visible {
  color: #ffffff !important;
  background: #148b46;
  border-color: #148b46;
}

.mc-compare-page .mc-compare-table td .mc-compare-value-price {
  font-size: 18px;
}

.mc-compare-page .mc-compare-table td .mc-compare-value-request {
  font-size: 14px;
}

.mc-compare-warranty {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

.mc-compare-warranty i {
  margin-top: 2px;
  color: #00a79d;
}

.mc-compare-cod {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #19752e;
  background: #f2fff4;
  border: 1px solid #76d487;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.mc-compare-cod i {
  width: 11px;
  height: 11px;
  background: #18842e;
  border-radius: 50%;
}

.mc-compare-muted {
  color: #7a8696;
}

.mc-compare-empty {
  display: flex;
  padding: 24px;
  align-items: center;
  gap: 16px;
  border: 1px solid #dce5e7;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  font-weight: 400;
}

.mc-compare-empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  background: #00a79d;
  border-radius: 50%;
  font-size: 21px;
}

.mc-compare-empty h2 {
  margin: 0 0 5px;
  font-size: 21px;
}

.mc-compare-empty p {
  margin: 0;
  color: var(--mc-muted);
}

.mc-compare-suggestions {
  margin-top: 30px;
}

.mc-compare-products-heading {
  margin-bottom: 16px;
}

.mc-compare-products-heading p {
  margin: 7px 0 0;
  color: var(--mc-muted);
  font-size: 13px;
}

/* Exactly three product cards per row in the comparison product finder. */
.mc-compare-page .mc-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1180px) {
  .mc-compare-page .mc-catalog-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
  }

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

@media (max-width: 900px) {
  .mc-compare-page .mc-catalog-layout {
    grid-template-columns: 1fr;
  }

  .mc-compare-filter {
    top: 0;
  }

  .mc-compare-scroll-note {
    display: flex;
  }

  .mc-compare-toolbar {
    align-items: flex-start;
  }

  .mc-compare-toolbar .mc-toolbar-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 699px) {
  .mc-compare-page .mc-product-grid {
    grid-template-columns: 1fr;
  }

  .mc-compare-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mc-compare-toolbar .mc-toolbar-controls,
  .mc-compare-toolbar .mc-toolbar-controls .mc-btn {
    width: 100%;
  }

  .mc-compare-page .mc-compare-table {
    min-width: 940px;
  }

  .mc-compare-page .mc-compare-table thead th:first-child,
  .mc-compare-page .mc-compare-table tbody th {
    width: 130px;
    min-width: 130px;
  }

  .mc-compare-page .mc-compare-product {
    width: 235px;
    min-width: 235px;
  }

  .mc-compare-card-media {
    height: 165px;
  }

  .mc-compare-empty {
    align-items: flex-start;
  }
}

/* Mobile containment and touch scrolling fixes. */
.mc-compare-page,
.mc-compare-page .mc-container,
.mc-compare-page .mc-catalog-layout,
.mc-compare-page .mc-results-column { max-width: 100%; min-width: 0; }
.mc-compare-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}
.mc-compare-page .mc-compare-table th,
.mc-compare-page .mc-compare-table td { overflow-wrap: anywhere; word-break: normal; }
.mc-compare-page .mc-compare-table img { max-width: 100%; }
@media (max-width: 699px) {
  .mc-compare-page .mc-section { overflow: hidden; }
  .mc-compare-page .mc-compare-table { min-width: 780px; }
  .mc-compare-page .mc-compare-table thead th:first-child,
  .mc-compare-page .mc-compare-table tbody th { width: 108px; min-width: 108px; padding: 10px 9px; }
  .mc-compare-page .mc-compare-product { width: 210px; min-width: 210px; }
  .mc-compare-page .mc-compare-table td { padding: 10px; font-size: 12px; }
  .mc-compare-card-media { height: 148px; }
  .mc-compare-scroll-note { position: sticky; left: 0; z-index: 2; }
}
