/* =====================================================================
   Nejkawa.pl – přestylování výběru Paczkomatu (PBH PickMapp widget)
   Widget kreslí do DOM stránky (ne iframe), proto stačí CSS.
   Vše je zavřené pod #c-wt-pbh-shipping-wrapper, zbytek webu to neovlivní.
   ===================================================================== */

#c-wt-pbh-shipping-wrapper {
    --nk-brown: #876C43;
    --nk-brown-dark: #6E5734;
    --nk-beige: #E5D5BB;
    --nk-beige-soft: #F5EFE6;
    --nk-ink: #1B1B1B;
    --nk-text: #4A4A4A;
    --nk-muted: #8A8A8A;
    --nk-line: #ECECEC;
    --nk-field: #F2F2F2;
    --nk-radius: 12px;
    position: relative;
    padding: 22px 24px 24px;
    background: #fff;
    font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
    color: var(--nk-ink);
    box-sizing: border-box;
}
#c-wt-pbh-shipping-wrapper *,
#c-wt-pbh-shipping-wrapper *::before,
#c-wt-pbh-shipping-wrapper *::after { box-sizing: border-box; }

/* nadpis modálu – stejný styl jako „Wybierz sposób dostawy" v pokladně */
#c-wt-pbh-shipping-wrapper::before {
    content: "Wybierz Paczkomat InPost";
    display: block;
    padding: 0 56px 18px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px; /* celé px: mapa pod nadpisem nesmí stát na zlomku pixelu, jinak jsou mezi dlaždicemi vidět švy */
    color: var(--nk-ink);
}

/* zavírací křížek Shoptetu – do rohu nad mapu, ne přes ni */
#colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxContent,
#colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxLoadedContent {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
#colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxClose {
    top: 16px !important;
    right: 18px !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #F2F2F2 !important;
    transition: background-color .15s;
}
#colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxClose:hover { background-color: #E5D5BB !important; }

/* hodnocení Ceneo v rohu leží nad modálem a na mobilu zakrývá tlačítko */
body:has(#colorbox[style*="block"] #c-wt-pbh-shipping-wrapper) #ceneo-widget { display: none !important; }

/* ---------- rozložení: seznam vlevo, mapa vpravo ---------- */
#c-wt-pbh-shipping-wrapper #pickMapp {
    display: flex;
    gap: 20px;
    width: 100% !important;
    height: min(600px, calc(100vh - 190px)) !important;
    overflow: visible;
    font-family: inherit;
}
#c-wt-pbh-shipping-wrapper #pickMapp * { font-family: inherit; }

#c-wt-pbh-shipping-wrapper #mapMenuPbh {
    flex: 0 0 360px;
    width: 360px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    float: none;
    font-size: 14px;
    background: transparent;
}
#c-wt-pbh-shipping-wrapper #mapMenuPbh > .clearPbh { display: none; }

#c-wt-pbh-shipping-wrapper #leafletMapPbhWrapper {
    flex: 1 1 auto;
    width: auto !important;
    height: 100% !important;
    margin: 0 !important;
    float: none;
    border-radius: var(--nk-radius);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--nk-line);
}
#c-wt-pbh-shipping-wrapper #leafletMapPbh { height: 100% !important; width: 100%; }
#c-wt-pbh-shipping-wrapper #leafletMapPbhWrapper:not(:has(#leafletMapPbh)) { display: none; }

/* ---------- vyhledávání ---------- */
#c-wt-pbh-shipping-wrapper #autocomplete-wrapper { flex: none; margin-bottom: 14px; }
#c-wt-pbh-shipping-wrapper #autocomplete-wrapper::before {
    content: "Wpisz adres, kod pocztowy lub miasto";
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: var(--nk-text);
}
#c-wt-pbh-shipping-wrapper #searchPbh {
    display: block;
    float: none;
    width: 100%;
    height: 48px;
    border: 1px solid #DCDCDC;
    border-radius: 8px;
    background-color: var(--nk-field);
    color: var(--nk-ink);
    font-size: 16px;
    color-scheme: light;
    --gmp-mat-color-primary: #876C43;
}
#c-wt-pbh-shipping-wrapper #searchPbh:focus-within {
    border-color: var(--nk-brown);
    box-shadow: 0 0 0 3px rgba(135, 108, 67, .15);
}

