/* Wspólna baza panelu Wyjedzone — paleta + tokeny (jasny / ciemny) */

/* ☀️ Motyw jasny */
html[data-wyj-theme="light"] {
  --wyj-bg: #F4F1EA;
  --wyj-surface: #FFFFFF;
  --wyj-surfaceMuted: #FAF8F3;
  --wyj-surfaceSunken: #EFEBE2;
  --wyj-border: rgba(39, 13, 89, 0.08);
  --wyj-borderStrong: rgba(39, 13, 89, 0.14);
  --wyj-ink: #1A1A1A;
  --wyj-ink70: rgba(26, 26, 26, 0.7);
  --wyj-ink50: rgba(26, 26, 26, 0.5);
  --wyj-ink30: rgba(26, 26, 26, 0.28);
  --wyj-purple: #270D59;
  --wyj-pink: #E574DC;
  --wyj-pinkSoft: #FDE4FB;
  --wyj-lavender: #D5D1FF;
  --wyj-lavenderSoft: #EFEDFF;
  --wyj-green: #2F8B5C;
  --wyj-greenSoft: #DDEFE2;
  --wyj-amber: #B5751B;
  --wyj-amberSoft: #F8E9CB;
  --wyj-red: #B23A3A;
  --wyj-redSoft: #F6DCDC;
  --wyj-blue: #2D5BC7;
  --wyj-blueSoft: #DDE4F7;
  --wyj-icon-accent: rgba(39, 13, 89, 0.38);
  --wyj-shadow: 0 1px 2px rgba(39, 13, 89, 0.04), 0 8px 24px rgba(39, 13, 89, 0.05);
  --wyj-shadowSoft: 0 1px 2px rgba(39, 13, 89, 0.03);
  --wyj-bnav-bar-bg: var(--wyj-surface);
  --wyj-bnav-pill-bg: transparent;
  --wyj-bnav-pill-shadow: var(--wyj-shadow);
  --wyj-bnav-pill-muted: var(--wyj-ink70);
  --wyj-bnav-pill-active-bg: rgba(39, 13, 89, 0.10);
  --wyj-bnav-pill-active-fg: var(--wyj-purple);
  --wyj-bnav-pill-badge-bg: var(--wyj-pink);
  --wyj-bnav-pill-badge-fg: #fff;
  --wyj-bnav-pill-sep: var(--wyj-border);
}

/* 🌙 Motyw ciemny (domyślny) */
html[data-wyj-theme="dark"],
html:not([data-wyj-theme]) {
  --wyj-bg: #15121C;
  --wyj-surface: #1F1A2A;
  --wyj-surfaceMuted: #262032;
  --wyj-surfaceSunken: #100E16;
  --wyj-border: rgba(255, 255, 255, 0.06);
  --wyj-borderStrong: rgba(255, 255, 255, 0.12);
  --wyj-ink: #F4F1EA;
  --wyj-ink70: rgba(244, 241, 234, 0.7);
  --wyj-ink50: rgba(244, 241, 234, 0.5);
  --wyj-ink30: rgba(244, 241, 234, 0.3);
  --wyj-purple: #D5D1FF;
  --wyj-pink: #FE9AFC;
  --wyj-pinkSoft: rgba(254, 154, 252, 0.14);
  --wyj-lavender: #D5D1FF;
  --wyj-lavenderSoft: rgba(213, 209, 255, 0.12);
  --wyj-green: #7BD8A1;
  --wyj-greenSoft: rgba(123, 216, 161, 0.14);
  --wyj-amber: #F2C879;
  --wyj-amberSoft: rgba(242, 200, 121, 0.14);
  --wyj-red: #F19595;
  --wyj-redSoft: rgba(241, 149, 149, 0.16);
  --wyj-blue: #9FB6F0;
  --wyj-blueSoft: rgba(159, 182, 240, 0.16);
  --wyj-icon-accent: #A8B4F0;
  --wyj-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.4);
  --wyj-shadowSoft: 0 1px 2px rgba(0, 0, 0, 0.25);
  --wyj-bnav-bar-bg: var(--wyj-surface);
  --wyj-bnav-pill-bg: transparent;
  --wyj-bnav-pill-shadow: var(--wyj-shadow);
  --wyj-bnav-pill-muted: var(--wyj-ink70);
  --wyj-bnav-pill-active-bg: var(--wyj-lavenderSoft);
  --wyj-bnav-pill-active-fg: var(--wyj-lavender);
  --wyj-bnav-pill-badge-bg: var(--wyj-pink);
  --wyj-bnav-pill-badge-fg: var(--wyj-bg);
  --wyj-bnav-pill-sep: var(--wyj-border);
}

