:root {
  --swl-fix_headerH: 60px;
  --swl-adminbarH: 32px
}

.floating-heading-container {
  display: none;
  position: fixed;
  top: var(--swl-fix_headerH);
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  z-index: 999;
  opacity: 0;
  transition: opacity .2s ease, transform .3s ease, height .3s ease;
  transform: translateY(-100%);
  box-sizing: border-box;
  font-family: var(--wp--preset--font-family--system-font, sans-serif)
}

.floating-heading-container.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0)
}

.floating-heading {
  cursor: pointer;
  transition: opacity .2s ease
}

#floating-heading-h2 {
  font-size: 1.4em;
  line-height: 1.4;
  margin: 0;
  padding: 10px;
  position: relative;
  font-weight: 700;
  letter-spacing: .03em;
}

#floating-heading-h3 {
  font-size: 1em;
  line-height: 1.4;
  margin: 0;
  padding: 10px 10px 10px 30px;
  position: relative;
  font-weight: 700;
  letter-spacing: .03em;
  border-top: 2px solid currentColor
}

.floating-heading:hover {
  background-color: rgba(0, 0, 0, .05)
}

.floating-heading.is-visible {
  display: block
}

.floating-heading:not(.is-visible) {
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden
}

@media (min-width:960px) {
  .floating-heading-container {
    left: 0;
    right: 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto
  }

  #floating-heading-h2 {
    font-size: 1.8em
  }

  #floating-heading-h3 {
    font-size: 1em
  }
}

@media (max-width:959px) {
  .floating-heading-container {
    left: 0 !important;
    padding-left: 15px;
    padding-right: 15px;
    top: 0 !important;
    position: fixed;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1)
  }

  #floating-heading-h2 {
    font-size: 1.2em
  }

  #floating-heading-h3 {
    font-size: 1.1em;
    padding-left: 20px
  }
}