/* 2026-11 Toestelvergelijker (zakelijk, 2call, phoneshop; per site alleen de kleuren anders) */
:root {
    --cmp-primary: #2f3bb0;
    --cmp-primary-dark: #232d8f;
    --cmp-dark: #1c2470;
    --cmp-ink: #2a3160;
    --cmp-muted: #6b7090;
    --cmp-tint: #eceefb;
    --cmp-soft: #f5f6fd;
    --cmp-line: #dfe2f2;
    --cmp-accent: #f7931e;
    --cmp-shadow: rgba(28, 36, 112, .28);
}

/* ---------- Vinkje op tegels en in de lijst ---------- */
.ps-cmp-check { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; color: var(--cmp-muted); cursor: pointer; user-select: none; position: relative; z-index: 3; }
.ps-cmp-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--cmp-primary); cursor: pointer; }
.ps-cmp-check:hover, .ps-cmp-check.is-on { color: var(--cmp-primary-dark); }
.ps-cmp-check.is-on span { font-weight: 600; }
.ps-cmp-check.ps-cmp-list { margin-top: 2px; font-size: 12px; }

/* ---------- Knop op de productpagina ---------- */
.ps-cmp-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 14px; border: 1px solid var(--cmp-line); border-radius: 8px; background: #fff; color: var(--cmp-ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ps-cmp-btn:hover { border-color: var(--cmp-primary); color: var(--cmp-primary-dark); }
.ps-cmp-btn.is-on { background: var(--cmp-tint); border-color: var(--cmp-primary); color: var(--cmp-primary-dark); }
.ps-cmp-btn:focus-visible { outline: 3px solid var(--cmp-dark); outline-offset: 2px; }