/* Aliasy wsteczne (--wyj-white itd.) */
html[data-wyj-theme="light"],
html[data-wyj-theme="dark"],
html:not([data-wyj-theme]) {
  --wyj-white: var(--wyj-ink);
  --wyj-muted: var(--wyj-ink50);
  --wyj-pink-soft: var(--wyj-pinkSoft);
  --wyj-pink-border: var(--wyj-pink);
}

html, body {
  background: var(--wyj-bg);
  color: var(--wyj-ink);
  min-height: 100%;
  min-height: 100dvh;
}

/* Safe area — notch / kamera (viewport-fit=cover + js/wyj-safe-area.js fallback) */
html {
  --wyj-safe-top: 0px;
  --wyj-safe-right: 0px;
  --wyj-safe-bottom: 0px;
  --wyj-safe-left: 0px;
  --wyj-safe-top-fallback: 0px;
  --wyj-safe-bottom-fallback: 0px;
  --wyj-safe-top-effective: max(var(--wyj-safe-top), var(--wyj-safe-top-fallback));
  --wyj-safe-right-effective: var(--wyj-safe-right);
  --wyj-safe-bottom-effective: max(var(--wyj-safe-bottom), var(--wyj-safe-bottom-fallback));
  --wyj-safe-left-effective: var(--wyj-safe-left);
  box-sizing: border-box;
}
body.wyj-has-bnav {
  padding-top: var(--wyj-safe-top-effective);
  padding-left: var(--wyj-safe-left-effective);
  padding-right: var(--wyj-safe-right-effective);
  box-sizing: border-box;
}

.wyj-page {
  background: var(--wyj-bg);
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  width: 100%;
  color: var(--wyj-ink);
  font-family: 'Inter', sans-serif;
}
.wyj-page * { -webkit-tap-highlight-color: transparent; }
/* Szerokość treści podstron: max 1200px; <1200px → 85%; mobile → 90% */
.wyj-wrap,
.wyj-sub-wrap,
.hist-wrap,
.settings-wrap,
.del-wrap,
.support-wrap,
.op-wrap,
.prod-wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1199px) {
  .wyj-wrap,
  .wyj-sub-wrap,
  .hist-wrap,
  .settings-wrap,
  .del-wrap,
  .support-wrap,
  .op-wrap,
  .prod-wrap {
    width: 85%;
    max-width: none;
  }
}
@media (max-width: 768px) {
  .wyj-wrap,
  .wyj-sub-wrap,
  .hist-wrap,
  .settings-wrap,
  .del-wrap,
  .support-wrap,
  .op-wrap,
  .prod-wrap {
    width: 90%;
  }
}