/* jeden dopravce = pás s filtrem, šipkami a štítkem nemá co filtrovat */
#c-wt-pbh-shipping-wrapper #menuCouriersPbhWrap { display: none; }

/* ---------- seznam výdejních míst ---------- */
#c-wt-pbh-shipping-wrapper #menuItemsPbh {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    margin: 0 -6px 0 0;
    padding: 0 6px 0 0;
    top: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #D6D6D6 transparent;
}
#c-wt-pbh-shipping-wrapper #menuItemsPbh::-webkit-scrollbar { width: 6px; }
#c-wt-pbh-shipping-wrapper #menuItemsPbh::-webkit-scrollbar-thumb { background: #D6D6D6; border-radius: 3px; }

#c-wt-pbh-shipping-wrapper .menuItemPbh {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    margin: 0 0 6px;
    padding: 12px;
    border: 1px solid var(--nk-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s, background-color .15s;
}
#c-wt-pbh-shipping-wrapper .menuItemPbh:hover { background: #FAF8F4; border-color: var(--nk-beige); }
#c-wt-pbh-shipping-wrapper #menuItemsPbh .menuItemPbh.active {
    background: var(--nk-beige-soft);
    border-color: var(--nk-brown);
}
#c-wt-pbh-shipping-wrapper .menuItemPbh > .clearPbh,
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopType,
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopPbhDeliveryPriceList { display: none; }

/* obří balónek → malá tmavá dlaždice se sluncem InPostu (stejný motiv jako špendlík) */
#c-wt-pbh-shipping-wrapper .parcelshopIconPbh {
    grid-column: 1;
    grid-row: 1;
    float: none;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 10px;
    object-fit: none;
    object-position: -9999px -9999px;
    background: #1D1D1D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23FFCC05' fill-rule='evenodd' transform='translate(12.4 12) scale(0.1301) translate(-108.5 -133.2)'%3E%3Cpath d='M95.37,133.3s-7.82,3.03-17.47,3.03-17.47-3.03-17.47-3.03c0,0,7.82-3.03,17.47-3.03s17.47,3.03,17.47,3.03Z'/%3E%3Cpath d='M119.52,88.77s-6.93-4.68-12.33-12.53c-5.39-7.86-7.21-15.92-7.21-15.92,0,0,6.93,4.67,12.33,12.53,5.4,7.86,7.21,15.92,7.21,15.92Z'/%3E%3Cpath d='M101.83,107.98s-8.35-.93-16.87-5.38c-8.52-4.45-13.98-10.73-13.98-10.73,0,0,8.35.93,16.87,5.38,8.52,4.45,13.98,10.73,13.98,10.73Z'/%3E%3Cpath d='M119.52,177.67s-6.93,4.68-12.33,12.53c-5.39,7.85-7.21,15.92-7.21,15.92,0,0,6.93-4.67,12.33-12.53,5.4-7.85,7.21-15.92,7.21-15.92Z'/%3E%3Cpath d='M101.83,158.46s-8.35.93-16.87,5.38c-8.52,4.45-13.98,10.73-13.98,10.73,0,0,8.35-.93,16.87-5.38s13.98-10.73,13.98-10.73Z'/%3E%3Cpath d='M122.11,147.89h0c6.29,16.11,16.4,27.66,34.46,30.4-2.06.28-4.15.45-6.29.46-25.59.11-46.44-20.17-46.55-45.3s20.54-45.6,46.13-45.71c2.28-.01,4.52.15,6.72.45-20.69,2.58-34.49,18.64-37.22,39.08-.87,12.46,13.64,16.67,13.64,16.67,0,0-5.94,3.88-10.89,3.96t0,0h0Z'/%3E%3C/g%3E%3C/svg%3E") center / 34px no-repeat;
}
#c-wt-pbh-shipping-wrapper .menuItemPbh.active .parcelshopIconPbh {
    background-color: var(--nk-brown);
}

