/* Stella footer claim + Heureka + shipping/payment + mobile accordion. Rollback: remove from admin HTML. */

#footer.stella-footer {
  background: #faf8f5 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#footer.stella-footer .footer-rows,
#footer.stella-footer .stella-paybar,
#footer.stella-footer .container.footer-bottom {
  background: transparent !important;
}

#footer .stella-paybar {
  border-top: 1px solid #ece7df;
  box-sizing: border-box;
  clear: both;
  float: none !important;
  margin: 0;
  padding: 28px 0 20px;
  width: 100% !important;
}

#footer .stella-paybar__inner {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  max-width: none;
  padding: 0 50px;
  width: 100%;
}

#footer .stella-paybar__top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  width: 100%;
}

#footer .stella-paybar__claim {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 18px;
  min-width: 260px;
}

/* Claim mark = static SVG. No tilt, no gleam, no gradient overlay. */
#footer .stella-paybar__mark-wrap {
  display: block;
  flex: 0 0 auto;
  height: 52px;
  overflow: hidden;
  position: relative;
  width: 152px;
}

#footer .stella-paybar__mark {
  display: block !important;
  height: 52px !important;
  object-fit: contain;
  object-position: left center;
  width: 152px !important;
}

#footer .stella-paybar__mark-shine {
  display: none !important;
}

#footer .stella-paybar__claim-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  min-width: 0;
}

#footer .stella-paybar__slogan {
  color: #2a2a2a !important;
  font-family: "Inter", sans-serif !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  margin: 0 0 4px !important;
}

#footer .stella-paybar__sub {
  color: #6b6b6b !important;
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

#footer .stella-paybar__heureka {
  align-items: center;
  color: #484848 !important;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 12px;
  text-decoration: none !important;
}

#footer .stella-paybar__heureka-badge {
  animation: stella-heureka-tilt 3.2s ease-in-out infinite;
  display: block !important;
  flex: 0 0 auto;
  height: 72px !important;
  max-height: none !important;
  max-width: none !important;
  transform-origin: 50% 55%;
  width: 72px !important;
  will-change: transform;
}

@keyframes stella-heureka-tilt {
  0%,
  100% {
    transform: rotate(-3.2deg) translateY(0);
  }
  50% {
    transform: rotate(3.2deg) translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #footer .stella-paybar__heureka-badge {
    animation: none;
  }

  #footer .stella-footer-acc__panel,
  #footer .stella-footer-acc__panel > ul,
  #footer .stella-footer-acc__chev {
    transition: none !important;
  }
}

#footer .stella-paybar__heureka-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#footer .stella-paybar__heureka-txt strong {
  color: #2a2a2a;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: #30a9d4;
  text-underline-offset: 3px;
}

#footer .stella-paybar__heureka-txt small {
  color: #6b6b6b;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

#footer .stella-paybar__heureka:hover .stella-paybar__heureka-txt strong {
  color: #1a1a1a;
}

#footer .stella-paybar__pyramid {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  justify-content: flex-end;
  width: 100%;
}

#footer .stella-paybar__logos {
  align-items: center;
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px 8px;
  justify-content: flex-end;
}

#footer .stella-paybar__logo {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex !important;
  flex: 0 0 auto;
  height: 52px;
  justify-content: center;
  width: 100px;
}

#footer .stella-paybar__logo img {
  background: transparent !important;
  display: block !important;
  filter: none !important;
  height: 40px !important;
  max-height: 40px !important;
  max-width: 100px !important;
  object-fit: contain;
  opacity: 0.88 !important;
  transition: opacity 0.2s ease;
  width: auto !important;
}

#footer .stella-paybar__logo:hover img {
  opacity: 1 !important;
}

#footer .stella-paybar__sep {
  align-self: center;
  background: #d8d0c2;
  flex: 0 0 1px;
  height: 32px;
  margin: 0 10px;
  width: 1px;
}

#footer #signature {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
}

/* Address → map (desktop + mobile) */
#footer .stella-footer-kontakt .stella-footer-addr {
  color: #484848 !important;
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: inherit;
  line-height: 1.45;
  margin-top: 4px;
  text-decoration: none !important;
}

#footer .stella-footer-kontakt .stella-footer-addr:hover {
  color: #2a2a2a !important;
}

#footer .stella-footer-kontakt .stella-footer-addr-map {
  color: #6b6b6b;
  margin-left: 0.35em;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

#footer.stella-footer .container.footer-bottom {
  align-items: center;
  border-top: 1px solid #ece7df;
  box-sizing: border-box;
  clear: both;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  justify-content: center;
  margin: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 10px 24px !important;
  position: relative !important;
  text-align: center !important;
  top: 0 !important; /* theme pulls this up with top:-25px into logos */
  width: 100% !important;
}

#footer .footer-bottom .copyright {
  color: #9a9a9a !important;
  display: block !important;
  float: none !important;
  font-family: "Inter", sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  margin: 0 auto !important;
  max-width: 100%;
  padding: 0 !important;
  text-align: center !important;
  width: auto !important;
}

