/* The same comparison and editorial system across insurance and company pages. */
body.fxe-site .fx-filter fieldset,body.fxe-site .fxe-filter fieldset{border:0!important;padding:0!important;margin:0!important;min-width:0;width:100%;display:block}
body.fxe-site .fx-filter legend,body.fxe-site .fxe-filter legend{display:block;float:none;width:100%;max-width:100%;margin:0 0 12px!important;padding:0!important;position:static;transform:none;font-size:14px;font-weight:700;line-height:1.5;letter-spacing:0}
body.fxe-site .fx-filter h2,body.fxe-site .fxe-filter h2{font-size:20px;font-weight:800;line-height:1.25;letter-spacing:-.01em;margin:0}
.fxe-filter{background:white;border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:20px;box-shadow:0 1px 2px rgba(31,47,64,.06),0 16px 40px -16px rgba(31,47,64,.22);min-width:0}
body.fxe-site .fxe-filter select{display:block;width:100%;min-height:48px;padding:10px 40px 10px 14px;border:1px solid var(--fx-border);border-radius:10px;background-color:white;font-size:15px;line-height:1.5;margin:0;cursor:pointer}
body.fxe-site .fxe-filter .fx-button{width:100%;min-height:52px}
.fxe-filter .fx-radio-grid:has(label:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
body.fxe-site #scroll-to-top{width:44px;height:44px;min-height:44px;padding:12px!important;background:var(--fx-night)!important;color:#fff!important;border:1px solid var(--fx-border);border-radius:12px;box-shadow:0 4px 16px rgba(31,47,64,.14)}
body.fxe-site #scroll-to-top:hover{background:var(--fx-yellow)!important;color:var(--fx-night)!important}
body.fxe-site #scroll-to-top svg{width:18px;height:18px;display:block;margin:auto}
body.fxe-site .fxe-filter .fx-radio-grid span{padding:10px 8px;text-align:center;line-height:1.4}
body.fxe-site .fxe-logo{display:inline-flex;align-items:center;justify-content:center;flex:none;width:88px;height:46px;background:var(--fxe-brand-bg,#fff);border:1px solid rgba(31,47,64,.12);border-radius:9px;padding:7px 9px;overflow:hidden}
body.fxe-site .fxe-logo img{display:block!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;border-radius:0!important}
body.fxe-site .fxe-logo-large{width:170px;height:90px;border-radius:13px;padding:15px 18px}
.fxe-company-summary .fxe-logo-large{align-self:flex-start}
.fx-card-behind .fxe-logo{width:70px;height:38px}
body.fxe-site .fx-featured .fxe-logo{width:88px;height:46px}
body.fxe-site .fx-insurance-table:not(.fxe-comparison-table) .fxe-logo{width:66px;height:40px;padding:7px}
body.fxe-site .fx-offer{background:#FFF9E5!important;border:1px solid #F0DE9D;border-left:3px solid var(--fx-yellow);border-radius:8px!important;padding:10px 12px!important;font-size:12px!important;font-weight:500!important;line-height:1.5!important;color:var(--fx-night);text-align:left;max-width:100%;margin:12px 0 0;box-shadow:none}
body.fxe-site .fx-offer:not(.fxe-offer)::before,.fxe-offer-label{content:'Erbjudande';display:block;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;line-height:1.5;margin-bottom:4px;color:var(--fx-slate)}
body.fxe-site .fx-offer p,body.fxe-site .fx-offer span,body.fxe-site .fx-offer strong,body.fxe-site .fx-offer b,body.fxe-site .fx-offer div{font-size:inherit;line-height:inherit;margin:0}
body.fxe-site .fx-offer .fxe-offer-label{font-size:10px;line-height:1.5;margin-bottom:4px}
.fxe-offer-copy>div{display:contents}
.fxe-comparison .fx-section-heading{margin-bottom:20px}
.fxe-level-tabs{margin-bottom:18px;flex-wrap:wrap}
body.fxe-site .fxe-level-tabs button{min-height:44px}
body.fxe-site .fxe-comparison-table{min-width:1000px;table-layout:auto}
body.fxe-site .fxe-comparison-table tr>th:first-child{width:180px;min-width:180px}
body.fxe-site .fxe-comparison-table .fx-brand{flex-direction:column;align-items:flex-start;gap:10px}
body.fxe-site .fxe-comparison-table .fx-brand-name{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
body.fxe-site .fxe-comparison-table .fxe-benefits{min-width:200px;max-width:240px}
body.fxe-site .fxe-comparison-table .fx-pros{font-size:13px;line-height:1.5;gap:9px;list-style:none;margin:0;padding:0}
body.fxe-site .fxe-comparison-table .fx-pros li{margin:0;gap:7px;align-items:flex-start}
body.fxe-site .fxe-comparison-table .fx-pros svg{margin-top:2px;flex:none}
.fxe-unspecified{color:var(--fx-text);font-size:12px}
body.fxe-site .fxe-with-details .fxe-details-row>td{padding:0!important;border:0!important;background:white;min-width:0}
body.fxe-site .fxe-with-details .fxe-details-row .fx-product-details{margin:0;border:0;border-bottom:1px solid var(--fx-border);border-radius:0;grid-column:auto}
body.fxe-site .fxe-with-details .fx-product-details>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:46px;padding:12px 20px;font-size:13px;font-weight:600;color:var(--fx-text);cursor:pointer;list-style:none;background:#FAFBFD}
body.fxe-site .fxe-with-details .fx-product-details>summary::-webkit-details-marker{display:none}
body.fxe-site .fxe-with-details .fx-product-details>summary>span{font-size:20px;line-height:1;font-weight:400;color:var(--fx-night)}
body.fxe-site .fxe-with-details .fx-product-details[open]>summary{background:var(--fx-mist);color:var(--fx-night)}
body.fxe-site .fxe-with-details .fx-product-details[open]>summary>span{transform:rotate(45deg)}
body.fxe-site .fx-detail-body{padding:24px;min-width:0;font-size:14px;line-height:1.65}
body.fxe-site .fx-detail-body>.container,body.fxe-site .fx-detail-body [data-housing-details]>.container{padding:0!important;width:100%;max-width:none}
body.fxe-site .fx-detail-body .row{margin:0!important;gap:24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
body.fxe-site .fx-detail-body .row>[class*=col-]{width:auto!important;max-width:none!important;flex:none;padding:0!important;min-width:0}
body.fxe-site .fx-detail-body .row>.w-100{grid-column:1/-1}
body.fxe-site .fx-detail-body table{min-width:0;width:100%;margin:10px 0 18px!important;border-collapse:collapse;table-layout:fixed;font-size:13px;line-height:1.5}
body.fxe-site .fx-detail-body th,body.fxe-site .fx-detail-body td{width:auto!important;min-width:0!important;text-align:left!important;vertical-align:top;padding:9px 8px!important;border:0!important;border-bottom:1px solid var(--fx-border)!important;white-space:normal!important;overflow-wrap:anywhere}
body.fxe-site .fx-detail-body .snabb-title{padding:0;margin:0 0 12px;min-height:0;font-size:15px;font-weight:700;background:none;border:0}
body.fxe-site .fx-detail-body .snabb-text{padding:0!important;margin:0;background:none!important;border:0!important;box-shadow:none;overflow:visible}
body.fxe-site .fx-detail-body p{font-size:14px;margin:0 0 12px}
body.fxe-site .fx-detail-body a{text-decoration:underline}
.fxe-comparison-note{font-size:12px;line-height:1.6;color:var(--fx-text);padding:14px 0 4px}
.fxe-comparison-note p{margin:0 0 10px}
.fxe-anchor{display:block;position:relative;top:-20px}
.fxe-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.fxe-site .fxe-related-card{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:24px;border:1px solid var(--fx-border);border-radius:14px;text-decoration:none;background:white}
body.fxe-site .fxe-related-card:hover{background:var(--fx-pale);border-color:var(--fx-yellow)}
.fxe-related-card strong{font-size:20px;line-height:1.3}
.fxe-related-card>span{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;margin-top:auto}
body.fxe-site .fxe-hub-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--fx-border);font-size:15px;font-weight:600;text-decoration:none}
.fxe-hub-chooser{gap:10px}
.fxe-hub-chooser .fx-button{margin-top:12px}
.fxe-company-jumps{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:28px}
body.fxe-site .fxe-company-jumps .fx-review{font-size:14px}
.fxe-fact-list{margin:0}
.fxe-fact-list>div{display:grid;grid-template-columns:1fr 1.2fr;gap:14px;padding:12px 0;border-bottom:1px solid var(--fx-border);font-size:14px;line-height:1.6;align-items:start}
.fxe-fact-list>div:last-child{border-bottom:0}
.fxe-fact-list dt{color:var(--fx-text);font-weight:500}
.fxe-fact-list dd{font-weight:600;margin:0;overflow-wrap:anywhere}
.fxe-company-actions{display:flex;flex-direction:column;gap:10px}
.fxe-company-summary .fx-pros{font-size:14px;line-height:1.6;margin:0}
body.fxe-site .fxe-company-summary .fx-disclosure{font-size:12px;line-height:1.6;margin:0}
.fxe-company-insurances{display:flex;gap:12px;flex-wrap:wrap}
body.fxe-site .fxe-company-insurances a{display:flex;align-items:center;gap:20px;justify-content:space-between;min-height:50px;padding:12px 18px;border:1px solid var(--fx-border);border-radius:12px;font-size:15px;font-weight:600;background:white;text-decoration:none}
body.fxe-site .fxe-company-insurances a:hover{background:var(--fx-pale);border-color:var(--fx-yellow)}
body.fxe-site .fxe-company-prose .fxe-company-record{border:1px solid var(--fx-border);background:var(--fx-mist);border-radius:14px;padding:24px;margin:36px 0}
body.fxe-site .fxe-company-record h2{margin:0 0 18px;font-size:22px}
body.fxe-site .fxe-company-record .fx-small-note{margin-top:18px}
.fxe-company-bottom-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.fxe-company-screens{border:1px solid var(--fx-border);border-radius:12px}
.fxe-screen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px}
.fxe-screen-grid img{width:100%;height:auto;border-radius:8px}
.fxe-company-reviews{background:var(--fx-mist)}
body.fxe-site .fxe-company-reviews h2{margin:0 0 24px}
.fxe-rating-summary{display:flex;gap:16px;align-items:center;margin:0 0 24px}
.fxe-rating-summary strong{font-size:26px;line-height:1.2}
.fxe-rating-summary span{font-size:14px;color:var(--fx-text)}
body.fxe-site .fxe-company-reviews .nv-comment-article,body.fxe-site .fxe-company-reviews .comment-respond{background:white;border:1px solid var(--fx-border);border-radius:14px;padding:24px;margin:0 0 20px}
body.fxe-site .fxe-company-reviews #comments{border:0;margin:0}
body.fxe-site .fxe-company-reviews #reply-title{font-size:24px;line-height:1.3}
body.fxe-site .fxe-company-reviews .comment-form input:not([type=checkbox]):not([type=submit]),body.fxe-site .fxe-company-reviews textarea{width:100%;border:1px solid var(--fx-border);border-radius:9px;padding:12px;font-size:16px;background:white}
body.fxe-site .fxe-company-reviews .comment-form input[type=submit]{background:var(--fx-yellow)!important;color:var(--fx-night)!important;min-height:48px;padding:12px 22px;border:0;border-radius:10px;font-size:16px;font-weight:700}
body.fxe-site .fxe-company-reviews .nv-comments-title-wrap{display:none}
body.fxe-site .fxe-company-reviews .comment-author a{color:var(--fx-night)!important}
body.fxe-site .fxe-company-reviews .ci-comment-rating{color:var(--fx-night)}
body.fxe-site .fx-prose .video-container:has(.fxe-video){height:auto!important;padding:0!important;margin:28px 0!important;position:relative;min-height:0}
body.fxe-site .fxe-video{position:relative;width:100%;aspect-ratio:16/9;min-height:200px;border-radius:14px;overflow:hidden;background:var(--fx-night);margin:28px 0}
body.fxe-site .fxe-video-play{position:absolute;inset:0;width:100%;height:100%;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;background:radial-gradient(circle at 80% 0,#405B72 0,transparent 55%),var(--fx-night);border:0;border-radius:0;color:white;cursor:pointer;padding:24px;text-align:center}
body.fxe-site .fxe-video-play:hover{background:radial-gradient(circle at 80% 0,#496E8D 0,transparent 55%),var(--fx-night)}
body.fxe-site .fxe-video-play strong{color:white;font-size:20px;font-weight:700;background:none!important}
body.fxe-site .fxe-video-play>span:last-child{font-size:14px;color:#DCE3EA}
.fxe-play-icon{display:grid;place-items:center;background:var(--fx-yellow);color:var(--fx-night);width:56px;height:56px;border-radius:50%;font-size:22px;line-height:1;padding-left:3px}
body.fxe-site .fxe-video iframe{position:absolute!important;inset:0;width:100%!important;height:100%!important;border:0}
body.fxe-site .fxe-video noscript a{color:white;position:absolute;bottom:12px;left:12px;font-size:14px}
body.fxe-site .fx-prose .wp-block-spacer{height:0!important;margin:0!important}
body.fxe-site .fx-prose>.wp-block-columns:empty{display:none}
body.fxe-site .fx-detail-body [hidden],body.fxe-site .fxe-details-row[hidden]{display:none!important}
@media(max-width:1100px){.fxe-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fxe-company-jumps{gap:16px}.fxe-filter{padding:22px}}
@media(max-width:767px){
 .fxe-filter{gap:18px}.fxe-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.fxe-site .fxe-related-card{padding:18px;gap:12px}.fxe-related-card strong{font-size:17px}.fxe-related-card>span{font-size:12px}
 body.fxe-site .fxe-with-details,body.fxe-site .fxe-with-details tbody{display:block;min-width:0;width:100%}
 body.fxe-site .fxe-with-details .fx-insurance-row{border-bottom:0;border-radius:14px 14px 0 0;margin:0;min-width:0}
 body.fxe-site .fxe-with-details .fxe-details-row{display:block;width:100%;margin:0 0 18px;border:1px solid var(--fx-border);border-top:0;border-radius:0 0 14px 14px;overflow:hidden}
 body.fxe-site .fxe-with-details .fxe-details-row>td{display:block;min-width:0;width:100%}
 body.fxe-site .fxe-with-details .fxe-details-row .fx-product-details{border:0}
 body.fxe-site .fxe-with-details .fx-product-details>summary{padding:13px 20px;min-height:48px;font-size:13px}
 body.fxe-site .fxe-comparison-table .fx-brand{flex-direction:row;align-items:center;gap:12px}
 body.fxe-site .fx-insurance-table .fxe-logo,body.fxe-site .fx-insurance-table:not(.fxe-comparison-table) .fxe-logo{width:82px;height:46px;padding:8px}
 body.fxe-site .fxe-comparison-table .fx-brand-name{font-size:18px}
 body.fxe-site .fxe-comparison-table .fxe-benefits{grid-column:1/-1;min-width:0;max-width:none;padding:16px 0!important}
 body.fxe-site .fxe-comparison-table .fxe-benefits::before{display:none}
 body.fxe-site .fxe-comparison-table .fxe-benefits .fx-pros{font-size:14px;gap:9px}
 body.fxe-site .fxe-comparison-table tr>th:first-child{min-width:0;width:auto}
 body.fxe-site .fx-insurance-table .fx-offer{max-width:none;margin-top:14px;font-size:13px!important}
 body.fxe-site .fx-detail-body{padding:20px;font-size:14px}
 body.fxe-site .fx-detail-body .row{grid-template-columns:1fr;gap:18px}
 body.fxe-site .fx-detail-body table{font-size:13px;margin-bottom:10px!important}
 body.fxe-site .fx-detail-body td{padding:9px 6px!important}
 .fxe-company-jumps{flex-direction:column;align-items:stretch;gap:18px}
 body.fxe-site .fxe-company-jumps .fx-review{text-align:center;min-height:32px;padding:4px}
 .fxe-company-insurances{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 body.fxe-site .fxe-company-insurances a{font-size:13px;line-height:1.4;padding:12px;gap:8px;min-width:0}
 .fxe-company-insurances svg{flex:none}
 .fxe-fact-list>div{font-size:13px;gap:12px}
 body.fxe-site .fxe-company-record h2{font-size:21px}
 body.fxe-site .fxe-company-prose .fxe-company-record{padding:20px}
 .fxe-screen-grid{grid-template-columns:1fr;padding:16px}
 .fxe-rating-summary{align-items:flex-start;flex-direction:column;gap:10px}
 body.fxe-site .fxe-company-reviews .nv-comment-article,body.fxe-site .fxe-company-reviews .comment-respond{padding:20px}
 body.fxe-site .fxe-video{min-height:190px}
 body.fxe-site .fxe-video-play strong{font-size:17px}
}

/* Nested fact tables keep native table geometry, including on mobile. */
body.fxe-site .fx-detail-body table{display:table!important;border-radius:0!important;background:transparent!important;}
body.fxe-site .fx-detail-body tbody{display:table-row-group!important;}
body.fxe-site .fx-detail-body tr{display:table-row!important;background:transparent!important;}
body.fxe-site .fx-detail-body td{display:table-cell!important;background:transparent!important;border-radius:0!important;}
body.fxe-site .fx-detail-body .snabb-left{width:48%!important;}
body.fxe-site .fx-detail-body .snabb-right{width:52%!important;}

body.fxe-site .fx-detail-body .fxe-original-overview{background:var(--fx-mist);border-radius:10px;padding:16px;margin-bottom:24px;}
body.fxe-site .fx-detail-body .fxe-original-overview h3{font-size:15px;line-height:1.4;margin:0 0 12px;}
body.fxe-site .fx-detail-body .fxe-original-overview ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:12px 24px;}
body.fxe-site .fx-detail-body .row>[class*=col-]:only-child{grid-column:1/-1;}
body.fxe-site .fx-detail-body .row{margin-bottom:16px!important;}

/* Allow long Swedish insurance names to fit the available grid and card width. */
body.fxe-site .fx-hem-hero-grid>*,body.fxe-site .fxe-related-grid>*,body.fxe-site .fxe-related-card>*{min-width:0;max-width:100%}
body.fxe-site .fx-hem-hero h1,body.fxe-site .fxe-related-card strong,body.fxe-site .fxe-company-insurances a{overflow-wrap:anywhere}
body.fxe-site .fx-section-heading>*{min-width:0;max-width:100%}
body.fxe-site .fx-section-heading h2{overflow-wrap:anywhere}
body.fxe-site .fxe-company-screens{margin:24px 0;grid-column:auto;max-width:100%}