.wyj-title-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  margin-bottom: 0.75rem !important;
  width: auto !important;
}
.wyj-title-row .wyj-title:not(.wyj-page-hero__title),
.wyj-title-row h1:not(.wyj-page-hero__title),
.wyj-title-row .prod-title,
.wyj-title-row .hist-title:not(.wyj-page-hero__title),
.wyj-title-row .del-title:not(.wyj-page-hero__title),
.wyj-title-row .st-title,
.wyj-title-row .op-title:not(.wyj-page-hero__title) {
  font-family: var(--wyj-font-display, 'Fraunces', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: normal;
  color: var(--wyj-purple);
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  text-shadow: none;
  flex: 0 1 auto !important;
  width: auto !important;
  display: inline !important;
}
.wyj-title:not(.wyj-page-hero__title) {
  font-family: var(--wyj-font-display, 'Fraunces', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: normal;
  color: var(--wyj-purple);
  margin: 0;
  text-shadow: none;
}
.wyj-title-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: var(--wyj-purple);
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 0 !important;
}
.wyj-ic { display: block; flex-shrink: 0; vertical-align: middle; }
.wyj-ic--title { display: block; }
.wyj-ic-inline {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  color: currentColor;
  stroke-width: 1.75;
}
.inline-flex.items-center .wyj-ic-inline { align-self: center; }

/* Zamówienia — ikony jasnoniebieskie (ten sam odcień w obu motywach) */
#active-orders-body .wyj-ic-inline,
#completed-orders-body .wyj-ic-inline,
#active-local-body .wyj-ic-inline,
#completed-local-body .wyj-ic-inline,
#kw-active-card .wyj-ic-inline,
#kw-completed-card .wyj-ic-inline,
.wyj-orders-shell .wyj-ic-inline {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  color: var(--wyj-icon-accent) !important;
}

/* Zamówienia — typografia (Inter zamiast Poppins z header.php) */
.wyj-orders-shell,
#wyj-dock {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#active-orders-body,
#completed-orders-body,
#active-local-body,
#completed-local-body {
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.wyj-orders-shell .wyj-table-wrap > .hidden.md\:grid {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.wyj-orders-shell label,
.wyj-orders-shell select,
.wyj-orders-shell input,
.wyj-orders-shell textarea,
.wyj-orders-shell button,
.wyj-orders-shell .btn {
  font-family: inherit;
}
.wyj-orders-shell #wyj-status-debug {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.wyj-swal.swal2-popup,
.wyj-swal.swal2-popup .swal2-title,
.wyj-swal.swal2-popup .swal2-html-container {
  font-family: 'Inter', system-ui, sans-serif !important;
}

/* Rozwiń / Zwiń — bez podświetlenia ramki/tekstu w żadnym stanie */
.wyj-toggle-details,
.wyj-toggle-details:hover,
.wyj-toggle-details:focus,
.wyj-toggle-details:active,
.wyj-toggle-details:focus-visible,
.wyj-toggle-details:focus:not(:focus-visible) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 0.65rem !important;
  border: 1px solid var(--wyj-borderStrong) !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--wyj-ink) !important;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-bg-opacity: 0 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
}
/* Przyciski w szczegółach zamówienia (anuluj, drukuj) — mały rozmiar btn-xs */
[id^="details-content-"] .btn.btn-xs,
[id^="details-content-"] .wyj-order-action-btn {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  min-height: auto !important;
  height: auto !important;
  padding: 0.35rem 0.65rem !important;
}

/* Dolne menu + dock: odstęp 22px — js/wyj-bottom-stack.js (--wyj-dock-bottom-offset) */

/* Domyślnie ukryte <1400px; od 1400px widoczne. Własne style z display:flex !important mogą to nadpisać. */
.wyj-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  padding-bottom: var(--wyj-safe-bottom-effective);
  padding-left: var(--wyj-safe-left-effective);
  padding-right: var(--wyj-safe-right-effective);
  background: var(--wyj-bnav-bar-bg);
  border-top: 1px solid var(--wyj-bnav-pill-sep);
  box-shadow: var(--wyj-bnav-pill-shadow);
  pointer-events: auto;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
  will-change: transform;
}

html.wyj-touch .wyj-bottom-nav.wyj-bottom-nav--scroll-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none !important;
}
@media (min-width: 1400px) {
  .wyj-bottom-nav {
    display: flex;
  }
}
/* Klasa na <body> — wymusza pasek na każdej szerokości */
body.wyj-bnav-force .wyj-bottom-nav {
  display: flex !important;
}
.wyj-bottom-nav__pill {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.25rem;
  width: 100%;
  max-width: none;
  padding: 0.45rem 0.5rem 0.55rem;
  background: var(--wyj-bnav-pill-bg);
  border-radius: 0;
  box-shadow: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  pointer-events: auto;
}
.wyj-bottom-nav__pill::-webkit-scrollbar {
  display: none;
}
.wyj-bottom-nav__pill--wide .wyj-bnav-pill-link {
  padding: 0.52rem 0.78rem;
  gap: 0.38rem;
  font-size: 1rem;
}
.wyj-bottom-nav__pill--wide .wyj-bnav-pill-link__label {
  font-size: 1rem;
}
.wyj-bnav-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 0.42rem;
  padding: 0.55rem 0.65rem;
  border-radius: 9999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--wyj-bnav-pill-muted);
  white-space: nowrap;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}
