/**
 * Styl modala koszyka AJAX (ps_shoppingcart + override szablonu).
 * Ładowane z modułu — nie mieszaj z themes/kogoot/assets/css/custom.css.
 */

 .cart-modal__side-text span:nth-of-type(2){
    font-weight: 600;
}
/* Ajax cart modal (ps_shoppingcart / theme override)
 * Nie ustawiaj overflow:hidden na samym .modal — Bootstrap potrzebuje overflow-y:auto
 * na kontenerze overlay, inaczej przy modal-dialog-centered i wysokiej treści góra
 * modala ucieka poza ekran i nie da się jej przewinąć. Zaokrąglenie trzymaj na .modal-content. */
#blockcart-modal.modal.cart-modal {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-modal {
    position: relative;
}

#blockcart-modal .modal-content {
    border-radius: 16px;
    overflow-x: hidden;
    /* Przewijanie zostaje na #blockcart-modal.modal (jak w Bootstrap); tu tylko obcięcie zaokrąglenia. */
    overflow-y: visible;
    max-height: 90dvh;
   
}

.cart-modal__close {
    opacity: 1;
    top: -20px;
    right: -20px;
    position: absolute !important;
    background: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    line-height: 1 !important;
    height: 50px;
    z-index: 4;
    color: #e0e0e0;
    border-radius: 50%;
    border-radius: 50% !important;
    border: 1px solid #e0e0e0 !important;
    padding: 5px!Important;
}
.cart-modal__close span,.cart-modal__close i{
    color: #7b7b7b;
}
.cart-modal__success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 10px 3px 12px;
    background: rgba(193, 236, 93, 0.25);
    color: #2e7d32;
    color:black;
    font-weight: 400;
    font-size: 12px;
    width: 100%;
    border-radius: 10px;
}


.cart-modal__success-icon {
    color: #43a047;
    font-size: 28px !important;
}

.cart-modal__gamification {
    position: relative;
    padding: 16px 25px 8px;
}

/* Confetti przy pierwszym progu gamifikacji (modal koszyka) */
.ps-cart-gamification-host .ps-cart-confetti-layer,
#blockcart-modal .ps-cart-confetti-layer {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 0;
    height: 0;
    z-index: 30;
    pointer-events: none;
    overflow: visible;
}

/* Confetti z całego bąbelka (brak osobnego spanu emoji) — środek dymka */
.ps-cart-gamification-host .ps-cart-confetti-layer--bubble,
#blockcart-modal .ps-cart-confetti-layer--bubble {
    left: 50%;
    top: 50%;
}

/* Confetti z kotwicy = span emoji / maskotka (węzeł last-tier) — środek małego hosta */
.ps-cart-gamification-host .ps-cart-confetti-layer--emoji,
#blockcart-modal .ps-cart-confetti-layer--emoji {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Tryb dev: stały przycisk testu confetti (włącz ?ps_cart_confetti_debug=1 lub localStorage) */
.ps-cart-confetti-debug-ui {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 100050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    max-width: min(300px, calc(100vw - 20px));
    pointer-events: none;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.ps-cart-confetti-debug-ui > * {
    pointer-events: auto;
}

.ps-cart-confetti-debug-ui__btn {
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: #6a1b9a;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.ps-cart-confetti-debug-ui__btn:hover,
.ps-cart-confetti-debug-ui__btn:focus {
    background: #7b1fa2;
    outline: none;
}

.ps-cart-confetti-debug-ui__hint {
    margin: 0;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.35;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    word-break: break-word;
}
.cart-modal__ms--kind-shipping:has(.cart-modal__node--past) .cart-modal__bubble-wrap{
    display: none;
}

.ps-cart-gamification-host .ps-cart-confetti-piece,
#blockcart-modal .ps-cart-confetti-piece {
    position: absolute;
    left: 0;
    top: 0;
    margin-left: -2px;
    margin-top: -2px;
.ps-cart-gamification-host--cart {
    margin: 0 0 18px;
}

.ps-cart-gamification-host--cart .cart-modal__gamification {
    padding: 16px 0 8px;
}

    border-radius: 1px;
    opacity: 0.95;
    animation: psCartConfettiBurst 1.55s ease-out forwards;
}

@keyframes psCartConfettiBurst {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.42);
        opacity: 1;
    }
    42% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--tx), var(--ty), 0) rotate(var(--rot)) scale(1.05);
        opacity: 0;
    }
}

/* Jednorazowy „pik” emoji wraz z confetti (~1 s po shown modala; klasa z JS) */
@keyframes psCartGamiBubbleEmojiPop {
    0% {
        transform: scale(0.35);
        opacity: 0.6;
    }
    55% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes psCartGamiLastTierEmojiPop {
    0% {
        transform: translate(-50%, -50%) scale(0.45);
        opacity: 0.75;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.14);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

#blockcart-modal.ps-cart-gami-emoji-celebrate .cart-modal__bubble__emoji {
    animation: psCartGamiBubbleEmojiPop 0.72s cubic-bezier(0.34, 1.45, 0.64, 1) both;
    transform-origin: center center;
}

#blockcart-modal.ps-cart-gami-emoji-celebrate .cart-modal__last-tier--emoji .cart-modal__last-tier__emoji {
    animation: psCartGamiLastTierEmojiPop 0.75s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

.cart-modal__gamification-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
    margin-bottom: 12px;
    font-size: 14px;
}