#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopPbh {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: auto;
    min-width: 0;
}
#c-wt-pbh-shipping-wrapper .parcelshopPbhName {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nk-ink);
    overflow-wrap: anywhere;
}
#c-wt-pbh-shipping-wrapper .parcelshopPbhAddress {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--nk-text);
}
#c-wt-pbh-shipping-wrapper .parcelshopDistanceList {
    float: none;
    width: auto;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nk-brown);
}

/* rozbalená položka: „více informací" + hlavní tlačítko */
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopDetail {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 12px;
}
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopDetail[style*="block"] { display: flex !important; }
#c-wt-pbh-shipping-wrapper .menuItemPbh .parcelshopDetail {
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
}
#c-wt-pbh-shipping-wrapper .parcelshopDetail > .clearPbh { display: none; }
#c-wt-pbh-shipping-wrapper .parcelshopPbhMoreInfo { float: none; margin: 0; flex: none; }
#c-wt-pbh-shipping-wrapper .parcelshopPbhMoreInfo span {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--nk-brown);
    text-decoration: underline;
    text-underline-offset: 3px;
}
#c-wt-pbh-shipping-wrapper .parcelshopPbhMoreInfo span:hover { color: var(--nk-brown-dark); }
#c-wt-pbh-shipping-wrapper .parcelshopPbhMoreInfo img { display: none; }

#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUp,
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUpDetail {
    display: block;
    flex: 1 1 auto;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--nk-brown) !important;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: .2px;
    text-align: center;
    transition: background-color .15s;
}
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUp::first-letter,
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUpDetail::first-letter { text-transform: uppercase; }
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUp:hover,
#c-wt-pbh-shipping-wrapper .parcelshopPbhPickUpDetail:hover { background: var(--nk-brown-dark) !important; border: 0; }

/* ---------- detail výdejního místa ---------- */
#c-wt-pbh-shipping-wrapper #menudetailPbh {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    position: relative;
    padding: 16px;
    border: 1px solid var(--nk-line);
    border-radius: var(--nk-radius);
    background: #fff;
    overflow-y: auto;
    font-size: 14px;
    color: var(--nk-text);
    scrollbar-width: thin;
}
#c-wt-pbh-shipping-wrapper #menudetailPbh[style*="block"] {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 12px;
    align-items: start;
}
#c-wt-pbh-shipping-wrapper #menudetailPbh > .clearPbh { display: none; }
#c-wt-pbh-shipping-wrapper #menudetailPbh > .parcelshopDetailFull,
#c-wt-pbh-shipping-wrapper #menudetailPbh > .parcelshopPbhPickUpDetail { grid-column: 1 / -1; }
#c-wt-pbh-shipping-wrapper #menudetailPbh > .parcelshopIconPbh {
    background-color: var(--nk-brown);
}
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopPbh { float: none; width: auto; padding-right: 32px; align-self: center; }
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopPbhName { font-size: 17px; }
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopPbhDeliveryPrice,
#c-wt-pbh-shipping-wrapper #menudetailPbh .icons { display: none; }
#c-wt-pbh-shipping-wrapper .parcelshopClose {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
    float: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--nk-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1B1B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 16px no-repeat;
    cursor: pointer;
}
#c-wt-pbh-shipping-wrapper .parcelshopClose:hover { background-color: var(--nk-beige); }
#c-wt-pbh-shipping-wrapper .parcelshopDetailFull { margin: 14px 0 0; font-size: 14px; color: var(--nk-text); }
#c-wt-pbh-shipping-wrapper .parcelshopNavigate {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nk-line);
}
#c-wt-pbh-shipping-wrapper .parcelshopNavigate a {
    font-weight: 600;
    color: var(--nk-brown);
    text-underline-offset: 3px;
}
#c-wt-pbh-shipping-wrapper .parcelshopNavigate a:hover { color: var(--nk-brown-dark); }
#c-wt-pbh-shipping-wrapper .parcelshopDistanceDetail { float: none; font-weight: 600; color: var(--nk-ink); }
#c-wt-pbh-shipping-wrapper #menudetailPbh .opening_hours { margin-bottom: 6px; font-weight: 700; color: var(--nk-ink); }
#c-wt-pbh-shipping-wrapper #menudetailPbh table { width: 100%; font-size: 14px !important; border-collapse: collapse; }
#c-wt-pbh-shipping-wrapper #menudetailPbh td { padding: 5px 0; border-bottom: 1px solid #F3F3F3; }
#c-wt-pbh-shipping-wrapper #menudetailPbh td:first-child { width: auto !important; text-transform: capitalize; }
#c-wt-pbh-shipping-wrapper #menudetailPbh td:last-child { text-align: right; font-weight: 600; color: var(--nk-ink); }
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopPbhPickUpDetail {
    position: sticky;
    bottom: 0;
    align-self: end;
    /* bílý pruh nad lepivým tlačítkem, ať pod ním neprosvítá tabulka; bez rozmazání – Safari kreslí rozmazaný bílý stín černě */
    box-shadow: 0 -12px 0 #fff, 0 16px 0 #fff;
}
#c-wt-pbh-shipping-wrapper #menudetailPbh .parcelshopDetailFull { margin-bottom: 16px; }

