/* eKonsument v3.0: stary koszyk rozwijany, bez zmian układu headera.
   PS9 ps_shoppingcart: ceny, zdjęcia, warianty i usuwanie z danych koszyka. */
@media (min-width:768px) {
  #header .eko-topbar-actions #_desktop_cart,
  #header .eko-topbar-actions #_desktop_cart .blockcart,
  #header .eko-topbar-actions #_desktop_cart .header {
    overflow:visible!important;
  }
  #header .eko-topbar-actions #_desktop_cart .header {
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
  }
  #header .eko-topbar-actions #_desktop_cart .header > a,
  #header .eko-topbar-actions #_desktop_cart .header > a span,
  #header .eko-topbar-actions #_desktop_cart .header > span,
  #header .eko-topbar-actions #_desktop_cart .cart-products-count {
    color:#222!important;
    font:700 16px/1.3 Arial,Helvetica,sans-serif!important;
    white-space:nowrap!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-expand {
    position:relative!important;
    display:block!important;
    flex:0 0 21px!important;
    width:21px!important;
    height:21px!important;
    min-width:21px!important;
    margin:0!important;
    padding:0!important;
    z-index:160!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-toggle {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:21px!important;
    height:21px!important;
    padding:0!important;
    margin:0!important;
    box-sizing:border-box!important;
    border:0!important;
    border-radius:50%!important;
    background:#666!important;
    cursor:pointer!important;
    list-style:none!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-toggle::-webkit-details-marker {display:none!important;}
  #header .eko-topbar-actions #_desktop_cart .eko-cart-toggle::marker {content:''!important;}
  #header .eko-topbar-actions #_desktop_cart .eko-cart-toggle:focus-visible {
    outline:2px solid #e60086!important;outline-offset:3px!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-chevron {
    display:block!important;
    box-sizing:border-box!important;
    width:8px!important;height:8px!important;
    margin-top:-4px!important;
    border-right:2px solid white!important;
    border-bottom:2px solid white!important;
    transform:rotate(45deg)!important;
  }
  #header .eko-topbar-actions #_desktop_cart details[open] .eko-cart-chevron {
    margin-top:4px!important;transform:rotate(225deg)!important;
  }
  /* Anchored to arrow, positioned to end below the round basket icon.
     The dropdown overlays page contents only when explicitly expanded. */
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover {
    position:absolute!important;
    top:calc(100% + 10px)!important;
    right:-220px!important;
    left:auto!important;
    display:block!important;
    box-sizing:border-box!important;
    width:340px!important;
    max-width:calc(100vw - 25px)!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #e3e3e3!important;
    background:#fff!important;
    color:#222!important;
    box-shadow:0 5px 16px rgba(0,0,0,.13)!important;
    z-index:1000!important;
    text-align:left!important;
    white-space:normal!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-expand:not([open]) .eko-cart-popover {display:none!important;}
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-products {
    list-style:none!important;
    margin:0!important;
    padding:0!important;
    max-height:330px!important;
    overflow-y:auto!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-product {
    position:relative!important;
    display:flex!important;
    align-items:flex-start!important;
    gap:13px!important;
    padding:14px 16px!important;
    margin:0!important;
    border-bottom:1px solid #ddd!important;
    min-height:100px!important;
    box-sizing:border-box!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-image {
    flex:0 0 72px!important;
    width:72px!important;
    text-decoration:none!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-image img {
    display:block!important;
    width:72px!important;
    height:96px!important;
    object-fit:contain!important;
    background:#fff!important;
    margin:0!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-product-details {
    flex:1 1 auto!important;
    min-width:0!important;
    padding-right:19px!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-product-heading {
    display:flex!important;align-items:baseline!important;gap:5px!important;
    min-width:0!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-quantity {
    color:#111!important;
    font:400 16px/1.3 Arial,Helvetica,sans-serif!important;
    white-space:nowrap!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-name {
    display:block!important;
    color:#222!important;
    font:400 14px/1.35 Arial,Helvetica,sans-serif!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-decoration:none!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-attributes {
    display:block!important;
    margin-top:12px!important;
    color:#999!important;
    font:400 15px/1.4 Arial,Helvetica,sans-serif!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-attributes span {
    color:#999!important;
    font:400 15px/1.4 Arial,Helvetica,sans-serif!important;
    white-space:normal!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-price {
    margin-top:14px!important;
    color:#e60086!important;
    font:400 15px/1.4 Arial,Helvetica,sans-serif!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-remove {
    position:absolute!important;
    top:15px!important;right:14px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    box-sizing:border-box!important;
    width:19px!important;height:19px!important;
    padding:0!important;margin:0!important;
    border-radius:50%!important;
    background:#111!important;color:#fff!important;
    font:700 17px/1 Arial,Helvetica,sans-serif!important;
    text-decoration:none!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-summary {
    padding:20px 15px 17px!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-line {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    padding:12px 0!important;
    border-bottom:1px solid #ddd!important;
    color:#222!important;
    font:400 15px/1.35 Arial,Helvetica,sans-serif!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-line strong {
    color:#111!important;font:700 16px/1.3 Arial,Helvetica,sans-serif!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-line span {
    color:#e60086!important;font:700 15px/1.3 Arial,Helvetica,sans-serif!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-total {border-bottom:0!important;}
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-bottom {
    padding:22px 25px!important;
    background:#f5f5f5!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-action {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    padding:13px 8px!important;
    margin:0!important;
    border-radius:5px!important;
    background:#e60086!important;
    color:#fff!important;
    font:400 15px/1.4 Arial,Helvetica,sans-serif!important;
    text-align:center!important;
    text-decoration:none!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-action:hover {background:#c60072!important;}
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-empty {
    margin:0!important;
    padding:20px 16px!important;
    color:#666!important;
    font:400 14px/1.4 Arial,Helvetica,sans-serif!important;
  }
}
/* Keep mobile cart unchanged. */
@media (max-width:767px) {
  #header .eko-topbar-actions #_desktop_cart .eko-cart-expand {display:none!important;}
}

/* eKonsument v3.1: trash icon instead of black dot; always white checkout label. */
@media (min-width:768px) {
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-remove,
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-remove:visited {
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    color:#444!important;
    width:28px!important;
    height:28px!important;
    top:12px!important;
    right:12px!important;
    padding:3px!important;
    font-size:0!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-remove:hover,
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-remove:focus-visible {
    background:transparent!important;
    color:#e60086!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-remove .eko-cart-trash-icon {
    display:block!important;
    width:20px!important;
    height:20px!important;
    color:inherit!important;
    fill:none!important;
    stroke:currentColor!important;
  }
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-action,
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-action:link,
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-action:visited,
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-action:hover,
  #header .eko-topbar-actions #_desktop_cart .eko-cart-popover-action:focus-visible {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }
}
