/**
Theme Name: Dokumentacja
Author:  BonaSoft Sp. z o.o.
Author URI: https://bonasoft.pl/
Description: Motyw witryny dokumentacja.bonasoft.pl
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dokumentacja
Template: astra
*/

/*GLOBALNE*/

:root {
  --BScolor: #a91225;
}

.ast-container {
  padding-left: 3%;
  padding-right: 3%;
}

#primary {
  height: calc(100vh - 250px);
  overflow-y: scroll;
  margin: 50px 0 0 0;
  padding-right: 60px;
}

.site-content .ast-container {
  padding-right: 0;
}

.entry-content[ast-blocks-layout]>* {
  max-width: none;
}

.entry-content>.wp-block-columns {
  padding: 0;
  margin-bottom: 60px;
}

#page h2 {
  margin-top: 60px;
}

@media (min-width: 781px) and (max-width: 1200px) {

  #primary,
  #secondary {
    width: 100%;
    height: auto;
  }

  #page #secondary .sidebar-main {
    height: auto;
    padding: 0;
  }

  .site-content .ast-container {
    display: flex;
    flex-direction: column;
  }

  .ast-left-sidebar #primary {
    padding: 0 60px 0 0;
    margin-bottom: 60px;
  }
}

@media (max-width: 781px) {
  .ast-left-sidebar #primary {
    margin-top: 30px;
  }

  .site-content .ast-container {
    padding-right: 1px;
  }

  #primary {
    height: calc(100vh - 320px);
  }
}

@media (max-height: 700px) and (min-width: 1200px) {
  #primary {
    height: auto;
    margin-bottom: 50px;
  }
}

/*NAGŁOWEK*/

.ast-icon.icon-search svg {
  height: 1em;
  width: 1em;
}

.ast-search-box.header-cover .search-field {
  font-size: 1.5em;
}

@media (max-width: 781px) {
  .ast-search-box.header-cover .search-field {
    font-size: 1.2em;
  }
}

/*MENU*/

@media (min-width: 781px) and (max-width: 1200px) {
  .iksm-terms-tree--level-1 .iksm-term {
    padding: 15px 10px 15px 80px !important;
  }

  .iksm-terms-tree--level-1 .iksm-term--expanded {
    padding: 15px 10px 0 80px !important;
  }

  .iksm-terms-tree--level-2 .iksm-term {
    padding-left: 0 !important;
  }
}

@media (max-width: 781px) {

  #page #ast-hf-mobile-menu,
  .ast-header-break-point .main-navigation .stack-on-mobile li,
  .ast-builder-menu-mobile .main-navigation .menu-item:hover>.menu-link,
  .ast-builder-menu-mobile .main-navigation .inline-on-mobile .menu-item:hover>.ast-menu-toggle {
    background-color: #f4f5fb;
  }

  .ast-header-break-point .ast-icon.icon-arrow svg {
    color: rgba(133, 133, 133, 1);
    height: 0.5em;
    width: 0.8em;
  }

  .ast-header-break-point .main-navigation ul .menu-item .menu-link .icon-arrow:first-of-type svg {
    top: 0.05em;
    width: 0.6em;
  }

  .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item>.menu-link {
    color: #3f4669;
  }

  #ast-hf-mobile-menu .current-menu-item {
    background-color: #3f46690f;
  }

  .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item>.menu-link {
    border-bottom: solid 1px #3f46691f;
  }

  #ast-hf-mobile-menu .sub-menu li {
    background-color: #3f46690f;
  }
}

/*SIDEBAR*/

.ast-left-sidebar #secondary {
  padding: 0;
  border: none;
  margin: 0;
}

.ast-left-sidebar #primary {
  border: none;
}

#secondary .sidebar-main {
  height: calc(100vh - 180px);
  overflow: auto;
  background: #f4f5fb;
  padding: 50px 0 20px 0;
  margin-left: -80px;
}

.iksm-widget .iksm-term .iksm-term__inner {
  background: transparent;
  min-height: auto !important;
}

.iksm-widget .iksm-term .iksm-term__inner .iksm-term__link {
  padding: 5px 0;
  color: #3f4669;
  font-size: 1em;
  line-height: 24px;
}

.iks-icon-chevron-1:before {
  color: #3f4669;
  font-size: 16px;
}

.iksm-terms-tree--level-1 .iksm-term {
  padding: 15px 10px 15px 80px;
  border-bottom: solid 1px #3f46691f;
}

.iksm-terms-tree--level-2 .iksm-term {
  padding: 15px 0 15px 0;
  border: none;
}

