/* Floating add to cart on mobile product pages */

@media (max-width: 1023px) {
  body.zs-pdp-on .zs-bn,
  body.zs-pdp-on nav.mobile-bottom-nav {
    display: none !important;
  }

  body.zs-pdp-on header.sticky > div[class*="max-w"] {
    display: grid !important;
    grid-template-columns: 32px 32px minmax(0, 1fr) 36px 32px !important;
    grid-template-areas: "back menu search lang bag" !important;
    align-items: center;
    column-gap: 8px !important;
    row-gap: 0 !important;
    padding: 10px 15px !important;
    border-bottom: 1px solid #ececec;
  }

  body.zs-pdp-on .zs-mweb-tabs,
  body.zs-pdp-on .zs-mh-logo,
  body.zs-pdp-on .zs-mh-wish,
  body.zs-pdp-on header a[href="/wishlist"],
  body.zs-pdp-on header a[href="/"] img[alt="Zosouq"] {
    display: none !important;
  }

  body.zs-pdp-on .zs-pdp-back {
    grid-area: back;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    color: #2d2d2d;
  }

  html[dir="rtl"] body.zs-pdp-on .zs-pdp-back svg {
    transform: scaleX(-1);
  }

  body.zs-pdp-on .zs-mh-lang {
    grid-area: lang;
    display: inline-flex !important;
    z-index: 6;
    pointer-events: auto;
  }

  body.zs-pdp-on header .justify-end > a[href="/cart"],
  body.zs-pdp-on header a[href="/cart"],
  body.zs-pdp-on .zs-pdp-bag {
    grid-area: bag;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #2d2d2d !important;
    position: relative !important;
    justify-self: end;
  }

  body.zs-pdp-on {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .zs-pdp-atc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: #fff;
    border-top: 1px solid #ececec;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    font-family: "Noto Sans", Inter, sans-serif;
  }

  .zs-pdp-atc button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
  }

  .zs-pdp-atc button.is-added {
    background: #46b275;
  }

  .zs-pdp-atc button:disabled {
    background: #c4c4c4;
    cursor: not-allowed;
  }
}

@media (min-width: 1024px) {
  .zs-pdp-atc {
    display: none !important;
  }
}