/* ---------- mapa ---------- */
/* podklad mapy zůstává barevný OSM (Dominik 2. 10.: „ne šedá"), pozadí = barva pevniny v OSM */
#c-wt-pbh-shipping-wrapper .leaflet-container { background: #F2EFE9; font-family: inherit; }

/* špendlíky: štíhlý tmavý pin se sluncem InPostu (logo z inpost.pl), hrot přesně na místě */
#c-wt-pbh-shipping-wrapper img.leaflet-marker-icon {
    width: 34px !important;
    height: 44px !important;
    margin-left: -17px !important;
    margin-top: -43px !important;
    object-fit: none;
    object-position: -9999px -9999px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 44'%3E%3Cpath d='M17 42.5c-.6 0-1.2-.3-1.5-.8C10.6 34.9 2 25.6 2 16.5a15 15 0 0 1 30 0c0 9.1-8.6 18.4-13.5 25.2-.3.5-.9.8-1.5.8z' fill='%231D1D1D' stroke='%23fff' stroke-width='2'/%3E%3Cg fill='%23FFCC05' fill-rule='evenodd' transform='translate(17.6 16.5) scale(0.1438) translate(-108.5 -133.2)'%3E%3Cpath d='M95.37,133.3s-7.82,3.03-17.47,3.03-17.47-3.03-17.47-3.03c0,0,7.82-3.03,17.47-3.03s17.47,3.03,17.47,3.03Z'/%3E%3Cpath d='M119.52,88.77s-6.93-4.68-12.33-12.53c-5.39-7.86-7.21-15.92-7.21-15.92,0,0,6.93,4.67,12.33,12.53,5.4,7.86,7.21,15.92,7.21,15.92Z'/%3E%3Cpath d='M101.83,107.98s-8.35-.93-16.87-5.38c-8.52-4.45-13.98-10.73-13.98-10.73,0,0,8.35.93,16.87,5.38,8.52,4.45,13.98,10.73,13.98,10.73Z'/%3E%3Cpath d='M119.52,177.67s-6.93,4.68-12.33,12.53c-5.39,7.85-7.21,15.92-7.21,15.92,0,0,6.93-4.67,12.33-12.53,5.4-7.85,7.21-15.92,7.21-15.92Z'/%3E%3Cpath d='M101.83,158.46s-8.35.93-16.87,5.38c-8.52,4.45-13.98,10.73-13.98,10.73,0,0,8.35-.93,16.87-5.38s13.98-10.73,13.98-10.73Z'/%3E%3Cpath d='M122.11,147.89h0c6.29,16.11,16.4,27.66,34.46,30.4-2.06.28-4.15.45-6.29.46-25.59.11-46.44-20.17-46.55-45.3s20.54-45.6,46.13-45.71c2.28-.01,4.52.15,6.72.45-20.69,2.58-34.49,18.64-37.22,39.08-.87,12.46,13.64,16.67,13.64,16.67,0,0-5.94,3.88-10.89,3.96t0,0h0Z'/%3E%3C/g%3E%3C/svg%3E") center bottom / contain no-repeat;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.3));
}
/* vybraný bod: větší a v hnědé webu */
#c-wt-pbh-shipping-wrapper img.leaflet-marker-icon[src*="map_widget_filter"],
#c-wt-pbh-shipping-wrapper img.leaflet-marker-icon.bouncing {
    width: 42px !important;
    height: 54px !important;
    margin-left: -21px !important;
    margin-top: -53px !important;
    z-index: 1000 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 44'%3E%3Cpath d='M17 42.5c-.6 0-1.2-.3-1.5-.8C10.6 34.9 2 25.6 2 16.5a15 15 0 0 1 30 0c0 9.1-8.6 18.4-13.5 25.2-.3.5-.9.8-1.5.8z' fill='%23876C43' stroke='%23fff' stroke-width='2'/%3E%3Cg fill='%23FFCC05' fill-rule='evenodd' transform='translate(17.6 16.5) scale(0.1438) translate(-108.5 -133.2)'%3E%3Cpath d='M95.37,133.3s-7.82,3.03-17.47,3.03-17.47-3.03-17.47-3.03c0,0,7.82-3.03,17.47-3.03s17.47,3.03,17.47,3.03Z'/%3E%3Cpath d='M119.52,88.77s-6.93-4.68-12.33-12.53c-5.39-7.86-7.21-15.92-7.21-15.92,0,0,6.93,4.67,12.33,12.53,5.4,7.86,7.21,15.92,7.21,15.92Z'/%3E%3Cpath d='M101.83,107.98s-8.35-.93-16.87-5.38c-8.52-4.45-13.98-10.73-13.98-10.73,0,0,8.35.93,16.87,5.38,8.52,4.45,13.98,10.73,13.98,10.73Z'/%3E%3Cpath d='M119.52,177.67s-6.93,4.68-12.33,12.53c-5.39,7.85-7.21,15.92-7.21,15.92,0,0,6.93-4.67,12.33-12.53,5.4-7.85,7.21-15.92,7.21-15.92Z'/%3E%3Cpath d='M101.83,158.46s-8.35.93-16.87,5.38c-8.52,4.45-13.98,10.73-13.98,10.73,0,0,8.35-.93,16.87-5.38s13.98-10.73,13.98-10.73Z'/%3E%3Cpath d='M122.11,147.89h0c6.29,16.11,16.4,27.66,34.46,30.4-2.06.28-4.15.45-6.29.46-25.59.11-46.44-20.17-46.55-45.3s20.54-45.6,46.13-45.71c2.28-.01,4.52.15,6.72.45-20.69,2.58-34.49,18.64-37.22,39.08-.87,12.46,13.64,16.67,13.64,16.67,0,0-5.94,3.88-10.89,3.96t0,0h0Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* shluky */
