/* PROTERM UX-01-A (kopia, 2026-11-20, QA2 2026-11-21) — koszyk, checkout (thecheckout), okno po dodaniu do koszyka, kontekstowy pasek, widżety pływające.
   Zakres wyłącznie: body#cart, body#module-thecheckout-order (bloki .checkout-block), #blockcart-modal, #ux-sticky-koszyk oraz widżety zewnętrzne
   (sekcja 4 — tylko stałe selektory, bez obserwatora DOM). Bez zmian funkcji: tylko prezentacja (układ, odstępy, rozmiary, warstwy). */
:root {
  --ux-niebieski: #2271ce; --ux-niebieski-ciemny: #1b5fae; --ux-niebieski-tlo: #edf4fd;
  --ux-tekst: #1f2328; --ux-tekst-2: #5b6470; --ux-linia: #e3e8ef; --ux-linia-2: #cfd6df; --ux-tlo: #f6f8fb;
  --ux-zielony: #17703a; --ux-czerwony: #c62828; --ux-r: 12px;
}

/* ---------- 1. Okno „Produkt dodany do koszyka” — telefon: arkusz od dołu; przyciski zawsze widoczne, treść przewija się w środku ---------- */
@media (max-width: 767.98px) {
  #blockcart-modal .modal-dialog { margin: 0; position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; transform: none !important; }
  #blockcart-modal .modal-content { display: flex; flex-direction: column; border: 0; border-radius: 18px 18px 0 0; max-height: 88vh; max-height: 88dvh; overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -12px 32px rgba(16, 24, 40, .18); }
  #blockcart-modal .modal-header { flex: 0 0 auto; padding: 12px 8px 10px 16px; border-bottom: 1px solid var(--ux-linia); align-items: center; }
  #blockcart-modal .modal-title { font-size: 15px; line-height: 1.35; font-weight: 600; text-align: left !important; color: var(--ux-zielony) !important; margin: 0; }
  #blockcart-modal .modal-title .material-icons { font-size: 20px; vertical-align: -5px; margin-right: 4px; }
  #blockcart-modal .modal-header .close { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; margin: -8px 0 -8px auto; padding: 0; display: flex; align-items: center; justify-content: center; opacity: .7; }
  #blockcart-modal .modal-header .close:focus-visible { outline: 3px solid rgba(34, 113, 206, .55); border-radius: 22px; opacity: 1; }
  #blockcart-modal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px 16px 4px; margin-bottom: 0 !important; } /* motyw rezerwował 68 px pod przyklejoną stopkę */
  #blockcart-modal .modal-body .row { margin: 0; }
  #blockcart-modal .modal-body .row > [class*="col-"] { padding: 0; border: 0; }
  #blockcart-modal .media { display: flex; align-items: flex-start; gap: 12px; }
  #blockcart-modal .modal-cart__image { flex: 0 0 88px; width: 88px; height: 88px; object-fit: contain; margin: 0 !important; padding: 4px; background: #fff;
    border: 1px solid var(--ux-linia); border-radius: 10px; }
  #blockcart-modal .media-body { font-size: 13.5px; line-height: 1.45; color: var(--ux-tekst-2); min-width: 0; }
  #blockcart-modal .modal-cart__name { font-size: 15px; line-height: 1.3; font-weight: 600; margin: 0 0 2px; color: var(--ux-tekst) !important; }
  #blockcart-modal .media-body .product-price { font-size: 16px; font-weight: 700; color: var(--ux-tekst); margin: 0 0 4px; }
  #blockcart-modal .media-body p { margin: 0; }
  #blockcart-modal .media-body strong { color: var(--ux-tekst); font-weight: 600; }
  #blockcart-modal .cart-content { margin: 12px 0 0; padding: 10px 12px; background: var(--ux-tlo); border-radius: 10px; font-size: 14px; color: var(--ux-tekst); }
  #blockcart-modal .cart-content p { margin: 0 0 4px; }
  #blockcart-modal .cart-content .cart-products-count { font-size: 13px; color: var(--ux-tekst-2); }
  #blockcart-modal .cart-content .d--flex-between { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  #blockcart-modal .cart-content .value { text-align: right; font-variant-numeric: tabular-nums; }
  /* „Rata 0% już od” (PayU, hook displayCheckoutSubtotalDetails) — pod kwotą wysyłki, wyrównane do prawej, drobnym drukiem */
  #blockcart-modal .cart-content .value > span[style*="display"] { font-size: 13px; font-weight: 400; color: var(--ux-tekst-2); margin-top: 4px !important; }
  #blockcart-modal .cart-content .product-total { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--ux-linia); font-size: 17px; font-weight: 700; }
  #blockcart-modal .modal-footer { flex: 0 0 auto; position: static !important; display: flex; flex-direction: column-reverse; gap: 4px; padding: 10px 16px 12px; border-top: 1px solid var(--ux-linia); background: #fff; box-shadow: none; }
  #blockcart-modal .modal-footer > .btn { width: 100%; margin: 0 !important; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 24px; font-size: 16px; }
  #blockcart-modal .modal-footer > .btn-outline-secondary { border: 0; background: transparent; color: var(--ux-niebieski-ciemny); font-weight: 600; min-height: 44px; }
  #blockcart-modal .modal-footer > .btn:focus-visible { outline: 3px solid rgba(34, 113, 206, .55); outline-offset: 2px; }
  #blockcart-modal .modal-footer > .btn-primary .material-icons { display: none; }
}

