/* === Footer layout: 4-column grid === */

#footer.footer.footer .custom-footer-left-panel {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
  gap: 30px !important;
  align-items: start !important;
  width: 100% !important;
}

#footer.footer.footer .custom-footer-left-panel > .footer-item,
#footer.footer.footer .custom-footer-left-panel > .ml-newsletter-placeholder {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  float: none !important;
}

/* === Pořadí sloupců (CSS order — pojistka proti přeházení v DOM) === */
#footer.footer.footer .custom-footer__articles { order: 1 !important; }
#footer.footer.footer .footer-item--contact { order: 2 !important; }
#footer.footer.footer .ml-newsletter-placeholder { order: 3 !important; }
#footer.footer.footer .custom-footer__banner9671 { order: 4 !important; }
#footer.footer.footer .custom-footer__facebook { order: 99 !important; }
#footer.footer.footer .custom-footer__banner7671 { order: 99 !important; }

/* Logo v patičce — centrované nad platbami */
#footer.footer.footer .footer-logo-bottom {
  text-align: center !important;
  padding: 20px 0 10px !important;
  margin: 0 !important;
  width: 100% !important;
}
#footer.footer.footer .footer-logo-bottom .site-name {
  margin: 0 auto !important;
  display: block !important;
  text-align: center !important;
}
#footer.footer.footer .footer-logo-bottom .site-name a {
  display: inline-block !important;
}
#footer.footer.footer .footer-logo-bottom .site-name img,
#footer.footer.footer .site-name img {
  max-width: 220px !important;
  height: auto !important;
}

/* Zkrátit horní okraj patičky (logo se přesunulo dolů) */
#footer.footer.footer .footer-rows > .container {
  padding-top: 10px !important;
}

/* === Nadpisy sloupců === */
#footer.footer.footer h4.accordion__trigger,
#footer.footer.footer h4.accordion__trigger span,
#footer.footer.footer h3.pageElement__heading.accordion__trigger,
#footer.footer.footer h3.pageElement__heading.accordion__trigger span {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1.1em !important;
  margin-bottom: 15px !important;
}

/* === Odkazy === */
#footer.footer.footer a,
#footer.footer.footer a:hover,
#footer.footer.footer a:visited {
  color: #fff !important;
}

#footer.footer.footer ul li,
#footer.footer.footer ul li a,
#footer.footer.footer .accordion__content ul li a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95em !important;
  line-height: 1.8 !important;
}

#footer.footer.footer .accordion__content ul li a:hover {
  color: #fff !important;
}

#footer.footer.footer .accordion__content ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#footer.footer.footer .accordion__content ul li::before {
  display: none !important;
}

/* === Kontakt: email, telefon, adresa === */
#footer.footer.footer .mail a,
#footer.footer.footer .tel a,
#footer.footer.footer .mail,
#footer.footer.footer .tel {
  color: rgba(255, 255, 255, 0.8) !important;
}

#footer.footer.footer .mail::before,
#footer.footer.footer .tel::before,
#footer.footer.footer .contact-box-icon-list .contact-box-icon a::before,
#footer.footer.footer .contact-box-icon-list .contact-box-icon a::after {
  color: #fff !important;
}

#footer#footer .contact-box ul li > span::before {
  color: #fff !important;
}

/* === Adresa s odkazem na mapy === */
#footer .ml-footer-address {
  display: block !important;
  position: relative !important;
  padding-left: 30px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95em !important;
  line-height: 1.5 !important;
  min-height: 20px !important;
}
#footer .ml-footer-address a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
}
#footer .ml-footer-address a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}
#footer .ml-footer-address::before {
  content: '' !important;
  position: absolute !important;
  left: 2px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center !important;
  background-size: contain !important;
}

/* === FB + IG ikony — malé, vedle sebe === */
#footer.footer.footer .contact-box-icon-list {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 15px !important;
  padding: 0 !important;
  list-style: none !important;
}