.iksm-terms-tree--level-2 {
  width: auto;
  margin-left: -80px;
  margin-right: -10px;
  padding-left: 80px;
  background: #3f46690f;
}

.iksm-terms-tree--level-2 .iksm-term--current,
.iksm-term--current>.iksm-term__inner,
.iksm-term__inner:hover {
  background: transparent !important;
}

.iksm-terms-tree--level-1 .iksm-term--expanded {
  padding-bottom: 0;
}

.iksm-widget .iksm-term--current,
.iksm-term--expanded {
  background: #3f46690f;
}

.iksm-term--has-children.iksm-term--expanded .iksm-term__inner {
  padding-bottom: 15px;
}

.iksm-terms-tree--level-2 .iksm-term__inner {
  padding-bottom: 0 !important;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] .wp-block-image {
  margin: 0;
}

@media (max-width: 781px) {
  #secondary .sidebar-main {
    display: none;
  }
}

@media (max-height: 700px) and (min-width: 1200px) {
  #secondary .sidebar-main {
    height: 100%;
  }
}

/*PODSTRONY*/

header.entry-header .entry-title {
  font-size: 2.5em;
}

/*SPIS TREŚCI*/

#page .bst-doc__table-of-contents {
  padding: 0 0 20px 0;
  border-bottom: solid 1px #3f46691f;
  margin-left: 5px;
}

.bst-doc__table-of-contents li {
  padding-left: 8px;
}

.bst-doc__table-of-contents li::marker {
  /* content: "\279B"; */
  content: "\203A";
  color: var(--BScolor);
}

/*WYNIKI WYSZUKIWANIA*/

.no-results.not-found .search-field {
  width: 100%;
}

.no-results.not-found .search-submit {
  margin-top: 18px;
}

.ast-archive-description {
  border-bottom: none;
}

.search-results .blog-layout-1 h2 {
  font-size: 1.5em;
}

@media (max-width: 781px) {
  .ast-archive-description .ast-archive-title {
    font-size: 2.5em;
    line-height: 1.1em;
  }
}

/*FORMULARZ CF7*/

.wpcf7 form.invalid .wpcf7-response-output {
  border-color: var(--BScolor);
  color: var(--BScolor);
  padding: 12px 20px;
  margin: 0;
}

.wpcf7 form.sent .wpcf7-response-output {
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  border: none !important;
  color: #006600;
  font-size: 1.125em;
}

.bs-color,
.wpcf7-not-valid-tip {
  color: var(--BScolor);
}

.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item input[type="checkbox"] {
  vertical-align: -7px;
  height: 24px;
  width: 24px;
}

/*FORMULARZ ZŁOSZCZENIA PROŚBY O DOSTĘP DO WITRYNY*/
@media (max-width: 781px) {
  .access-to-site-form {
    padding-left: 60px;
  }
}

/*LINKI W STOPCE*/

.site-footer-section:nth-child(n + 2) a {
  border-bottom: 1px solid transparent;
  margin-top: 1px;
  transition: 0.4s ease;
}

.site-footer-section:nth-child(n + 2) a:hover {
  color: #3f4669;
  border-bottom: 1px solid #3f4669;
}

/*KOLUMNY W STOPCE*/

.ast-builder-footer-grid-columns {
  gap: 0;
}

/*CUSTOM SCROLL BAR*/

::-webkit-scrollbar {
  width: 11px;
  -webkit-transition: 0.5s ease;
  transition: 0.5s ease;
}

::-webkit-scrollbar:hover {
  cursor: pointer;
}

::-webkit-scrollbar-thumb {
  background: var(--BScolor);
  border-left: 2px solid #f4f5fb;
  border-right: 2px solid #f4f5fb;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--BScolor);
}


/* ====================== */
/* == KLASY DODATKOWE* == */
/* ====================== */

/*WYRÓŻNIONY TEKST Z OBRAMOWANIEM*/
.special-text {
  display: inline-block;
  margin: 16px 0;
  padding: 20px;
  border: 1px solid #00000050;
  border-left: 2px solid #000019;
}

/*PRZYCISK POWROTU DO SPISU TREŚCI*/
.ShowBackToContents {
  position: fixed;
  top: 115px;
  right: 3%;
}

#page .ShowBackToContents a {
  background: transparent;
  color: #000019;
  padding-right: 0;
}

#page .ShowBackToContents a::before {
  content: "";
  background: url("http://dokumentacja.bonasoft.pl/wp-content/uploads/2023/05/upload.png");
  background-size: 20px;
  padding-right: 30px;
  background-repeat: no-repeat;
}

/*UKRYCIE ELEMENTU*/
.hidden-item {
  display: none;
  opacity: 0;
}