.cart-modal__savings {
    margin: 0;
    font-size: 16px;
    text-align: right;
}

.cart-modal__savings strong {
    margin-left: 4px;
}

.cart-modal__savings-note {
    margin-left: 6px;
    color: #404041;
    font-weight: 600;
}

.cart-modal__side-text {
    margin: 0;
    font-size: 16px;
    text-align: right;
    color: #404041;
}
.cart-modal .modal-header{
    border:none;
    padding:1rem 1rem 0.5rem;
    background-color: white;;

}
.cart-modal__rail {
    position: relative;
    margin-top:  50px;;
    padding: 0 4px 0 10px;
}

/* Wspólna szerokość z paskiem: węzły wg track_anchor_pct (inset + równomiernie; +5% w prawo poza ostatnim w PHP) */
.cart-modal__rail-progress {
    --cart-modal-track-h: 16px;
    position: relative;
    margin-left: 00px;
    margin-right: 50px;
    min-height: 110px;
}

.cart-modal__track {
    --cart-modal-track-h: 16px;
    /* Pozycja/szerokość reveal ustawiane z PHP (--cart-modal-track-reveal-*), trim prawego końca w px. */
    --cart-modal-track-reveal-left: 0%;
    --cart-modal-track-reveal-width: 0%;
    --cart-modal-track-end-trim: 0px;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: var(--cart-modal-track-h);
    transform: translateY(-50%);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1px;
    z-index: 0;
}

.cart-modal__track-bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: #ececec;
    border-radius: 6px;
    pointer-events: none;
}

/*
 * Odsłonięcie gradientu: width = postęp; overflow + zaokrąglony prawy brzeg = czub paska.
 * Wewnętrzny gradient ma szerokość >100% względem reveal (inline), żeby pełna paleta BO = cała szyna.
 */
.cart-modal__track-reveal {
    position: absolute;
    z-index: 1;
    /* left/width z PHP: do pierwszej kotwicy od 0%; potem od kotwicy pierwszego węzła, trim gdy końcówka na węźle. */
    left: var(--cart-modal-track-reveal-left, 0%);
    top: 0;
    bottom: 0;
    width: max(
        0%,
        min(
            calc(100% - var(--cart-modal-track-reveal-left, 0%)),
            calc(var(--cart-modal-track-reveal-width, 0%) - var(--cart-modal-track-end-trim, 0px))
        )
    );
    max-width: 100%;
    overflow: hidden;
    border-top-right-radius: calc(var(--cart-modal-track-h) / 2);
    border-bottom-right-radius: calc(var(--cart-modal-track-h) / 2);
    /* filter: drop-shadow(2px 0 6px rgba(0, 0, 0, 0.16)) drop-shadow(1px 0 12px rgba(255, 120, 60, 0.32)); */
    filter: drop-shadow(3px 0 1px rgba(0, 0, 0, 0.12));
    transition: width 0.35s ease, left 0.35s ease;
    pointer-events: none;
}

.cart-modal__track-gradient {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1538%;
    background: #8bc34a;
}

@supports (corner-shape: round) {
    .cart-modal__track-reveal {
        /* lewa krawędź reveal = prosta; tylko prawy „czub” — squircle tam, gdzie obsługuje silnik */
        corner-shape: round;
    }
}

.cart-modal__milestones {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.cart-modal__ms {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    min-width: 0;
    z-index: 1;
    pointer-events: auto;
}
.cart-modal__ms:has(.cart-modal__node--active) .cart-modal__bubble{
    display: flex;
    flex-direction: column;
}

.cart-modal__bubble-wrap {
    min-height: 52px;
    width: inherit;
    display: flex;
    justify-content: center;
    position: absolute;
    top:0;
    left:50%;
    transform: translateY(calc(-100% - 5px)) translateX(-50%);
}

.cart-modal__milestones > .cart-modal__ms:last-child .cart-modal__bubble-wrap {
    left: unset;
    right: 0;
    transform: translateY(calc(-100% - 5px));
}

.cart-modal__bubble-spacer {
    height: 44px;
}

.cart-modal__bubble {
    position: relative;
    max-width: 270px;
    margin: 0 4px 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid white;
    background: #f1f8e9;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: #33691e;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
    flex-direction: column;
}

.cart-modal__bubble[data-shipping-bubble="unmet"]{
    color: white!important;
    background: #FC469B!important;
}
.cart-modal__bubble[data-shipping-bubble="met"]{
    color: black!important;
    background: #EEFFC6!important;
}
.cart-modal__milestones > .cart-modal__ms:last-child .cart-modal__bubble  {
    max-width: 450px;
    
}

.cart-modal__milestones > .cart-modal__ms:last-child .cart-modal__bubble__line--primary{
    font-weight: 500;
}


.cart-modal__bubble__emoji {
    position: absolute;
    top: -10px;
    right: -8px;
    font-size: 20px;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15em;
    min-height: 1.15em;
}

.cart-modal__bubble__line {
    display: block;
}

.cart-modal__bubble__line--primary {
    font-weight: 700;
    font-size: 16px;;
}

.cart-modal__bubble__line--secondary {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
    opacity: 0.95;
}

#blockcart-modal [data-shipping-bubble="unmet"] .cart-modal__bubble__line--primary {
    font-weight: 600;
}

#blockcart-modal [data-shipping-bubble="unmet"] .cart-modal__bubble__line--secondary {
    font-weight: 500;
}

