/* Równy nagłówek. Działa tylko pod body.ur-hdr. */

/* DESKTOP: siatka 1fr / logo / 1fr, więc logo jest zawsze na środku. */
@media (min-width: 1025px) {
  body.ur-hdr .elementor-location-header { --ur-g: clamp(18px, calc(5.17vw - 35px), 27px); }
  /* Clearfix listy jako element flex dodawałby jeden odstęp za ostatnią zakładką. */
  body.ur-hdr .elementor-location-header .elementor-element-c95fde7 .elementor-nav-menu::before,
  body.ur-hdr .elementor-location-header .elementor-element-c95fde7 .elementor-nav-menu::after,
  body.ur-hdr .elementor-location-header .elementor-element-6e6eb8d .elementor-nav-menu::before,
  body.ur-hdr .elementor-location-header .elementor-element-6e6eb8d .elementor-nav-menu::after { display: none !important; content: none !important; }
  body.ur-hdr .elementor-location-header .elementor-element-fae9256 {
    min-height: 120px !important;
    height: 120px !important;
    padding: 0 !important;
  }
  body.ur-hdr .elementor-location-header .elementor-element-fae9256 > .elementor-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    height: 120px !important;
    min-height: 120px !important;
    width: 100%;
    max-width: 1200px;
    padding: 0 16px;
    box-sizing: border-box;
  }
  body.ur-hdr .elementor-location-header .elementor-element-fae9256 > .elementor-container > .elementor-column {
    width: auto !important;
    min-width: 0;
    grid-row: 1;
  }
  body.ur-hdr .elementor-location-header .elementor-element-0d41565 { grid-column: 1; justify-self: end; margin-right: var(--ur-g); }
  body.ur-hdr .elementor-location-header .elementor-element-e872a25 { grid-column: 2; justify-self: center; }
  body.ur-hdr .elementor-location-header .elementor-element-1bd64bd { grid-column: 3; justify-self: start; margin-left: var(--ur-g); }
  body.ur-hdr .elementor-location-header .elementor-element-cb10cf7 { grid-column: 3; justify-self: end; }
  body.ur-hdr .elementor-location-header .elementor-element-fae9256 > .elementor-container > .elementor-column > .elementor-widget-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.ur-hdr .elementor-location-header .elementor-element-fae9256 .elementor-widget { margin: 0 !important; width: auto !important; }
  body.ur-hdr .elementor-location-header .elementor-element-fae9256 .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
  body.ur-hdr .elementor-location-header .elementor-element-1e87047 .elementor-widget-container,
  body.ur-hdr .elementor-location-header .elementor-element-1e87047 a { display: flex !important; align-items: center; line-height: 0; font-size: 0; }
  body.ur-hdr .elementor-location-header .elementor-element-1e87047 img { display: block; margin: 0 !important; }
  body.ur-hdr .elementor-location-header .elementor-element-cb10cf7 > .elementor-widget-wrap { justify-content: flex-end !important; gap: 10px; }
  body.ur-hdr .elementor-location-header .elementor-element-ab2b061 .elementor-social-icons-wrapper { display: flex !important; }
  body.ur-hdr .elementor-location-header .elementor-element-ab2b061 .elementor-grid-item { margin: 0 !important; padding: 0 !important; }

  body.ur-hdr .elementor-location-header .elementor-element-c95fde7 .elementor-nav-menu--main > .elementor-nav-menu,
  body.ur-hdr .elementor-location-header .elementor-element-6e6eb8d .elementor-nav-menu--main > .elementor-nav-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--ur-g);
    margin: 0 !important;
    padding: 0 !important;
  }
  body.ur-hdr .elementor-location-header .elementor-element-c95fde7 .elementor-nav-menu--main > .elementor-nav-menu > li,
  body.ur-hdr .elementor-location-header .elementor-element-6e6eb8d .elementor-nav-menu--main > .elementor-nav-menu > li {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.ur-hdr .elementor-location-header .elementor-element-c95fde7 .elementor-nav-menu--main > .elementor-nav-menu > li > a,
  body.ur-hdr .elementor-location-header .elementor-element-6e6eb8d .elementor-nav-menu--main > .elementor-nav-menu > li > a {
    padding: 10px 0 !important;
    margin: 0 !important;
    white-space: nowrap;
  }
}

