/* Estella – poprawki koszyka i kasy na telefonie (2026-11-11).
   Działa tylko na ekranach do 767 px. Wyłączenie: usuń 2 linie
   "estella-mobile-checkout" z themes/estella/templates/_partials/head.tpl */

.est-sticky-bar { display: none; }

@media (max-width: 767px) {

  /* Przyklejony pasek na dole ekranu (karta produktu i koszyk) */
  .est-sticky-bar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 14px rgba(0,0,0,.08);
    transition: transform .2s ease;
  }
  .est-sticky-bar.est-hidden { transform: translateY(110%); pointer-events: none; }
  .est-sticky-info { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
  .est-sticky-price { font-size: 17px; font-weight: 600; color: #333; white-space: nowrap; }
  .est-sticky-sub { font-size: 12px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .est-sticky-btn, a.est-sticky-btn {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 18px; border: 0; border-radius: 0;
    background: #ce6a6c; color: #fff !important; font-size: 14px; font-weight: 600;
    letter-spacing: .03em; text-transform: uppercase; text-decoration: none !important;
  }
  body.est-has-sticky { padding-bottom: 76px; }
  /* widżet opinii edrone nie przeszkadza w kasie */
  body#checkout #edrone--main--reviews--container { display: none !important; }

  /* Okienko po dodaniu do koszyka: bez dużego zdjęcia, przyciski od razu widoczne */
  #blockcart-modal .modal-dialog { margin: 8px; }
  #blockcart-modal img.product-image { display: none; }
  #blockcart-modal .modal-body { padding-top: 8px; padding-bottom: 8px; }
  #blockcart-modal .modal-body .divide-right .col-md-6 { width: 100%; }
  #blockcart-modal .cart-content p { margin-bottom: 4px; }
  #blockcart-modal .cart-content-btn { display: flex; flex-direction: column; gap: 8px; }
  #blockcart-modal .cart-content-btn .btn { width: 100%; margin: 0; }
  #blockcart-modal .cart-content-btn .btn-primary { order: -1; }

  /* Kasa: uproszczony nagłówek (tylko logo), bez menu i dużego tytułu */
  body#checkout header.pxl-header .pxl-main-menu,
  body#checkout header.pxl-header .pxl-tools,
  body#checkout header.pxl-header .pxl-menu-container,
  body#checkout header.pxl-header .pxl-mobile-menu-btn,
  body#checkout header.pxl-header .pxl-flex-container > :not(.pxl-logo-container),
  body#checkout .pxl-header-page-title,
  body#checkout .pxl-infobar { display: none !important; }
  body#checkout header.pxl-header .pxl-logo-container { height: 56px !important; min-height: 0 !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
  body#checkout header.pxl-header .pxl-header-box { height: auto !important; min-height: 0 !important; }
  body#checkout header.pxl-header .pxl-logo svg { height: 24px; width: auto; }
  body#checkout header.pxl-header { min-height: 0 !important; height: auto !important; }

  /* Kasa, krok 1: najpierw formularz gościa, logowanie przez Apple/Facebook/Google na końcu */
  #checkout-personal-information-step.-current .content { display: flex !important; flex-direction: column; }
  #checkout-personal-information-step .content > * { order: 1; }
  #checkout-personal-information-step .content > .pxl-login-or { order: 5; margin-top: 18px; }
  #checkout-personal-information-step .content > .pshowsso-buttons { order: 6; }

  /* Zwijane pole hasła („Chcę założyć konto”) */
  .est-account-toggle { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px 15px; font-size: 14px; cursor: pointer; }
  .est-account-toggle input { width: 18px; height: 18px; margin: 0; }
  .est-pass-collapsed { display: none !important; }
}