/* ---------- 2. Koszyk (body#cart) ---------- */
body#cart .cart-container { border: 0; box-shadow: none; background: transparent; }
body#cart .cart-container > .card-header { background: transparent; border: 0; padding: 4px 0 10px; font-size: 22px; font-weight: 700; text-transform: none; }
body#cart .cart__card-body { padding: 0; }
body#cart .cart-item { background: #fff; border: 1px solid var(--ux-linia); border-radius: var(--ux-r); padding: 12px; margin-bottom: 10px; }
body#cart .product-line__img { width: 88px; height: 88px; object-fit: contain; border-radius: 10px; border: 1px solid var(--ux-linia); padding: 4px; background: #fff; }
body#cart .product-line__title { font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--ux-tekst); }
body#cart .product-line__body .small { font-size: 13.5px; color: var(--ux-tekst-2); }
body#cart .product-line__body .current-price-display { font-size: 15px; font-weight: 600; }
body#cart .product-line-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
/* ilość: wyraźny przełącznik − ilość + (obrys z !important — motyw go zeruje) */
body#cart .product-line-actions .bootstrap-touchspin { flex-wrap: nowrap; width: auto; border: 1px solid var(--ux-linia-2) !important; border-radius: 24px !important; overflow: hidden; background: #fff; }
body#cart .product-line-actions .js-touchspin { width: 44px; height: 44px; min-width: 44px; padding: 0; font-size: 22px; line-height: 1; background: #fff; border: 0; color: var(--ux-tekst); }
body#cart .product-line-actions .js-touchspin:focus-visible { outline: 3px solid rgba(34, 113, 206, .55); outline-offset: -3px; }
body#cart .product-line-actions .js-cart-line-product-quantity { flex: 0 0 46px; width: 46px; height: 44px; text-align: center; border: 0; font-size: 16px; font-weight: 600; padding: 0; -moz-appearance: textfield; }
body#cart .product-line-actions .js-cart-line-product-quantity::-webkit-inner-spin-button, body#cart .product-line-actions .js-cart-line-product-quantity::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body#cart .product-line-actions .product-price { margin-left: auto; font-size: 17px; font-variant-numeric: tabular-nums; }
body#cart .cart-line-product-actions .remove-from-cart { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 22px; color: var(--ux-tekst-2); }
body#cart .cart-line-product-actions .remove-from-cart:hover, body#cart .cart-line-product-actions .remove-from-cart:focus-visible { background: #fdecec; color: var(--ux-czerwony); }
body#cart .cart-line-product-actions .remove-from-cart:focus-visible { outline: 3px solid rgba(198, 40, 40, .5); outline-offset: 0; }
body#cart .cart-line-product-actions .remove-from-cart .material-icons { float: none !important; font-size: 22px; }
body#cart .cart-summary { border: 1px solid var(--ux-linia); border-radius: var(--ux-r); box-shadow: none; overflow: hidden; margin-bottom: 12px !important; }
body#cart .cart-summary .card-body--summary { padding: 14px 16px 6px; }
body#cart .cart-summary-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-bottom: 6px; color: var(--ux-tekst); }
/* kwota + „Rata 0% już od” (PayU) w jednej kolumnie wyrównanej do prawej (na produkcji „Za darmo!” lądowało na środku) */
body#cart .cart-summary-line > div { text-align: right; font-variant-numeric: tabular-nums; }
body#cart .cart-summary-line small.value { display: block; font-size: 13px; color: var(--ux-tekst-2); }
body#cart .cart-summary-line small.value > span[style*="display"] { margin-top: 4px !important; }
/* łączna kwota — najwyraźniejsza informacja podsumowania */
body#cart .cart-summary-line.cart-total { margin: 8px -16px 0; padding: 12px 16px; background: var(--ux-niebieski-tlo); font-size: 19px; font-weight: 700; color: var(--ux-tekst); }
body#cart .cart-summary-line.cart-total .label, body#cart .cart-summary-line.cart-total .value { font-weight: 700; }
/* kod rabatowy — czytelny, ale nie konkuruje z przyciskiem zamówienia */
body#cart .promo-code-button .collapse-button { display: inline-flex; align-items: center; min-height: 44px; color: var(--ux-niebieski-ciemny) !important; font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
body#cart .cart-summary .card-footer { background: #fff; border: 0; padding: 12px 16px 16px; }
body#cart .cart-summary .cart-detailed-actions .btn-primary { min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 26px; font-size: 16.5px; font-weight: 700; white-space: normal;
  box-shadow: 0 4px 12px rgba(34, 113, 206, .25); }