/* ---------- Blok rechtsonder ---------- */
.ps-cmp-dock { position: fixed; right: 20px; bottom: 0; z-index: 1040; width: 340px; max-width: calc(100vw - 24px); background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 -2px 24px -6px var(--cmp-shadow), 0 0 0 1px var(--cmp-line); font-size: 14px; color: var(--cmp-ink); }
.ps-cmp-dock[hidden] { display: none; }
.ps-cmp-dock-head { display: flex; align-items: center; background: var(--cmp-primary); color: #fff; border-radius: 12px 12px 0 0; }
.ps-cmp-dock-toggle { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 11px 14px; border: 0; background: none; color: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.ps-cmp-chev { width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; flex: none; }
.ps-cmp-dock.is-closed .ps-cmp-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.ps-cmp-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--cmp-accent); color: #fff; font-size: 12px; font-weight: 700; }
.ps-cmp-dock-clear { flex: none; margin-right: 8px; padding: 6px 8px; border: 0; background: none; color: #fff; font-size: 13px; text-decoration: underline; cursor: pointer; }
.ps-cmp-dock-toggle:focus-visible, .ps-cmp-dock-clear:focus-visible { outline: 2px solid #fff; outline-offset: -3px; border-radius: 8px; }
.ps-cmp-dock-body { padding: 4px 14px 14px; max-height: min(70vh, 460px); overflow-y: auto; }
.ps-cmp-dock-body[hidden] { display: none; }
.ps-cmp-dock-list { list-style: none; margin: 0; padding: 0; }
.ps-cmp-dock-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--cmp-line); }
.ps-cmp-dock-photo { flex: none; display: flex; width: 44px; height: 56px; align-items: center; justify-content: center; }
.ps-cmp-dock-photo img { max-width: 44px; max-height: 56px; object-fit: contain; }
.ps-cmp-dock-info { flex: 1; min-width: 0; }
.ps-cmp-dock-name { display: block; color: var(--cmp-primary-dark); font-weight: 600; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
.ps-cmp-dock-name:hover { text-decoration: underline; }
.ps-cmp-dock-price { margin-top: 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-cmp-dock-remove { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--cmp-primary); font-size: 22px; line-height: 1; cursor: pointer; }
.ps-cmp-dock-remove:hover { background: var(--cmp-tint); }
.ps-cmp-dock-slot { margin: 8px 0 0; padding: 10px; border: 1px dashed var(--cmp-line); border-radius: 8px; color: var(--cmp-muted); font-size: 13px; text-align: center; }
.ps-cmp-dock-msg { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: 13px; }
.ps-cmp-dock-msg[hidden] { display: none; }
.ps-cmp-dock-go { display: block; margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: var(--cmp-accent); color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.ps-cmp-dock-go:hover { filter: brightness(1.05); color: #fff; }
.ps-cmp-dock-go.is-disabled { background: var(--cmp-soft); color: var(--cmp-muted); cursor: default; filter: none; }
/* "Terug naar boven" op de productpagina schuift boven het blok */
body.ps-cmp-has .product-to-top { bottom: 72px; }
@media (max-width: 575.98px) { .ps-cmp-dock { right: 12px; left: 12px; width: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .ps-cmp-chev { transition: none; } }

/* Melding (bijv. maximaal 3 toestellen) */
.ps-cmp-toast { position: fixed; left: 50%; bottom: 90px; z-index: 1050; max-width: min(92vw, 420px); padding: 10px 16px; border-radius: 10px; background: var(--cmp-dark); color: #fff; font-size: 14px; box-shadow: 0 8px 24px -8px var(--cmp-shadow); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.ps-cmp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Vergelijkpagina ---------- */
.ps-cmp-page { padding: 12px 0 32px; color: var(--cmp-ink); }
.ps-cmp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ps-cmp-top h1 { margin: 0; font-size: 26px; color: var(--cmp-dark); }
.ps-cmp-link { border: 0; background: none; padding: 0; color: var(--cmp-primary-dark); text-decoration: underline; cursor: pointer; }
.ps-cmp-hint { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--cmp-tint); }
.ps-cmp-emptystate { padding: 28px; border: 1px solid var(--cmp-line); border-radius: 12px; background: var(--cmp-soft); }
.ps-cmp-emptylinks { margin: 16px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.ps-cmp-scroll { overflow-x: auto; border: 1px solid var(--cmp-line); border-radius: 12px; background: #fff; }
.ps-cmp-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.ps-cmp-table th, .ps-cmp-table td { padding: 9px 12px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--cmp-line); overflow-wrap: anywhere; }
.ps-cmp-table thead th { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 2px solid var(--cmp-line); vertical-align: bottom; }
.ps-cmp-corner { width: 25%; vertical-align: bottom !important; }
.ps-cmp-diff { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.ps-cmp-diff input { width: 18px; height: 18px; margin: 0; accent-color: var(--cmp-primary); }
.ps-cmp-prod { position: relative; text-align: center !important; font-weight: 400; }
.ps-cmp-photo { display: flex; align-items: center; justify-content: center; height: 160px; margin-bottom: 8px; }
.ps-cmp-photo img { max-width: 100%; max-height: 160px; object-fit: contain; }
.ps-cmp-name { display: block; min-height: 2.6em; color: var(--cmp-primary-dark); font-weight: 700; line-height: 1.3; text-decoration: none; }
.ps-cmp-name:hover { text-decoration: underline; }
.ps-cmp-price { margin-top: 6px; font-size: 20px; font-weight: 800; color: var(--cmp-dark); font-variant-numeric: tabular-nums; }
.ps-cmp-tax, .ps-cmp-stock { font-size: 12px; color: var(--cmp-muted); }
.ps-cmp-stock { margin-top: 2px; }
.ps-cmp-cart { margin-top: 10px; }
.ps-cmp-remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--cmp-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.ps-cmp-remove:hover { background: var(--cmp-tint); color: var(--cmp-primary-dark); }
.ps-cmp-slot a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 160px; border: 2px dashed var(--cmp-line); border-radius: 12px; color: var(--cmp-muted); font-weight: 600; text-decoration: none; }
.ps-cmp-slot a span { font-size: 32px; line-height: 1; color: var(--cmp-primary); }
.ps-cmp-slot a:hover { border-color: var(--cmp-primary); color: var(--cmp-primary-dark); }
.ps-cmp-sectitle th { padding: 0 !important; background: var(--cmp-soft); border-bottom: 1px solid var(--cmp-line); }
.ps-cmp-sectitle button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: none; color: var(--cmp-primary-dark); font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; }
.ps-cmp-sectitle button::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.ps-cmp-section.is-collapsed .ps-cmp-sectitle button::before { transform: rotate(-45deg); }
.ps-cmp-section.is-collapsed .ps-cmp-row { display: none; }
.ps-cmp-row th { font-weight: 600; color: var(--cmp-ink); background: #fff; }
.ps-cmp-row td { color: var(--cmp-ink); }
.ps-cmp-row.is-diff td { background: #fffaf2; }
.ps-cmp-only-diff .ps-cmp-row:not(.is-diff) { display: none; }
.ps-cmp-none { color: var(--cmp-muted); }
.ps-cmp-slotcell { background: #fcfdff; }
.ps-cmp-note { margin: 12px 2px 0; font-size: 13px; color: var(--cmp-muted); }
/* Mobiel: eerste kolom blijft staan bij horizontaal scrollen */
@media (max-width: 767.98px) {
    .ps-cmp-top h1 { font-size: 22px; }
    .ps-cmp-table { min-width: 560px; font-size: 13px; }
    .ps-cmp-corner, .ps-cmp-row th { position: sticky; left: 0; z-index: 1; }
    .ps-cmp-corner { z-index: 3; width: 130px; }
    .ps-cmp-photo, .ps-cmp-slot a { height: 110px; }
    .ps-cmp-photo img { max-height: 110px; }
    .ps-cmp-price { font-size: 17px; }
}
