/*!
 * Easybox Map — premium locker picker for EuroParcel
 * ------------------------------------------------------------------
 * Self-contained styles for the locker selection modal + the checkout
 * trigger card. Everything is scoped under .ebx-* / #ebx-overlay so it
 * cannot leak into the rest of the theme.
 *
 * Brand tokens live in :root (--ebx-*) and can be overridden from
 * Flatsome → Theme Options → Custom CSS without touching this file.
 * ------------------------------------------------------------------ */

:root {
    --ebx-accent: #4d743e;          /* brand green  */
    --ebx-accent-dark: #3d5e31;
    --ebx-accent-soft: #eef3ea;
    --ebx-gold: #d0a05d;
    --ebx-orange: #e37a08;
    --ebx-ink: #23291f;
    --ebx-muted: #6b7280;
    --ebx-line: #e6e6e2;
    --ebx-soft: #f7f7f4;
    --ebx-white: #ffffff;
    --ebx-radius: 14px;
    --ebx-radius-lg: 18px;
    --ebx-shadow: 0 24px 60px rgba(24, 32, 18, 0.22);
    --ebx-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ==================================================================
 * 1. Overlay + shell
 * ================================================================== */
#ebx-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(24, 30, 20, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.18s ease;
    font-family: var(--ebx-font);
    color: var(--ebx-ink);
    line-height: 1.45;
    font-size: 15px;
    box-sizing: border-box;
}

#ebx-overlay[hidden] {
    display: none !important;
}

#ebx-overlay.ebx-open {
    opacity: 1;
}

#ebx-overlay *,
#ebx-overlay *::before,
#ebx-overlay *::after {
    box-sizing: border-box;
}

#ebx-overlay.ebx-closing {
    opacity: 0;
}

body.ebx-lock {
    overflow: hidden !important;
    touch-action: none;
}

#ebx-overlay .ebx-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1180px;
    height: 100%;
    max-height: 820px;
    background: var(--ebx-white);
    border-radius: var(--ebx-radius-lg);
    box-shadow: var(--ebx-shadow);
    overflow: hidden;
    transform: translateY(8px) scale(0.99);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#ebx-overlay.ebx-open .ebx-modal {
    transform: none;
}

/* ==================================================================
 * 2. Header
 * ================================================================== */
#ebx-overlay .ebx-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ebx-line);
    background: var(--ebx-white);
    flex: 0 0 auto;
}

#ebx-overlay .ebx-head-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--ebx-accent-soft);
    color: var(--ebx-accent);
}

#ebx-overlay .ebx-head-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

#ebx-overlay .ebx-head-txt {
    flex: 1 1 auto;
    min-width: 0;
}

#ebx-overlay .ebx-title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ebx-ink);
    line-height: 1.2;
}

#ebx-overlay .ebx-sub {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--ebx-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ebx-overlay .ebx-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ebx-line);
    border-radius: 50%;
    background: var(--ebx-white);
    color: var(--ebx-ink);
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

#ebx-overlay .ebx-close:hover {
    background: var(--ebx-soft);
    border-color: #cfcfc8;
}

#ebx-overlay .ebx-close:focus-visible {
    outline: 2px solid var(--ebx-accent);
    outline-offset: 2px;
}

/* ==================================================================
 * 3. Body layout
 * ================================================================== */
#ebx-overlay .ebx-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

/* ---------- 3a. Sidebar ---------- */
#ebx-overlay .ebx-side {
    display: flex;
    flex-direction: column;
    flex: 0 0 372px;
    width: 372px;
    min-width: 0;
    border-right: 1px solid var(--ebx-line);
    background: var(--ebx-white);
    min-height: 0;
}

#ebx-overlay .ebx-side-top {
    flex: 0 0 auto;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--ebx-line);
}

/* carrier chips */
#ebx-overlay .ebx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

#ebx-overlay .ebx-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 5px 8px 5px 6px;
    border: 1px solid var(--ebx-line);
    border-radius: 999px;
    background: var(--ebx-white);
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ebx-ink);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s, opacity 0.15s;
}

#ebx-overlay .ebx-chip img {
    height: 14px;
    width: auto;
    display: block;
}

