.apt-wc-cart-icon .cart-contents { display: none; } .apt-wc-cart-icon .widget_shopping_cart { background-color: white; color: #000; width: 100%; transition: all 0.5s ease; } .apt-wc-cart-icon .widget_shopping_cart a { color: #000; } @media (min-width:992px){ .apt-wc-cart-icon { position: relative; height: 40px; } .apt-wc-cart-icon .cart-contents { display: inline; } .apt-wc-cart-icon .widget_shopping_cart { visibility: hidden; background-color: white; position: absolute; width: 250px; top: calc(100% + 30px); opacity: 0 !important; left: -125px; max-height: 500px; overflow-y: auto; } .apt-wc-cart-icon .widget_shopping_cart::-webkit-scrollbar { width: 2px; } .apt-wc-cart-icon .widget_shopping_cart::-webkit-scrollbar-button { display: none; } .apt-wc-cart-icon .widget_shopping_cart::-webkit-scrollbar-track-piece { background-color: white; } .apt-wc-cart-icon .widget_shopping_cart::-webkit-scrollbar-thumb { background-color: gray; } .apt-wc-cart-icon:hover .widget_shopping_cart { visibility: visible; top: 100%; opacity: 1 !important; } .apt-wc-cart-icon [class|=sow-icon] { position: relative; font-size: 25px; line-height: 25px; color: #a79f61; vertical-align: middle; } .apt-wc-cart-icon .item-count { display: inline-block; font-family: sans-serif; font-size: 15px; font-weight: bold; border-radius: 50%; width: 30px; line-height: 30px; text-align: center; color: white; background-color: #f34f4f; left: calc(100% + 8px); vertical-align: middle; } }