.wyj-bnav-pill-link:hover,
.wyj-bnav-pill-link:focus,
.wyj-bnav-pill-link:active {
  color: var(--wyj-bnav-pill-muted);
  background: transparent;
  outline: none;
  box-shadow: none;
}
.wyj-bnav-pill-link--active,
.wyj-bnav-pill-link--active:hover {
  background: var(--wyj-bnav-pill-active-bg);
  color: var(--wyj-bnav-pill-active-fg);
}
.wyj-bnav-pill-more.wyj-bnav-pill-more--active-desktop,
.wyj-bnav-pill-more.wyj-bnav-pill-more--active-desktop:hover {
  background: var(--wyj-bnav-pill-active-bg);
  color: var(--wyj-bnav-pill-active-fg);
}
@media (max-width: 767px) {
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-mobile,
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-mobile:hover {
    background: var(--wyj-bnav-pill-active-bg);
    color: var(--wyj-bnav-pill-active-fg);
  }
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-tablet:not(.wyj-bnav-pill-more--active-mobile),
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-desktop:not(.wyj-bnav-pill-more--active-mobile) {
    background: transparent;
    color: var(--wyj-bnav-pill-muted);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-tablet,
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-tablet:hover {
    background: var(--wyj-bnav-pill-active-bg);
    color: var(--wyj-bnav-pill-active-fg);
  }
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-mobile:not(.wyj-bnav-pill-more--active-tablet),
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-desktop:not(.wyj-bnav-pill-more--active-tablet) {
    background: transparent;
    color: var(--wyj-bnav-pill-muted);
  }
}
@media (min-width: 1024px) and (max-width: 1399px) {
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-desktop,
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-desktop:hover {
    background: var(--wyj-bnav-pill-active-bg);
    color: var(--wyj-bnav-pill-active-fg);
  }
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-mobile:not(.wyj-bnav-pill-more--active-desktop),
  .wyj-bnav-pill-more.wyj-bnav-pill-more--active-tablet:not(.wyj-bnav-pill-more--active-desktop) {
    background: transparent;
    color: var(--wyj-bnav-pill-muted);
  }
}
.wyj-bnav-pill-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wyj-ic--bnav {
  display: block;
  stroke-width: 2;
  color: currentColor;
}
.wyj-bnav-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 600;
  background: var(--wyj-bnav-pill-badge-bg);
  color: var(--wyj-bnav-pill-badge-fg);
}
.wyj-bnav-pill-badge[hidden] {
  display: none !important;
}
.wyj-bnav-pill-sep {
  width: 1px;
  height: 1.65rem;
  margin: 0 0.2rem;
  background: var(--wyj-bnav-pill-sep);
  flex: 0 0 auto;
  align-self: center;
}
.wyj-bnav-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--wyj-bnav-pill-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}
.wyj-bnav-theme:hover,
.wyj-bnav-theme:focus,
.wyj-bnav-theme:active {
  background: transparent;
  color: var(--wyj-bnav-pill-muted);
  outline: none;
  box-shadow: none;
}
html[data-wyj-theme="light"] .wyj-bnav-theme__ico--sun {
  display: none;
}
html[data-wyj-theme="light"] .wyj-bnav-theme__ico--moon {
  display: flex;
}
html[data-wyj-theme="dark"] .wyj-bnav-theme__ico--moon,
html:not([data-wyj-theme]) .wyj-bnav-theme__ico--moon {
  display: none;
}
html[data-wyj-theme="dark"] .wyj-bnav-theme__ico--sun,
html:not([data-wyj-theme]) .wyj-bnav-theme__ico--sun {
  display: flex;
}
.wyj-bnav-theme__ico {
  align-items: center;
  justify-content: center;
}

/* Pasek: kolejne zakładki wg szerokości (mobile → tablet → desktop) */
.wyj-bnav-pill-link--bar-tablet,
.wyj-bnav-pill-link--bar-wide {
  display: none !important;
}