/* Opcjonalne klasy — domyślny kolor tekstu pochodzi z BO (inline color na dymku). */
.cart-modal__bubble.cart-modal__bubble--text-dark {
    color: #000000;
}

.cart-modal__bubble.cart-modal__bubble--text-light {
    color: #ffffff;
}

.cart-modal__node--active .cart-modal__bubble {
    border-color: #ff9800;
}

.cart-modal__node {
    width: 67.5px;
    height: 67.5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C9C9C9;
    border: 2px solid white;
    color: white;
    flex-direction: column;
    box-shadow: 1.5px 1.5px 4.5px rgba(0, 0, 0, 0.25);
}

.cart-modal__node .material-icons {
    font-size: 22px !important;
}

.cart-modal__truck-icon {
    display: block;
    width: 40px;
    height: 33px;
    object-fit: contain;
}

.cart-modal__node--active .cart-modal__truck-icon {
    width: 40px;
    height: 33px;
}

/* Dostawa: przed osiągnięciem progu (np. PS_SHIPPING_FREE_PRICE) — zawsze szary, bez stylu „active” */
.cart-modal__node--shipping.cart-modal__node--future {
    background: #C9C9C9;
    border-color: white;
    color: white;;
    box-shadow: none;
    width: 67.5px;
    height: 67.5px;
    margin-top: 0;
}

.cart-modal__node--past {
    /* tło = gradient z BO (inline w modal.tpl), jak --active */
    border-color: white;
    /* color: #2e7d32; */
}

.cart-modal__node--active {
    width: 90px;
    height: 90px;
    margin-top: -4px;
    /* tło = gradient z BO (inline w modal.tpl) */
    border-color: white;
    /* color: #ef6c00; */
    /* box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.25); */
}

.cart-modal__pct {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
}

.cart-modal__node--active .cart-modal__pct {
    font-size: 34px;
}

/* Ostatni próg: duża maskotka vs blok % + gwiazdki (przełączane w JS) */
.cart-modal__last-tier {
    position: relative;
    width: 100%;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal__last-tier__emoji,
.cart-modal__last-tier__pct-block {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity;
}

.cart-modal__last-tier__emoji {
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cart-modal__last-tier__mascot {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.cart-modal__last-tier__pct-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cart-modal__last-tier__pct {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
}

.cart-modal__last-tier--emoji .cart-modal__last-tier__emoji {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cart-modal__last-tier--emoji .cart-modal__last-tier__pct-block {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
    pointer-events: none;
}

.cart-modal__last-tier--pct .cart-modal__last-tier__emoji {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    pointer-events: none;
}

.cart-modal__last-tier--pct .cart-modal__last-tier__pct-block {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cart-modal__node--active .cart-modal__last-tier__pct {
    font-size: 32px;
}

.cart-modal__last-tier__pct-block .cart-modal__stars--in-last-tier {
    margin-top: 0;
    transform: none;
    line-height: 0;
    font-size: 10px;
    letter-spacing: 1px;
    transform: translateY(5px);
}
.popup-footer{
    padding: 10px 25px 20px;

}
.cart-modal__stars {
    margin-top: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    color: white;
    line-height: 0px;
    transform: translateY(5px);
    /* min-height: 14px; */

}
.cart-modal__node--past .cart-modal__stars {
    color: #F6DC6E;
}
.cart-modal__last-tier__pct-block .cart-modal__stars--in-last-tier .cart-modal__stars {
    transform: translateY(10px);
    line-height: 00;
}
.cart-modal__node--active .cart-modal__stars {
    font-size: 22px;
    transform: translateY(10px);
    color: #F6DC6E;
    line-height: 00;
}
.cart-modal__node--active  .cart-modal__last-tier__pct-block .cart-modal__stars--in-last-tier.cart-modal__stars--in-last-tier {
    line-height: 00;
    transform: translateY(10px);
}

.cart-modal__stars--empty {
    opacity: 0;
}

.cart-modal__body {
    padding-top: 8px;
}

.cart-modal__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    margin: 0px 0 10px;
        padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 12px;
}

.cart-modal__summary-col {
    flex: 1 1 100%;
    display: grid;
    align-content: center;
   
    gap: 10px;
}

.cart-modal__summary-note {
    flex: 1 1 100%;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: #fff;
    border: 2px solid #f48fb1;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;

}

.cart-modal__summary-note p,
.cart-modal__summary-note__text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #404041;
    margin-bottom: 0;
}

.cart-modal__summary-note__accent {
    display: block;
    color:#FC469B;
    /* margin-top: 6px; */
    font-weight: 600;
}

.cart-modal__info-icon {
    color: #ec407a;
    font-size: 22px !important;
    flex-shrink: 0;
}

/* Sekcja produktów w modalu: nagłówek + slider */
.cart-modal__products-section {
    margin-bottom: 10px;
}

/* Tylko „Produkty w koszyku” (bez cross-sell): tryb lista zamiast Blaze */
#blockcart-modal:has(.cart-modal__products-section--list-mode) .cart-modal__actions{
    border-top: none;
}
#blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-slider .cart-modal__products-nav {
    display: none !important;
}

#blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-slider {
    display: block;
    position: relative;
}

#blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-viewport {
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
}

#blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-slider .blaze-container,
#blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-slider .blaze-track-container {
    overflow: visible;
}

#blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-track.blaze-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: none !important;
    width: 100%;
    box-sizing: border-box;
}

#blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-track .cart-modal__products-slide {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
  
}

#blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-track .cart-modal__line {
    width: 100%;
    box-sizing: border-box;
    border:none;
    padding:0;
}
#blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-track .cart-modal__products-slide .cart-modal__line-title-row{
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 5px;
}
.cart-modal__products-heading {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #404041;
}

#blockcart-modal .cart-modal__products {
    position: relative;
    width: 100%;
}

/* Jeden produkt: bez strzałek, pełna szerokość toru */
#blockcart-modal .cart-modal__products.cart-modal__products--single {
    display: block;
    position: relative;
}

#blockcart-modal .cart-modal__products.cart-modal__products--single .cart-modal__products-nav {
    /* display: none; */
}

#blockcart-modal .cart-modal__products.cart-modal__products--single .cart-modal__products-viewport {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#blockcart-modal .cart-modal__products-viewport {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

#blockcart-modal .cart-modal__products-blaze {
    width: 100%;
    min-width: 0;
}

/* Tor Blaze: szerokość slajdów z biblioteki (--slide-width + gap) */
#blockcart-modal .cart-modal__products-track {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 2px 0 8px;
}

#blockcart-modal .cart-modal__products-track .cart-modal__products-slide {
    min-width: 0;
}

#blockcart-modal .cart-modal__products-nav {
    position: absolute;
    top: -5px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    border:1px solid black;
    background-color: white;
    color: #fc469b;
    cursor: pointer;
    transform: translateY(-100%);
    right: 0;
    transition: color 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

#blockcart-modal .cart-modal__products-nav--prev {
    right: 50px;
}

#blockcart-modal .cart-modal__products-nav--next {
    right: 0;
}

#blockcart-modal .cart-modal__products-nav .material-icons {
    font-size: 28px !important;
    line-height: 1;
}

#blockcart-modal .cart-modal__products-nav:hover:not(:disabled) {
    color: #404041;
    background: #c2ec5d;
}

#blockcart-modal .cart-modal__products-nav:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;

}

#blockcart-modal .cart-modal__products-nav:focus-visible {
    outline: 2px solid #fc469b;
    outline-offset: 2px;
}

.cart-modal__line {
    display: flex;
    gap: 12px;
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    height: 100%;
    box-sizing: border-box;
}

.cart-modal__line--added {
    border-color: #8bc34a;
    /* box-shadow: 0 0 0 1px rgba(139, 195, 74, 0.35); */
}

.cart-modal__line-img img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
}

.cart-modal__line-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
        justify-content: center;

}

.cart-modal__line-title-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.cart-modal__line-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #404041;
    text-decoration: none;
}

.cart-modal__line-name:hover {
    text-decoration: underline;
}

.cart-modal__line-remove {
    color: #9e9e9e;
    padding: 2px;
    line-height: 1;
}

.cart-modal__line-remove .material-icons {
    font-size: 18px !important;
}

.cart-modal__line-remove:hover {
    color: #616161;
}

.cart-modal__line-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  
    font-size: 14px;
}

/* Ilość w modalu koszyka: minus / duża liczba / plus jak na makiecie (kogoot pink) */
#blockcart-modal .cart-modal__line-qty-wrap {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    flex-shrink: 0;
    max-width: 100%;
    padding: 4px 0;
}

/* Nie łap styli z koszyka (.cart-product__quantity / touchspin) */
#blockcart-modal .cart-modal__line-qty-wrap .qty {
    display: block;
    min-width: 0;
}

#blockcart-modal .cart-modal__line-qty-wrap .qty input {
    width: auto;
    min-width: 1.25ch;
    max-width: 2.5rem;
    padding: 0 4px;
    margin: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    color: #404041;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

#blockcart-modal .cart-modal__line-qty-wrap .qty input::-webkit-outer-spin-button,
#blockcart-modal .cart-modal__line-qty-wrap .qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#blockcart-modal .cart-modal__line-qty-wrap .qty input:focus {
    outline: none;
    box-shadow: none;
}

#blockcart-modal .cart-modal__line-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: auto;
    padding: 2px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fc469b;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}

#blockcart-modal .cart-modal__line-qty-btn:hover {
    color: #e03d8a;
    background: transparent;
}

#blockcart-modal .cart-modal__line-qty-btn--disabled,
#blockcart-modal .cart-modal__line-qty-btn--disabled:hover {
    opacity: 0.28;
    cursor: default;
    pointer-events: none;
    color: #fc469b;
    background: transparent;
}

#blockcart-modal .cart-modal__line-qty-btn:focus-visible {
    outline: 2px solid #fc469b;
    outline-offset: 2px;
}

#blockcart-modal .cart-modal__line-qty-wrap .qty input:focus-visible {
    outline: 2px solid rgba(64, 64, 65, 0.35);
    outline-offset: 2px;
}

.cart-modal__line-price {
    font-weight: 600;
}

.cart-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 16px;
    position: relative;
    justify-content: space-between;
    z-index: 2;
}

.cart-modal__actions .btn,
.cart-modal__actions a.btn {
    position: static;
    /* flex: 1 1 auto; */
    min-width: 0;
    font-size: 1rem;
}
#blockcart-modal .cart-modal__actions .btn.btn__alt{
    margin: 0;
    padding: 10px 30px;
    max-width: unset;;
 }
