@media (max-width: 767px) {
  html[data-lxf-homepage-order] body.type-index:has(.before-carousel .banners-row .carousel)
  .footer-banners:not([data-lxf-partners-after-services]) {
    display: none !important;
  }

  html[data-lxf-homepage-order] body.type-index:has(.before-carousel .banners-row .carousel)
  .homepage-box.welcome-wrapper {
    visibility: hidden;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-index [data-lxf-services-after-banner] {
    margin-block: 0 24px;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-index
  .welcome [data-lxf-partners-after-services] .footer-banner a {
    padding: 20px 16px !important;
  }

  html[data-lxf-ux-shop="lxf-cz"] body:not(.ordering-process) .responsive-tools [data-target="login"],
  html[data-lxf-ux-shop="lxf-cz"] body:not(.ordering-process) #header .cart-count {
    width: 44px;
    min-width: 44px;
    inset-block-start: 2px;
  }

  html[data-lxf-ux-shop="lxf-cz"] body:not(.ordering-process) .responsive-tools [data-target="login"] { right: 96px; }
  html[data-lxf-ux-shop="lxf-cz"] body:not(.ordering-process) #header .cart-count { right: 48px; }

  html[data-lxf-ux-shop="lxf-cz"] .responsive-tools [data-target="navigation"] {
    inline-size: 48px;
    min-inline-size: 48px;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik.ordering-process .responsive-tools [data-target="navigation"] {
    visibility: visible;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik.ordering-process.navigation-window-visible #navigation .navigation-in {
    display: block;
  }

  /* Shoptet's removal confirmation otherwise covers the newly available controls. */
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .msg.msg-success .container {
    top: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    animation: none;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik.ordering-process #header .navigation-buttons {
    right: 48px;
    width: 44px;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik.ordering-process #header .navigation-buttons :is(.top-nav-button-login, .top-nav-button-account) {
    position: absolute;
    z-index: 1;
    inset: 2px 0 auto auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik.ordering-process #header .navigation-buttons :is(.top-nav-button-login, .top-nav-button-account) > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  html[data-lxf-ux-shop="lxf-cz"] :is(.responsive-tools a[data-target="navigation"], .responsive-tools a[data-target="login"], #header .cart-count, #header .top-nav-button-login, #header .top-nav-button-account):focus-visible {
    outline: 2px solid #24242e;
    outline-offset: -3px;
  }

  html[data-lxf-ux-shop="lxf-cz"] #login :is(a.lost-pass, a[data-testid="signup"]) {
    position: static;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: underline;
  }

  html[data-lxf-ux-shop="lxf-cz"] #login :is(a.lost-pass, a[data-testid="signup"]):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  html[data-lxf-ux-shop="lxf-cz"] #login .form-group:has(> a.lost-pass) {
    position: relative;
  }

  html[data-lxf-ux-shop="lxf-cz"] #login .form-group > a.lost-pass {
    position: absolute;
    inset: 0 0 auto auto;
  }

  html[data-lxf-ux-shop="lxf-cz"] #login .form-group:has(> a.lost-pass) > label {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline-end: 145px;
  }

  html[data-lxf-ux-shop="lxf-cz"] #lxf-mobile-drawer[open] .lxf-drawer-links {
    border-top: 0;
    margin-top: 0;
    padding-block-start: 12px;
    overflow-wrap: anywhere;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik
  .cart-summary .discount-coupon:not(.uplatneno) > form {
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik
  .cart-summary .discount-coupon:not(.uplatneno) > form #discountCouponCode,
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes .search,
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes #formSearchFormContent {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-inline: auto;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes .search {
    display: block;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik
  #formSearchFormContent :is(fieldset, .search-input) {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik #formSearchFormContent > fieldset {
    margin: 0;
    padding: 0;
    border: 0;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik
  .empty-cart-boxes li > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 8px;
    padding-inline: 12px;
    text-align: left;
    line-height: 1.3;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes li > a::after {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: var(--lxf-cart-icon) center / contain no-repeat;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/nase-sluzby/"] { --lxf-cart-icon: url("icons/services.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/svitidla/"] { --lxf-cart-icon: url("icons/luminaire.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/led-zarovky-230v/"] { --lxf-cart-icon: url("icons/bulb.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/komponenty-pro-vyrobu-svitidel/"] { --lxf-cart-icon: url("icons/components.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/led-profily-hlinikove/"] { --lxf-cart-icon: url("icons/profile.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/led-pasky/"] { --lxf-cart-icon: url("icons/strip.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/neonove-napisy-a-vyroba-neonu/"] { --lxf-cart-icon: url("icons/neon.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/led-ovladace/"] { --lxf-cart-icon: url("icons/controller.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/led-zdroje-a-trafa/"] { --lxf-cart-icon: url("icons/power-supply.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/novinky/"] { --lxf-cart-icon: url("icons/new.svg"); }
  html[data-lxf-ux-shop="lxf-cz"] body.in-kosik .empty-cart-boxes a[href*="/vyprodej/"] { --lxf-cart-icon: url("icons/sale.svg"); }

  html[data-lxf-ux-shop="lxf-cz"] #footer .custom-footer__newsletter
  #formNewsletterWidget > fieldset > fieldset:has(#newsletterWidgetCaptcha) {
    margin: 20px 0 0;
    padding: 0;
  }

  html[data-lxf-ux-shop="lxf-cz"] #footer #formNewsletterWidget > fieldset > fieldset > h2 {
    margin: 0 0 12px;
    font-size: clamp(20px, 5vw, 24px);
  }

  html[data-lxf-ux-shop="lxf-cz"] #footer #formNewsletterWidget .captcha-image {
    margin: 0 0 12px;
  }

  html[data-lxf-ux-shop="lxf-cz"] #footer #formNewsletterWidget .captcha-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }

  html[data-lxf-ux-shop="lxf-cz"] #footer #formNewsletterWidget input#newsletterWidgetCaptcha {
    width: 100%;
    max-width: none;
  }
}
