/* ==========================================================
   PBS Svensk Varmekalla AB
   Omskriven och mobilanpassad CSS

   Anpassad for befintlig Textalk-butik och HTML-strukturen:
   .pbs-home, .hero, .benefits, .category-grid, .brand-strip,
   .guides, .about-section och .newsletter.

   Ersatter tidigare startsides-CSS. Energimarkning ligger sist.
   ========================================================== */

:root {
  --pbs-blue: #061b33;
  --pbs-blue-2: #08294d;
  --pbs-brown: #473939;
  --pbs-yellow: #ffc400;
  --pbs-yellow-hover: #e2ad00;
  --pbs-white: #ffffff;
  --pbs-light: #f6f7f9;
  --pbs-text: #0f172a;
  --pbs-muted: #536173;
  --pbs-border: #e5e7eb;
  --pbs-shadow: 0 8px 28px rgba(15, 23, 42, 0.10);
  --pbs-shadow-small: 0 4px 16px rgba(15, 23, 42, 0.08);
  --pbs-radius: 10px;
  --pbs-max: 1200px;
}

/* ==========================================================
   1. BAS
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--pbs-light) !important;
  color: var(--pbs-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: normal;
}

body .page-canvas {
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(255, 196, 0, 0.65) !important;
  outline-offset: 3px;
}

/* Textalks egna innehallsytor */
.startpage .fabrikk--content,
.startpage .fabrikk--content-wrapper,
.startpage .slot--component-container .tws-container--tws-custom-html,
.startpage .tws-container--tws-custom-html {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
}

.startpage .fabrikk--content-wrapper {
  padding-top: 0 !important;
  padding-bottom: 60px !important;
}

.startpage .fabrikk--content,
.startpage .fabrikk--body,
.startpage .page-canvas {
  background: var(--pbs-light) !important;
}

/* ==========================================================
   2. TEXTALK TOPP OCH HEADER
   ========================================================== */

.tws-theme-preview {
  position: fixed;
  z-index: 1000;
  right: auto;
  bottom: 0;
  left: 0;
}

.slot--cookies {
  position: fixed;
  bottom: 0;
  z-index: 10000;
  width: 100%;
}

.fabrikk--top-bar {
  position: absolute;
  top: 0;
  width: 100%;
  height: 32px;
  padding: 0;
  background: var(--pbs-brown) !important;
  transition: top 0.3s ease;
}

.fabrikk--top-bar.scrolled {
  top: -32px;
}

.fabrikk--top-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--pbs-max);
  margin: 0 auto;
  padding: 0 15px;
}

.fabrikk--top-bar-right {
  position: relative;
  right: 0;
}

.slot--top-bar-html {
  margin: 0;
}

.slot--top-bar-html a,
.tws-login--login,
.tws-login--my-pages {
  color: #fff !important;
}

.slot--top-bar-html a:hover,
.tws-login--login:hover,
.tws-login--my-pages:hover {
  color: var(--pbs-yellow) !important;
}

.pbs-header-usps span {
  margin-right: 15px;
  font-size: 14px;
  text-transform: none;
}

.fabrikk--header {
  position: fixed;
  top: 32px;
  z-index: 900;
  width: 100%;
  border-top: 0 solid transparent;
  background: transparent;
  transition: top 0.3s ease, border-color 0.3s ease;
}

.fabrikk--header.scrolled {
  top: 0;
  border-top: 4px solid var(--pbs-brown) !important;
}

.fabrikk--header::before,
.fabrikk--header::after,
.tws-theme-foundation-content--loading .fabrikk--header::after,
.tws-theme-foundation-content--finished .fabrikk--header::after {
  display: none !important;
  animation: none !important;
}

.fabrikk--header-wrapper {
  padding: 0;
  background: transparent;
}

.fabrikk--header-right,
.fabrikk--header-left,
.slot--mega-menu {
  display: none;
}

.pbs-header-row-1 {
  background: #eee url(https://shop.textalk.se/shop/ws72/37872/files/designfiler/dust.png);
}

.pbs-header-row-1-inner {
  width: 100%;
  max-width: var(--pbs-max);
  margin: 0 auto;
  padding: 5px 15px 10px;
}

.pbs-header-row-1-inner::before,
.pbs-header-row-1-inner::after {
  display: block;
  clear: both;
  content: "";
}