#footer.footer.footer .contact-box-icon-list > li.contact-box-icon {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
}

#footer.footer.footer .contact-box-icon-list .contact-box-icon span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
}

#footer.footer.footer .contact-box-icon-list .facebook a {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 0 !important;
  overflow: hidden !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s !important;
}

#footer.footer.footer .contact-box-icon-list .facebook a::before {
  color: #fff !important;
  font-size: 20px !important;
  line-height: 24px !important;
}

/* IG ikona — Shoptet icon font handles the glyph via ::before */
#footer.footer.footer .contact-box-icon-list .instagram a {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 0 !important;
  overflow: hidden !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s !important;
}

#footer.footer.footer .contact-box-icon-list .instagram a::before {
  color: #fff !important;
  font-size: 20px !important;
  line-height: 24px !important;
}

#footer.footer.footer .contact-box-icon-list a:hover {
  opacity: 1 !important;
}

/* Skrýt "Kontaktní formulář" button */
#footer.footer.footer .btn.btn-primary {
  display: none !important;
}

/* === Heureka sekce === */
#footer.footer.footer .heureka-section h4 {
  color: #fff !important;
  font-weight: 700 !important;
  margin: 0 0 12px 0 !important;
}

#footer.footer.footer .heureka-section img {
  width: 140px !important;
  max-width: 140px !important;
  height: auto !important;
  display: block !important;
}

/* SVG fallback — zajistit viditelnost i bez intrinsic size */
#footer.footer.footer .heureka-section a {
  display: block !important;
}

/* === Herpa eXtra logo pod Heurekou === */
#footer.footer.footer .herpa-section {
  margin-top: 20px !important;
}

#footer.footer.footer .herpa-section img {
  max-width: 120px !important;
  height: auto !important;
  opacity: 0.9 !important;
  transition: opacity 0.2s !important;
}

#footer.footer.footer .herpa-section img:hover {
  opacity: 1 !important;
}

/* === Newsletter placeholder === */
#footer.footer.footer .ml-newsletter-placeholder {
  color: #fff !important;
}

#footer.footer.footer .ml-newsletter-placeholder h3,
#footer.footer.footer .ml-newsletter-placeholder h3 span {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1.1em !important;
  margin-bottom: 15px !important;
}

#footer.footer.footer .ml-newsletter-text {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95em !important;
  line-height: 1.6 !important;
  margin: 0 0 10px 0 !important;
}

#footer.footer.footer .ml-newsletter-soon {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.9em !important;
  font-style: italic !important;
  margin: 0 !important;
}

/* === Copyright / footer-bottom === */
#footer.footer.footer .copyright,
#footer.footer.footer .copyright a,
#footer.footer.footer .footer-bottom a,
#footer.footer.footer .footer-bottom .title {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* === Platby === */
#footer.footer.footer .footer-platby {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 20px 0 !important;
  margin-top: 10px !important;
  width: 100% !important;
  text-align: center !important;
}

#footer.footer.footer .footer-platby__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 1418px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

#footer.footer.footer .footer-platby__icons {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

#footer.footer.footer .footer-platby__icons a {
  display: inline-block !important;
  opacity: 0.85 !important;
  transition: opacity 0.2s !important;
}

#footer.footer.footer .footer-platby__icons a:hover {
  opacity: 1 !important;
}

#footer.footer.footer .footer-platby__icons img {
  height: 30px !important;
  width: auto !important;
  display: block !important;
}

/* === Banner wrapper reset === */
#footer.footer.footer .banner,
#footer.footer.footer .banner-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}

/* === Herpa staré logo banner — skrýt (nahrazeno Herpa sekcí pod Heurekou) === */
#footer.footer.footer .custom-footer__banner7671 {
  display: none !important;
}

/* === RESPONSIVE === */

/* Tablet: 2×2 grid, BEZ accordionu (vše viditelné) */
@media (max-width: 991px) {
  #footer.footer.footer .custom-footer-left-panel {
    grid-template-columns: 1fr 1fr !important;
    gap: 25px !important;
  }
}

