/* GreatPix — випадаючий кошик у шапці */
.header-icon__cart .dropdown-menu-mini-cart{width:400px!important;max-width:calc(100vw - 24px);padding:0!important;border:1px solid #ecebe6!important;border-radius:16px!important;box-shadow:0 16px 40px rgba(22,24,27,.12)!important;overflow:hidden;background:#fff}
.header-icon__cart .dropdown-menu-mini-cart>li{padding:0!important;margin:0!important;border:0!important}
.dropdown-menu-mini-cart .widget_shopping_cart_content{padding:0!important}
.gpmc{color:#16181b;font-size:14px;line-height:1.4;text-align:left}
.gpmc__head{display:flex;align-items:baseline;justify-content:space-between;padding:20px 22px 6px}
.gpmc__title{font-size:17px;font-weight:600}
.gpmc__count{font-size:13px;color:#6b6f76}
.gpmc .gpmc__list{list-style:none!important;margin:0!important;padding:0 22px!important;max-height:min(360px,55vh);overflow-y:auto}
.gpmc .gpmc__item{display:grid!important;grid-template-columns:72px minmax(0,1fr) 32px;gap:14px;align-items:center;padding:14px 0!important;margin:0!important;border:0!important;border-top:1px solid #ecebe6!important;position:relative;min-height:0!important}
.gpmc .gpmc__item:first-child{border-top-color:transparent!important}
.gpmc .gpmc__img{display:grid;place-items:center;width:72px;height:72px;box-sizing:border-box;border:1px solid #e6e5e0;border-radius:10px;background:#fff;overflow:hidden;position:static!important}
.gpmc .gpmc__img img{max-width:60px!important;max-height:60px!important;width:auto!important;height:auto!important;margin:0!important;position:static!important;float:none!important}
.gpmc__info{display:flex;flex-direction:column;gap:6px;min-width:0}
.gpmc .gpmc__name{font-size:14px;line-height:1.35;font-weight:500;color:#16181b!important;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gpmc .gpmc__name:hover{text-decoration:underline}
.gpmc .gpmc__qty{font-size:13px;color:#6b6f76;display:block;margin:0!important}
.gpmc .gpmc__qty .amount{color:#6b6f76;font-weight:400}
.gpmc dl.variation{margin:0;font-size:12px;color:#6b6f76}
.gpmc a.gpmc__rm{position:static!important;width:32px!important;height:32px!important;border-radius:8px!important;display:grid!important;place-items:center;color:#9a9da3!important;background:none!important;font-size:0!important;line-height:1!important;border:0!important;transition:background .15s,color .15s}
.gpmc a.gpmc__rm:hover{background:#fff6f6!important;color:#c62828!important}
.gpmc a.gpmc__rm::before,.gpmc a.gpmc__rm::after{display:none!important;content:none!important}
.gpmc__foot{margin-top:4px;padding:16px 22px 22px;border-top:1px solid #ecebe6;display:flex;flex-direction:column;gap:14px}
.gpmc__total{display:flex;justify-content:space-between;align-items:baseline}
.gpmc__total span{font-size:15px;color:#4a4e55}
.gpmc__total strong,.gpmc__total strong .amount{font-size:22px;font-weight:700;letter-spacing:-.01em;color:#16181b}
.gpmc__btns{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}
.gpmc a.gpmc__btn{height:48px;border-radius:12px;display:grid;place-items:center;font-size:15px;text-decoration:none!important;box-sizing:border-box;padding:0 10px;text-align:center;line-height:1.2;transition:background .15s,border-color .15s}
.gpmc a.gpmc__btn--ghost{border:1px solid #e1e0da;background:#fff;color:#16181b!important;font-weight:500}
.gpmc a.gpmc__btn--ghost:hover{border-color:#16181b}
.gpmc a.gpmc__btn--main{background:#fed700;color:#16181b!important;font-weight:600;border:0}
.gpmc a.gpmc__btn--main:hover{background:#f5cc00}
.gpmc--empty{padding:28px 22px;text-align:center}
.gpmc--empty .woocommerce-mini-cart__empty-message{margin:0;font-size:15px;font-weight:500;color:#16181b}
.widget_shopping_cart_content.blockUI,.gpmc.processing{opacity:.6}

/* v0.3.7 QA */
.header-icon__cart .dropdown-menu-mini-cart .woocommerce-mini-cart.cart_list{max-height:360px!important;overflow-y:auto!important}
.header-icon__cart .dropdown-menu-mini-cart .gpmc__name{font-weight:500!important}
.gpmc__total .woocommerce-Price-currencySymbol{font-size:inherit!important;color:inherit!important}

/* v0.3.8: шапка панелі прокручується разом зі списком; видно 2 товари */
.header-icon__cart .dropdown-menu-mini-cart .gpmc .gpmc__scroll{max-height:268px!important;overflow-y:auto!important;overscroll-behavior:contain}
.header-icon__cart .dropdown-menu-mini-cart .gpmc .gpmc__scroll .gpmc__list.woocommerce-mini-cart.cart_list{max-height:none!important;overflow:visible!important}
.header-icon__cart .dropdown-menu-mini-cart .gpmc>.gpmc__list.woocommerce-mini-cart.cart_list{max-height:204px!important;overflow-y:auto!important}
.gpmc .gpmc__head{position:static!important}

/* v0.3.10: прибрати зайвий рядок сітки під товаром (порожній службовий елемент + row-gap) */
.header-icon__cart .dropdown-menu-mini-cart .gpmc .gpmc__item{row-gap:0!important;grid-template-rows:auto!important;grid-auto-rows:auto!important}
.header-icon__cart .dropdown-menu-mini-cart .gpmc .gpmc__item>*:not(.gpmc__img):not(.gpmc__info):not(.gpmc__rm){display:none!important}