.slot--logo {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pbs-logo {
  float: left;
}

.pbs-logo a {
  display: block;
}

.pbs-logo img {
  width: 100%;
  max-width: 80px;
}

.pbs-header-left {
  float: left;
  margin-top: 45px;
  margin-left: 40px;
  transition: margin 0.3s ease;
}

.pbs-header-right {
  float: right;
  margin-top: 45px;
  transition: margin 0.3s ease;
}

.pbs-header-social {
  float: left;
  margin-top: 10px;
  margin-left: 30px;
  font-weight: 600;
}

.pbs-header-social a {
  color: var(--pbs-brown);
}

/* Sok */
.slot--custom-search {
  float: left;
  width: 400px;
  transition: width 0.3s ease;
}

.tws-article-search {
  margin-bottom: 0;
}

.tws-article-search input,
.form-control,
.has-success .form-control {
  height: 40px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #333;
  font-size: 14px;
}

.tws-article-search .form-control-feedback {
  top: 0;
  height: 40px;
  color: #333;
  line-height: 40px;
  cursor: pointer;
}

.tws-article-search ul {
  display: none !important;
}

/* Toppmeny */
.slot--horizontal-menu {
  clear: both;
  background: #fff;
}

.tws-top-menu.navbar-default {
  width: 100%;
  max-width: var(--pbs-max);
  margin: 0 auto;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tws-top-menu .navbar-nav,
body .tws-top-menu .navbar-nav {
  width: 100%;
  max-width: none;
  padding: 0;
}

.navbar-nav > li > a {
  margin-right: 20px;
  padding: 10px 0;
  background: transparent !important;
  color: #333 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  color: var(--pbs-brown) !important;
}

.tws-top-menu--mega-menu > .tws-top-menu--sub-item {
  width: 20%;
}

.tws-top-menu--mega-sub-list {
  display: none !important;
}

.tws-top-menu .dropdown > .dropdown-menu {
  padding: 20px 30px;
  background: rgba(5, 106, 166, 0.98);
}

.navbar-default .dropdown-menu li a {
  padding: 0;
  color: #fff !important;
  font-size: 13px;
  line-height: normal;
  text-transform: uppercase;
  white-space: normal;
}

.navbar-default .dropdown-menu li a:hover {
  color: var(--pbs-yellow) !important;
}

.slot--cart {
  bottom: 10px;
}

.slot--cart .tws-mini-cart--header-cart-button {
  color: #016ba7;
}

.slot--shipping-notice {
  top: 94px;
}

.fabrikk--body {
  width: 100%;
  margin: 0 auto;
  padding-top: 230px;
  background: transparent;
}

.fabrikk--content {
  max-width: none;
  padding: 0 !important;
  background: transparent !important;
}

.fabrikk--content-wrapper {
  width: 100%;
  max-width: var(--pbs-max);
  margin: 0 auto;
  padding: 30px 15px 60px !important;
}

/* ==========================================================
   3. STARTSIDA
   ========================================================== */

.pbs-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--pbs-light);
  color: var(--pbs-text);
}

.pbs-home h1,
.pbs-home h2,
.pbs-home h3,
.pbs-home p {
  margin-top: 0;
}

/* Hero */
.pbs-home .hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 430px;
  overflow: hidden;
  color: #fff;
  background: var(--pbs-blue);
}

.pbs-home .hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.pbs-home .hero-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center right;
}

.pbs-home .hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(4, 18, 33, 0.98) 0%,
    rgba(4, 18, 33, 0.92) 35%,
    rgba(4, 18, 33, 0.56) 62%,
    rgba(4, 18, 33, 0.08) 100%
  );
  content: "";
  pointer-events: none;
}

.pbs-home .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--pbs-max);
  margin: 0 auto;
  padding: 58px 36px 70px;
}

.pbs-home .hero h1 {
  max-width: 620px;
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: clamp(36px, 4vw, 45px) !important;
  font-weight: 800 !important;
  line-height: 1.13 !important;
  letter-spacing: -1.2px !important;
  text-transform: none !important;
}

.pbs-home .hero-tagline {
  display: block;
  margin: 0 0 20px !important;
  color: var(--pbs-yellow) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px !important;
  font-style: italic;
  line-height: 1.1 !important;
}

.pbs-home .hero-text {
  max-width: 550px;
  margin: 0 0 26px !important;
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.pbs-home .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pbs-home .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 24px !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
}

.pbs-home .btn:hover {
  transform: translateY(-1px);
}

.pbs-home .btn-yellow {
  border-color: var(--pbs-yellow) !important;
  background: var(--pbs-yellow) !important;
  color: var(--pbs-blue) !important;
}

.pbs-home .btn-yellow:hover {
  border-color: var(--pbs-yellow-hover) !important;
  background: var(--pbs-yellow-hover) !important;
}

.pbs-home .btn-outline {
  border-color: rgba(255, 255, 255, 0.75) !important;
  background: rgba(6, 27, 51, 0.35) !important;
  color: #fff !important;
}

