@media (min-width: 1024px) {
  body.ft-cz-design #header .navigation-buttons .cart-count {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 44px;
    padding: 0;
  }
  body.ft-cz-design #header .navigation-buttons .cart-count::before {
    display: block !important;
    font-size: 25px;
    line-height: 1;
    margin: 0;
  }
  body.ft-cz-design #header .ft-cz-cart-label {
    display: none;
  }
  body.ft-cz-design #header .navigation-buttons .cart-count [data-testid="headerCartCount"] {
    display: grid !important;
    place-items: center;
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 999px;
    background: #1e4937;
    color: #fff;
    font: 700 11px/1 system-ui, sans-serif;
    font-style: normal;
    box-shadow: 0 0 0 2px #fbfaf4;
  }
}

@media (min-width: 1024px) {
  body.ft-cz-design #header .ft-cz-search input {
    min-width: 0;
  }
  body.ft-cz-design #header .ft-cz-search button:not(:focus-visible),
  body.ft-cz-design #header .ft-cz-search button:focus-visible {
    position: static;
    flex: none;
    width: auto;
    height: auto;
    min-height: 42px;
    padding: 0 18px;
    clip-path: none;
    border-radius: 0 9px 9px 0;
    background: #1e4937;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
  }
  body.ft-cz-design #header .ft-cz-search button:hover {
    background: #2d614b;
  }
}

@media (max-width: 767px) {
  body.ft-cz-design .responsive-tools .site-name img {
    filter: none !important;
    width: 64px;
    height: 44px;
    object-fit: contain;
  }

  body.ft-cz-design #header {
    height: 0;
    min-height: 0;
  }

  body.ft-cz-design #header .cart-count::before {
    color: #203b31 !important;
    position: absolute;
    left: 8px;
    top: 16px;
    margin: 0;
  }

  body.ft-cz-design #header .cart-count [data-testid="headerCartCount"] {
    inset: 5px 3px auto auto;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    border-radius: 999px;
    background: #1e4937 !important;
    color: #fff !important;
    font: 700 10px/17px system-ui, sans-serif;
    box-shadow: 0 0 0 2px #edf2e8;
  }

  body.ft-cz-design #header .search .search-form {
    background: #fbfaf4;
    border-bottom: 1px solid #d8e2d4;
  }

  body.ft-cz-design #header .search .search-input {
    padding-right: 86px;
    font-size: 16px;
  }

  body.ft-cz-design #header .search [data-testid="searchBtn"] {
    width: 76px;
    border-radius: 0 7px 7px 0;
    background: #1e4937 !important;
    color: #fff !important;
    font: 700 14px/1 system-ui, sans-serif;
  }

  body.ft-cz-design #header .search [data-testid="searchBtn"]::before {
    content: none;
  }
}

@media (max-width: 767px) {
  body.ft-cz-design.type-product .ft-cz-purchase-box {
    padding: 12px;
    gap: 12px 16px;
  }

  body.ft-cz-design.type-product .ft-cz-purchase-box > .add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  body.ft-cz-design.type-product .ft-cz-purchase-box .add-to-cart > .quantity {
    position: relative !important;
    inset: auto !important;
    flex: none;
    margin: 0 !important;
  }

  body.ft-cz-design.type-product .ft-cz-purchase-box .quantity input {
    font-size: 16px;
  }

  body.ft-cz-design.type-product .ft-cz-purchase-box .add-to-cart-button {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    white-space: normal;
  }
}
