/* FansArena — úpravy převzaté z CZ (kodérův soubor jgm-upravy/style.css na fanda-nhl.cz), 1.10.2026, Petr.
   Zdroj: /opt/python/data/fa_upravy/ · nahráno do /user/documents/upload/Bannery/ · načítá záhlaví HTML kódů FA.
   Čísla bodů = Petrův výběr z inventury úprav (6, 7, 8, 11, 13, 15, 21, 25, 28). */

/* ---------- 6 · Mobil: vyhledávání pořád vidět pod logem, hlavička neplave, lupa schovaná ---------- */
.top-navigation-bar a[data-target="search"] { display: none !important; }
.menu-helper { z-index: 2 !important; }
@media (max-width: 767px) {
  header#header .search { margin-bottom: 20px; }
  header#header .search input { border: 1px solid var(--colors-forms-border); }
  header#header .search button { position: absolute; top: 2px; right: 2px; }
  header#header .search form.search-form { display: block; margin-top: 20px; }
  body.ums_mobile_header_v1--on .popup-widget.login-widget,
  body.ums_mobile_header_v1--on .popup-widget.cart-widget { padding-top: 0; }
  body.ums_mobile_header_v1--on .overall-wrapper { padding-top: 0; }
  body.ums_mobile_header_v1--on .overall-wrapper .top-navigation-bar { position: relative !important; z-index: auto; }
  body.ums_mobile_header_v1--on .overall-wrapper .top-navigation-bar .top-navigation-tools .dropdown { display: inline-block; }
  body.ums_mobile_header_v1--on .overall-wrapper .top-navigation-bar .top-navigation-tools .responsive-tools {
    align-items: center; justify-content: flex-start; display: flex; flex-wrap: wrap; width: auto; padding-bottom: 12px; padding-top: 12px;
  }
  body.ums_mobile_header_v1--on .overall-wrapper .top-navigation-bar .top-navigation-tools .responsive-tools [data-target="login"] { display: block; }
  body.ums_mobile_header_v1--on #header { position: relative; top: 0; z-index: 1; }
  body.ums_mobile_header_v1--on #header .container { margin: 0; }
  body.ums_mobile_header_v1--on #header .container .site-name-wrapper { padding: 10px 0; }
  body.ums_mobile_header_v1--on #header .container .site-name-wrapper .site-name { left: 0; position: relative; top: 0; }
  body.ums_mobile_header_v1--on #header .navigation-buttons .cart-count { top: -47px !important; }
  body.ums_mobile_header_v1--on #header .search { display: flex; }
  body.ums_mobile_header_v1--on #header .search form { width: 100%; }
  body.ums_mobile_header_v1--on.navigation-window-visible [data-target="navigation"] { display: none; }
}

/* ---------- 7 · Mobil: menu přes celou obrazovku, podkategorie s obrázky, rozbalování po úrovních ---------- */
@media (max-width: 767px) {
  header#header .menu-level-1 > li > a { display: flex; align-items: center; height: 52px; gap: 7px; padding-right: 0 !important; }
  header#header .navigation-in { padding-top: 40px; }
  header#header .navigation-in .menu-level-1 > li { display: block !important; }
  header#header .navigation-in .menu-level-2,
  header#header .navigation-in .menu-level-3 { display: none !important; }
  header#header .navigation-in .menu-level-1:has(> li.exp) > li { display: none !important; }
  header#header .navigation-in .menu-level-1:has(> li.exp) > li.exp { display: block !important; }
  header#header .navigation-in li.exp > .menu-level-2 { display: block !important; }
  header#header .navigation-in > li > a { display: flex !important; align-items: center !important; justify-content: flex-start !important; padding: 1.25rem 20px !important; padding-right: 0 !important; }
  header#header .navigation-in li.exp > a { font-weight: 600 !important; background: #f5f5f5 !important; }
  header#header .navigation-in .submenu-arrow { padding: 18px 25px; margin-left: auto; transform: rotate(-90deg); }
  header#header .navigation-in .submenu-arrow:after { font-size: 13px; }
  header#header .navigation-in li.exp > a .submenu-arrow { display: inline-block !important; }
  header#header .navigation-in .menu-level-2:has(> li.exp) > li { display: none !important; }
  header#header .navigation-in .menu-level-2:has(> li.exp) > li.exp { display: block !important; }
  header#header .navigation-in li.exp > .menu-level-3 { display: block !important; }
  header#header .navigation-in .menu-level-2 > li.exp > div > a {
    display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 14px 16px !important;
    font-weight: 600 !important; background: #f5f5f5 !important; border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
  }
  header#header .navigation-in .menu-item > a,
  header#header .navigation-in .menu-level-2 a,
  header#header .navigation-in .menu-level-3 a { padding: 14px 16px !important; }
  header#header .navigation-in .menu-level-2 > li { display: flex; align-items: center; gap: 7px; padding: 10px 18px !important; }
  header#header .navigation-in .menu-level-2 > li a { padding: 0 !important; }
  header#header .navigation-in .menu-level-2 > li .menu-image { display: block; }
  header#header .navigation-in .menu-level-2 > li .menu-image img { width: 30px; min-width: 30px; }
  body.navigation-window-visible #navigation { right: 0; box-shadow: 0 3px 15px rgba(0, 0, 0, .25); }
  body.navigation-window-visible .top-navigation-menu { left: 160px !important; right: 20px !important; }
  body.navigation-window-visible .top-navigation-contacts { left: 55px !important; }
  body.navigation-window-visible .fnhl-bubl { display: none !important; }
  #navigation { width: 90vw !important; right: -100vw; }
  a[data-target="navigation"]:before { background: #000 !important; border-radius: 0 !important; }
}