.pbs-home .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.pbs-home .btn-white {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--pbs-blue) !important;
}

.pbs-home .btn-white:hover {
  background: #f1f5f9 !important;
}

/* Gemensam bredd for sektioner */
.pbs-home .benefits,
.pbs-home .category-grid,
.pbs-home .brand-strip,
.pbs-home .guides,
.pbs-home .about-section,
.pbs-home .newsletter {
  width: calc(100% - 72px);
  max-width: 1128px;
  margin-right: auto;
  margin-left: auto;
}

/* Fordelar */
.pbs-home .benefits {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: -33px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: var(--pbs-radius);
  background: #fff;
  box-shadow: var(--pbs-shadow);
}

.pbs-home .benefit {
  min-width: 0;
  min-height: 128px;
  padding: 23px 12px 18px;
  border-right: 1px solid var(--pbs-border);
  background: #fff;
  color: var(--pbs-text);
  text-align: center;
}

.pbs-home .benefit:last-child {
  border-right: 0;
}

.pbs-home .benefit strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 13px;
  font-weight: 800;
}

.pbs-home .benefit span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

/* Kategorier */
.pbs-home .category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.pbs-home .category-card,
.pbs-home .guide-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pbs-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--pbs-shadow-small);
}

.pbs-home .category-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  text-align: center;
}

.pbs-home .category-card img {
  width: 100% !important;
  height: 170px !important;
  object-fit: cover;
  object-position: center;
}

.pbs-home .category-card h3 {
  margin: 13px 15px 9px !important;
  color: var(--pbs-text) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
}