#c-wt-pbh-shipping-wrapper .marker-cluster,
#c-wt-pbh-shipping-wrapper .marker-cluster-small,
#c-wt-pbh-shipping-wrapper .marker-cluster-medium,
#c-wt-pbh-shipping-wrapper .marker-cluster-large { background-color: rgba(135, 108, 67, .22); }
#c-wt-pbh-shipping-wrapper .marker-cluster div {
    background-color: var(--nk-brown);
    color: #fff;
    font: 700 13px/30px "Source Sans 3", Arial, sans-serif;
}
#c-wt-pbh-shipping-wrapper .marker-cluster span { line-height: 30px; }

/* ovládání mapy */
#c-wt-pbh-shipping-wrapper .leaflet-touch .leaflet-bar,
#c-wt-pbh-shipping-wrapper .leaflet-bar {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}
#c-wt-pbh-shipping-wrapper .leaflet-bar a {
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-bottom-color: var(--nk-line);
    color: var(--nk-ink);
    font-size: 20px;
    font-weight: 400;
}
#c-wt-pbh-shipping-wrapper .leaflet-bar a:hover { background: var(--nk-beige-soft); }
#c-wt-pbh-shipping-wrapper .leaflet-control-attribution {
    padding: 2px 8px;
    border-radius: 8px 0 0 0;
    background: rgba(255, 255, 255, .8) !important;
    font-size: 10px;
    color: var(--nk-muted);
}
#c-wt-pbh-shipping-wrapper .leaflet-control-attribution a { color: var(--nk-text); }

