/*----------------------------------------
  Icon grid Factory – horisontellt avstånd mellan celler
----------------------------------------*/
.av-icon-cell-item {
  margin-bottom: -125px !important;
}

/* Prenumerera-knappen – större text och tydligare stil */
#av_section_9-fold-unfold .av-fold-button-container {
  font-size: 18px !important;
  font-weight: 300;
  padding: 12px 24px;
  line-height: 1.4;
}

/* Fold/Unfold Effekt – tar bort toning */
.factoryfade .av-fold-unfold-container.folded::after {
  content: none !important;
  display: none !important;
}

/* Tar bort luft ovanför knapp (mobil) */
.jd-unfold-A .av-fold-unfold-container.folded {
  max-height: 0 !important;
}

/* Tar bort luft mellan accordion i unfoldläge på mobil */
@media only screen and (max-width: 767px) {
  .responsive #top .flex_column.av-1uo5dis-c0d3eca9ce7209cce623cea42937423d {
    margin-bottom: 0 !important;
  }
}

/* Bakgrundsfärg bakom knappar */
#av_section_7-fold-unfold,
#av_section_9-fold-unfold {
  background-color: #ffff00 !important;
}

/* Padding under prenumerera-knapp för desktop */
@media (min-width: 768px) {
  #av_section_9-fold-unfold {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/*--------------------------------------------------------------
Ikon ersätter Läs mer
--------------------------------------------------------------*/

/* Gemensam stil för ikonknappar (utom bild och rotation) */
.replace-with-icon a.av-fold-button-container[href="#"],
.replace-close-with-icon a.av-fold-button-container[href*="av_section_"],
.replace-close-with-icon a.av-fold-button-container[href*="avia_sc_fold_column_"] {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34px 34px;
  width: 40px;
  height: 40px;
  display: inline-block;
  color: transparent !important;
  background-color: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  text-decoration: none;
}

/* Röd ikon: Läs mer */
.replace-with-icon a.av-fold-button-container[href="#"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='%23f13942' d='M15 .5C7 .5.6 7 .6 15S7 29.5 15 29.5 29.5 23 29.5 15 23 .5 15 .5Zm8.8 16.3h-7.1v7.1h-3.6v-7.1H6v-3.6h7.1V6h3.6v7.2h7.1z'/%3E%3C/svg%3E");
}

/* Svart ikon: Stäng (roterad) */
.replace-close-with-icon a.av-fold-button-container[href*="av_section_"],
.replace-close-with-icon a.av-fold-button-container[href*="avia_sc_fold_column_"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='%23000' d='M15 .5C7 .5.6 7 .6 15S7 29.5 15 29.5 29.5 23 29.5 15 23 .5 15 .5Zm8.8 16.3h-7.1v7.1h-3.6v-7.1H6v-3.6h7.1V6h3.6v7.2h7.1z'/%3E%3C/svg%3E");
  transform: rotate(45deg);
}

/* Tar bort bottenspace på mobil för innehållssektionen */
@media (max-width: 767px) {
  #after_section_9 .template-page.content.av-content-full.alpha.units {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}