/* ---------- 8 · Mobil v košíku a pokladně: bez loga a vyhledávání, ať zákazník neodbíhá ---------- */
@media (max-width: 767px) {
  body.ums_mobile_header_v1--on.ordering-process .top-navigation-bar { z-index: 2; }
  body.ums_mobile_header_v1--on.ordering-process .top-navigation-bar .top-navigation-tools .dropdown { display: none; }
  body.ums_mobile_header_v1--on.ordering-process .top-navigation-bar .top-navigation-tools .responsive-tools a:not([data-target="navigation"]) { display: none; }
  body.ums_mobile_header_v1--on.ordering-process header#header { z-index: 56; }
  body.ums_mobile_header_v1--on.ordering-process header#header .site-name-wrapper { display: none !important; }
  body.ums_mobile_header_v1--on.ordering-process header#header .search form { margin-top: 0; }
  body.ums_mobile_header_v1--on.ordering-process:not(.id--9) .overall-wrapper { padding-top: 50px !important; }
  body.ums_mobile_header_v1--on.ordering-process:not(.id--9) header#header .search { display: none !important; }
  body.ordering-process .fa-hl-extra { display: none !important; }
  /* oprava proti CZ: v košíku vyhledávání zakrývalo tlačítko menu → horní lišta drží místo pro menu */
  body.ums_mobile_header_v1--on.ordering-process.id--9 .top-navigation-bar { min-height: 60px; }
}

/* ---------- 11 · Pruh výhod i na kategoriích a u produktu (vzhled jako na titulce FA) ---------- */
.fa-vyhody-pruh { margin: 30px auto 36px; }
.fa-vyhody-pruh .fa-vyhody-in { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(150px, calc(25% - 9px)), 1fr)); gap: 12px; }
.fa-vyhody-pruh .fa-vyhoda {
  display: flex; align-items: center; gap: 10px; box-sizing: border-box; padding: 12px 14px; background: #fff;
  border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); font-size: 15px; line-height: 1.35; color: #1a1a1a;
}
.fa-vyhody-pruh .fa-vyhoda-ok {
  flex: 0 0 28px; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; background: #0b1f3a; color: #fff;
  text-align: center; font-size: 16px; font-weight: bold;
}
@media (max-width: 767px) { .fa-vyhody-pruh { padding: 0 16px; } .fa-vyhody-pruh .fa-vyhoda { font-size: 14px; } }

/* ---------- 13 · Řazení: TOP + Nejnovější, bez řazení podle názvu ---------- */
.type-category #category-header .listSorting .listSorting__controls li:has(button[data-url*="order=name"]) { display: none; }
@media (max-width: 767px) {
  .type-category #category-header { position: relative !important; width: 100%; }
  .type-category #category-header .listSorting > h4:first-child { display: none; }
  .type-category #category-header .listSorting .listSorting__controls { display: flex !important; flex-wrap: wrap; }
}

/* ---------- 15 · Velikosti jako klikací čtverečky (nedostupné přeškrtnuté) ---------- */
.type-detail .p-detail-inner .detail-parameters .variant-list { display: flex; flex-direction: column; margin-bottom: 10px; }
.type-detail .p-detail-inner .detail-parameters .variant-list .select-box-container { display: flex; flex-wrap: wrap; gap: 7px; }
.type-detail .p-detail-inner .detail-parameters .variant-list .select-box-container .box {
  align-items: center; display: flex; font-size: 14px; line-height: 1; padding: 10px; min-width: 50px; margin: 0;
  justify-content: center; text-align: center; position: relative; border: 1px solid #000;
  background: var(--colors-surface-secondary); color: #000; cursor: pointer; border-radius: 0;
}
.type-detail .p-detail-inner .detail-parameters .variant-list .select-box-container .box.box-active,
.type-detail .p-detail-inner .detail-parameters .variant-list .select-box-container .box:hover { background: var(--color-secondary); color: #fff; }
.type-detail .p-detail-inner .detail-parameters .variant-list .box-disabled {
  position: relative; cursor: not-allowed !important; background-color: gray; filter: grayscale(100%); opacity: .3; overflow: hidden;
}
.type-detail .p-detail-inner .detail-parameters .variant-list .box-disabled:before,
.type-detail .p-detail-inner .detail-parameters .variant-list .box-disabled:after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; pointer-events: none;
}
.type-detail .p-detail-inner .detail-parameters .variant-list .box-disabled:before { transform: rotate(45deg); }
.type-detail .p-detail-inner .detail-parameters .variant-list .box-disabled:after { transform: rotate(-45deg); }

