:root{--shp-cc-blue:#2563eb;--shp-cc-blue-hover:#1d4ed8;--shp-cc-bottom:20px;--shp-cc-reopen-bottom:16px;}
#shp-cc-root{position:fixed;inset:auto 0 0 0;z-index:2147483000;font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;}
#shp-cc-root[hidden]{display:none;}
html.shp-cc-locked,html.shp-cc-locked body{overflow:hidden!important;}
.shp-cc-overlay{position:fixed;inset:0;background:rgba(15,23,42,.45);opacity:0;pointer-events:none;transition:opacity .2s ease;}
.shp-cc-overlay.is-open{opacity:1;pointer-events:auto;}
.shp-cc-overlay.is-blocking{background:rgba(15,23,42,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
/* Första valet: stor, centrerad ruta som täcker större delen av skärmen. */
.shp-cc-banner{position:fixed;left:50%;top:50%;transform:translate(-50%,-46%);width:min(720px,calc(100vw - 48px));
  max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;
  background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:24px;box-shadow:0 32px 80px rgba(15,23,42,.38);
  padding:44px 48px 36px;opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;}
.shp-cc-banner.is-open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%);}
.shp-cc-badge{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 0 20px;border-radius:18px;
  background:#eff6ff;color:var(--shp-cc-blue);}
.shp-cc-badge svg{width:34px;height:34px;}
#shp-cc-root .shp-cc-title,#shp-cc-root .shp-cc-panel h2{color:#0f172a;}
#shp-cc-root .shp-cc-title{font-size:28px;font-weight:800;margin:0 0 12px;line-height:1.2;letter-spacing:-.01em;max-width:none;}
#shp-cc-root .shp-cc-text{font-size:16px;line-height:1.6;color:#334155;margin:0 0 24px;max-width:58ch;}
.shp-cc-text a,.shp-cc-foot a{color:var(--shp-cc-blue);font-weight:600;text-decoration:none;}
.shp-cc-text a:hover,.shp-cc-foot a:hover{text-decoration:underline;}
.shp-cc-list{list-style:none;margin:0 0 28px;padding:0;border:1px solid #e2e8f0;border-radius:14px;}
.shp-cc-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;margin:0;}
.shp-cc-list li+li{border-top:1px solid #e2e8f0;}
.shp-cc-list-name{font-size:15px;font-weight:700;color:#0f172a;}
.shp-cc-list-desc{display:block;font-size:13px;font-weight:400;color:#64748b;margin-top:2px;line-height:1.45;}
.shp-cc-tag{flex:0 0 auto;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:#f1f5f9;color:#475569;white-space:nowrap;}
.shp-cc-tag--on{background:#eff6ff;color:var(--shp-cc-blue);}
.shp-cc-banner .shp-cc-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.shp-cc-banner .shp-cc-btn{min-width:0;font-size:16px;padding:16px 20px;border-radius:12px;}
.shp-cc-banner .shp-cc-btn--ghost{grid-column:1 / -1;border:0;background:none;padding:8px;font-size:14px;color:var(--shp-cc-blue);
  text-decoration:underline;text-underline-offset:3px;}
.shp-cc-banner .shp-cc-btn--ghost:hover{background:none;color:var(--shp-cc-blue-hover);}
.shp-cc-foot{font-size:13px;color:#64748b;margin:10px 0 0;text-align:center;line-height:1.5;}
.shp-cc-actions{display:flex;flex-wrap:wrap;gap:10px;}
.shp-cc-btn{flex:1 1 auto;min-width:140px;font:inherit;font-size:13.5px;font-weight:700;padding:11px 16px;border-radius:10px;
  cursor:pointer;border:1px solid transparent;transition:background .15s ease,border-color .15s ease,color .15s ease;}
.shp-cc-btn--primary{background:var(--shp-cc-blue);color:#fff;}
.shp-cc-btn--primary:hover{background:var(--shp-cc-blue-hover);}
.shp-cc-btn--secondary{background:#f1f5f9;color:#0f172a;border-color:#e2e8f0;}
.shp-cc-btn--secondary:hover{background:#e2e8f0;}
.shp-cc-btn--ghost{background:transparent;color:#475569;border-color:#cbd5e1;}
.shp-cc-btn--ghost:hover{background:#f8fafc;color:#0f172a;}
.shp-cc-btn:focus-visible{outline:2px solid var(--shp-cc-blue);outline-offset:2px;}
.shp-cc-panel{position:fixed;left:50%;top:50%;transform:translate(-50%,-48%);width:min(560px,calc(100vw - 32px));
  max-height:calc(100vh - 48px);overflow:auto;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:18px;
  box-shadow:0 24px 60px rgba(15,23,42,.28);padding:24px;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;}
.shp-cc-panel.is-open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%);}
.shp-cc-panel h2{font-size:18px;font-weight:800;margin:0 0 6px;}
.shp-cc-panel .shp-cc-lead{font-size:13px;color:#475569;margin:0 0 18px;line-height:1.5;}
.shp-cc-cat{border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;margin-bottom:12px;}
.shp-cc-cat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.shp-cc-cat-name{font-size:14px;font-weight:700;}
.shp-cc-cat-desc{font-size:12.5px;color:#64748b;line-height:1.5;margin:8px 0 0;}
.shp-cc-switch{position:relative;flex:0 0 auto;width:44px;height:26px;}
.shp-cc-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;}
.shp-cc-slider{position:absolute;inset:0;background:#cbd5e1;border-radius:999px;transition:background .15s ease;}
.shp-cc-slider::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;background:#fff;border-radius:50%;
  transition:transform .15s ease;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.shp-cc-switch input:checked+.shp-cc-slider{background:var(--shp-cc-blue);}
.shp-cc-switch input:checked+.shp-cc-slider::before{transform:translateX(18px);}
.shp-cc-switch input:disabled+.shp-cc-slider{background:var(--shp-cc-blue);opacity:.55;cursor:not-allowed;}
.shp-cc-switch input:focus-visible+.shp-cc-slider{outline:2px solid var(--shp-cc-blue);outline-offset:2px;}
.shp-cc-panel-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
#shp-cc-reopen{position:fixed;left:16px;bottom:var(--shp-cc-reopen-bottom);z-index:2147482000;display:none;align-items:center;justify-content:center;
  width:44px;height:44px;background:#fff;color:#334155;border:1px solid #e2e8f0;border-radius:999px;padding:0;font:inherit;font-size:20px;
  font-weight:600;cursor:pointer;box-shadow:0 6px 18px rgba(15,23,42,.14);transition:bottom .2s ease;}
#shp-cc-reopen:hover{color:#0f172a;border-color:#cbd5e1;}
#shp-cc-reopen.is-visible{display:inline-flex;}
body.landing-page-modern #shp-cc-reopen{left:auto;right:16px;}
@media (max-width:640px){
  /* Mobil: ark underifrån som täcker större delen av skärmen. */
  #shp-cc-root .shp-cc-banner{left:0;right:0;top:auto;bottom:0;width:100%;transform:translateY(24px);
    min-height:min(78vh,640px);max-height:92vh;max-height:92dvh;border-radius:24px 24px 0 0;border-width:1px 0 0;
    padding:28px 20px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;}
  #shp-cc-root .shp-cc-banner.is-open{transform:translateY(0);}
  #shp-cc-root .shp-cc-badge{width:52px;height:52px;border-radius:15px;margin-bottom:16px;}
  #shp-cc-root .shp-cc-badge svg{width:28px;height:28px;}
  #shp-cc-root .shp-cc-title{font-size:23px;margin:0 0 10px;}
  #shp-cc-root .shp-cc-text{font-size:15px;line-height:1.55;margin:0 0 18px;}
  #shp-cc-root .shp-cc-list{margin-bottom:20px;}
  #shp-cc-root .shp-cc-list li{padding:12px 14px;}
  #shp-cc-root .shp-cc-list-desc{display:none;}
  #shp-cc-root .shp-cc-banner .shp-cc-actions{grid-template-columns:1fr;gap:10px;margin-top:auto;}
  #shp-cc-root .shp-cc-banner .shp-cc-btn{padding:15px 16px;font-size:16px;}
  #shp-cc-root .shp-cc-banner .shp-cc-btn--ghost{padding:6px;font-size:14px;}
}
@media (prefers-color-scheme:dark){
  .shp-cc-banner,.shp-cc-panel{background:#0f172a;color:#e2e8f0;border-color:#1e293b;}
  #shp-cc-root .shp-cc-title,#shp-cc-root .shp-cc-panel h2{color:#f1f5f9;}
  #shp-cc-root .shp-cc-text{color:#cbd5e1;}
  #shp-cc-root .shp-cc-panel .shp-cc-lead,#shp-cc-root .shp-cc-cat-desc{color:#94a3b8;}
  .shp-cc-btn--secondary{background:#1e293b;color:#e2e8f0;border-color:#334155;}
  .shp-cc-btn--secondary:hover{background:#334155;}
  .shp-cc-btn--ghost{color:#cbd5e1;border-color:#334155;}
  .shp-cc-btn--ghost:hover{background:#1e293b;color:#fff;}
  .shp-cc-cat,.shp-cc-list,.shp-cc-list li+li{border-color:#1e293b;}
  #shp-cc-root .shp-cc-list-name{color:#f1f5f9;}
  .shp-cc-list-desc,.shp-cc-foot{color:#94a3b8;}
  .shp-cc-badge,.shp-cc-tag--on{background:rgba(37,99,235,.18);color:#93c5fd;}
  .shp-cc-tag{background:#1e293b;color:#cbd5e1;}
  .shp-cc-slider{background:#475569;}
  #shp-cc-reopen{background:#0f172a;color:#cbd5e1;border-color:#1e293b;}
  #shp-cc-reopen:hover{color:#fff;border-color:#334155;}
}
@media (prefers-reduced-motion:reduce){#shp-cc-root *{transition:none!important;}}