@media (max-width: 1000px) {
    .cart-modal__side-text {
        max-width: 100%;
        text-align: left;
    }

    #blockcart-modal .cart-modal__products-track .cart-modal__products-slide {
        max-width: 100%;
    }
    .popup-buttons {
      
        flex-direction: row!important;
        flex-wrap: nowrap;
    }
}

.cart-modal .popup-text__flex-row-space{
    font-size: 16px;
    font-weight: 400;
    color: black;
    margin-bottom: 0;
}
.cart-modal .popup-body{
    padding: 0 25px;
}
.cart-modal .popup-buttons{
    padding: 15px 0 20px 0;
    border-top: 1px solid #DFDFDF;
}
.cart-modal .popup-text__flex-row-space  span{
    display: inline-flex;
    font-weight: 600;;
}

/* „Inne kogooty” — slider w stopce modala (Blaze + karty jak produkty w koszyku) */
#blockcart-modal .popup-footer {
    padding: 0 25px 0px;
}

#blockcart-modal .cart-modal__crosssell-section {
    margin-top: 8px;
    padding-bottom: 4px;
    border-top: 1px solid #e0e0e0;
}

#blockcart-modal .cart-modal__crosssell-heading {
    margin-top: 16px;
}

#blockcart-modal .cart-modal__products--crosssell {
    margin-bottom: 0;
}

#blockcart-modal .cart-modal__line--crosssell {
    align-items: center;
}

#blockcart-modal .cart-modal__line-meta--crosssell {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

#blockcart-modal .cart-modal__crosssell-add {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
    width: auto;
    height: auto;
    margin-top: 10px;
    margin-right: 0;
}
#ps-shoppingcart-gami-bo-preview__mount .cart-modal__gamification{
    margin-block:120px 30px;
    padding-block: 0px;
}
#ps-shoppingcart-gami-bo-preview__mount{
    padding:0px!important;
}
#ps-shoppingcart-gami-bo-preview__mount  .cart-modal__stars{
    transform: translateY(0px);
}
/* ——— Back office: panel wyboru produktów cross-sell ——— */
.ps-cart-crosssell-bo-panel {
    max-width: 700px;
    margin-top: 20px;
    margin-left: auto;
    margin-right:auto;
    padding: 16px 18px 18px;
    background: #f8f9fa;
    border: 1px solid #dce4ec;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ps-cart-crosssell-bo-panel .control-label {
    font-weight: 600;
    margin-bottom: 6px;
}

.ps-cart-crosssell-bo-panel__search {
    max-width: 100%;
    margin-top: 4px;
}

.ps-cart-crosssell-suggest {
    margin-top: 10px;
    margin-bottom: 0;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 4px;
    border: 1px solid #d9dee3;
}

.ps-cart-crosssell-suggest .list-group-item {
    padding: 10px 12px;
    font-size: 13px;
}

.ps-cart-crosssell-bo-panel__picked-heading {
    margin: 16px 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.ps-cart-crosssell-picked-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ps-cart-crosssell-picked {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    list-style: none;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.ps-cart-crosssell-picked--empty {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #6a737d !important;
    background: #fff;
    border-style: dashed;
}

.ps-cart-crosssell-picked__body {
    flex: 1;
    min-width: 0;
    display:flex;
    flex-direction: row;
    align-items: center;
    gap:10px;
}

.ps-cart-crosssell-picked__drag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-height: 36px;
    margin: -4px 0 -4px -6px;
    padding: 0 4px;
    cursor: grab;
    user-select: none;
    color: #879196;
    border-radius: 4px;
    touch-action: none;
}

.ps-cart-crosssell-picked__drag:active {
    cursor: grabbing;
}

.ps-cart-crosssell-picked__drag:focus {
    outline: 2px solid #25b9d7;
    outline-offset: 1px;
}

.ps-cart-crosssell-picked__drag-icon {
    font-size: 11px;
    line-height: 1;
    letter-spacing: -2px;
    font-weight: 700;
    opacity: 0.85;
}

.ps-cart-crosssell-picked--dragging {
    opacity: 0.55;
}

.ps-cart-crosssell-picked--drop-target {
    box-shadow: inset 0 0 0 2px #25b9d7;
    background: #f4fbfc;
}

.ps-cart-crosssell-picked__id {
    margin-bottom: 0;
    flex-shrink: 0;
}

.ps-cart-crosssell-picked__id .label {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 3px;
    vertical-align: middle;
    background: #C2EC5D;
    color:black;
}

.ps-cart-crosssell-picked__name {
    display: block;
    /* margin-top: 6px; */
    font-size: 13px;
    line-height: 1.45;
    color: #363a41;
    word-wrap: break-word;
}

.ps-cart-crosssell-picked__actions {
    flex-shrink: 0;
    padding-top: 2px;
}

.ps-cart-crosssell-picked__actions .btn-sm {
    min-width: 72px;
}

/* BO — konfiguracja cross-sell: ukryj etykietę + textarea + opis surowych ID (pole nadal wysyłane w POST) */
#ps-shoppingcart-crosssell-config .form-group:has(#ps_shoppingcart_crosssell_manual_field) {
    display: none !important;
}

/* BO — strona konfiguracji modułu: grupowanie sekcji (koszyk / gamifikacja / cross-sell) */
.ps-shoppingcart-bo-module-settings {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* max-width: 1200px; */
}