/* ---------- 21 · Termín doručení v košíku a u každé dopravy ---------- */
body.ordering-process .delivery-time-info { display: block; margin-top: 8px; font-size: 13px; color: #009901; }
body.ordering-process .delivery-time-info span.show-tooltip { border-bottom: 1px dashed #009901; }

/* ---------- 25 · Řada log značek v patičce ---------- */
footer#footer .media-partners { padding: 40px 0; border-top: 1px solid #e5e5e5; }
footer#footer .media-partners h4 { text-align: center; margin: 0 0 30px; }
footer#footer .media-partners .partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 0 10px; }
footer#footer .media-partners .partners a {
  flex: 0 1 calc((100% - 10px) / 2); display: flex; align-items: center; justify-content: center; height: 60px; padding: 10px;
  background: #fff; border-radius: 5px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
footer#footer .media-partners .partners a:hover { text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
footer#footer .media-partners .partners a img { max-width: 70%; max-height: 50px; width: auto; height: auto; object-fit: contain; }
@media (min-width: 768px) and (max-width: 1199px) {
  footer#footer .media-partners .partners { gap: 20px; }
  footer#footer .media-partners .partners a { flex: 0 1 calc((100% - 40px) / 3); }
}
@media (min-width: 1200px) { footer#footer .media-partners .partners a { flex: 0 1 calc((100% - 50px) / 6); } }

/* ---------- 28 · Cookie lišta jako okno uprostřed se ztmavením ---------- */
#cboxOverlay { background-color: rgba(0, 0, 0, .52); }
body:has(.siteCookies--center):before { content: ""; background: rgba(0, 0, 0, .52); position: fixed; width: 100%; height: 100%; z-index: 1001; }
@media (max-width: 767px) { .siteCookies--center { bottom: 100px; max-width: 95%; margin: 0 auto; } }
.siteCookies--center .siteCookies__form { text-align: center; }
@media (min-width: 768px) { .siteCookies--center .siteCookies__form { padding: 30px; padding-bottom: 80px; } }
@media (max-width: 767px) { .siteCookies--center .siteCookies__form { border-radius: 10px !important; } }
.siteCookies--center .siteCookies__form .siteCookies__links { position: relative; bottom: auto; max-width: none; text-align: center; margin-bottom: 20px; }
@media (min-width: 768px) {
  .siteCookies--center .siteCookies__form .siteCookies__links { position: absolute; bottom: 20px; left: 20px; text-align: left; max-width: 45%; margin-bottom: 0; }
}
.siteCookies--center .siteCookies__form .siteCookies__links .js-cookies-settings {
  padding: 10px; border: 1px solid #5e5e5e; color: #5e5e5e; font-weight: normal; line-height: normal; width: 100%; max-width: 360px;
}
@media (min-width: 768px) { .siteCookies--center .siteCookies__form .siteCookies__links .js-cookies-settings { height: 50px; } }
.siteCookies--center .siteCookies__form .siteCookies__links .js-cookies-settings:hover { background: none; color: var(--cookies-notice-color); }
.siteCookies--center .siteCookies__form .siteCookies__buttonWrap { align-self: center; width: 100%; max-width: 360px; }
@media (min-width: 768px) { .siteCookies--center .siteCookies__form .siteCookies__buttonWrap { position: absolute; width: 45%; bottom: 20px; right: 20px; } }
.siteCookies--center .siteCookies__form .siteCookies__buttonWrap button { width: 100%; border: 1px solid var(--color-secondary); background: var(--color-secondary); }
.siteCookies--center .siteCookies__form .siteCookies__buttonWrap button:hover { background: #000; border: 1px solid #000; color: #fff; }
.siteCookies--center .siteCookies__form .siteCookies__buttonWrap button[data-testid="buttonCookiesReject"] { background: #fff; color: #000; border: 1px solid #000; }
/* FA má tmavou cookie lištu (CZ světlou) → tlačítko „Nastavení“ světlé, ať je čitelné */
.siteCookies--dark.siteCookies--center .siteCookies__form .siteCookies__links .js-cookies-settings { border-color: rgba(255, 255, 255, .7); color: #fff; }
.siteCookies--dark.siteCookies--center .siteCookies__form .siteCookies__links .js-cookies-settings:hover { color: #fff; border-color: #fff; }

/* ---------- Horní černá lišta: jen hlavní ligy, zbytek pod ☰ (třídu fa-mimo-listu dává fa-upravy-v1.js) ---------- */
@media (min-width: 768px) {
  .navigation-in > .menu-level-1 > li.fa-mimo-listu { display: none !important; }
}