/* Tablet: vynutit viditelnost všech accordion sekcí (768–991px) */
@media (min-width: 768px) and (max-width: 991px) {
  #footer.footer.footer .accordion__content,
  #footer.footer.footer .footer-item--contact > .accordion__content,
  #footer.footer.footer .ml-newsletter-placeholder > .accordion__content,
  #footer.footer.footer .custom-footer__banner9671 > .accordion__content,
  #footer.footer.footer .custom-footer__articles > .accordion__content {
    display: block !important;
    overflow: visible !important;
  }

  /* Skrýt accordion šipky na tabletu */
  #footer.footer.footer .accordion__trigger::after,
  #footer.footer.footer .accordion__trigger::before {
    display: none !important;
  }

  /* Trigger nesmí vypadat klikatelně */
  #footer.footer.footer .accordion__trigger {
    cursor: default !important;
    pointer-events: none !important;
  }
}

/* Mobil: accordion aktivní (≤767px) */
@media (max-width: 767px) {
  /* Accordion: skrýt obsah dynamických položek */
  #footer.footer.footer .footer-item--contact > .accordion__content,
  #footer.footer.footer .ml-newsletter-placeholder > .accordion__content,
  #footer.footer.footer .custom-footer__banner9671 > .accordion__content {
    display: none !important;
    overflow: hidden !important;
  }

  /* Zobrazit při aktivaci */
  #footer.footer.footer .footer-item--contact.is-active > .accordion__content,
  #footer.footer.footer .ml-newsletter-placeholder.is-active > .accordion__content,
  #footer.footer.footer .custom-footer__banner9671.is-active > .accordion__content {
    display: block !important;
  }
}

/* Mobil: 1 sloupec */
@media (max-width: 767px) {
  #footer.footer.footer .custom-footer-left-panel {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #footer.footer.footer .footer-platby__inner {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }

  #footer.footer.footer .footer-platby__icons img {
    height: 25px !important;
  }

  #footer.footer.footer .footer-logo-bottom .site-name img,
  #footer.footer.footer .site-name img {
    max-width: 180px !important;
  }
}

/* Skrýt newsletter addon floating strip */
.odber { display: none !important; }

/* Zdrojový newsletter blok nad gridem — fallback k JS */
#footer.footer.footer .custom-footer__newsletter.footer-item-newsletter {
  display: none !important;
}

/* === Newsletter formulář v patičce === */

/* Reset compact-form inline layoutu — vynutit vertikální sloupec */
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form,
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form.compact-form {
  display: block !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form fieldset {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .validator-msg-holder,
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .js-validated-element-wrapper,
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .form-group,
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form > div {
  display: block !important;
  width: 100% !important;
  flex: none !important;
  position: static !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .no-display {
  display: none !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form br {
  display: none !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .form-control {
  display: block !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  border-radius: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 14px !important;
  font-size: 0.9em !important;
  position: static !important;
  flex: none !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .form-control:focus {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.2) !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form label {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.82em !important;
  line-height: 1.4 !important;
  display: block !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form label a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: underline !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .btn.btn-default {
  display: block !important;
  width: 100% !important;
  background: #F3AC40 !important;
  border: none !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 11px 16px !important;
  font-size: 0.9em !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  box-sizing: border-box !important;
  text-align: center !important;
  position: static !important;
  flex: none !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .btn.btn-default:hover {
  background: #e09b2e !important;
}
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .btn.btn-default::after,
#footer.footer.footer .ml-newsletter-placeholder .subscribe-form .btn.btn-default::before {
  display: none !important;
}

/* Sidebar kontakty stránka */
body.in-contacts .sidebar-left {
  display: block !important;
}
body.in-contacts .content-wrapper-in {
  display: flex !important;
}
body.in-contacts main.content {
  flex: 1 !important;
}