@media (min-width: 768px) {
  .wyj-bnav-pill-link--bar-tablet {
    display: inline-flex !important;
  }
  .wyj-bnav-sheet__item--hide-from-tablet {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .wyj-bnav-pill-link--bar-wide {
    display: inline-flex !important;
  }
  .wyj-bnav-sheet__item--hide-from-wide {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .wyj-bottom-nav__pill {
    gap: 0.25rem;
    padding: 0.45rem 0.5rem 0.55rem;
  }
  .wyj-bnav-pill-link {
    padding: 0.62rem 0.65rem;
    font-size: 1rem;
  }
  .wyj-bnav-pill-link__label {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
  }
  .wyj-bnav-pill-link--active,
  .wyj-bnav-pill-link--active:hover {
    background: var(--wyj-bnav-pill-active-bg) !important;
    color: var(--wyj-bnav-pill-active-fg) !important;
  }
}

/* Telefon (krótszy bok ekranu ≤520px — działa w Applix mimo szerokiego viewport) */
html.wyj-phone .wyj-bnav-pill-link--bar-tablet,
html.wyj-phone .wyj-bnav-pill-link--bar-wide,
html.wyj-phone .wyj-bnav-theme,
html.wyj-phone .wyj-bnav-pill-sep {
  display: none !important;
}
html.wyj-phone body.wyj-has-bnav {
  padding-top: var(--wyj-safe-top-effective, 44px) !important;
}
html.wyj-phone .wyj-bottom-nav {
  padding-top: 0 !important;
  padding-bottom: var(--wyj-safe-bottom-effective, 34px) !important;
}
html.wyj-phone body.wyj-has-bnav.wyj-bnav-force .wyj-page,
html.wyj-phone body.wyj-has-bnav.wyj-bnav-force .hist-page,
html.wyj-phone body.wyj-has-bnav.wyj-bnav-force .prod-page,
html.wyj-phone body.wyj-has-bnav.wyj-bnav-force .addons-page,
html.wyj-phone body.wyj-has-bnav.wyj-bnav-force .settings-page,
html.wyj-phone body.wyj-has-bnav.wyj-bnav-force .del-page,
html.wyj-phone body.wyj-has-bnav.wyj-bnav-force .support-page,
html.wyj-phone body.wyj-has-bnav.wyj-bnav-force .op-page {
  padding-bottom: calc(var(--wyj-bnav-measured-h, 5.5rem) + var(--wyj-safe-bottom-effective, 34px) + 1.25rem) !important;
}
html.wyj-phone body.wyj-has-bnav.wyj-bnav-force .wyj-orders-page {
  padding-bottom: var(--wyj-orders-page-pad, calc(var(--wyj-bnav-measured-h, 5.5rem) + var(--wyj-safe-bottom-effective, 34px) + 7rem)) !important;
}
html.wyj-phone .wyj-bnav-pill-more.wyj-bnav-pill-more--active-mobile,
html.wyj-phone .wyj-bnav-pill-more.wyj-bnav-pill-more--active-mobile:hover {
  background: var(--wyj-bnav-pill-active-bg) !important;
  color: var(--wyj-bnav-pill-active-fg) !important;
}

@media (min-width: 768px) and (max-width: 1399px) {
  .wyj-bnav-pill-link {
    padding: 0.55rem 0.82rem;
    font-size: 0.96875rem;
  }
}

/* Panel „Więcej” — dolny arkusz (jasny / ciemny motyw) */
.wyj-bnav-sheet {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.wyj-bnav-sheet--open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.wyj-bnav-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.52);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  outline: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-wyj-theme="dark"] .wyj-bnav-sheet__backdrop,
html:not([data-wyj-theme]) .wyj-bnav-sheet__backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.wyj-bnav-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 1.15rem calc(1.15rem + var(--wyj-safe-bottom-effective));
  background: var(--wyj-surface);
  border: 1px solid var(--wyj-border);
  border-bottom: none;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: var(--wyj-shadow);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.wyj-bnav-sheet--open .wyj-bnav-sheet__panel {
  transform: translateY(0);
}
body.wyj-bnav-sheet-open .wyj-bnav-sheet__panel {
  bottom: var(--wyj-bnav-measured-h, 5.5rem);
  border-radius: 1.25rem 1.25rem 0 0;
  margin: 0;
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
}
.wyj-bnav-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wyj-border);
}
.wyj-bnav-sheet__title {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--wyj-purple);
  letter-spacing: -0.02em;
}
html[data-wyj-theme="dark"] .wyj-bnav-sheet__title,
html:not([data-wyj-theme]) .wyj-bnav-sheet__title {
  color: var(--wyj-pink);
}
.wyj-bnav-sheet__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--wyj-borderStrong);
  border-radius: 9999px;
  background: var(--wyj-surfaceMuted);
  color: var(--wyj-ink70);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wyj-bnav-sheet__close:hover {
  border-color: var(--wyj-pink);
  color: var(--wyj-pink);
  background: var(--wyj-pinkSoft);
}
.wyj-bnav-sheet__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
@media (max-width: 380px) {
  .wyj-bnav-sheet__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.wyj-bnav-sheet__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 4.5rem;
  padding: 0.85rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--wyj-border);
  background: var(--wyj-surfaceMuted);
  color: var(--wyj-ink);
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
}
.wyj-bnav-sheet__item:hover {
  border-color: var(--wyj-pink);
  background: var(--wyj-pinkSoft);
  color: var(--wyj-purple);
  transform: translateY(-1px);
}
.wyj-bnav-sheet__item--active {
  border-color: var(--wyj-pink);
  color: var(--wyj-purple);
  background: var(--wyj-pinkSoft);
  box-shadow: 0 0 0 1px rgba(229, 116, 220, 0.15);
}
html[data-wyj-theme="dark"] .wyj-bnav-sheet__item--active,
html:not([data-wyj-theme]) .wyj-bnav-sheet__item--active {
  color: var(--wyj-pink);
}
.wyj-bnav-sheet__icon {
  display: flex;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.9;
}
/* Motyw — tylko w panelu „Więcej” na telefonie (na pasku ukryty) */
.wyj-bnav-sheet__item--theme {
  display: none;
  cursor: pointer;
  font: inherit;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
html.wyj-phone .wyj-bnav-sheet__item--theme {
  display: flex;
}
.wyj-bnav-sheet__theme-ico {
  position: relative;
  width: 1.625rem;
  height: 1.625rem;
}
.wyj-bnav-sheet__theme-ico .wyj-bnav-theme__ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wyj-bnav-sheet__icon .wyj-ic {
  width: 1.65rem;
  height: 1.65rem;
}

body.wyj-bnav-sheet-open {
  overflow: hidden;
}
body.wyj-has-bnav .wyj-bnav-sheet__panel {
  padding-bottom: 1.25rem;
}
html.wyj-phone body.wyj-has-bnav .wyj-bnav-sheet__panel {
  bottom: var(--wyj-bnav-measured-h, 5.5rem);
  padding-bottom: calc(1.25rem + var(--wyj-safe-bottom-effective, 34px));
  margin: 0;
  width: auto;
  max-width: none;
  border-radius: 1.25rem 1.25rem 0 0;
  border-bottom: 1px solid var(--wyj-border);
}
body.wyj-has-bnav .wyj-page,
body.wyj-has-bnav .hist-page,
body.wyj-has-bnav .addons-page,
body.wyj-has-bnav .settings-page,
body.wyj-has-bnav .del-page,
body.wyj-has-bnav .support-page,
body.wyj-has-bnav .op-page,
body.wyj-has-bnav .prod-page {
  padding-bottom: calc(1.25rem + var(--wyj-safe-bottom-effective)) !important;
}
body.wyj-has-bnav .wyj-orders-page {
  padding-bottom: var(--wyj-orders-page-pad, calc(7rem + var(--wyj-bnav-measured-h, 5.5rem) + var(--wyj-safe-bottom-effective, 0px))) !important;
  scroll-padding-bottom: var(--wyj-orders-page-pad, calc(7rem + var(--wyj-bnav-measured-h, 5.5rem) + var(--wyj-safe-bottom-effective, 0px)));
}
@media (min-width: 1400px) {
  body.wyj-has-bnav .wyj-page,
  body.wyj-has-bnav .hist-page,
  body.wyj-has-bnav .addons-page,
  body.wyj-has-bnav .settings-page,
  body.wyj-has-bnav .del-page,
  body.wyj-has-bnav .support-page,
  body.wyj-has-bnav .op-page,
  body.wyj-has-bnav .prod-page {
    padding-bottom: calc(5.5rem + var(--wyj-bnav-h)) !important;
  }
}
body.wyj-has-bnav.wyj-bnav-force .wyj-page,
body.wyj-has-bnav.wyj-bnav-force .hist-page,
body.wyj-has-bnav.wyj-bnav-force .addons-page,
body.wyj-has-bnav.wyj-bnav-force .settings-page,
body.wyj-has-bnav.wyj-bnav-force .del-page,
body.wyj-has-bnav.wyj-bnav-force .support-page,
body.wyj-has-bnav.wyj-bnav-force .op-page,
body.wyj-has-bnav.wyj-bnav-force .prod-page {
  padding-bottom: calc(5.5rem + var(--wyj-bnav-h)) !important;
}

.wyj-card {
  background: var(--wyj-bg);
  border: 1px solid var(--wyj-border);
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
}
.wyj-card--accent {
  border-color: rgba(248, 151, 248, 0.28);
  box-shadow: 0 0 0 1px rgba(248, 151, 248, 0.06);
}
.wyj-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wyj-lavender);
  margin-bottom: 0.35rem;
}
.wyj-label--pink {
  color: var(--wyj-pink);
  letter-spacing: 0.04em;
}
.wyj-input,
.wyj-page .input,
.wyj-page .textarea,
.wyj-page .select,
.wyj-page input[type="text"],
.wyj-page input[type="number"],
.wyj-page input[type="file"],
.wyj-page textarea,
.wyj-page select {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--wyj-border) !important;
  background: rgba(239, 237, 255, 0.06) !important;
  color: var(--wyj-white) !important;
  outline: none;
  box-shadow: none !important;
}
.wyj-page input:focus,
.wyj-page textarea:focus,
.wyj-page select:focus {
  border-color: var(--wyj-pink-border) !important;
  box-shadow: 0 0 0 1px rgba(248, 151, 248, 0.2) !important;
}
.wyj-page textarea { min-height: 5rem; }
.wyj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(239, 237, 255, 0.25);
  background: rgba(239, 237, 255, 0.1);
  color: var(--wyj-lavender);
  cursor: pointer;
  text-decoration: none;
}
.wyj-btn:hover { background: rgba(239, 237, 255, 0.18); }
.wyj-btn--primary,
.wyj-btn--pink {
  background: var(--wyj-pink-soft);
  color: var(--wyj-pink);
  border-color: var(--wyj-pink-border);
}
.wyj-btn--primary:hover,
.wyj-btn--pink:hover {
  background: rgba(248, 151, 248, 0.24);
}
.wyj-btn--lavender {
  background: var(--wyj-lavender);
  color: #1a1a1a;
  border-color: var(--wyj-lavender);
}
.wyj-btn--lavender:hover { background: #fff; }
.wyj-alert--ok {
  border: 1px solid var(--wyj-pink-border);
  background: var(--wyj-pink-soft);
  color: var(--wyj-lavender);
  border-radius: 0.65rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}
.wyj-alert--err {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border-radius: 0.65rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}
.wyj-form-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .wyj-form-grid--2 { grid-template-columns: 1fr 1fr; }
}

