.ap-notice-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1060;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.ap-notice {
  display: grid;
  grid-template-columns: 20px 1fr 24px;
  gap: 10px;
  align-items: start;
  padding: 13px 12px;
  color: #172033;
  background: #fff;
  border: 1px solid #dce5f2;
  border-left: 4px solid #2f6fed;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(23, 32, 51, .16);
  font-size: 14px;
  line-height: 1.35;
  pointer-events: auto;
}

.ap-notice--success {
  border-left-color: #20a464;
}

.ap-notice--warning {
  border-left-color: #f2a900;
}

.ap-notice--error {
  border-left-color: #d92d20;
}

.ap-notice__icon {
  color: #2f6fed;
  line-height: 1.35;
}

.ap-notice--success .ap-notice__icon {
  color: #20a464;
}

.ap-notice--warning .ap-notice__icon {
  color: #f2a900;
}

.ap-notice--error .ap-notice__icon {
  color: #d92d20;
}

.ap-notice__close {
  width: 24px;
  height: 24px;
  padding: 0;
  color: #667085;
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
}

#cart.zv-cart > .ap-header-cart {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 72px;
  min-width: 72px;
  height: 52px;
  padding: 6px 8px;
  overflow: visible;
  color: #344054;
  white-space: nowrap;
}

#cart.zv-cart > .ap-header-cart:hover,
#cart.zv-cart > .ap-header-cart:focus {
  color: #1f4fbd;
}

.ap-header-cart__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 20px;
  line-height: 1;
}

.ap-header-cart__badge {
  position: absolute;
  top: -8px;
  right: -11px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: #f04452;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  font-weight: 800;
}

.ap-header-cart__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.ap-header-cart__total {
  display: none !important;
}

#wishlist-total .ap-market-header__action-icon {
  position: relative;
}

.ap-header-wishlist__badge {
  position: absolute;
  top: -9px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: #f04452;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  font-weight: 800;
  box-sizing: border-box;
}

.ap-market-header__action.is-logged .ap-market-header__action-icon--user {
  color: #1f5bd6;
}

.ap-ozon-tile__fav.is-in-wishlist {
  color: #e53935;
  background: #fff0f1;
  opacity: 1;
}

.ap-ozon-tile__fav.is-in-wishlist .fa:before,
.ap-ozon-card__favorite.is-in-wishlist .fa:before,
.ap-market-card__tool.is-in-wishlist .fa:before,
.ap-product-link-button.is-in-wishlist .fa:before {
  content: "\f004";
}

.ap-ozon-tile__cart.is-in-cart {
  color: #fff;
  background: #20a464;
  opacity: 1;
  transform: none;
}

.ap-ozon-tile__cart.is-in-cart:after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 4px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.ap-ozon-card__favorite.is-in-wishlist,
.ap-market-card__tool.is-in-wishlist {
  color: #e53935;
  background: #fff0f1;
}

.ap-ozon-card__compare.is-in-compare,
.ap-market-card__tool.is-in-compare {
  color: #1f5bd6;
  background: #eef4ff;
}

.ap-ozon-card__cart-btn.is-in-cart,
.ap-market-card__cart.is-in-cart {
  color: #fff;
  background: #20a464;
}

.ap-product-link-button.is-in-wishlist {
  color: #e53935;
  background: #fff0f1;
}

.btn.is-in-wishlist {
  color: #e53935;
  border-color: #ffd3d8;
  background: #fff0f1;
}

.ap-product-link-button.is-in-compare {
  color: #1f5bd6;
  background: #eef4ff;
}

.btn.is-in-compare {
  color: #1f5bd6;
  border-color: #cddcff;
  background: #eef4ff;
}

.ap-product-cart-button.is-in-cart {
  background: #20a464;
}

.btn.is-in-cart {
  border-color: #20a464;
  background: #e9f8f1;
}

.ap-product-cart-button.is-in-cart:hover,
.ap-product-cart-button.is-in-cart:focus {
  background: #188a54;
}

@media (max-width: 767px) {
  .ap-notice-stack {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  #cart.zv-cart > .ap-header-cart {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 4px;
  }

  .ap-header-cart__label {
    display: none;
  }
}
