@supports (display: grid) and selector(#footer:has(.custom-footer__banner8481)) {
  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child) > .custom-footer {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding-inline: 0;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child) > .site-name {
    position: static;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child) > .custom-footer > .custom-footer__banner8481 {
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    padding-inline: 0;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child) > .custom-footer > .custom-footer__banner8481 > .banner > .banner-wrapper > span {
    display: block;
  }
}

/* Samostatný banner Shoptetu tvoří poptávku a čtyři informační sloupce. */
@supports (display: grid) and selector(#footer:has(.bd-footer-info)) {
  #footer:has(> .footer-rows .bd-footer-info) {
    background: #fff;
    border-top: 1px solid #e6edee;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) {
    grid-template-columns: minmax(0, 1.12fr) repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: clamp(20px, 3vw, 48px);
    align-items: start;
    margin-inline: auto;
    padding-block: clamp(18px, 2.3vw, 32px) clamp(28px, 4vw, 52px);
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) :is(.custom-footer, .custom-footer__banner8481, .banner, .banner-wrapper, .banner-wrapper > span, .bd-footer-info) {
    display: contents;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) > .custom-footer > .custom-footer__banner8481 > .banner > .banner-wrapper > span {
    display: contents;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) .bd-footer-poptavka {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) > .site-name {
    display: block;
    position: static;
    width: min(100%, 260px);
    max-width: none;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    margin: clamp(24px, 3vw, 40px) 0 0;
    padding: 0;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) > .site-name:has(img) > a {
    display: block;
    border-radius: 8px;
    background: #0d1b20;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) > .site-name img {
    display: block;
    width: 100%;
    height: auto;
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) .bd-footer-kontakt {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    width: min(100%, 282px);
  }

  #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) .bd-footer-odkazy {
    grid-column: 2 / -1;
    grid-row: 2 / 4;
    align-self: stretch;
    margin-block-start: clamp(24px, 3vw, 40px);
    padding-inline-start: clamp(20px, 3vw, 48px);
    border-inline-start: 1px solid #dae4e6;
  }

  @media (max-width: 62rem) {
    #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) {
      grid-template-columns: minmax(0, 1fr);
      padding-inline: clamp(16px, 3vw, 30px);
    }

    #footer > .footer-rows:has(> .custom-footer.elements-1 > .custom-footer__banner8481:only-child .bd-footer-info) .bd-footer-odkazy {
      grid-column: 1;
      grid-row: 4;
      padding-inline-start: 0;
      border-inline-start: 0;
    }
  }
}