#ebx-overlay .ebx-chip .ebx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
}

#ebx-overlay .ebx-chip .ebx-chip-count {
    color: var(--ebx-muted);
    font-weight: 500;
}

#ebx-overlay .ebx-chip:hover {
    border-color: #c9c9c1;
}

#ebx-overlay .ebx-chip[aria-pressed="false"] {
    opacity: 0.45;
    background: var(--ebx-soft);
}

#ebx-overlay .ebx-chip[aria-pressed="true"] {
    border-color: var(--ebx-accent);
    box-shadow: inset 0 0 0 1px var(--ebx-accent);
}

/* selects + search */
#ebx-overlay .ebx-row {
    display: flex;
    gap: 8px;
    margin: 0 0 9px;
}

#ebx-overlay .ebx-field {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: block;
}

#ebx-overlay .ebx-field select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 30px 0 12px;
    border: 1px solid var(--ebx-line);
    border-radius: 10px;
    background: var(--ebx-white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 11px center;
    font: inherit;
    font-size: 13.5px;
    color: var(--ebx-ink);
    cursor: pointer;
    text-overflow: ellipsis;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#ebx-overlay .ebx-field select:focus {
    outline: 0;
    border-color: var(--ebx-accent);
    box-shadow: 0 0 0 3px rgba(77, 116, 62, 0.13);
}

#ebx-overlay .ebx-search {
    position: relative;
}

#ebx-overlay .ebx-search input {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 34px 0 12px;
    border: 1px solid var(--ebx-line);
    border-radius: 10px;
    background: var(--ebx-white);
    font: inherit;
    font-size: 13.5px;
    color: var(--ebx-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

#ebx-overlay .ebx-search input::placeholder {
    color: #9aa0a6;
}

#ebx-overlay .ebx-search input:focus {
    outline: 0;
    border-color: var(--ebx-accent);
    box-shadow: 0 0 0 3px rgba(77, 116, 62, 0.13);
}

#ebx-overlay .ebx-search svg {
    position: absolute;
    right: 11px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    color: #9aa0a6;
    pointer-events: none;
}

/* list */
#ebx-overlay .ebx-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 10px;
}

#ebx-overlay .ebx-list::-webkit-scrollbar {
    width: 10px;
}

#ebx-overlay .ebx-list::-webkit-scrollbar-thumb {
    background: #dcdcd5;
    border: 3px solid var(--ebx-white);
    border-radius: 8px;
}

#ebx-overlay .ebx-item {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 11px 16px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s;
}

#ebx-overlay .ebx-item:hover {
    background: var(--ebx-soft);
}

#ebx-overlay .ebx-item.is-active {
    background: var(--ebx-accent-soft);
    border-left-color: var(--ebx-accent);
}

#ebx-overlay .ebx-item:focus-visible {
    outline: 2px solid var(--ebx-accent);
    outline-offset: -2px;
}

#ebx-overlay .ebx-item-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-top: 1px;
    border: 1px solid var(--ebx-line);
    border-radius: 10px;
    background: var(--ebx-white);
    overflow: hidden;
}

#ebx-overlay .ebx-item-logo img {
    max-width: 30px;
    max-height: 22px;
    display: block;
}

#ebx-overlay .ebx-item-logo .ebx-initial {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ebx-overlay .ebx-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

#ebx-overlay .ebx-item-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ebx-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ebx-overlay .ebx-item-addr {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--ebx-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ebx-overlay .ebx-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

#ebx-overlay .ebx-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #f0f0eb;
    color: #6b6650;
}

#ebx-overlay .ebx-tag.is-open {
    background: #e8f2e4;
    color: #3f6b33;
}

#ebx-overlay .ebx-tag.is-price {
    background: #eef2f8;
    color: #2c5282;
}

#ebx-overlay .ebx-item-dist {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ebx-accent);
    white-space: nowrap;
}

#ebx-overlay .ebx-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--ebx-muted);
    font-size: 13.5px;
}

#ebx-overlay .ebx-empty strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ebx-ink);
    font-size: 14px;
}

