/* Scoped comparison UI; the original catalog remains usable without JavaScript. */
.product-compare-toggle,
.product-compare-primary,
.product-compare-secondary,
.product-compare-chip,
.product-compare-close {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #4c5b68;
  border-radius: 3px;
  padding: 11px 16px;
  background: #172027;
  color: #f4f7f7;
  font: 500 14px/1.5 var(--mt-font-body, sans-serif);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.product-compare-toggle { margin-top: 20px; width: 100%; }
.product-compare-toggle[aria-pressed="true"] { border-color: #48c39b; background: #173d32; }
.product-compare-toggle:hover,
.product-compare-secondary:hover,
.product-compare-chip:hover,
.product-compare-close:hover { border-color: #73d3b4; background: #223832; }
.product-compare-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #167859; border-color: #39aa84; color: #fff; font-weight: 700; }
.product-compare-primary:hover { background: #1c8b68; border-color: #73d3b4; }
.product-compare-primary:disabled { opacity: .58; cursor: default; background: #24352f; border-color: #48594f; }
:is(.product-compare-tray,.product-compare-dialog) :is(button,a,[tabindex]):focus-visible,
.product-compare-toggle:focus-visible { outline: 3px solid #80e4c2; outline-offset: 3px; }
.product-compare-tray[hidden],
.product-compare-dialog tbody[hidden] { display: none !important; }
.product-compare-tray {
  box-sizing: border-box;
  position: fixed;
  z-index: 1000;
  inset: auto 16px max(16px, env(safe-area-inset-bottom));
  width: calc(100% - 32px);
  max-width: 1120px;
  margin-inline: auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #f4f7f7;
  background: #111b20;
  border: 1px solid #4b6e60;
  border-radius: 8px;
  box-shadow: 0 8px 32px #0005;
}
.product-compare-summary { flex: 1; min-width: 0; }
.product-compare-count { display: block; font: 700 14px/1.5 var(--mt-font-body, sans-serif); }
.product-compare-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; list-style: none; }
.product-compare-chips li { margin: 0; min-width: 0; max-width: 100%; }
.product-compare-chip { max-width: 100%; padding: 9px 13px; font-size: 13px; overflow-wrap: anywhere; }
.product-compare-status { min-height: 20px; margin: 8px 0 0; color: #c8d5d0; font: 400 13px/1.6 var(--mt-font-body, sans-serif); overflow-wrap: anywhere; }
.product-compare-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.product-compare-spacer { height: 0; width: 100%; pointer-events: none; }
html.product-compare-open { overflow: hidden; }
.product-compare-dialog {
  box-sizing: border-box;
  z-index: 1000;
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #506359;
  border-radius: 8px;
  background: #11191e;
  color: #f4f7f7;
  font-family: var(--mt-font-body, sans-serif);
  box-shadow: 0 16px 80px #0008;
}
.product-compare-dialog[open] { display: flex; flex-direction: column; }
.product-compare-dialog::backdrop { background: #060b10d9; }
.product-compare-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #39484a; }
.product-compare-header h2 { margin: 0; font: 700 22px/1.4 var(--mt-font-body, sans-serif); text-align: left; }
.product-compare-close { flex: 0 0 auto; }
.product-compare-body { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 28px; }
.product-compare-description,
.product-compare-category-note { margin: 0 0 16px; color: #c8d5d0; font-size: 13px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; text-align: left; }
.product-compare-category-note { padding: 13px 15px; border-left: 3px solid #4ec09b; background: #193029; color: #e2eee9; }
.product-compare-scroll-hint { margin: 0 0 10px; color: #a9beb4; font-size: 13px; line-height: 1.6; text-align: left; }
.product-compare-table-scroll { box-sizing: border-box; width: 100%; max-width: 100%; overflow: auto; overscroll-behavior: contain; border: 1px solid #39484a; scrollbar-color: #62776c #172127; }
.product-compare-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; color: #f4f7f7; font-size: 14px; line-height: 1.7; }
.product-compare-table :is(th,td) { padding: 16px; border: 0; border-bottom: 1px solid #39484a; border-right: 1px solid #39484a; vertical-align: top; text-align: left; font-weight: 400; word-break: keep-all; overflow-wrap: anywhere; }
.product-compare-table tr > :last-child { border-right: 0; }
.product-compare-table .product-compare-row-label { position: sticky; left: 0; z-index: 1; width: 140px; background: #1b282b; color: #d5e4dc; font-size: 13px; font-weight: 600; }
.product-compare-table thead .product-compare-row-label { vertical-align: bottom; }
.product-compare-table .product-compare-model { background: #172127; }
.product-compare-model img { display: block; width: 100%; height: 110px; object-fit: contain; margin-bottom: 13px; background: #fff; }
.product-compare-model-link { display: flex; align-items: center; min-height: 44px; color: #fff; font-size: 17px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.product-compare-category { display: block; margin-top: 5px; color: #b6c8bf; font-size: 13px; }
.product-compare-source { display: flex; align-items: center; width: fit-content; max-width: 100%; min-width: 44px; min-height: 44px; margin-top: 4px; padding-block: 7px; color: #91d8bb; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.product-compare-value + .product-compare-value { border-top: 1px solid #39484a; margin-top: 8px; padding-top: 8px; }
.product-compare-missing { color: #9bada4; font-size: 13px; }
.product-compare-more { margin-top: 16px; }
.product-compare-footer { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 18px 24px; border-top: 1px solid #39484a; background: #111b20; }
.product-compare-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-compare-dialog .product-compare-description,
.product-compare-dialog .product-compare-category-note,
.product-compare-dialog .product-compare-scroll-hint,
.product-compare-tray .product-compare-status { text-align: left; margin-inline: 0; }
.product-compare-dialog .product-compare-header h2 { text-align: left; }
@media (max-width: 767px) {
  .product-compare-tray { inset-inline: 10px; width: calc(100% - 20px); padding: 14px; display: block; }
  .product-compare-actions { margin-top: 13px; }
  .product-compare-actions .product-compare-primary { flex: 1; }
  .product-compare-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .product-compare-header { padding: 14px 16px; }
  .product-compare-header h2 { font-size: 19px; }
  .product-compare-body { padding: 16px 13px 20px; }
  .product-compare-table :is(th,td) { padding: 13px; }
  .product-compare-table .product-compare-row-label { width: 120px; }
  .product-compare-footer { padding: 13px; gap: 8px; }
  .product-compare-footer .product-compare-primary { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.product-compare-toggle,.product-compare-tray,.product-compare-dialog) *,
  .product-compare-toggle { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