.pbs-home .category-card p {
  min-height: 64px;
  margin: 0 15px 9px !important;
  color: var(--pbs-text) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.pbs-home .category-card a {
  margin: auto 15px 0;
  color: #d89100 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.pbs-home .category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

/* Varumarken */
.pbs-home .brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  min-height: 66px;
  margin-bottom: 34px;
  padding: 15px 22px;
  border: 1px solid var(--pbs-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.pbs-home .brand-strip strong {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 800;
}

.pbs-home .brand-strip span {
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.pbs-home .brand-strip a {
  margin-left: auto;
  color: #d89100 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

/* Guider */
.pbs-home .guides {
  display: grid;
  grid-template-columns: 260px repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-bottom: 30px;
}

.pbs-home .guide-intro {
  padding: 4px 6px 0;
}

.pbs-home .guide-intro h2,
.pbs-home .about-text h2 {
  margin: 0 0 12px !important;
  color: var(--pbs-text) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.4px !important;
}

.pbs-home .guide-intro p,
.pbs-home .about-text p {
  margin: 0 0 18px !important;
  color: var(--pbs-text) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.pbs-home .guide-card {
  padding-bottom: 15px;
}

.pbs-home .guide-card img {
  width: 100% !important;
  height: 112px !important;
  object-fit: cover;
  object-position: center;
}

.pbs-home .guide-card h3 {
  min-height: 48px;
  margin: 13px 15px 9px !important;
  color: var(--pbs-text) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.pbs-home .guide-card a {
  margin: 0 15px;
  color: #d89100 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* Om PBS */
.pbs-home .about-section {
  display: grid;
  grid-template-columns: 270px repeat(3, 1fr) 210px;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.pbs-home .about-text {
  padding-left: 6px;
}

.pbs-home .about-text > a {
  color: #d89100 !important;
  font-weight: 800;
}

.pbs-home .about-feature {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 80px;
}

.pbs-home .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #c48d00;
}

.pbs-home .feature-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pbs-home .about-feature strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
}

.pbs-home .about-feature span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.pbs-home .rating-box {
  min-height: 126px;
  padding: 22px 16px;
  border: 1px solid var(--pbs-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--pbs-shadow-small);
  text-align: center;
}

.pbs-home .rating-box strong {
  display: block;
  color: #e8aa00;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 1px;
}

.pbs-home .rating-box b {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.pbs-home .rating-box span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.35;
}

/* Nyhetsbrev */
.pbs-home .newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 28px;
  align-items: center;
  min-height: 78px;
  padding: 18px 28px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--pbs-blue) 0%, var(--pbs-blue-2) 100%);
  color: #fff;
}

.pbs-home .newsletter h2 {
  margin: 0 0 3px !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.pbs-home .newsletter p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12px !important;
}

.pbs-home .newsletter form {
  display: flex;
  width: 100%;
}

.pbs-home .newsletter input {
  flex: 1;
  min-width: 0;
  height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 4px 0 0 4px !important;
  background: #fff;
  color: var(--pbs-text);
  font-size: 13px !important;
}

.pbs-home .newsletter button {
  height: 42px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 0 4px 4px 0 !important;
  background: var(--pbs-yellow) !important;
  color: var(--pbs-blue) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.pbs-home .newsletter button:hover {
  background: var(--pbs-yellow-hover) !important;
}

/* ==========================================================
   4. FOOTER
   ========================================================== */

.fabrikk--footer {
  padding: 0;
  background: var(--pbs-brown) !important;
  color: #fff;
  font-size: 13px;
}

.fabrikk--footer a {
  color: #fff;
}

.fabrikk--footer a:hover {
  color: #ddd;
}

.fabrikk--footer .container {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.fabrikk--footer .container > .row {
  display: block;
}

.fabrikk--footer-left {
  display: block !important;
  width: 100%;
  padding: 0;
}

.fabrikk--footer-mid-left,
.fabrikk--footer-mid-right,
.fabrikk--footer-right {
  display: none !important;
}

.pbs-footer-heading {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.fabrikk--footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fabrikk--footer-left .col-sm-3 {
  margin-bottom: 20px;
}

.pbs-footer-row-1-inner {
  width: 100%;
  max-width: var(--pbs-max);
  margin: 0 auto;
  padding: 30px 15px;
}

.pbs-betallogos {
  max-width: 250px;
  margin: 0 auto;
}

.fabrikk--back-to-top {
  position: fixed;
  right: 15px;
  bottom: 0;
  margin: 0;
}

.fabrikk--back-to-top-link-text {
  font-size: 0;
}

.fabrikk--back-to-top-link-text::after {
  padding: 0 5px;
  background: rgba(0, 0, 0, 0.5);
  content: "\f106";
  font-family: FontAwesome;
  font-size: 35px;
}

.fabrikk--back-to-top-link,
.fabrikk--back-to-top-link:hover {
  color: #fff;
}

/* ==========================================================
   5. TABLET
   ========================================================== */

@media (min-width: 992px) {
  .tws-top-menu > .container-fluid > .navbar-collapse {
    display: block !important;
    padding: 0;
  }
}

@media (min-width: 1300px) {
  .slot--cart,
  .slot--shipping-notice {
    right: 100px;
  }
}

@media (max-width: 1100px) {
  .pbs-home .benefits,
  .pbs-home .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pbs-home .guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pbs-home .guide-intro {
    grid-column: 1 / -1;
  }

  .pbs-home .about-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pbs-home .about-text,
  .pbs-home .rating-box {
    grid-column: 1 / -1;
  }

  .pbs-home .newsletter {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   6. MOBILHEADER OCH MOBILMENY
   ========================================================== */

@media (max-width: 991px) {
  .fabrikk--top-bar,
  .pbs-header-social {
    display: none;
  }

  .fabrikk--header,
  .fabrikk--header.scrolled {
    top: 0;
    height: 72px;
    border-top: 4px solid var(--pbs-brown) !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  .pbs-header-row-1-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 6px 15px !important;
  }

  .pbs-logo {
    float: none;
    margin-left: 48px;
  }

  .pbs-logo img {
    width: auto;
    max-width: 54px;
    max-height: 56px;
  }

  .pbs-header-right {
    float: none;
    margin: 0;
  }

  .slot--cart {
    position: absolute;
    top: 20px;
    right: 15px;
    bottom: auto;
  }

  .slot--shipping-notice {
    top: 70px;
  }

  /* Behall sokningen synlig under headern */
  .slot--custom-search {
    position: fixed;
    top: 72px;
    left: 0;
    z-index: 850;
    display: block !important;
    float: none;
    width: 100% !important;
    padding: 9px 15px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  }

  .slot--custom-search .tws-article-search,
  .slot--custom-search input {
    width: 100%;
  }

  .slot--custom-search input {
    height: 46px !important;
    padding-right: 42px;
    border: 1px solid #cfd5dc !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }

  .slot--custom-search .tws-article-search .form-control-feedback {
    height: 46px;
    line-height: 46px;
  }

  .fabrikk--body,
  .startpage .fabrikk--body {
    padding-top: 136px !important;
  }

  .tws-top-menu--controls {
    display: block !important;
  }

  .tws-top-menu.navbar-default {
    padding: 0;
  }

  .tws-top-menu .navbar-header {
    position: absolute !important;
    top: -126px !important;
    left: 12px !important;
    z-index: 1002;
  }

  .tws-top-menu .navbar-header .navbar-toggle {
    display: block;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    background: transparent !important;
    line-height: 1;
  }

  .tws-top-menu > .container-fluid > .navbar-collapse {
    position: fixed;
    top: 72px;
    left: 0;
    z-index: 1001;
    display: block !important;
    width: min(88vw, 380px);
    height: calc(100vh - 72px) !important;
    min-height: 0;
    padding: 64px 18px 24px;
    overflow-y: auto !important;
    border: 0;
    background: #fff;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.18);
  }

  .tws-top-menu > .container-fluid > .navbar-collapse.collapse {
    display: none !important;
  }

  .tws-top-menu > .container-fluid > .navbar-collapse.in {
    display: block !important;
  }

  .tws-top-menu .navbar-nav {
    margin: 0;
  }

  .tws-top-menu .navbar-nav li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
  }

  .tws-top-menu li a {
    display: block;
    margin: 0;
    padding: 12px 4px;
    font-size: 16px;
  }

  .tws-top-menu .dropdown > .dropdown-menu {
    position: relative;
    float: none;
    padding: 4px 0 12px 14px;
    background: transparent;
    box-shadow: none;
  }

  .navbar-default .dropdown-menu li a {
    padding: 8px 0;
    background: transparent !important;
    color: #333 !important;
    font-size: 14px;
    text-transform: none;
  }
}

/* ==========================================================
   7. MOBIL STARTSIDA
   ========================================================== */

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .pbs-home {
    padding-bottom: 22px;
  }

  /* Hero med bild ovanfor texten */
  .pbs-home .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--pbs-blue);
  }

  .pbs-home .hero-image {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    height: 210px;
  }

  .pbs-home .hero-image img {
    height: 210px;
    object-position: center;
  }

  .pbs-home .hero::before {
    display: none;
  }

  .pbs-home .hero-content {
    order: 2;
    max-width: none;
    padding: 26px 18px 28px;
    background: var(--pbs-blue);
  }

  .pbs-home .hero h1 {
    max-width: none;
    margin-bottom: 10px !important;
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.5px !important;
  }

  .pbs-home .hero h1 br,
  .pbs-home .guide-intro h2 br,
  .pbs-home .about-text h2 br {
    display: none;
  }

  .pbs-home .hero-tagline {
    margin-bottom: 14px !important;
    font-size: 21px !important;
  }

  .pbs-home .hero-text {
    margin-bottom: 20px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .pbs-home .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pbs-home .hero-buttons .btn {
    width: 100%;
    min-height: 48px;
    padding: 11px 10px !important;
    font-size: 13px !important;
    text-align: center;
  }

  .pbs-home .hero-buttons .btn-white {
    grid-column: 1 / -1;
  }

  .pbs-home .benefits,
  .pbs-home .category-grid,
  .pbs-home .brand-strip,
  .pbs-home .guides,
  .pbs-home .about-section,
  .pbs-home .newsletter {
    width: calc(100% - 30px);
  }

  /* Två fordelsrutor per rad */
  .pbs-home .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .pbs-home .benefit {
    min-height: 108px;
    padding: 17px 9px;
    border-right: 1px solid var(--pbs-border);
    border-bottom: 1px solid var(--pbs-border);
  }

  .pbs-home .benefit:nth-child(2n) {
    border-right: 0;
  }

  .pbs-home .benefit:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  /* Två kategorier per rad */
  .pbs-home .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
  }

  .pbs-home .category-card {
    padding-bottom: 14px;
    text-align: left;
  }

  .pbs-home .category-card img {
    height: 132px !important;
  }

  .pbs-home .category-card h3 {
    margin: 12px 12px 6px !important;
    font-size: 17px !important;
  }

  .pbs-home .category-card p {
    display: none;
  }

  .pbs-home .category-card a {
    margin: auto 12px 0;
    font-size: 13px !important;
  }

  /* Varumarken som chips */
  .pbs-home .brand-strip {
    gap: 10px;
    margin-bottom: 30px;
    padding: 18px;
  }

  .pbs-home .brand-strip strong {
    width: 100%;
    font-size: 16px;
  }

  .pbs-home .brand-strip span {
    padding: 8px 12px;
    border: 1px solid var(--pbs-border);
    border-radius: 999px;
    background: var(--pbs-light);
    font-size: 14px;
  }

  .pbs-home .brand-strip a {
    width: 100%;
    margin-top: 4px;
    margin-left: 0;
  }

  /* Guider */
  .pbs-home .guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 30px;
  }

  .pbs-home .guide-intro {
    grid-column: 1 / -1;
    padding: 0 0 8px;
  }

  .pbs-home .guide-intro h2,
  .pbs-home .about-text h2 {
    font-size: 26px !important;
  }

  .pbs-home .guide-card img {
    height: 122px !important;
  }

  .pbs-home .guide-card h3 {
    min-height: 0;
    margin: 12px 12px 8px !important;
    font-size: 15px !important;
  }

  .pbs-home .guide-card a {
    display: block;
    margin: 0 12px;
  }

  /* Om PBS */
  .pbs-home .about-section {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }

  .pbs-home .about-text,
  .pbs-home .rating-box {
    grid-column: auto;
  }

  .pbs-home .about-text {
    padding: 0;
  }

  .pbs-home .about-feature {
    min-height: 0;
    padding: 16px;
    border: 1px solid var(--pbs-border);
    border-radius: 10px;
    background: #fff;
  }

  .pbs-home .rating-box {
    min-height: 0;
  }

  /* Nyhetsbrev */
  .pbs-home .newsletter {
    display: block;
    padding: 22px 18px;
    border-radius: 10px;
  }

  .pbs-home .newsletter h2 {
    font-size: 21px !important;
  }

  .pbs-home .newsletter p {
    margin-bottom: 16px !important;
    font-size: 14px !important;
  }

  .pbs-home .newsletter form {
    display: block;
  }

  .pbs-home .newsletter input,
  .pbs-home .newsletter button {
    width: 100%;
    height: 48px !important;
    border-radius: 5px !important;
  }

  .pbs-home .newsletter button {
    margin-top: 10px;
  }

  .fabrikk--footer-left .col-sm-3 {
    text-align: center;
  }

  .slot--open-cookie-settings {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 99;
    float: none;
    margin: 10px 20px;
    padding: 4px;
  }
}

@media (max-width: 420px) {
  .pbs-home .hero-buttons {
    grid-template-columns: 1fr;
  }

  .pbs-home .hero-buttons .btn-white {
    grid-column: auto;
  }

  .pbs-home .category-card img,
  .pbs-home .guide-card img {
    height: 112px !important;
  }

  .pbs-home .category-card h3 {
    font-size: 16px !important;
  }
}

/* ==========================================================
   8. ENERGIMARKNING
   ========================================================== */

.energy-class {
  position: relative;
  display: inline-block;
  min-width: 50px;
  padding: 4px 14px 4px 10px;
  border-radius: 3px 0 0 3px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.energy-class::after {
  position: absolute;
  top: 0;
  right: -12px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  content: "";
}

.energy-class.a::after,
.energy-class.a-plus::after,
.energy-class.a-plus-plus::after,
.energy-class.a-plus-plus-plus::after {
  border-left: 12px solid #009640;
}

.energy-class.b::after { border-left: 12px solid #52ae32; }
.energy-class.c::after { border-left: 12px solid #a8c814; }
.energy-class.d::after { border-left: 12px solid #f4e500; }
.energy-class.e::after { border-left: 12px solid #f7b500; }
.energy-class.f::after { border-left: 12px solid #eb690b; }
.energy-class.g::after { border-left: 12px solid #e30613; }

li[data-energy-label-block] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 320px;
  margin: 12px 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: #dcece1;
  list-style: none;
}

li[data-energy-label-block] .tws-article-attribute-title {
  margin: 0;
  border: 0;
  color: #222;
  font-size: 14px;
  font-weight: 400;
}

.energy-label-badge-wrapper {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
}

a.energy-efficiency-class,
a.energy-efficiency-class:hover,
a.energy-efficiency-class:focus,
a.energy-efficiency-class:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 1px 6px 1px 14px;
  clip-path: polygon(0% 50%, 22% 0%, 100% 0%, 100% 100%, 22% 100%);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}

a.energy-efficiency-class[data-class="A"] { background: #008000; color: #fff; }
a.energy-efficiency-class[data-class="B"] { background: #00b050; color: #fff; }
a.energy-efficiency-class[data-class="C"] { background: #92d050; color: #000; }
a.energy-efficiency-class[data-class="D"] { background: #ffff00; color: #000; }
a.energy-efficiency-class[data-class="E"] { background: #ffc000; color: #000; }
a.energy-efficiency-class[data-class="F"] { background: #ff0000; color: #fff; }
a.energy-efficiency-class[data-class="G"] { background: #800000; color: #fff; }

a.energy-efficiency-class:hover {
  opacity: 0.9;
}

.energy-scale-strip {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 18px;
  height: 34px;
  padding: 0;
  border: 1px solid #333;
  border-left: 0;
  font-size: 7px;
  font-weight: 700;
}

.energy-label-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.energy-label-pdf-link {
  color: #222;
  font-size: 12px;
  text-decoration: underline;
  white-space: nowrap;
  cursor: pointer;
}

.energy-label-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.energy-label-modal-overlay.open {
  display: flex;
}

.energy-label-modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 900px;
  height: 85%;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.energy-label-modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  height: 40px;
  padding: 0 8px;
  border-bottom: 1px solid #ddd;
  background: #f4f4f4;
}

.energy-label-modal-close {
  border: 0;
  background: none;
  color: #333;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.energy-label-modal-box iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

.energy-label-badge-wrapper--grid {
  display: inline-flex;
  align-items: stretch;
  margin-left: auto;
  vertical-align: middle;
}

.energy-label-badge-wrapper--grid .energy-efficiency-class {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 1px 6px 1px 12px;
  clip-path: polygon(0% 50%, 22% 0%, 100% 0%, 100% 100%, 22% 100%);
  font-size: 14px;
  font-weight: 700;
}

.energy-label-badge-wrapper--grid .energy-scale-strip {
  width: 14px;
  height: 28px;
  margin-left: 0;
  font-size: 6px;
}

.tws-article-list--buy-button,
.tws-articles-two .slick-track .caption .tws-article-list--buy-button {
  display: flex;
  align-items: center;
}

.tws-articles-two .slick-track .caption .tws-article-list--buy-button {
  align-self: normal;
  margin-top: auto;
}

@media (max-width: 480px) {
  li[data-energy-label-block] {
    justify-content: flex-start;
  }
}

/* ==========================================================
   10. MOBILMENY MED MAPPA/RULLISTOR
   Textalk/Bootstrap lagger normalt klassen .open pa den
   menygren som anvandaren trycker pa.
   ========================================================== */

@media (max-width: 991px) {
  /* Menypanel */
  .tws-top-menu > .container-fluid > .navbar-collapse {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Alla huvudkategorier */
  .tws-top-menu .navbar-nav > li {
    position: relative;
    margin: 0;
    padding: 0 !important;
    border-bottom: 1px solid var(--pbs-border);
  }

  .tws-top-menu .navbar-nav > li > a {
    display: flex !important;
    align-items: center;
    min-height: 52px;
    margin: 0 !important;
    padding: 14px 42px 14px 6px !important;
    color: var(--pbs-text) !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
  }

  /* Pil pa kategorier som har undermeny */
  .tws-top-menu .navbar-nav > li.dropdown > a::after,
  .tws-top-menu .navbar-nav > li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    border-right: 2px solid var(--pbs-brown);
    border-bottom: 2px solid var(--pbs-brown);
    transform: rotate(45deg);
    transition: transform .2s ease, margin-top .2s ease;
    pointer-events: none;
  }

  .tws-top-menu .navbar-nav > li.dropdown.open > a::after,
  .tws-top-menu .navbar-nav > li.menu-item-has-children.open > a::after {
    margin-top: -2px;
    transform: rotate(225deg);
  }

  /* Undermenyer ar stangda tills mappen oppnas */
  .tws-top-menu .dropdown > .dropdown-menu,
  .tws-top-menu .tws-top-menu--mega-menu,
  .tws-top-menu .tws-top-menu--mega-sub-list {
    display: none !important;
  }

  /* Oppnad huvudmapp */
  .tws-top-menu .dropdown.open > .dropdown-menu,
  .tws-top-menu li.open > .tws-top-menu--mega-menu,
  .tws-top-menu li.open > .tws-top-menu--mega-sub-list {
    display: block !important;
  }

  /* Sjalva rullistan */
  .tws-top-menu .dropdown > .dropdown-menu,
  .tws-top-menu .tws-top-menu--mega-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 0 10px 14px !important;
    border: 0 !important;
    border-top: 1px solid #edf0f3 !important;
    border-radius: 0 !important;
    background: #f7f8fa !important;
    box-shadow: none !important;
  }

  /* Mega-menyn ska bli en lodrat lista, inte kolumner */
  .tws-top-menu--mega-menu > .tws-top-menu--sub-item {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e7e9ed;
  }

  .tws-top-menu--mega-menu > .tws-top-menu--sub-item:last-child {
    border-bottom: 0;
  }

  /* Lankar i undermappar */
  .tws-top-menu .dropdown-menu li,
  .tws-top-menu--mega-menu li,
  .tws-top-menu--mega-sub-list li {
    position: relative;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
  }

  .tws-top-menu .dropdown-menu li > a,
  .tws-top-menu--mega-menu li > a,
  .tws-top-menu--mega-sub-list li > a {
    display: block !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 12px 38px 12px 10px !important;
    background: transparent !important;
    color: #273444 !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none !important;
    white-space: normal !important;
  }

  .tws-top-menu .dropdown-menu li > a:hover,
  .tws-top-menu .dropdown-menu li > a:focus,
  .tws-top-menu--mega-menu li > a:hover,
  .tws-top-menu--mega-menu li > a:focus {
    background: #eef1f4 !important;
    color: var(--pbs-brown) !important;
  }

  /* Andra nivans mappar */
  .tws-top-menu .dropdown-menu li.dropdown > a::after,
  .tws-top-menu--mega-menu li.dropdown > a::after,
  .tws-top-menu--mega-menu li.tws-top-menu--sub-item > a::after {
    content: '';
    position: absolute;
    top: 17px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    transform: rotate(45deg);
    transition: transform .2s ease;
    pointer-events: none;
  }

  .tws-top-menu .dropdown-menu li.dropdown.open > a::after,
  .tws-top-menu--mega-menu li.dropdown.open > a::after,
  .tws-top-menu--mega-menu li.tws-top-menu--sub-item.open > a::after {
    transform: rotate(225deg);
  }

  /* Nasta niva */
  .tws-top-menu .dropdown-menu li.dropdown > .dropdown-menu,
  .tws-top-menu--mega-menu li > .tws-top-menu--mega-sub-list {
    display: none !important;
    margin: 0 !important;
    padding: 2px 0 8px 14px !important;
    border: 0 !important;
    background: #fff !important;
  }

  .tws-top-menu .dropdown-menu li.dropdown.open > .dropdown-menu,
  .tws-top-menu--mega-menu li.open > .tws-top-menu--mega-sub-list {
    display: block !important;
  }

  .tws-top-menu--mega-sub-list li > a {
    min-height: 40px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 13px !important;
    font-weight: 500;
  }

  /* Oppnad kategori markeras */
  .tws-top-menu .navbar-nav > li.open > a {
    background: #f3f4f6 !important;
    color: var(--pbs-brown) !important;
  }
}

/* ==========================================================
   11. KRITISK MOBILFIX - SYNLIG MENYKNAPP
   Ligger sist for att vinna over Textalks temaregler.
   ========================================================== */
@media (max-width: 991px) {
  /* Menykomponenten maste finnas kvar i layouten. */
  .slot--horizontal-menu,
  .tws-top-menu,
  .tws-top-menu.navbar,
  .tws-top-menu.navbar-default,
  .tws-top-menu > .container-fluid,
  .tws-top-menu .navbar-header,
  .tws-top-menu--controls {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .slot--horizontal-menu {
    position: static !important;
    width: 100% !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .tws-top-menu,
  .tws-top-menu.navbar-default,
  .tws-top-menu > .container-fluid {
    position: static !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  /* Placera knappen direkt i den fasta headern. */
  .tws-top-menu .navbar-header,
  .tws-top-menu--controls {
    position: fixed !important;
    top: 15px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 11020 !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow: visible !important;
  }

  /* Bootstrap/Textalk menyknapp. */
  .tws-top-menu .navbar-toggle,
  .tws-top-menu .navbar-header .navbar-toggle,
  .tws-top-menu--controls .navbar-toggle,
  .tws-top-menu--controls button,
  .tws-top-menu--controls a {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid #d7dbe0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--pbs-brown) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.10) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  /* Sakerstall tre synliga streck aven om temat doljer icon-bar. */
  .tws-top-menu .navbar-toggle .icon-bar,
  .tws-top-menu--controls .icon-bar {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    margin: 4px auto !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--pbs-brown) !important;
  }

  /* Reservikon om Textalk-knappen saknar .icon-bar. */
  .tws-top-menu .navbar-toggle::before,
  .tws-top-menu--controls button::before,
  .tws-top-menu--controls a::before {
    content: "\2630" !important;
    display: block !important;
    color: var(--pbs-brown) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }

  .tws-top-menu .navbar-toggle:has(.icon-bar)::before,
  .tws-top-menu--controls button:has(.icon-bar)::before,
  .tws-top-menu--controls a:has(.icon-bar)::before {
    display: none !important;
  }

  /* Menypanelen oppnas under headern och ovanfor sokningen. */
  .tws-top-menu > .container-fluid > .navbar-collapse {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    z-index: 11000 !important;
    width: min(90vw, 390px) !important;
    max-width: 390px !important;
    height: calc(100dvh - 72px) !important;
    max-height: calc(100dvh - 72px) !important;
    margin: 0 !important;
    padding: 18px 16px 32px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: 12px 0 30px rgba(0,0,0,.22) !important;
  }

  .tws-top-menu > .container-fluid > .navbar-collapse.collapse:not(.in) {
    display: none !important;
  }

  .tws-top-menu > .container-fluid > .navbar-collapse.in,
  .tws-top-menu > .container-fluid > .navbar-collapse.collapse.in,
  .tws-top-menu > .container-fluid > .navbar-collapse[aria-expanded="true"] {
    display: block !important;
  }

  /* Hall logotypen fri fran menyknappen. */
  .pbs-logo {
    margin-left: 58px !important;
  }
}