.ps-shoppingcart-bo-section {
    background: #fff;
    border: 1px solid #d3d8db;
    border-radius: 5px;
    padding: 30px 30px 18px 30px;
    /* margin: -20px -20px 15px -20px; */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.ps-shoppingcart-bo-section__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dbe6e9;
    color: #363a41;
}

.ps-shoppingcart-bo-section .panel {
    margin-bottom: 0;
}

.ps-shoppingcart-bo-section .form-wrapper + .form-wrapper {
    margin-top: 12px;
}

/* BO — gamifikacja: osobne panele kolorystyczne (węzeł dostawy + progi 1–4) */
.ps-shoppingcart-bo-section--gamification .form-wrapper + .form-wrapper {
    margin-top: 20px;
}

.ps-shoppingcart-bo-section--gamification .form-wrapper .panel {
    border-color: #c7d6db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ps-shoppingcart-bo-section--gamification .form-wrapper .panel-heading {
    font-size: 14px;
    font-weight: 600;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Dialog: przy treści wyższej niż okno Bootstrap .modal-dialog-centered (align-items:center)
   ucina górę — flex-start + przewijanie na #blockcart-modal.modal przywraca dostęp do nagłówka. */
#blockcart-modal .modal-dialog.modal-dialog-centered {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}


@media screen and (min-width: 320px) and (max-width: 424px) {
    #blockcart-modal .modal-dialog {
        max-width: 100vw;
    }
}
@media screen and (min-width: 425px) {
    #blockcart-modal .modal-dialog {
        max-width: 360px;
    }

    .cart-modal .modal-header .cart-modal__close {
        display: none;
    }
}
@media screen and (min-width: 576px) {
    #blockcart-modal .modal-dialog {
        max-width: 650px;
    }
}
@media screen and (min-width: 1199px) {
    /* #blockcart-modal .modal-dialog {
        max-width: 800px;
    } */
}

@media screen and (min-width: 768px) {
    #blockcart-modal .modal-content,
    #blockcart-modal .modal-dialog{
        max-height: 600px;
        max-width: 800px;
    }

    #blockcart-modal .popup-buttons.cart-modal__actions .btn__primary,
    #blockcart-modal .popup-buttons.cart-modal__actions .btn__alt{
        width: 175px;
        height: 45px;
        font-size: 14px;
        min-width: fit-content;
    }

.cart-modal__summary{
    flex-direction: row;
    flex-wrap: nowrap;
}
.cart-modal .popup-body{
    padding: 0 20px;
}
.cart-modal__gamification{
        padding: 0px 20px 0px;
}
    .cart-modal__node{
        width: 60px;
        height: 60px;
    }
    .cart-modal__node.cart-modal__node--active{
        width: 80px;
        height: 80px;
    }
    .cart-modal__node--shipping.cart-modal__node--future{
        width: 80px;
        height: 80px;
    }

    .cart-modal__node--active .cart-modal__pct{
        font-size: 28px;
    }
    .cart-modal__pct{
        font-size: 23px;
    }
    .cart-modal__rail{
        margin-top: 40px;
    }
    .cart-modal__bubble-wrap{
        transform: translateY(calc(-100% + 15px)) translateX(-50%);
    }
    .cart-modal__summary-note p, .cart-modal__summary-note__text{
        font-size: 12px;
        line-height: 24px;
    }
    .cart-modal .popup-buttons{
               padding: 8px 0px 16px;
    }
    .cart-modal__gamification-top{
        margin-top: -15px;
    }

    .cart-modal .popup-text__flex-row-space{
        font-size: 14px;
        line-height: 24px;
    }
    .cart-modal__summary-note{
        background-color: transparent;
        padding:6px 8px;
    }
    .cart-modal__summary-col{
        min-width: fit-content;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .cart-modal__node{
        width: 55px;
        height: 55px;
    }
    .cart-modal__node--active{
        width: 75px;
        height: 75px;
    }
    .cart-modal__summary-note{
        padding:5px 10px;
    }
    .cart-modal__summary-note__text{
        margin-bottom: 0px!important;
    }
    .cart-modal .popup-text__flex-row-space{
        font-size: 14px;
    }
    .cart-modal .popup-text__flex-row-space span{
        font-size: 14px;
    }
    .cart-modal__pct{
                line-height: 1;
        font-size: 18px;
    }
    .cart-modal__node--active .cart-modal__pct{
        font-size: 28px;
    }
    #blockcart-modal .cart-modal__actions .btn{
        font-size: 15px!important;
        padding: 7px 20px!important;;
        width: fit-content!important;
    }
    .cart-modal .popup-buttons{
        padding: 5px 0 10px 0;
    }
}
@media screen and (max-width: 767px) {
    #blockcart-modal .cart-modal__actions .btn{
        font-size: 15px!important;
        padding: 7px 20px!important;;
        
    }
    #blockcart-modal .cart-modal__products-section--list-mode .js-cart-modal-products-viewport{
        max-height: 110px;
    }
        #blockcart-modal .cart-modal__summary {
        flex-direction: column;
    }

    #blockcart-modal .modal-dialog.modal-dialog-centered {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Węzeł + dymek: 10% mniejsze (scale na kontenerze — dziedziczy cała zawartość). */
    #blockcart-modal .cart-modal__ms {
        transform: translate(-50%, -50%) scale(0.9);
    }
    #blockcart-modal .cart-modal__close{
        display: none!important;
    }
    .cart-modal__summary-note{
        margin-top: 5px;
        background-color: transparent;
            padding: 8px;
    }
    .cart-modal__summary-note__lead,
    .cart-modal__summary-note__accent{
        display:contents;
    }
    .cart-modal__summary-note,
    .cart-modal__summary-col {
        flex: 1 1 auto;
    }
    #blockcart-modal .popup-footer,
    .cart-modal .modal-header,
    .cart-modal .popup-body{
        padding-left:10px;
        padding-right:10px;
    }
}