#ebx-overlay .ebx-skel {
    height: 58px;
    margin: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f2f2ee 25%, #e9e9e3 37%, #f2f2ee 63%);
    background-size: 400% 100%;
    animation: ebx-shimmer 1.3s ease infinite;
}

@keyframes ebx-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ---------- 3b. Map ---------- */
#ebx-overlay .ebx-mapwrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    background: #eef0ea;
}

#ebx-overlay #ebx-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #eef0ea;
}

#ebx-overlay .ebx-map-tools {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

#ebx-overlay .ebx-tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--ebx-line);
    border-radius: 999px;
    background: var(--ebx-white);
    box-shadow: 0 2px 10px rgba(20, 28, 16, 0.12);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ebx-ink);
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

#ebx-overlay .ebx-tool:hover {
    border-color: #cfcfc8;
    transform: translateY(-1px);
}

#ebx-overlay .ebx-tool svg {
    width: 16px;
    height: 16px;
    color: var(--ebx-accent);
}

#ebx-overlay .ebx-tool[disabled] {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

#ebx-overlay .ebx-zoom {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ebx-line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--ebx-white);
    box-shadow: 0 2px 10px rgba(20, 28, 16, 0.12);
}

#ebx-overlay .ebx-zoom button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--ebx-white);
    color: var(--ebx-ink);
    font: inherit;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}

#ebx-overlay .ebx-zoom button + button {
    border-top: 1px solid var(--ebx-line);
}

#ebx-overlay .ebx-zoom button:hover {
    background: var(--ebx-soft);
}

/* Leaflet overrides (scoped) */
#ebx-overlay .leaflet-container {
    font-family: var(--ebx-font);
    background: #eef0ea;
}

/* Mute the base map so the pickup pins stay the focus (OSM/Esri only;
   Mapbox Light is already muted and skips this class). */
#ebx-overlay.ebx-muted-tiles .leaflet-tile-pane {
    filter: saturate(0.6) brightness(1.05) contrast(0.92);
}

/* Very light styles (Mapbox Light) get a gentle contrast push so roads and
   labels stay readable behind the pins. */
#ebx-overlay.ebx-boost-tiles .leaflet-tile-pane {
    filter: contrast(1.14) saturate(1.05) brightness(0.985);
}

/* Mapbox Streets: keep parks/water/POIs colourful, but calm the overview a
   touch so the pins stay in front. */
#ebx-overlay.ebx-tone-tiles .leaflet-tile-pane {
    filter: saturate(0.82) brightness(1.03) contrast(0.97);
}

#ebx-overlay .leaflet-control-attribution {
    padding: 1px 6px;
    border-radius: 5px 0 0 0;
    background: rgba(255, 255, 255, 0.62);
    font-size: 9.5px;
    line-height: 1.5;
    color: #8b8b84;
    opacity: 0.72;
    transition: opacity 0.15s;
}

#ebx-overlay .leaflet-control-attribution:hover {
    opacity: 1;
}

#ebx-overlay .leaflet-control-attribution a {
    color: #7c7c75;
    text-decoration: none;
}

#ebx-overlay .ebx-pin {
    border: 0;
    background: transparent;
}

#ebx-overlay .ebx-pin-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ebx-accent);
    box-shadow: 0 2px 6px rgba(20, 28, 16, 0.35);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.15s;
}

#ebx-overlay .ebx-pin:hover .ebx-pin-inner {
    transform: scale(1.12);
}

#ebx-overlay .ebx-pin.is-selected .ebx-pin-inner {
    width: 36px;
    height: 36px;
    margin: -4px 0 0 -4px;
    border-width: 3px;
    background: var(--ebx-orange);
    box-shadow: 0 0 0 6px rgba(227, 122, 8, 0.22), 0 3px 10px rgba(20, 28, 16, 0.35);
    font-size: 15px;
}

#ebx-overlay .ebx-cluster {
    border: 0;
    background: transparent;
}

#ebx-overlay .ebx-cluster-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(20, 28, 16, 0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border: 2px solid #fff;
}

#ebx-overlay .ebx-me {
    border: 0;
    background: transparent;
}