/* Od 1200 px szerszy kontener i G do 50 px; KONTAKT→KONTO zostaje >= G także przy koszyku 6-cyfrowym. */
@media (min-width: 1200px) {
  body.ur-hdr .elementor-location-header { --ur-g: clamp(27px, calc(12.5vw - 123px), 50px); }
  body.ur-hdr .elementor-location-header .elementor-element-fae9256 > .elementor-container { max-width: 1440px !important; }
}

/* Wąski desktop: mniejsza czcionka i przycisk koszyka, żeby duża kwota się mieściła. */
@media (min-width: 1025px) and (max-width: 1199px) {
  body.ur-hdr .elementor-location-header .elementor-element-c95fde7 .elementor-nav-menu--main > .elementor-nav-menu > li > a,
  body.ur-hdr .elementor-location-header .elementor-element-6e6eb8d .elementor-nav-menu--main > .elementor-nav-menu > li > a { font-size: 14px !important; }
  body.ur-hdr .elementor-location-header .elementor-element-b57129a .elementor-menu-cart__toggle_button {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* TABLET I TELEFON: logo na środku, koszyk przy prawej krawędzi, zakładki w drugim wierszu. */
@media (max-width: 1024px) {
  body.ur-hdr .elementor-location-header .elementor-element-bd1472c { padding: 0 !important; }
  body.ur-hdr .elementor-location-header .elementor-element-bd1472c > .elementor-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: none !important;
    min-height: 88px;
    padding: 0 16px;
    box-sizing: border-box;
  }
  body.ur-hdr .elementor-location-header .elementor-element-6ef4e05 { grid-column: 2; grid-row: 1; width: auto !important; justify-self: center; }
  body.ur-hdr .elementor-location-header .elementor-element-20eccc2 { grid-column: 3; grid-row: 1; width: auto !important; justify-self: end; }
  body.ur-hdr .elementor-location-header .elementor-element-6ef4e05 > .elementor-widget-wrap,
  body.ur-hdr .elementor-location-header .elementor-element-20eccc2 > .elementor-widget-wrap,
  body.ur-hdr .elementor-location-header .elementor-element-f8a231d > .elementor-widget-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.ur-hdr .elementor-location-header .elementor-element-1881011 { width: 76px !important; max-width: 76px; margin: 0 !important; }
  body.ur-hdr .elementor-location-header .elementor-element-1881011 .elementor-widget-container,
  body.ur-hdr .elementor-location-header .elementor-element-1881011 a { display: flex !important; align-items: center; width: 100%; line-height: 0; font-size: 0; }
  body.ur-hdr .elementor-location-header .elementor-element-1881011 img { display: block; width: 100%; height: auto; margin: 0 !important; }
  body.ur-hdr .elementor-location-header .elementor-element-a72eb98 { width: auto !important; margin: 0 !important; padding: 0 !important; }
  body.ur-hdr .elementor-location-header .elementor-element-a72eb98 > .elementor-container { display: flex; width: auto !important; max-width: none !important; }
  body.ur-hdr .elementor-location-header .elementor-element-f8a231d { width: auto !important; }
  body.ur-hdr .elementor-location-header .elementor-element-95ba3ec { width: auto !important; margin: 0 !important; }

  body.ur-hdr .elementor-location-header .elementor-element-850f84d { padding: 0 !important; }
  body.ur-hdr .elementor-location-header .elementor-element-2a149f4 > .elementor-widget-wrap { padding: 0 !important; }
  body.ur-hdr .elementor-location-header .elementor-element-d10048c { margin: 0 !important; width: 100%; }
  body.ur-hdr .elementor-location-header .elementor-element-d10048c .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
  body.ur-hdr .elementor-location-header .elementor-element-d10048c nav > ul.elementor-nav-menu::before,
  body.ur-hdr .elementor-location-header .elementor-element-d10048c nav > ul.elementor-nav-menu::after { display: none !important; content: none !important; }
  body.ur-hdr .elementor-location-header .elementor-element-d10048c nav > ul.elementor-nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center;
    gap: clamp(2px, 1.6vw, 18px);
    width: 100%;
    margin: 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box;
  }
  body.ur-hdr .elementor-location-header .elementor-element-d10048c nav > ul.elementor-nav-menu > li {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body.ur-hdr .elementor-location-header .elementor-element-d10048c nav > ul.elementor-nav-menu > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 clamp(5px, 1.8vw, 14px) !important;
    font-size: clamp(12px, 3.6vw, 16px) !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    box-sizing: border-box;
  }
}