/* Stos dymków mobilnych nad paskiem — tylko <576px (ta sama logika co dymki przy węzłach). */
#blockcart-modal .cart-modal__rail-mobile-bubles,
.ps-cart-gamification-host--cart .cart-modal__rail-mobile-bubles,
.ps-shoppingcart-gami-bo-preview-wrap .cart-modal__rail-mobile-bubles {
    display: none;
}

/* Rozwiń / Zwiń — domyślnie ukryte (tylko mobile + list-mode w @media poniżej). */
#blockcart-modal .cart-modal__products-expand {
    display: none;
    width: 100%;
    margin: 8px 0 0;
    padding: 6px 0;
    border: 0;
    background: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    color: #404041;
    text-align: center;
    cursor: pointer;
}

#blockcart-modal .cart-modal__products-expand__label--less {
    display: none;
}

#blockcart-modal .cart-modal__products-section--expanded .cart-modal__products-expand__label--more {
    display: none;
}

#blockcart-modal .cart-modal__products-section--expanded .cart-modal__products-expand__label--less {
    display: inline;
}
@media screen and (max-width: 575px) {
    /*
     * Mobile shell: header + footer zawsze widoczne, scroll tylko w .popup-body.
     * Wysokości z makietu klienta.
     */
    #blockcart-modal.modal.cart-modal {
        overflow-y: hidden;
    }

    #blockcart-modal .modal-dialog.modal-dialog-centered {
        margin-left: auto;
        margin-right: auto;
        margin-top: inherit;
        margin-bottom: inherit;
        min-height: 100dvh;
        max-height: 100dvh;
        display: flex;
        align-items: center;
    }

    #blockcart-modal .modal-content {
        --cart-modal-mobile-header-h: 58px;
        --cart-modal-mobile-footer-h: 123px;
        display: flex;
        flex-direction: column;
        max-height: 100dvh;
        width: 100%;
        overflow: hidden;
    }

    #blockcart-modal .modal-header {
        flex: 0 0 var(--cart-modal-mobile-header-h);
        height: var(--cart-modal-mobile-header-h);
        min-height: var(--cart-modal-mobile-header-h);
        max-height: var(--cart-modal-mobile-header-h);
        padding: 0 10px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        overflow: hidden;
    }

    #blockcart-modal .popup-footer {
        flex: 0 0 var(--cart-modal-mobile-footer-h);
        height: var(--cart-modal-mobile-footer-h);
        min-height: var(--cart-modal-mobile-footer-h);
        max-height: var(--cart-modal-mobile-footer-h);
        padding: 0 10px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    #blockcart-modal .cart-modal__body.popup-body,
    #blockcart-modal .popup-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

      /*
     * Jeden widoczny dymek nad paskiem: ukryj komunikat „darmowa dostawa” (met),
     * gdy jest już dymek z aktualnym rabatem % (nie shipping-callout).
     */
    #blockcart-modal .cart-modal__rail-mobile-bubles:has(.cart-modal__bubble-wrap--rail-mobile .cart-modal__bubble:not(.cart-modal__bubble--shipping-callout)) .cart-modal__bubble-wrap--rail-mobile:has([data-shipping-bubble="met"]),
    .ps-cart-gamification-host--cart .cart-modal__rail-mobile-bubles:has(.cart-modal__bubble-wrap--rail-mobile .cart-modal__bubble:not(.cart-modal__bubble--shipping-callout)) .cart-modal__bubble-wrap--rail-mobile:has([data-shipping-bubble="met"]),
    .ps-shoppingcart-gami-bo-preview-wrap .cart-modal__rail-mobile-bubles:has(.cart-modal__bubble-wrap--rail-mobile .cart-modal__bubble:not(.cart-modal__bubble--shipping-callout)) .cart-modal__bubble-wrap--rail-mobile:has([data-shipping-bubble="met"]) {
        display: none !important;
    }
  /* Lista produktów: zwinięta (~1 wiersz + podgląd kolejnego), Rozwiń/Zwiń pod listą. */
    #blockcart-modal .cart-modal__products-section--list-mode .cart-modal__products-expand {
        display: block;
    }

    #blockcart-modal .cart-modal__products-section--list-mode:not(.cart-modal__products-section--expanded) .js-cart-modal-products-viewport {
        max-height: 118px;
        overflow: hidden;
    }

    #blockcart-modal .cart-modal__products-section--list-mode.cart-modal__products-section--expanded .js-cart-modal-products-viewport {
        max-height: none;
        overflow-y: visible;
    }