/* Przełączniki — więcej różu gdy włączone */
.wyj-page .toggle-switch input:checked + .toggle-slider {
  background: rgba(248, 151, 248, 0.35) !important;
  border: 1px solid var(--wyj-pink-border) !important;
}
.wyj-page .toggle-slider {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--wyj-border);
}
.wyj-page .toggle-slider:before {
  background: var(--wyj-lavender);
}
.wyj-page .toggle-switch input:checked + .toggle-slider:before {
  background: var(--wyj-pink);
}

/* Dropdown listy miejsc (wspólny: menu, dodatki, ustawienia…) */
.wyj-place-dropdown,
.prod-place-dropdown {
  position: relative;
  z-index: 2;
  max-width: 100%;
}
.wyj-place-dropdown__btn,
.prod-place-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(16rem, 72vw);
  min-width: 0;
}
.wyj-place-dropdown__label,
.prod-place-dropdown__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.wyj-place-dropdown .wyj-ic--chevron,
.prod-place-dropdown .wyj-ic--chevron {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.wyj-place-dropdown.is-open .wyj-ic--chevron,
.prod-place-dropdown.is-open .wyj-ic--chevron {
  transform: rotate(180deg);
}
.wyj-place-dropdown__menu,
.prod-place-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: auto;
  z-index: 40;
  min-width: min(16rem, 90vw);
  max-width: min(22rem, 92vw);
  max-height: min(20rem, 50vh);
  overflow-y: auto;
  padding: 0.35rem;
  background: var(--wyj-surface);
  border: 1px solid var(--wyj-border);
  border-radius: 0.85rem;
  box-shadow: var(--wyj-shadowSoft);
  -webkit-overflow-scrolling: touch;
}
.wyj-place-dropdown__menu[hidden],
.prod-place-dropdown__menu[hidden] {
  display: none !important;
}
.wyj-place-dropdown.is-open .wyj-place-dropdown__menu:not([hidden]),
.prod-place-dropdown.is-open .prod-place-dropdown__menu:not([hidden]) {
  display: block;
}
.wyj-place-dropdown__item,
.prod-place-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: var(--wyj-ink70);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.wyj-place-dropdown__item-label,
.prod-place-dropdown__item-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wyj-place-dropdown__item-count,
.prod-place-dropdown__item-count {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--wyj-ink50);
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: var(--wyj-surfaceMuted);
}
.wyj-place-dropdown__item:hover,
.prod-place-dropdown__item:hover {
  background: var(--wyj-surfaceMuted);
  color: var(--wyj-ink);
}
.wyj-place-dropdown__item.is-active,
.prod-place-dropdown__item.is-active {
  background: var(--wyj-lavenderSoft);
  color: var(--wyj-purple);
  border-color: var(--wyj-borderStrong);
}
html[data-wyj-theme="light"] .wyj-place-dropdown__item.is-active,
html[data-wyj-theme="light"] .prod-place-dropdown__item.is-active {
  background: var(--wyj-lavenderSoft);
  color: var(--wyj-purple);
}
.wyj-place-dropdown__item.is-active .wyj-place-dropdown__item-count,
.prod-place-dropdown__item.is-active .prod-place-dropdown__item-count {
  color: var(--wyj-purple);
  background: var(--wyj-lavenderSoft);
}

