[data-comparison-root] { --comparison-accent: #bd1239; }
.ty-comparison-page { width: 100%; max-width: 1400px; margin: 24px auto 60px; padding: 0 20px; box-sizing: border-box; color: #eee; }
.ty-comparison-row { min-width: 0; }
.ty-comparison-row > .ty-comparison-page { min-width: 0; }
.ty-comparison-caption { color: #bbb; text-align: left; padding: 12px 16px; font-size: 13px; }
.ty-comparison-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.ty-comparison-heading h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; margin: 8px 0 12px; }
.ty-comparison-heading p { color: #bbb; line-height: 1.5; margin: 0; }
.ty-comparison-heading .ty-comparison-eyebrow { color: #bd1239; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.ty-comparison-button, .ty-comparison-text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; box-sizing: border-box; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.25; cursor: pointer; text-align: center; }
.ty-comparison-button[aria-disabled="true"] { opacity: .5; cursor: default; }
.ty-comparison-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0; }
.ty-comparison-options label { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.ty-comparison-options input { width: 18px; height: 18px; accent-color: #bd1239; }
.ty-comparison-page .ty-comparison-note { color: #bcbcbc; font-size: 13px; line-height: 1.5; margin: 12px 0 18px; }
.ty-comparison-empty { text-align: center; border: 1px dashed #626267; border-radius: 14px; padding: 64px 24px; background: #252528; }
.ty-comparison-empty h2 { font-size: 22px; margin-bottom: 12px; }
.ty-comparison-empty p { max-width: 520px; margin: auto; line-height: 1.6; color: #bbb; }
.ty-comparison-scroll { overflow: auto; border: 1px solid #4b4b50; border-radius: 12px; background: #232326; }
.ty-comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; line-height: 1.5; }
.ty-comparison-table th, .ty-comparison-table td { padding: 16px; vertical-align: top; text-align: left; border-bottom: 1px solid #414146; border-right: 1px solid #414146; overflow-wrap: anywhere; }
.ty-comparison-table tr > :last-child { border-right: 0; }
.ty-comparison-table tbody tr:last-child > * { border-bottom: 0; }
.ty-comparison-table thead th { background: #29292d; font-weight: 400; }
.ty-comparison-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: #29292d; width: 170px; box-sizing: border-box; font-weight: 600; }
.ty-comparison-table .ty-comparison-product { min-width: 0; }
.ty-comparison-product-image { display: block; width: 100%; height: 140px; object-fit: contain; margin: 14px 0; }
.ty-comparison-product-name { display: block; color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.45; }
.ty-comparison-product-name:hover { text-decoration: underline; color: #fff; }
.ty-comparison-remove { display: block; margin-left: auto; border: 1px solid #666; border-radius: 6px; color: #ddd; background: transparent; padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.ty-comparison-price { display: block; font-size: 19px; font-weight: 700; margin-top: 16px; }
.ty-comparison-stock { display: block; margin: 5px 0 12px; color: #bcbcbc; }
.ty-comparison-stock.is-in-stock { color: #a1dcae; }
.ty-comparison-different td { background: rgba(255,255,255,.035); }
.ty-comparison-missing { color: #999; }
.ty-comparison-card { display: flex; flex-direction: column; }
.ty-comparison-card > a { flex: 1; }
.ty-compare-select { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 12px; border: 1px solid #65656a; border-radius: 7px; background: #29292c; color: #eee; cursor: pointer; font: inherit; font-size: 13px; line-height: 1.3; }
.ty-comparison-card > .ty-compare-select { margin: 0 12px 12px; flex-shrink: 0; }
.ty-comparison-product-control { margin: 12px 0; }
.ty-compare-select:disabled, .ty-comparison-remove:disabled { opacity: .55; cursor: wait; }
.ty-comparison-tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(900px, calc(100% - 32px)); padding: 14px 18px; border: 1px solid #68686d; border-radius: 12px; background: #202023; color: #fff; box-shadow: 0 8px 32px #0009; z-index: 1200; box-sizing: border-box; }
.ty-comparison-tray-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ty-comparison-tray-summary { font-size: 14px; line-height: 1.5; }
.ty-comparison-tray-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ty-comparison-tray-items { display: flex; gap: 8px; margin-top: 10px; }
.ty-comparison-chip { min-width: 0; flex: 1; display: flex; gap: 6px; align-items: center; border: 1px solid #515156; padding: 7px 8px; border-radius: 7px; }
.ty-comparison-chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.ty-comparison-chip button { border: 0; background: transparent; color: #fff; font-size: 20px; padding: 0 4px; margin-left: auto; cursor: pointer; }
.ty-comparison-notice { position: fixed; top: 112px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); box-sizing: border-box; z-index: 10050; padding: 16px 42px 16px 18px; border: 1px solid #888; border-radius: 9px; background: #303034; box-shadow: 0 8px 24px #0008; color: #fff; font-size: 14px; line-height: 1.5; }
.ty-comparison-notice button { position: absolute; top: 8px; right: 8px; border: 0; color: #fff; background: transparent; font-size: 24px; cursor: pointer; }
/* Match the existing purchase, PC builder and category button finish. */
.ty-comparison-button, .ty-comparison-text-button, .ty-comparison-remove, .ty-compare-select {
    border: 1px solid #8b8b95; border-radius: 9px; color: #fff; text-decoration: none;
    background: linear-gradient(180deg, #303036 0%, #202024 100%);
    box-shadow: inset 0 1px 0 #ffffff12, 0 3px 8px #0003;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.ty-comparison-button-primary, .ty-compare-select[aria-pressed="true"] {
    background: linear-gradient(180deg, #bc1735 0%, #920f27 100%); border-color: #cf3b53;
    box-shadow: inset 0 1px 0 #ffffff20, 0 3px 8px #0003;
}
@media (hover: hover) {
    :is(.ty-comparison-button, .ty-comparison-text-button, .ty-comparison-remove, .ty-compare-select):not(:disabled):not([aria-disabled="true"]):hover {
        transform: translateY(-2px); filter: brightness(1.08); border-color: #d5d5de; color: #fff;
        box-shadow: inset 0 1px 0 #ffffff24, 0 6px 14px #0005;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ty-comparison-button, .ty-comparison-text-button, .ty-comparison-remove, .ty-compare-select { transition: none; }
    :is(.ty-comparison-button, .ty-comparison-text-button, .ty-comparison-remove, .ty-compare-select):not(:disabled):not([aria-disabled="true"]):hover { transform: none; }
}
body.has-comparison-tray { padding-bottom: 150px; }
.ty-comparison-page [hidden], [data-comparison-root] [hidden] { display: none !important; }
.ty-compare-select:focus-visible, .ty-comparison-page :is(a,button,input,[tabindex]):focus-visible, [data-comparison-root] :is(a,button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 599px) {
    .ty-comparison-page { margin-top: 20px; padding: 0 16px; }
    .ty-comparison-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .ty-comparison-options { align-items: flex-start; font-size: 13px; }
    .ty-comparison-table { font-size: 13px; }
    .ty-comparison-table tr > :first-child { width: 120px; padding: 12px; }
    .ty-comparison-scroll::before { content: 'Swipe sideways to see each product'; display: block; padding: 10px 12px; color: #bbb; font-size: 12px; }
    .ty-comparison-product-image { height: 110px; }
    .ty-comparison-tray { bottom: 80px; padding: 12px; }
    .ty-comparison-tray-top { gap: 8px; }
    .ty-comparison-tray-summary { font-size: 12px; }
    .ty-comparison-tray-actions { gap: 4px; }
    .ty-comparison-tray-items { display: none; }
    .ty-comparison-tray .ty-comparison-button { padding: 8px 12px; }
    .ty-comparison-tray .ty-comparison-text-button { font-size: 12px; }
    body.has-comparison-tray { padding-bottom: 180px; }
    .ty-compare-select { min-height: 42px; }
}

/* Compare forms the card's attached top section. */
.ty-comparison-card > .ty-compare-select {
    align-self: flex-start; width: fit-content; max-width: 100%; margin: 0;
    min-height: 34px; padding: 6px 10px; gap: 6px;
    border: 1px solid #888; border-bottom: 0;
    border-radius: 9px 9px 0 0;
    box-shadow: inset 0 1px 0 #ffffff12;
}
li.ty-comparison-card > a,
.ty-comparison-card.ty-product-block-min > a {
    border-top-left-radius: 0 !important;
}
li.ty-comparison-card:hover > a { transform: none; }
.ty-comparison-card:hover > .ty-compare-select { border-color: #fff; }
.ty-comparison-card > .ty-compare-select:not(:disabled):hover {
    transform: none; box-shadow: inset 0 1px 0 #ffffff20;
}
.ty-comparison-card > .ty-compare-select:focus-visible {
    outline-offset: -4px;
}

/* Follow the visible tab and card edges instead of outlining their outer container. */
#main-content li.ty-comparison-card.ty-product-block:hover {
    border-width: 1px; border-color: transparent;
}
#main-content .ty-comparison-card:hover > a,
#main-content .ty-comparison-card > a:hover {
    border-color: #ff0013;
}
#main-content .ty-comparison-card:hover > .ty-compare-select {
    border-color: #ff0013;
}