/* „nic poblíž nenalezeno" + načítání */
#c-wt-pbh-shipping-wrapper .menuPbhLoader { border-color: var(--nk-brown) #0000; border-width: 5px; width: 40px; margin: 40px auto; }

/* ---------- mobil: hledání → mapa → seznam ---------- */
@media (max-width: 768px) {
    /* chat SupportBox má z-index nad modálem a na telefonu zakrývá seznam */
    body:has(#colorbox[style*="block"] #c-wt-pbh-shipping-wrapper) #supportBox-iframe { display: none !important; }
    #c-wt-pbh-shipping-wrapper { padding: 16px 16px 0; height: 100%; display: flex; flex-direction: column; }
    #c-wt-pbh-shipping-wrapper::before { font-size: 19px; line-height: 24px; padding-bottom: 12px; flex: none; }
    #colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxClose { top: 10px !important; right: 12px !important; }
    #colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxContent,
    #colorbox:has(#c-wt-pbh-shipping-wrapper) #cboxLoadedContent { border-radius: 0; }

    #c-wt-pbh-shipping-wrapper #pickMapp {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
        flex-direction: column;
        gap: 0;
    }
    #c-wt-pbh-shipping-wrapper #mapMenuPbh { display: contents; }
    #c-wt-pbh-shipping-wrapper #autocomplete-wrapper { order: 1; margin-bottom: 10px; }
    #c-wt-pbh-shipping-wrapper #autocomplete-wrapper::before { font-size: 12px; line-height: 16px; margin-bottom: 4px; }
    #c-wt-pbh-shipping-wrapper #searchPbh { height: 44px; }
    #c-wt-pbh-shipping-wrapper #leafletMapPbhWrapper,
    #c-wt-pbh-shipping-wrapper #mapMobilePbh {
        order: 2;
        flex: none;
        height: 34vh !important;
        min-height: 200px;
        margin: 0 0 10px !important;
        border-radius: var(--nk-radius);
        overflow: hidden;
    }
    #c-wt-pbh-shipping-wrapper #mapMobilePbh:not(:has(#leafletMapPbh)) { display: none; }
    #c-wt-pbh-shipping-wrapper #filtertPbhWrap { order: 3; }
    #c-wt-pbh-shipping-wrapper #menuItemsPbh,
    #c-wt-pbh-shipping-wrapper #menudetailPbh { order: 4; margin: 0; padding-bottom: 16px; }
    #c-wt-pbh-shipping-wrapper #menuItemsPbh { margin-right: -6px; }
    #c-wt-pbh-shipping-wrapper #menudetailPbh { margin-bottom: 16px; padding-bottom: 16px; }
    #c-wt-pbh-shipping-wrapper .menuItemPbh { padding: 10px 12px; }
}