/* Poziomy pasek z ukrytym overflow — strzałki przewijania (Historia, filtry…) */
.wyj-scroll-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}
.wyj-scroll-strip__track {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wyj-scroll-strip__track::-webkit-scrollbar {
  display: none;
}
.wyj-scroll-strip__btn {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--wyj-border);
  background: var(--wyj-surface);
  color: var(--wyj-ink70);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, opacity 0.12s;
  box-shadow: var(--wyj-shadowSoft);
}
.wyj-scroll-strip__btn:hover:not(:disabled) {
  background: var(--wyj-surfaceMuted);
  color: var(--wyj-ink);
  border-color: var(--wyj-borderStrong);
}
.wyj-scroll-strip__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.wyj-scroll-strip--scrollable .wyj-scroll-strip__btn {
  display: inline-flex;
}
.wyj-scroll-strip--scrollable .wyj-scroll-strip__btn[hidden] {
  display: none !important;
}
.wyj-scroll-strip__ic {
  display: block;
}
.wyj-scroll-strip--scrollable::before,
.wyj-scroll-strip--scrollable::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.25rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.15s;
}
.wyj-scroll-strip--scrollable::before {
  left: 1.75rem;
  background: linear-gradient(to right, var(--wyj-surface) 15%, transparent);
}
.wyj-scroll-strip--scrollable::after {
  right: 1.75rem;
  background: linear-gradient(to left, var(--wyj-surface) 15%, transparent);
}
.wyj-scroll-strip--scrollable.wyj-scroll-strip--fade-start::before {
  opacity: 1;
}
.wyj-scroll-strip--scrollable.wyj-scroll-strip--fade-end::after {
  opacity: 1;
}