#ebx-overlay .ebx-me-inner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.18), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ---------- marker popup (the detail bubble on select) ---------- */
#ebx-overlay .ebx-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 28, 16, 0.2), 0 2px 6px rgba(20, 28, 16, 0.08);
}

#ebx-overlay .ebx-popup .leaflet-popup-content {
    margin: 0;
    padding: 14px 16px 13px;
    font-family: var(--ebx-font);
    font-size: 13px;
    line-height: 1.45;
    color: var(--ebx-ink);
    min-width: 0;
}

#ebx-overlay .ebx-popup .leaflet-popup-tip {
    box-shadow: none;
    background: #fff;
}

#ebx-overlay .ebx-popup .leaflet-popup-close-button {
    top: 7px !important;
    right: 7px !important;
    width: 24px;
    height: 24px;
    padding: 0 !important;
    border-radius: 50%;
    color: #9aa0a6 !important;
    font-size: 17px !important;
    font-weight: 400;
    line-height: 24px !important;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

#ebx-overlay .ebx-popup .leaflet-popup-close-button:hover {
    background: #f1f1ec;
    color: #3f4238 !important;
}

#ebx-overlay .ebx-pop-name {
    padding-right: 20px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ebx-ink);
}

#ebx-overlay .ebx-pop-meta {
    margin-top: 1px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ebx-accent);
}

#ebx-overlay .ebx-pop-addr {
    margin-top: 7px;
    color: #4b5563;
}

#ebx-overlay .ebx-pop-city {
    font-size: 12.5px;
    color: var(--ebx-muted);
}

#ebx-overlay .ebx-pop-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1a73e8;
    text-decoration: none;
}

#ebx-overlay .ebx-pop-link:hover {
    text-decoration: underline;
}

#ebx-overlay .ebx-pop-link svg {
    width: 13px;
    height: 13px;
}

/* ==================================================================
 * 4. Footer
 * ================================================================== */
#ebx-overlay .ebx-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    padding: 14px 20px;
    border-top: 1px solid var(--ebx-line);
    background: var(--ebx-white);
}

#ebx-overlay .ebx-sel {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    color: var(--ebx-muted);
}

#ebx-overlay .ebx-sel strong {
    display: block;
    color: var(--ebx-ink);
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ebx-overlay .ebx-sel span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ebx-overlay .ebx-foot-btns {
    display: flex;
    gap: 9px;
    flex: 0 0 auto;
}

#ebx-overlay .ebx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 46px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--ebx-accent);
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

#ebx-overlay .ebx-btn:hover {
    background: var(--ebx-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(61, 94, 49, 0.25);
}

#ebx-overlay .ebx-btn:disabled {
    background: #dfe3da;
    color: #8b9084;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#ebx-overlay .ebx-btn svg {
    width: 17px;
    height: 17px;
}

#ebx-overlay .ebx-btn.ebx-ghost {
    background: transparent;
    border-color: var(--ebx-line);
    color: var(--ebx-ink);
}

#ebx-overlay .ebx-btn.ebx-ghost:hover {
    background: var(--ebx-soft);
    box-shadow: none;
}

/* ==================================================================
 * 5. Checkout trigger card (replaces the plugin's inline-styled box)
 * ================================================================== */

/* EuroParcel wraps the button in a grey inline-styled div — neutralise it
   so the trigger and the chosen-locker card look native to the checkout. */
#europarcel-blocks-locker-container {
    margin-top: 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* when the block sits under the shipping options, separate it with a hairline */
#europarcel-blocks-locker-container.ebx-in-shipping {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px dashed #E3E5EC !important;
}



#europarcel-blocks-locker-btn,
.europarcel-locker-selection .button,
.europarcel-locker-selection button,
.select-locker-btn,
.ebx-trigger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin: 0 0 8px !important;
    padding: 10px 16px !important;
    border: 1px solid var(--ebx-accent) !important;
    border-radius: 10px !important;
    background: var(--ebx-accent) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    letter-spacing: 0.01em;
    line-height: 1.2 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

#europarcel-blocks-locker-btn:hover,
.europarcel-locker-selection .button:hover,
.select-locker-btn:hover,
.ebx-trigger-btn:hover {
    background: var(--ebx-accent-dark) !important;
    box-shadow: 0 6px 16px rgba(61, 94, 49, 0.22) !important;
}

