/************ FINAL / PROSTY I BEZPIECZNY – bez białego prostokąta ************/

/* 1) Scroll-to-top nie może brać udziału w układzie */
#scrolltopbtn{
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9999 !important;
}
#scrolltopbtn::before,
#scrolltopbtn::after{ content:none !important; display:none !important; }

/* 2) Newsletter sklejony ze stopką */
#newsletter, .newsletter, .footer-newsletter { margin-bottom: 0 !important; }
#footer { margin-top: 0 !important; }

/* 3) FULL-WIDTH TŁO POD STOPKĄ */
#footer{
  position: relative;
  z-index: 0;
  --footer-bg: #2b2b2b;
}
#footer::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--footer-bg);
  z-index: -1;
}

/* 4) Górny pasek stopki */
#footer .footer-top{
  background: var(--footer-bg) !important;
  padding-top: 16px;
  padding-bottom: 8px;
}
/* Dolne sekcje transparentne */
#footer .footer-after,
#footer .footer-bottom,
#footer .footer__bottom {
  background: transparent !important;
}

/* 5) Odstępy */
#footer .footer-after { border-top: 1px solid rgba(255,255,255,.12); }
#footer .footer-after > .container { padding-top: 16px; padding-bottom: 16px; }

/* 6) Usuwanie sztucznych wysokości */
#footer [style*="min-height"], #footer [style*="height"]{
  min-height: 0 !important; height: auto !important;
}

/* 7) >>> WYPIERDOLENIE białego prostokąta nad stopką <<< */
.page-footer,
.footer-container,
#footer + .container,
#footer + .page-footer {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Usuwamy pusty biały prostokąt nad stopką */
.anbrandslider-full {
  display: none !important;
}

/* 2 kolumny na desktopie */
.blockreassurance, .blockreassurance_product { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 24px;
}
.blockreassurance .item-product,
.blockreassurance_product .item-product {
  flex: 0 1 calc(50% - 12px);
}

/* Zredukuj *drugi* (pusty) kafel tak, by nie zajmował miejsca */
.blockreassurance .item-product:nth-child(2),
.blockreassurance_product .item-product:nth-child(2) {
  flex: 0 0 0 !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  order: 99; /* przenieś na koniec, żeby 1 i 3 wskoczyły obok siebie */
}

/* Responsywnie – jedna kolumna na wąskich ekranach */
@media (max-width: 767px){
  .blockreassurance .item-product,
  .blockreassurance_product .item-product { flex: 0 0 100%; }
}

/* Globalny hover dla wszystkich przycisków */
.btn:hover,
.button:hover,
.btn-primary:hover,
.btn-secondary:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background-color: #4aa8ff !important;
  border-color: #4aa8ff !important;
  color: #ffffff !important; /* biały tekst na hover, żeby było czytelnie */
}

/* Wymuszenie Roboto w całym Mega Menu */
.megamenu a,
.megamenu div,
.megamenu span,
.megamenu li {
    font-family: 'Roboto', sans-serif !important;
}

.megamenu a {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important; /* normalna grubość */
}

/* Lagarta logo w szarym topbarze (lewa strona) */
.header-nav { 
  position: relative; 
}

/* Logo Lagarta */
.header-nav::before {
  content: "";
  position: absolute;
  left: 380px; /* równy odstęp od lewej, jak konto od prawej */
  top: 50%;
  transform: translateY(-50%);
  width: 220px;      /* szerokość logo */
  height: 50px;      /* wysokość logo */
  background: url('/themes/bunbury/assets/img/lagarta-logo.png') no-repeat left center / contain;
  pointer-events: none; /* żeby logo nie zasłaniało kliknięć */
}

/* Dodaj miejsce, żeby tekst telefonu nie zachodził na logo */
.header-nav .container {
  padding-left: 180px; /* 120px logo + ~60px odstępu */
}

/* Na mobile zmniejszamy logo i padding */
@media (max-width: 768px) {
  .header-nav::before {
    width: 96px;
    height: 22px;
    left: 24px;
  }
  .header-nav .container {
    padding-left: 130px;
  }
}