body#cart .cart-summary .cart-detailed-actions .btn-primary:focus-visible { outline: 3px solid rgba(34, 113, 206, .55); outline-offset: 2px; }
body#cart a.ux-kontynuuj { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; margin: 0 0 12px; background: transparent; border: 0;
  color: var(--ux-niebieski-ciemny); font-weight: 600; text-decoration: none; }
body#cart a.ux-kontynuuj:hover, body#cart a.ux-kontynuuj:focus-visible { text-decoration: underline; }
@media (max-width: 767.98px) {
  /* przycisk „Przejdź do realizacji zamówienia” wraca do podsumowania (motyw przyklejał go do dołu ekranu z szarym tłem);
     kontekstowy pasek pojawia się tylko, gdy ten przycisk jest poza ekranem (ux01-a.js) */
  body#cart .cart-grid-right { margin-top: 0 !important; }
  body#cart .cart-summary .cart-detailed-actions { position: static !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; width: auto !important; z-index: auto !important; }
}

/* kontekstowy pasek koszyka (tworzy ux01-a.js tylko na stronie koszyka; skrót dotykowy — właściwy przycisk jest w podsumowaniu, w kolejności klawiatury) */
#ux-sticky-koszyk { display: none; }
@media (max-width: 767.98px) {
  #ux-sticky-koszyk { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--ux-linia); box-shadow: 0 -6px 20px rgba(16, 24, 40, .10); transform: translateY(110%); transition: transform .2s ease; visibility: hidden; }
  #ux-sticky-koszyk.ux-widoczny { transform: none; visibility: visible; }
  #ux-sticky-koszyk .ux-suma { flex: 0 0 auto; font-size: 13px; color: var(--ux-tekst-2); line-height: 1.2; }
  #ux-sticky-koszyk .ux-suma strong { display: block; font-size: 17px; color: var(--ux-tekst); font-variant-numeric: tabular-nums; }
  #ux-sticky-koszyk .btn { flex: 1 1 auto; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 24px; font-size: 15px; line-height: 1.2; white-space: normal; }
  body.modal-open #ux-sticky-koszyk, body.ux-klawiatura #ux-sticky-koszyk { transform: translateY(110%) !important; visibility: hidden !important; }
}
@media (prefers-reduced-motion: reduce) { #ux-sticky-koszyk { transition: none; } }

/* ---------- 3. Checkout — moduł thecheckout (body#module-thecheckout-order; tylko bloki .checkout-block, bez nagłówka strony) ---------- */
body#module-thecheckout-order .checkout-block .inner-area { background: #fff; border: 1px solid var(--ux-linia) !important; border-radius: var(--ux-r) !important; box-shadow: none !important; padding: 16px !important; }
body#module-thecheckout-order .checkout-block { margin-bottom: 12px !important; }
/* podsumowanie koszyka w checkoutcie ma własne pola — bez dodatkowej ramki i odstępu (inaczej „Razem” zawija się) */
body#module-thecheckout-order #thecheckout-cart-summary .inner-area { border: 0 !important; padding: 0 !important; background: transparent !important; }
body#module-thecheckout-order .checkout-block .block-header { font-size: 17px !important; font-weight: 700 !important; color: var(--ux-tekst) !important; text-transform: none !important; letter-spacing: 0 !important; margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; }
body#module-thecheckout-order .checkout-block .form-control, body#module-thecheckout-order .checkout-block select.form-control { min-height: 48px; font-size: 16px; border: 1px solid var(--ux-linia-2); border-radius: 10px; background-color: #fff; color: var(--ux-tekst); }
body#module-thecheckout-order .checkout-block .form-control:focus { border-color: var(--ux-niebieski); box-shadow: 0 0 0 3px rgba(34, 113, 206, .22); outline: 0; }
body#module-thecheckout-order .checkout-block .form-group { margin-bottom: 12px; }
body#module-thecheckout-order .checkout-block label, body#module-thecheckout-order .checkout-block .form-control-label { color: var(--ux-tekst); }
/* pola wyboru: jednolity rozmiar 22 px (przyciski opcji — rozmiar z motywu, bez zmian) */
body#module-thecheckout-order .checkout-block .custom-checkbox input[type="checkbox"] { width: 22px !important; height: 22px !important; }
body#module-thecheckout-order .checkout-block .custom-checkbox > span:not(.label) { width: 22px !important; height: 22px !important; min-width: 22px; flex: 0 0 22px; margin: 1px 0 0 !important; }
body#module-thecheckout-order .checkout-block .checkbox label { min-height: 44px; display: block; line-height: 1.45; font-size: 14.5px; padding-top: 2px; cursor: pointer; }
body#module-thecheckout-order .checkout-block .checkbox .custom-checkbox { display: flex; align-items: flex-start; gap: 12px; }
body#module-thecheckout-order .checkout-block .checkbox .label em { display: block; font-size: 13px; line-height: 1.45; color: var(--ux-tekst-2); font-style: normal; margin-top: 3px; }
/* zgoda na regulamin: pole i treść obok siebie z odstępem, treść płynie jak zwykły tekst (bez dzielenia na kolumny); treść bez zmian */
body#module-thecheckout-order #conditions-to-approve ul { margin: 0; padding: 0; list-style: none; }
body#module-thecheckout-order #conditions-to-approve li { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 6px; }
body#module-thecheckout-order #conditions-to-approve li > .float-xs-left { float: none; flex: 0 0 auto; padding-top: 1px; }
body#module-thecheckout-order .condition-label { flex: 1 1 auto; min-width: 0; }
body#module-thecheckout-order .condition-label label { display: block; font-size: 14.5px; line-height: 1.5; cursor: pointer; color: var(--ux-tekst); }
body#module-thecheckout-order .condition-label a { color: var(--ux-niebieski-ciemny); text-decoration: underline; text-underline-offset: 2px; }
/* opcje dostawy i płatności jako czytelne karty wyboru (całość klikalna przez etykietę modułu; identyfikatory, pola i skrypty bez zmian) */
body#module-thecheckout-order .delivery-option-row, body#module-thecheckout-order .payment-options .payment-option {
  display: flex !important; align-items: center; gap: 10px; margin: 0 0 8px !important; padding: 12px !important; border: 1px solid var(--ux-linia-2); border-radius: var(--ux-r); background: #fff; transition: border-color .15s ease, background-color .15s ease; }
body#module-thecheckout-order .delivery-option-row:has(input:checked), body#module-thecheckout-order .payment-options .payment-option:has(input:checked) { border-color: var(--ux-niebieski); background: var(--ux-niebieski-tlo); box-shadow: 0 0 0 1px var(--ux-niebieski) inset; }
body#module-thecheckout-order .delivery-option-row:has(input:focus-visible), body#module-thecheckout-order .payment-options .payment-option:has(input:focus-visible) { outline: 3px solid rgba(34, 113, 206, .55); outline-offset: 2px; }
body#module-thecheckout-order .delivery-option-row .shipping-radio, body#module-thecheckout-order .payment-option > .custom-radio { flex: 0 0 auto; margin: 0 !important; float: none !important; }
body#module-thecheckout-order .delivery-option-label, body#module-thecheckout-order .payment-option > label { flex: 1 1 auto; margin: 0 !important; min-height: 32px; cursor: pointer; }
body#module-thecheckout-order .delivery-option-label .row { margin: 0; align-items: center; }
body#module-thecheckout-order .carrier-name, body#module-thecheckout-order .payment-option > label .h6 { font-size: 15px !important; font-weight: 600 !important; color: var(--ux-tekst); margin: 0; }
body#module-thecheckout-order .carrier-delay { font-size: 13.5px; color: var(--ux-tekst-2); }
body#module-thecheckout-order .carrier-price { font-size: 14px; font-weight: 700; color: var(--ux-zielony); }
body#module-thecheckout-order .delivery-option-logo img, body#module-thecheckout-order .payment-option > label img { max-height: 28px; width: auto; object-fit: contain; }
body#module-thecheckout-order .payment-option > label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body#module-thecheckout-order a.promo-code-button { color: var(--ux-niebieski-ciemny) !important; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
/* przycisk złożenia zamówienia — dosłowne brzmienie bez zmian (tekst z modułu) */
body#module-thecheckout-order #confirm_order { width: 100%; min-height: 56px; border-radius: 28px; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
body#module-thecheckout-order #confirm_order:focus-visible { outline: 3px solid rgba(34, 113, 206, .55); outline-offset: 2px; }
body#module-thecheckout-order .checkout-block .error-msg { color: var(--ux-czerwony); font-size: 13.5px; }
body#module-thecheckout-order .checkout-block input, body#module-thecheckout-order .checkout-block select, body#module-thecheckout-order .checkout-block .error-msg, body#module-thecheckout-order .checkout-block { scroll-margin-top: 130px; }
@media (max-width: 767.98px) {
  body#module-thecheckout-order #wrapper .container, body#module-thecheckout-order #content-wrapper { padding-left: 12px; padding-right: 12px; }
  body#module-thecheckout-order .checkout-block .inner-area { padding: 14px !important; }
  /* górny pasek strony nie zasłania pola z klawiaturą */
  body.ux-klawiatura .topnavbar.fixedElement { transform: translateY(-110%); transition: transform .15s ease; }
}
/* DEC-031 (test na produkcji 21.11): na telefonie motyw dokładał ok. 70 px wcięć z każdej strony (#wrapper 15 + #content-wrapper 12 + ramka #main 1 + #content 20 + blok 7 + karta 15) —
   przy 320 px karta dostawy/płatności miała 180 px, a logo PayU RATY i Przelewy24 wychodziło poza jej obrys. Telefon: jedna ramka (karta bloku), wcięcie ok. 36 px. */
@media (max-width: 575.98px) {
  body#module-thecheckout-order #main { border-left-width: 0 !important; border-right-width: 0 !important; }
  body#module-thecheckout-order #content { padding-left: 0 !important; padding-right: 0 !important; }
  body#module-thecheckout-order #content-wrapper { padding-left: 8px; padding-right: 8px; }
  body#module-thecheckout-order .checkout-block { padding-left: 0 !important; padding-right: 0 !important; }
  body#module-thecheckout-order .checkout-block .inner-area { padding: 14px 12px !important; }
  body#module-thecheckout-order .delivery-option-row .shipping-radio { flex: 0 0 auto; width: auto; padding: 0 !important; }
  /* podsumowanie koszyka: nagłówek i pozycje z wewnętrznym odstępem (wcześniej przy 320 px nazwa, wariant i ikona usuwania były ucinane na krawędziach bloku) */
  body#module-thecheckout-order #thecheckout-cart-summary { padding: 14px 10px !important; border-radius: var(--ux-r); }
}
/* logo płatności zawsze w obrysie karty: nazwa i logo w jednym wierszu, a gdy zabraknie miejsca — logo przechodzi pod nazwę (bez zmniejszania i bez nachodzenia) */
body#module-thecheckout-order .payment-option > label { flex-wrap: wrap; row-gap: 6px; min-width: 0; }
body#module-thecheckout-order .payment-option > label .h6 { flex: 1 1 90px; min-width: 0; overflow-wrap: break-word; }
body#module-thecheckout-order .payment-option > label img { flex: 0 0 auto; max-width: 100%; height: auto; }
/* cała karta wybiera opcję (wcześniej tylko etykieta ok. 32 px wysokości w karcie 58 px): rozciągnięta etykieta modułu (label[for] → to samo pole wyboru; brak linków i pól w etykietach) */
body#module-thecheckout-order .delivery-option-row, body#module-thecheckout-order .payment-options .payment-option { position: relative; }
body#module-thecheckout-order .delivery-option-row .delivery-option-label::after, body#module-thecheckout-order .payment-option > label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- 4. Widżety zewnętrzne — telefon. Stałe selektory (bez obserwatora DOM): działają po 60/90/120 s, po przewinięciu i ponownym otwarciu okna.
   Koszyk, checkout, otwarte okno koszyka i klawiatura: bez nakładek (odznaka Trusted Shops i jej logowanie, toast „social proof”, sprzedaż krzyżowa,
   czat AI i zakładka „%” edrone). display:none — elementy Trusted Shops same ustawiają visibility:visible. Skrypty i zdarzenia działają dalej.
   Zaufanie w koszyku zostaje: statyczny blok Trusted Shops „Gwarancja bezpiecznych zakupów” w treści strony. ---------- */
@media (max-width: 767.98px) {
  body#cart [id^="trustbadge-container-"], body#module-thecheckout-order [id^="trustbadge-container-"], body.modal-open [id^="trustbadge-container-"], body.ux-klawiatura [id^="trustbadge-container-"],
  body#cart [data-testid^="minimized-trustbadge"], body#module-thecheckout-order [data-testid^="minimized-trustbadge"], body.modal-open [data-testid^="minimized-trustbadge"], body.ux-klawiatura [data-testid^="minimized-trustbadge"],
  body#cart > trstd-login, body#module-thecheckout-order > trstd-login, body.modal-open > trstd-login,
  body#cart #edrone--main--social-proof--container, body#module-thecheckout-order #edrone--main--social-proof--container, body.modal-open #edrone--main--social-proof--container, body.ux-klawiatura #edrone--main--social-proof--container,
  body#cart #edrone--main--cross_selling--container, body#module-thecheckout-order #edrone--main--cross_selling--container, body.modal-open #edrone--main--cross_selling--container,
  body#cart > edrone-ai-sales-chat, body#module-thecheckout-order > edrone-ai-sales-chat, body.modal-open > edrone-ai-sales-chat, body.ux-klawiatura > edrone-ai-sales-chat,
  body#cart > div[style*="2147483647"]:not([id*="ookie"]):not([id^="Cybot"]), body#module-thecheckout-order > div[style*="2147483647"]:not([id*="ookie"]):not([id^="Cybot"]),
  body.modal-open > div[style*="2147483647"]:not([id*="ookie"]):not([id^="Cybot"]), body.ux-klawiatura > div[style*="2147483647"]:not([id*="ookie"]):not([id^="Cybot"]) { display: none !important; }
}
@media (max-width: 991.98px) {
  /* kategorie i karty produktów (telefon i tablet): odznaka Trusted Shops mniejsza (na telefonie ok. 49 × 81 px zamiast 68 × 112), w rogu —
     mniej zasłania kafelki, miniatury i wybór wariantu; działa i odsyła do opinii jak dotąd */
  body:not(#cart):not(#module-thecheckout-order) [data-testid="minimized-trustbadge-floating"] { transform: scale(.72) !important; transform-origin: left bottom !important; } /* !important: widżet zeruje własne style regułą z !important */
}

/* ---------- INC-B67 (DEC-039, 2026-11-21) — koszyk na telefonie: wiersz ilości zawsze w karcie pozycji ----------
   Motyw wyrównuje wiersz do prawej, a zawartość (− ilość +, kwota, kosz) ma ok. 284 px — przy węższej karcie nadmiar wychodził w lewo
   (320 px: przycisk „−” 21 px poza ekranem). Układ stały dla każdej kwoty i każdej pozycji w koszyku:
   1. wiersz — przełącznik „− ilość +” po lewej, kosz po prawej; 2. wiersz — kwota pozycji wyrównana do prawej (bez skracania).
   Tylko prezentacja: kolejność w DOM, przyciski, obszary dotyku (44 × 44) i skrypty bez zmian. Od 576 px — układ jak dotąd (jeden wiersz). */
@media (max-width: 575.98px) {
  body#cart .product-line-actions { flex-wrap: wrap; justify-content: space-between; column-gap: 12px; row-gap: 6px; }
  body#cart .product-line-actions .cart-line-product-actions { order: 1; margin-left: auto; }
  body#cart .product-line-actions .product-price { order: 2; flex: 0 0 100%; margin: 0; justify-content: flex-end; text-align: right; white-space: nowrap; } /* motyw: .product-price { display: flex } */
}

/* ---------- INC-B68 (DEC-040, 2026-11-21) — podsumowanie koszyka na telefonie: łączna kwota nigdy nie ucięta ----------
   Przy 320 px „Razem (brutto)” (19 px, pogrubione) i kwota od ok. 1 000 zł nie mieściły się w jednej linii, a karta podsumowania ma overflow: hidden —
   kwota była obcinana przy prawej krawędzi i stykała się z etykietą. Teraz: odstęp min. 8 px; gdy brak miejsca — kwota w drugiej linii, wyrównana do prawej.
   Bez zmiany czcionki, treści i HTML. Od 576 px — bez zmian. */
@media (max-width: 575.98px) {
  body#cart .cart-summary-line.cart-total { flex-wrap: wrap; column-gap: 8px; row-gap: 2px; }
  body#cart .cart-summary-line.cart-total .value { margin-left: auto; white-space: nowrap; }
}