@media (max-width: 767px) {
  /* —— Krug: compact readable contact blocks —— */
  #footer .radek2.stella-footer-acc {
    display: block !important;
    float: none !important;
    height: auto !important;
    padding: 0 4px;
    width: 100% !important;
  }

  #footer .radek2.stella-footer-acc > .kontakt,
  #footer .radek2.stella-footer-acc > .zakaznicka_podpora,
  #footer .radek2.stella-footer-acc > .stella-footer-acc__col {
    box-sizing: border-box;
    clear: both !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  #footer .stella-footer-kontakt {
    border-bottom: 1px solid #ece7df;
    margin-bottom: 4px !important;
    padding: 4px 0 14px !important;
  }

  #footer .stella-footer-kontakt p {
    margin: 0 0 8px !important;
    line-height: 1.4 !important;
  }

  #footer .stella-footer-kontakt p:last-of-type {
    margin-bottom: 10px !important;
  }

  #footer .stella-footer-kontakt strong {
    display: block;
    font-size: 15px !important;
    margin-bottom: 4px;
  }

  #footer .stella-footer-kontakt .stella-footer-addr {
    display: block;
    font-size: 14px !important;
    margin-top: 0;
  }

  #footer .stella-footer-kontakt .share {
    display: flex !important;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
  }

  #footer .zakaznicka_podpora {
    border-top: 1px solid #ece7df;
    margin-top: 4px !important;
    padding: 14px 0 8px !important;
  }

  #footer .zakaznicka_podpora p {
    margin: 0 0 6px !important;
    line-height: 1.4 !important;
  }

  /* Accordion open/close — grid 0fr→1fr + fade */
  #footer .stella-footer-acc__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.34s ease;
  }

  #footer .stella-footer-acc__col.is-open .stella-footer-acc__panel {
    grid-template-rows: 1fr;
  }

  #footer .stella-footer-acc__panel > ul {
    display: block !important;
    margin: 0 !important;
    min-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 !important;
    transform: translateY(-6px);
    transition: opacity 0.28s ease, transform 0.28s ease, padding 0.34s ease;
  }

  #footer .stella-footer-acc__col.is-open .stella-footer-acc__panel > ul {
    opacity: 1;
    padding: 0 0 8px !important;
    transform: translateY(0);
  }

  #footer .stella-footer-acc__btn {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #ece7df !important;
    box-shadow: none !important;
    color: #2a2a2a !important;
    cursor: pointer;
    display: flex !important;
    font-family: "Inter", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    justify-content: space-between;
    margin: 0 !important;
    min-height: 48px;
    padding: 12px 0 !important;
    text-align: left !important;
    width: 100% !important;
  }

  #footer .stella-footer-acc__chev {
    border-right: 1.5px solid #6b6b6b;
    border-bottom: 1.5px solid #6b6b6b;
    display: block;
    flex: 0 0 auto;
    height: 8px;
    margin-right: 4px;
    transform: rotate(45deg);
    transition: transform 0.28s ease, margin-top 0.28s ease;
    width: 8px;
  }

  #footer .stella-footer-acc__col.is-open .stella-footer-acc__chev {
    margin-top: 4px;
    transform: rotate(-135deg);
  }

  #footer .stella-footer-acc__panel > ul li {
    margin: 0 !important;
    padding: 7px 0 !important;
    width: 100% !important;
  }

  /* —— Paybar: claim left, then inverted pyramid —— */
  #footer .stella-paybar {
    margin-top: 0 !important;
    padding: 16px 0 14px;
  }

  #footer .stella-paybar__inner {
    align-items: center;
    gap: 12px;
    padding: 0 16px;
  }

  #footer .stella-paybar__top {
    flex-direction: column;
    flex: 0 0 auto;
    gap: 12px;
    height: auto !important;
    width: 100%;
  }

  /* Kill theme empty pad under footer columns */
  #footer .custom-footer__banner1 {
    padding-bottom: 0 !important;
  }

  #footer .stella-paybar__claim {
    flex: 0 0 auto !important;
    gap: 12px;
    height: auto !important;
    justify-content: center;
    min-height: 0 !important;
    min-width: 0;
    width: 100%;
  }

  #footer .stella-paybar__mark-wrap {
    height: 40px;
    width: 118px;
  }

  #footer .stella-paybar__mark {
    height: 40px !important;
    width: 118px !important;
  }

  #footer .stella-paybar__claim-txt {
    min-height: 40px;
  }

  #footer .stella-paybar__slogan {
    font-size: 16px !important;
  }

  #footer .stella-paybar__sub {
    font-size: 12px !important;
  }

  #footer .stella-paybar__heureka {
    justify-content: center;
    width: 100%;
  }

  #footer .stella-paybar__heureka-badge {
    height: 56px !important;
    width: 56px !important;
  }

  #footer .stella-paybar__pyramid {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    width: 100%;
  }

  #footer .stella-paybar__logos--ship,
  #footer .stella-paybar__logos--pay {
    justify-content: center !important;
    width: 100%;
  }

  #footer .stella-paybar__logo {
    height: 36px;
    width: 70px;
  }

  #footer .stella-paybar__logo img {
    height: 26px !important;
    max-height: 26px !important;
    max-width: 66px !important;
  }

  #footer .stella-paybar__sep {
    display: none !important;
  }

  /* Line between payments and © — equal air above/below the rule */
  #footer.stella-footer .container.footer-bottom {
    border-top: 1px solid #ece7df;
    margin-top: 0 !important;
    padding: 14px 16px 12px !important;
  }
}

@media (min-width: 768px) {
  #footer .stella-footer-acc__btn {
    display: none !important;
  }

  #footer .stella-footer-acc__panel {
    display: contents;
  }
}

@media (max-width: 991px) {
  #footer .stella-paybar__inner {
    padding: 0 24px;
  }
}
