/* StayGood Omdömen: betygsrad och sektion på produktsidan. Färger enligt kravspec version 2. */
:root{--sg-omd-star:#B45309;--sg-omd-text-secondary:#4B5563;--sg-omd-bar:#1F2937;--sg-omd-track:#E5E7EB;--sg-omd-badge-fg:#166534;--sg-omd-badge-bg:#F0FDF4;--sg-omd-surface:#F9FAFB;--sg-omd-error:#B91C1C;--sg-omd-focus:#1D4ED8}
.sg-omd-stj{position:relative;display:inline-flex;flex:none;height:var(--sg-omd-s);line-height:0;vertical-align:middle}
.sg-omd-stj__tom,.sg-omd-stj__full{display:flex;gap:2px;white-space:nowrap}
.sg-omd-stj__full{position:absolute;top:0;left:0;overflow:hidden}
.sg-omd-stj svg{flex:none}
.sg-omd-rad{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:8px 0 0;line-height:24px;white-space:nowrap;color:inherit;text-decoration:underline;text-underline-offset:3px}
.sg-omd{margin:48px 0 0;scroll-margin-top:calc(var(--sg-header-h,72px) + 16px);overflow-wrap:anywhere}
.sg-omd__h2{margin:0 0 24px}
.sg-omd__grid{display:grid;gap:24px}
.sg-omd__snitt{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.sg-omd__siffra{font-size:2rem;font-weight:700;line-height:1}
.sg-omd__antal{color:var(--sg-omd-text-secondary)}
.sg-omd__staplar{list-style:none;margin:16px 0 0;padding:0}
.sg-omd__stapel{display:grid;grid-template-columns:32px 1fr minmax(40px,auto);align-items:center;gap:12px;min-height:44px;color:inherit;text-decoration:underline;text-underline-offset:3px;border:2px solid transparent;border-radius:6px;padding:0 6px}
.sg-omd__stapel.is-tom{color:var(--sg-omd-text-secondary);text-decoration:none}
.sg-omd__stapel.is-vald{border-color:var(--sg-omd-bar)}
.sg-omd__st-spar{height:8px;background:var(--sg-omd-track);border-radius:4px;overflow:hidden}
.sg-omd__st-fyll{display:block;height:100%;background:var(--sg-omd-bar)}
.sg-omd__st-n{text-align:right}
.sg-omd-info{background:var(--sg-omd-surface);border:1px solid var(--sg-omd-track);padding:16px;font-size:16px;line-height:1.5;color:#1F2937}
.sg-omd-info p{margin:0}.sg-omd-info p+p{margin-top:8px}
.sg-omd-info a,.sg-omd a{text-decoration:underline}
.sg-omd-bricka{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:4px;font-size:14px;line-height:1.4;color:var(--sg-omd-badge-fg);background:var(--sg-omd-badge-bg);white-space:nowrap}
.sg-omd__val{display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0 0}
.sg-omd__filter,.sg-omd__sort{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sg-omd__chip,.sg-omd__sortl{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 14px;border:1px solid var(--sg-omd-bar);border-radius:999px;color:inherit}
.sg-omd__chip.is-vald{background:var(--sg-omd-bar);color:#fff}
.sg-omd__chip.is-vald::before,.sg-omd__sortl.is-vald::before{content:"✓";margin-right:6px}
.sg-omd__sortl{border-color:transparent;padding:0 8px}
.sg-omd__sortl.is-vald{font-weight:700}
.sg-omd__sort-et{color:var(--sg-omd-text-secondary)}
/* Mobil: filterknapparna på en rad som sveps i sidled, Sortera på egen rad (VD-beslut 26 november). */
@media (max-width:767px){
.sg-omd__grid{grid-template-columns:minmax(0,1fr)}
.sg-omd__hoger,.sg-omd__val{min-width:0}
.sg-omd__filter{position:relative;flex-wrap:nowrap;box-sizing:border-box;width:calc(100% + 6px);min-width:0;margin:-3px;padding:3px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.sg-omd__filter::-webkit-scrollbar{display:none}
.sg-omd__chip{flex:none}
.sg-omd__sort{row-gap:4px}
.sg-omd__sort-et{flex-basis:100%}
}
.sg-omd__status{margin:24px 0 8px;color:var(--sg-omd-text-secondary)}
.sg-omd-kort{padding:24px 0;border-top:1px solid var(--sg-omd-track);scroll-margin-top:calc(var(--sg-header-h,72px) + 16px)}
.sg-omd-kort__topp{display:flex;align-items:center;gap:12px}
.sg-omd-kort__datum{font-size:14px;color:var(--sg-omd-text-secondary)}
.sg-omd-kort__vem{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 0}
.sg-omd-kort__namn{font-size:16px;font-weight:600}
.sg-omd-kort__rubrik{margin:12px 0 0;font-size:18px;font-weight:600;line-height:1.35}
.sg-omd-kort__text{margin:8px 0 0;max-width:70ch;font-size:16px;line-height:1.5}
.sg-omd__mer{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:16px 0 0;padding:0 20px;border:1px solid var(--sg-omd-bar);border-radius:999px;color:inherit}
.sg-omd__mer[aria-disabled=true]{opacity:.7;pointer-events:none}
.sg-omd__riktlinjer{margin:24px 0 0}
#omdomen-lista{scroll-margin-top:calc(var(--sg-header-h,72px) + 16px)}
.sg-omd a:focus-visible,.sg-omd-rad:focus-visible,.sg-omd-kort:focus-visible,#omdomen-lista:focus-visible{outline:2px solid var(--sg-omd-focus);outline-offset:2px}
@media (min-width:1024px){
.sg-omd__grid{grid-template-columns:360px 1fr;gap:48px}
.sg-omd__stapel,.sg-omd__chip,.sg-omd__sortl,.sg-omd__mer,.sg-omd-rad{min-height:32px}
}
/* Riktlinjer som popup (popover). */
.sg-omd-rl-knapp{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sg-omd-rl-knapp:focus-visible,.sg-omd-rl__stang:focus-visible{outline:2px solid var(--sg-omd-focus,#1D4ED8);outline-offset:2px}
.sg-omd-rl{position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:28px 24px 24px;border:0;border-radius:8px;background:#fff;color:#1F2937;font-size:16px;line-height:1.55;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.sg-omd-rl::backdrop{background:rgba(17,24,39,.5)}
.sg-omd-rl__h{margin:0 40px 12px 0;font-size:1.25rem;line-height:1.3}
.sg-omd-rl__h3{margin:20px 0 8px;font-size:1rem;line-height:1.3}
.sg-omd-rl p{margin:0}.sg-omd-rl p+p{margin-top:12px}
.sg-omd-rl a{text-decoration:underline}
.sg-omd-rl__stang{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:6px;background:none;font-size:28px;line-height:1;color:inherit;cursor:pointer}
.sg-omd-rl__stang:hover{background:#F3F4F6}
.sg-omd-dold{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