.cart-modal__gamification-top{
    margin-bottom: 0px;
    padding-bottom:10px;
    border-bottom: 1px solid #dbe6e9;
}
    .cart-modal .popup-text__flex-row-space{
        font-size: 14px;
        line-height: 1;
    }
    .cart-modal__summary-note__text{
        margin-bottom: 0px!important;
    }
    .cart-modal__rail-progress{
        margin-right: 15px;
    }
    /* .cart-modal__node{
        width: 30px;
        height: 30px;
    } */

    .cart-modal__success-text{
        font-size: 14px;
        line-height: 1;
    }
    .cart-modal__success{
        padding: 10px 10px 10px 10px;
    }
    .cart-modal .popup-buttons{
        flex-direction: column!important;
    }
    .cart-modal__actions .btn, .cart-modal__actions a.btn,
    #blockcart-modal .cart-modal__actions .btn.btn__alt{
        margin: 0px!important;
    }
    .cart-modal .popup-body{
        padding: 0px 10px;
    }
    .cart-modal__gamification{
        padding: 16px 0 8px;
    }
    .cart-modal__track {
         --cart-modal-track-end-trim: 0px!important;
        --cart-modal-track-h: 10px;
    }
    .cart-modal__savings{
        font-size: 14px;
        line-height: 1;
    }


    /* Węzły ~0.6; dymek większy — odwrotne scale względem kontenera (1 / --cart-modal-ms-scale). */
    #blockcart-modal .cart-modal__ms {
        --cart-modal-ms-scale: 0.5;
        transform: translate(-50%, -50%) scale(var(--cart-modal-ms-scale));
    }

    #blockcart-modal .cart-modal__bubble {
        transform: scale(calc(1 / var(--cart-modal-ms-scale)));
        transform-origin: center bottom;

    }

    .cart-modal__bubble__line{
        font-size: 15px;
        line-height: 1.2;

        font-weight: 500;
    }
    .cart-modal__milestones > .cart-modal__ms:last-child .cart-modal__bubble,
    .cart-modal__bubble{
        width: max-content;
        max-width: 330px;
    }
    .cart-modal__milestones > .cart-modal__ms:last-child .cart-modal__bubble{
        position: absolute;
        right:0;
    }
    .cart-modal .popup-buttons{
        padding: 5px 0 10px 0;
    }
      .cart-modal .popup-buttons .btn{
        height: 2.4rem;
      }

    /* Bąbelki nad paskiem: osobny blok w .cart-modal__rail; w milestone ukryte (mobile). */
    .cart-modal__rail {
        display: flex;
        flex-direction: column;
        /* gap: 8px; */
        margin-top: 0px;
    }

    .cart-modal__buble-wrap .cart-modal__bubble{
        display: none;
    }

    #blockcart-modal .cart-modal__rail-mobile-bubles,
    .ps-cart-gamification-host--cart .cart-modal__rail-mobile-bubles,
    .ps-shoppingcart-gami-bo-preview-wrap .cart-modal__rail-mobile-bubles {
        width: 100%;
        box-sizing: border-box;
    }

    #blockcart-modal .cart-modal__rail-mobile-bubles--visible,
    .ps-cart-gamification-host--cart .cart-modal__rail-mobile-bubles--visible,
    .ps-shoppingcart-gami-bo-preview-wrap .cart-modal__rail-mobile-bubles--visible {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
    }

    #blockcart-modal .cart-modal__rail-mobile-bubles .cart-modal__bubble-wrap:has(> .cart-modal__bubble-spacer:only-child),
    .ps-cart-gamification-host--cart .cart-modal__rail-mobile-bubles .cart-modal__bubble-wrap:has(> .cart-modal__bubble-spacer:only-child),
    .ps-shoppingcart-gami-bo-preview-wrap .cart-modal__rail-mobile-bubles .cart-modal__bubble-wrap:has(> .cart-modal__bubble-spacer:only-child) {
        display: none;
    }

    /*
     * Jeden widoczny dymek nad paskiem: ukryj komunikat „darmowa dostawa” (met),
     * gdy jest już dymek z aktualnym rabatem % (nie shipping-callout).
     */
    #blockcart-modal .cart-modal__rail-mobile-bubles:has(.cart-modal__bubble-wrap--rail-mobile .cart-modal__bubble:not(.cart-modal__bubble--shipping-callout)) .cart-modal__bubble-wrap--rail-mobile:has([data-shipping-bubble="met"]),
    .ps-cart-gamification-host--cart .cart-modal__rail-mobile-bubles:has(.cart-modal__bubble-wrap--rail-mobile .cart-modal__bubble:not(.cart-modal__bubble--shipping-callout)) .cart-modal__bubble-wrap--rail-mobile:has([data-shipping-bubble="met"]),
    .ps-shoppingcart-gami-bo-preview-wrap .cart-modal__rail-mobile-bubles:has(.cart-modal__bubble-wrap--rail-mobile .cart-modal__bubble:not(.cart-modal__bubble--shipping-callout)) .cart-modal__bubble-wrap--rail-mobile:has([data-shipping-bubble="met"]) {
        display: none !important;
    }

    .cart-modal__rail-progress{
        min-height: 70px;
    }

    .cart-modal__rail-mobile-bubles .cart-modal__bubble-wrap {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        min-height: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cart-modal__rail-mobile-bubles .cart-modal__bubble {
        transform: none;
        transform-origin: center center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    #blockcart-modal .cart-modal__milestones > .cart-modal__ms .cart-modal__bubble-wrap,
    .ps-cart-gamification-host--cart .cart-modal__milestones > .cart-modal__ms .cart-modal__bubble-wrap {
        display: none !important;
    }

    .cart-modal__side-text{
        font-size: 14px;
        line-height: 1;
        padding:0 5px;
    }
}
