:root{
  --mcx-blue:#1147c4;      /* Marvics brand blue: change here */
  --mcx-deep:#0a2f86;
  --mcx-soft:#eef3ff;
  --mcx-ink:#141c2e;
  --mcx-muted:#5d6780;
  --mcx-line:#e6eaf2;
  --mcx-bg:#f5f7fb;
  --mcx-green:#137a3f;
  --mcx-green-bg:#e7f6ec;
  --mcx-red:#b42318;
  --mcx-red-bg:#fdecec;
}

/* ---------- Compare buttons on shop cards / product pages ---------- */
.htcompare-btn{display:inline-flex!important;align-items:center;gap:.4em;padding:.45em .95em!important;border:1.5px solid var(--mcx-blue)!important;border-radius:999px!important;background:#fff!important;color:var(--mcx-blue)!important;font-size:.85rem!important;font-weight:600!important;line-height:1.2!important;text-decoration:none!important;box-shadow:none!important;transition:background .15s,color .15s}
.htcompare-btn:hover{background:var(--mcx-soft)!important}
.htcompare-btn.added,.htcompare-btn.htcompare-btn-added{background:var(--mcx-blue)!important;color:#fff!important}

/* ---------- Popup frame: sized to the screen, below the admin bar ---------- */
:root{--mcx-ab:0px}
.mcx-box{box-sizing:border-box!important;width:min(1180px,calc(100vw - 48px))!important;max-width:none!important;min-width:0!important;height:auto!important;max-height:calc(100vh - var(--mcx-ab) - 48px)!important;max-height:calc(100dvh - var(--mcx-ab) - 48px)!important;overflow-y:auto!important;overflow-x:hidden!important;border-radius:20px!important;box-shadow:0 30px 80px rgba(10,30,80,.3)!important;padding:0 24px 24px!important;background:#fff!important;overscroll-behavior:contain}
.mcx-box.mcx-box-pos{top:calc(50% + var(--mcx-ab) / 2)!important;left:50%!important;right:auto!important;bottom:auto!important;transform:none;translate:-50% -50%;margin:0!important}
.mcx-box.mcx-box-own{top:calc(50% + var(--mcx-ab) / 2)!important;left:50%!important;right:auto!important;bottom:auto!important;margin:0!important}
.mcx-box.mcx-box-flow{margin:calc(var(--mcx-ab) + 24px) auto 24px!important}
.mcx-pass{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
.mcx-native-close{display:none!important}
.mcx-top{position:sticky;top:0;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:0 -24px 1rem;padding:1rem 24px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--mcx-line)}
.mcx-top-title strong{display:block;font-size:1.3rem;line-height:1.2;color:var(--mcx-ink)}
.mcx-top-title small{display:block;margin-top:.15rem;color:var(--mcx-muted);font-size:.85rem}
.mcx-top-tools{display:flex;align-items:center;gap:1.1rem}
.mcx-close{display:inline-flex!important;align-items:center;gap:.45rem;height:40px;padding:0 1rem!important;border-radius:999px!important;border:1px solid var(--mcx-line)!important;background:#fff!important;color:var(--mcx-ink)!important;font:inherit;font-size:.9rem!important;font-weight:600!important;cursor:pointer;box-shadow:none!important;line-height:1!important}
.mcx-close:hover{border-color:var(--mcx-ink)!important}
.mcx-close:focus-visible{outline:2px solid var(--mcx-blue);outline-offset:2px}
.mcx-close svg{width:16px;height:16px}
.mcx-shell{width:100%;color:var(--mcx-ink)}
.mcx-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--mcx-line);border-radius:18px;background:#fff}

/* ---------- Table / grid base ---------- */
.mcx-cmp{width:100%!important;max-width:none!important;min-width:calc(190px + var(--mcx-n,2) * 250px);margin:0!important;border:0!important;background:#fff!important}
table.mcx-cmp{table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
.mcx-cmp[data-mcx-kind="grid"]{display:block!important}
.mcx-cmp[data-mcx-kind="grid"] .mcx-r{display:grid!important;grid-template-columns:190px repeat(var(--mcx-n,2),minmax(220px,1fr))!important;width:100%!important}
.mcx-cmp .mcx-c{padding:.85rem 1.1rem!important;border:0!important;border-bottom:1px solid var(--mcx-line)!important;text-align:left!important;vertical-align:top!important;background:#fff!important;color:var(--mcx-ink)!important;font-size:.93rem!important;line-height:1.5!important;width:auto!important;float:none!important;min-width:0}
.mcx-cmp .mcx-c + .mcx-c:not(.mcx-lbl){border-left:1px solid var(--mcx-line)!important}
.mcx-cmp .mcx-lbl{position:sticky;left:0;z-index:2;background:var(--mcx-bg)!important;color:var(--mcx-muted)!important;font-weight:600!important;font-size:.86rem!important;text-transform:none!important;letter-spacing:0!important;border-right:1px solid var(--mcx-line)!important}
.mcx-cmp .mcx-lbl + .mcx-c{border-left:0!important}
table.mcx-cmp .mcx-lbl{width:190px!important}
.mcx-cmp .mcx-merged,.mcx-cmp .mcx-desc-folded{display:none!important}

/* ---------- Product cards (top row) ---------- */
.mcx-cmp .mcx-row-head .mcx-c{padding:1.1rem!important;vertical-align:top!important;border-bottom:2px solid var(--mcx-line)!important}
.mcx-cmp .mcx-row-head .mcx-c:not(.mcx-lbl){position:relative}
.mcx-tile{position:relative;display:flex;align-items:center;justify-content:center;height:200px;width:100%;background:var(--mcx-bg);border-radius:16px;padding:1.1rem;box-sizing:border-box;overflow:hidden}
.mcx-tile a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.mcx-tile img{max-height:100%!important;max-width:100%!important;width:auto!important;height:auto!important;object-fit:contain;mix-blend-mode:multiply;margin:0!important;transition:transform .25s ease}
.mcx-row-head .mcx-c:hover .mcx-tile img{transform:scale(1.04)}
.mcx-cmp .mcx-row-head{--mcx-pad:1.1rem}
.mcx-cmp .mcx-x{position:absolute!important;top:calc(var(--mcx-pad) + 10px)!important;right:calc(var(--mcx-pad) + 10px)!important;left:auto!important;bottom:auto!important;z-index:4;width:30px!important;height:30px!important;min-width:0!important;border-radius:50%!important;border:1px solid rgba(20,28,46,.08)!important;background:rgba(255,255,255,.92)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex!important;align-items:center;justify-content:center;color:transparent!important;font-size:0!important;line-height:0!important;text-decoration:none!important;text-indent:0!important;padding:0!important;margin:0!important;box-shadow:0 1px 2px rgba(10,30,80,.06),0 4px 12px rgba(10,30,80,.08)!important;cursor:pointer;opacity:.85;transition:opacity .15s,background-color .15s,border-color .15s,transform .15s}
.mcx-cmp .mcx-x > *{display:none!important}
.mcx-cmp .mcx-x::before{content:"";width:12px;height:12px;background:var(--mcx-muted);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;transition:background-color .15s}
.mcx-cmp .mcx-x::after{content:"Remove";position:absolute;top:50%;right:calc(100% + 8px);transform:translateY(-50%);padding:.3em .6em;border-radius:6px;background:var(--mcx-ink);color:#fff;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
.mcx-row-head .mcx-c:hover .mcx-x{opacity:1}
.mcx-cmp .mcx-x:hover{background:var(--mcx-red-bg)!important;border-color:rgba(180,35,24,.25)!important;transform:scale(1.06)}
.mcx-cmp .mcx-x:hover::before{background:var(--mcx-red)}
.mcx-cmp .mcx-x:hover::after,.mcx-cmp .mcx-x:focus-visible::after{opacity:1}
.mcx-cmp .mcx-x:focus-visible{outline:2px solid var(--mcx-blue)!important;outline-offset:2px;opacity:1}
@media (hover:none){.mcx-cmp .mcx-x{opacity:1}.mcx-cmp .mcx-x::after{display:none}}
.mcx-flags{position:absolute;top:10px;left:10px;z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.mcx-flag{background:var(--mcx-green-bg);color:var(--mcx-green);font-size:.74rem;font-weight:700;padding:.3em .65em;border-radius:7px;line-height:1.2}
.mcx-flag.is-pick{background:var(--mcx-blue);color:#fff}
.mcx-row-head .mcx-c.is-pick .mcx-tile{box-shadow:inset 0 0 0 2px var(--mcx-blue)}

/* ---------- Recommendation panel ---------- */
.mcx-verdict{display:flex;gap:1rem;align-items:flex-start;margin:0 0 1.1rem;padding:1.1rem 1.25rem;border:1px solid #cfdcff;border-radius:16px;background:linear-gradient(180deg,#f3f7ff 0%,#fff 100%)}
.mcx-v-icon{flex:none;width:44px;height:44px;border-radius:12px;background:var(--mcx-blue);color:#fff;display:flex;align-items:center;justify-content:center}
.mcx-v-icon svg{width:22px;height:22px}
.mcx-v-body{min-width:0;flex:1}
.mcx-v-kicker{display:block;font-size:.8rem;font-weight:700;color:var(--mcx-blue);margin-bottom:.15rem}
.mcx-v-title{display:block;font-size:1.12rem;line-height:1.3;color:var(--mcx-ink);font-weight:700}
.mcx-v-text{margin:.35rem 0 0!important;color:var(--mcx-ink);font-size:.92rem;line-height:1.5}
.mcx-v-reasons{display:flex;flex-wrap:wrap;gap:.45rem;margin:.7rem 0 0!important;padding:0!important;list-style:none!important}
.mcx-v-reasons li{display:inline-flex;align-items:center;gap:.35rem;margin:0!important;padding:.35em .75em;border-radius:999px;background:#fff;border:1px solid #d6e1fb;color:var(--mcx-ink);font-size:.84rem;font-weight:600;line-height:1.3}
.mcx-v-reasons li::before{content:"";width:14px;height:14px;flex:none;background:var(--mcx-blue);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.mcx-v-alt{margin:.75rem 0 0!important;font-size:.9rem;color:var(--mcx-ink);line-height:1.5}
.mcx-v-alt b{font-weight:700}
.mcx-v-list{margin:.6rem 0 0!important;padding:0!important;list-style:none!important;display:grid;gap:.4rem}
.mcx-v-list li{margin:0!important;font-size:.9rem;line-height:1.45;color:var(--mcx-ink)}
.mcx-v-list b{font-weight:700}
.mcx-v-note{margin:.7rem 0 0!important;font-size:.78rem;color:var(--mcx-muted)}
.mcx-info{display:flex;flex-direction:column;gap:.45rem;margin-top:.95rem}
.mcx-info-title,.mcx-info-title a{color:var(--mcx-ink)!important;font-weight:600!important;font-size:.98rem!important;line-height:1.35!important;text-decoration:none!important;text-align:left!important}
.mcx-info-title a:hover{color:var(--mcx-blue)!important}
.mcx-info,.mcx-info *{text-align:left!important}
.mcx-info-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.mcx-info-title *{margin:0!important}
.mcx-info-price,.mcx-info-price .amount{color:var(--mcx-blue)!important;font-weight:800!important;font-size:1.3rem!important;line-height:1.2!important;text-align:left!important}
.mcx-info-price del,.mcx-info-price del .amount{color:var(--mcx-muted)!important;font-weight:400!important;font-size:.85rem!important}
.mcx-info-price ins{text-decoration:none!important}
.mcx-info-cart{margin-top:.35rem}
html body .mcx-cmp .mcx-info-cart .button,html body .mcx-cmp .mcx-info-cart a.button,html body .mcx-cmp .mcx-info-cart a:not(.added_to_cart),html body .mcx-cmp .mcx-info-cart button{background-color:var(--mcx-blue)!important;background-image:none!important;display:block!important;width:100%!important;max-width:320px!important;text-align:center!important;background:var(--mcx-blue)!important;color:#fff!important;border:0!important;border-radius:12px!important;padding:.8em 1em!important;font-weight:700!important;font-size:.92rem!important;box-shadow:0 6px 16px rgba(17,71,196,.22)!important;text-decoration:none!important;transition:background .15s,transform .15s}
html body .mcx-cmp .mcx-info-cart .button:hover,html body .mcx-cmp .mcx-info-cart a:not(.added_to_cart):hover{background:var(--mcx-deep)!important;background-color:var(--mcx-deep)!important;transform:translateY(-1px)}
html body .mcx-cmp .mcx-info-cart .added_to_cart{display:inline-block!important;width:auto!important;background:none!important;box-shadow:none!important;color:var(--mcx-blue)!important;margin-top:.45rem!important;padding:0!important;font-weight:600!important}
.mcx-info-cart .button.loading{opacity:.7}

/* Corner cell: title + switch */
.mcx-corner{display:flex;flex-direction:column;gap:.35rem;height:100%}
.mcx-corner strong{font-size:1.2rem;line-height:1.2;color:var(--mcx-ink)}
.mcx-corner small{color:var(--mcx-muted);font-size:.85rem;font-weight:500}
.mcx-switch{display:flex!important;align-items:center;gap:.55rem;margin:0!important;white-space:nowrap;cursor:pointer;font-size:.84rem;font-weight:600;color:var(--mcx-ink);line-height:1.3}
.mcx-switch input{position:absolute;opacity:0;width:1px;height:1px}
.mcx-switch span{width:40px;height:22px;border-radius:999px;background:#cbd3e4;position:relative;flex:none;transition:background .2s}
.mcx-switch span::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.mcx-switch input:checked+span{background:var(--mcx-blue)}
.mcx-switch input:checked+span::after{transform:translateX(18px)}
.mcx-switch input:focus-visible+span{outline:2px solid var(--mcx-blue);outline-offset:2px}
.mcx-legend{display:flex;align-items:center;gap:.4rem;margin-top:.6rem;font-size:.78rem;color:var(--mcx-muted)}
.mcx-legend i{width:8px;height:8px;border-radius:50%;background:var(--mcx-blue);display:inline-block}

/* ---------- Spec rows ---------- */
.mcx-cmp .mcx-sec .mcx-c{background:var(--mcx-soft)!important;color:var(--mcx-deep)!important;font-weight:700!important;font-size:.95rem!important;padding:.65rem 1.1rem!important;border-left:0!important}
.mcx-cmp[data-mcx-kind="grid"] .mcx-sec .mcx-c{grid-column:1/-1}
.mcx-cmp .mcx-sec .mcx-c span{position:sticky;left:1.1rem;display:inline-block}
.mcx-cmp .mcx-spec.mcx-odd .mcx-c:not(.mcx-lbl){background:#fcfdff!important}
.mcx-cmp .mcx-r:not(.mcx-row-head):not(.mcx-sec):hover .mcx-c:not(.mcx-lbl){background:#f6f9ff!important}
.mcx-cmp .mcx-best{color:var(--mcx-blue)!important;font-weight:700!important}
.mcx-cmp .mcx-best::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--mcx-blue);margin-right:.5em;vertical-align:.12em}
.mcx-cmp .mcx-dash{color:#b3bbcc}
.mcx-only-diff .mcx-cmp .mcx-same{display:none!important}
.mcx-cmp .mcx-in{color:var(--mcx-green)!important;font-weight:600!important}
.mcx-cmp .mcx-out{color:var(--mcx-red)!important;font-weight:600!important}

/* Description fallback (no "Label: value" lines found) */
.mcx-cmp .mcx-row-desc .mcx-c:not(.mcx-lbl) *{text-align:left!important}
.mcx-cmp .mcx-row-desc h1,.mcx-cmp .mcx-row-desc h2,.mcx-cmp .mcx-row-desc h3,.mcx-cmp .mcx-row-desc h4{font-size:1rem!important;margin:0 0 .5rem!important}
.mcx-cmp .mcx-row-desc ul{margin:0!important;padding-left:1.1rem!important}

@media (max-height:820px) and (min-width:701px){
  .mcx-tile{height:150px}
  .mcx-cmp .mcx-row-head .mcx-c{padding:.85rem!important}
  .mcx-cmp .mcx-row-head{--mcx-pad:.85rem}
  .mcx-info{margin-top:.7rem;gap:.35rem}
  .mcx-top{padding:.75rem 24px}
}
@media (max-width:700px){
  .mcx-verdict{padding:.9rem;gap:.75rem}
  .mcx-v-icon{width:36px;height:36px;border-radius:10px}
  .mcx-v-title{font-size:1rem}
  .mcx-v-reasons li{font-size:.78rem}
  .mcx-box{width:100vw!important;max-height:calc(100vh - var(--mcx-ab))!important;max-height:calc(100dvh - var(--mcx-ab))!important;border-radius:0!important;padding:0 12px 16px!important}
  .mcx-box.mcx-box-pos,.mcx-box.mcx-box-own{top:calc(50% + var(--mcx-ab) / 2)!important}
  .mcx-box.mcx-box-flow{margin:var(--mcx-ab) 0 0!important}
  .mcx-top{margin:0 -12px .75rem;padding:.7rem 12px}
  .mcx-top-title strong{font-size:1.05rem}
  .mcx-top-title small{display:none}
  .mcx-top-tools{gap:.6rem;width:100%;justify-content:space-between}
  .mcx-close{height:36px;padding:0 .8rem!important}
  .mcx-tile{height:120px}
  .mcx-cmp{min-width:calc(118px + var(--mcx-n,2) * 185px)}
  .mcx-cmp[data-mcx-kind="grid"] .mcx-r{grid-template-columns:118px repeat(var(--mcx-n,2),minmax(170px,1fr))!important}
  table.mcx-cmp .mcx-lbl{width:118px!important}
  .mcx-cmp .mcx-lbl{font-size:.78rem!important}
  .mcx-cmp .mcx-c{padding:.65rem .75rem!important;font-size:.86rem!important}
  .mcx-cmp .mcx-row-head .mcx-c{padding:.75rem!important}
  .mcx-cmp .mcx-row-head{--mcx-pad:.75rem}
  .mcx-cmp .mcx-x{width:28px!important;height:28px!important}
  .mcx-tile{max-height:150px;padding:.7rem;border-radius:12px}
  .mcx-info-title,.mcx-info-title a{font-size:.88rem!important}
  .mcx-info-price,.mcx-info-price .amount{font-size:1.08rem!important}
  .mcx-corner strong{font-size:1rem}
  .mcx-switch{font-size:.76rem}
  .mcx-legend{display:none}
}
@media (prefers-reduced-motion:reduce){
  .mcx-tile img,.mcx-info-cart .button,.mcx-switch span,.mcx-switch span::after,.htcompare-btn{transition:none!important}
}