#europarcel-blocks-locker-btn:disabled,
.select-locker-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

#europarcel-blocks-locker-btn::before,
.europarcel-locker-selection .button::before,
.select-locker-btn::before,
.ebx-trigger-btn::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* the plugin's own details box is replaced by .ebx-chosen */
#europarcel-location-details,
#europarcel-blocks-location-details {
    display: none !important;
}

.ebx-chosen {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 6px;
    padding: 12px 14px;
    border: 1px solid #cfe0c7;
    border-radius: 12px;
    background: linear-gradient(180deg, #f4f8f1 0%, #eef3ea 100%);
    font-family: var(--ebx-font);
    font-size: 13.5px;
    color: var(--ebx-ink);
    line-height: 1.4;
}

.ebx-chosen-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #dfe9d8;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.ebx-chosen-logo img {
    max-width: 30px;
    max-height: 22px;
    display: block;
}

.ebx-chosen-body {
    flex: 1 1 auto;
    min-width: 0;
}

.ebx-chosen-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4d743e;
}

.ebx-chosen-kicker .ebx-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4d743e;
    color: #fff;
    font-size: 9px;
}

.ebx-chosen-name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ebx-chosen-addr {
    margin-top: 1px;
    font-size: 12.5px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ebx-chosen-edit {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #cfe0c7;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #3d5e31;
    cursor: pointer;
    white-space: nowrap;
}

.ebx-chosen-edit:hover {
    background: #f4f8f1;
}

/* ==================================================================
 * 6. Responsive — mobile first-class
 * ================================================================== */
@media (max-width: 900px) {
    #ebx-overlay {
        padding: 0;
        align-items: stretch;
    }

    #ebx-overlay .ebx-modal {
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
        transform: none;
    }

    #ebx-overlay .ebx-body {
        flex-direction: column-reverse;
    }

    #ebx-overlay .ebx-side {
        flex: 1 1 auto;
        width: 100%;
        border-right: 0;
        border-top: 1px solid var(--ebx-line);
        min-height: 0;
    }

    #ebx-overlay .ebx-mapwrap {
        flex: 0 0 34vh;
        min-height: 200px;
    }

    #ebx-overlay .ebx-head {
        padding: 12px 14px;
        gap: 12px;
    }

    #ebx-overlay .ebx-head-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    #ebx-overlay .ebx-title {
        font-size: 16.5px;
    }

    #ebx-overlay .ebx-sub {
        font-size: 12px;
    }

    #ebx-overlay .ebx-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
    }

    #ebx-overlay .ebx-foot-btns {
        width: 100%;
    }

    #ebx-overlay .ebx-btn {
        flex: 1 1 auto;
        height: 48px;
    }

    #ebx-overlay .ebx-sel {
        font-size: 12.5px;
    }

    #ebx-overlay .ebx-sel strong {
        font-size: 13.5px;
    }

    #ebx-overlay .ebx-map-tools {
        right: 10px;
        top: 10px;
        flex-direction: row;
        align-items: center;
    }

    #ebx-overlay .ebx-zoom {
        flex-direction: row;
    }

    #ebx-overlay .ebx-zoom button + button {
        border-top: 0;
        border-left: 1px solid var(--ebx-line);
    }
}

@media (max-width: 480px) {
    #ebx-overlay .ebx-side-top {
        padding: 11px 12px 10px;
    }

    #ebx-overlay .ebx-item {
        padding: 10px 12px;
    }

    #ebx-overlay .ebx-foot-btns .ebx-ghost {
        flex: 0 0 auto;
        padding: 0 16px;
    }
}

/* ==================================================================
 * 7. Motion / print safety
 * ================================================================== */
@media (prefers-reduced-motion: reduce) {
    #ebx-overlay,
    #ebx-overlay .ebx-modal,
    #ebx-overlay .ebx-btn,
    #ebx-overlay .ebx-tool {
        transition: none !important;
    }

    #ebx-overlay .ebx-skel {
        animation: none;
    }
}

@media print {
    #ebx-overlay {
        display: none !important;
    }
}
