/**
 * InPost Universal Popup - Style CSS
 * 
 * @version 2.29.0
 * @author InPost Integration Team
 * @created 2026-01-18
 * @updated 2026-01-21 - MULTILANGUAGE + Responsywność + Zmienne CSS
 * 
 * STATUS: ✅ DZIAŁA - Kompletne style dla uniwersalnego popup
 * 
 * SEKCJE:
 * 1. Modal Overlay & Container - Popup główny i tło
 * 2. Header - Logo, flagi krajów, gradient instructions
 * 3. Map Container - Mapa Leaflet
 * 4. Search Bar - Pole wyszukiwania punktów
 * 5. Points List - Lista paczkomatów (scrollable)
 * 6. Footer - Przyciski akcji
 * 7. Responsive - Media queries dla mobile
 * 8. MarkerCluster - Pinezki z badge'ami
 * 
 * OPTYMALIZACJE:
 * - GPU acceleration (transform: translateZ(0))
 * - Smooth transitions (0.3s ease)
 * - Mobile-first approach
 * - Flexbox layout
 * 
 * KOMPATYBILNOŚĆ:
 * ✅ Chrome/Edge (Chromium)
 * ✅ Firefox
 * ✅ Safari (iOS/macOS)
 * ✅ Mobile browsers
 */

/* ====================
   GLOBALNE FONT-FAMILY - Naprawa problemu z czcionkami
   ==================== */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====================
   ZMIENNE CSS - Kolory i konfiguracja
   ==================== */
:root {
    /* Kolory główne */
    --inpost-primary: #FF6600;
    --inpost-primary-hover: #FF8800;
    --inpost-primary-dark: #E65500;
    
    /* Kolory tekstu */
    --inpost-text-dark: #333;
    --inpost-text-medium: #666;
    --inpost-text-light: #999;
    
    /* Kolory tła */
    --inpost-white: #ffffff;
    --inpost-gray-lightest: #f8f9fa;
    --inpost-gray-light: #f5f5f5;
    --inpost-gray-medium: #e8e8e8;
    --inpost-gray-border: #e0e0e0;
    --inpost-gray-border-light: rgba(0, 0, 0, 0.08);
    --inpost-gray-divider: #f0f0f0;
    
    /* Cienie */
    --inpost-shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
    --inpost-shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.15);
    --inpost-shadow-large: 0 15px 60px rgba(0, 0, 0, 0.25);
    --inpost-shadow-tooltip: 0 4px 16px rgba(0, 0, 0, 0.15);
    
    /* Z-index hierarchy */
    --z-popup: 1000;
    --z-loading: 1100;
    --z-modal: 9999999;
    --z-tooltip: 10000000;
    
    /* Rozmiary */
    --border-radius-small: 8px;
    --border-radius-medium: 12px;
    --border-radius-large: 16px;
    --border-radius-xlarge: 20px;
    
    /* Touch targets (minimum 44px dla mobile) */
    --touch-target-min: 44px;
    --touch-target-mobile: 48px;
}

/* ====================
   EPIC ZOOM - PULSE CIRCLE ECHO EFFECT
   ==================== */

/* 🎯 PULSE OVERLAY - ZAWSZE W CENTRUM EKRANU (nie Leaflet circle!) */
/* FIX: inset:0 zamiast top/left/translate — bo transform:scale() nadpisywało translate! */
.epic-zoom-pulse-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000;
    width: 320px;
    height: 320px;
}

.epic-zoom-pulse-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid #FFD700;
    background: rgba(255, 215, 0, 0.18);
    animation: pulseEcho 2.2s ease-out infinite;
    transform-origin: center center;
}

.epic-zoom-pulse-echo1 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #FFD700;
    background: transparent;
    animation: pulseEcho 2.2s ease-out infinite 0.25s;
    opacity: 0.65;
    transform-origin: center center;
}

.epic-zoom-pulse-echo2 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #FFAA00;
    background: transparent;
    animation: pulseEcho 2.2s ease-out infinite 0.5s;
    opacity: 0.4;
    transform-origin: center center;
}

.epic-zoom-pulse-echo3 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid #FF8800;
    background: transparent;
    animation: pulseEcho 2.2s ease-out infinite 0.75s;
    opacity: 0.25;
    transform-origin: center center;
}

@keyframes pulseEcho {
    0%   { transform: scale(0.6); opacity: 0.9; }
    60%  { transform: scale(1.4); opacity: 0.3; }
    100% { transform: scale(1.8); opacity: 0;   }
}

.country-pulse {
    animation: pulseEcho 2s ease-out infinite !important;
}

/* ====================
   MARKER CLUSTER - PINEZKA + BADGE
   ==================== */

/* Główny kontener pinezki z badge'em */
.custom-cluster-icon {
    background: none !important;
    border: none !important;
}

.cluster-pin {
    position: relative;
    width: 24px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cluster-pin img {
    width: 24px;
    height: 36px;
    display: block;
}

/* Badge z liczbą punktów */
.cluster-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF6600 0%, #FF8800 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    min-width: 18px;
    text-align: center;
    white-space: nowrap;
    border: 2px solid white;
}

/* Animacja przy hover */
.custom-cluster-icon:hover .cluster-badge {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 3px 8px rgba(255, 102, 0, 0.5);
}

/* ====================
   OVERLAY I CONTAINER
   ==================== */

/* Overlay - ciemne tło z rozmyciem */
.inpost-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Główny container popupu */
.inpost-popup-container {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ====================
   HEADER
   ==================== */

/* Header główny z gradientem i border */
.inpost-popup-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 3px solid #eee;
    border-left: 5px solid #FF6600; /* Domyślny kolor, dynamicznie zmienany przez JS */
    padding: 20px 30px;
    position: relative;
}

/* Górna część headera - logo i flagi */
.inpost-popup-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 20px;
}

/* Dolna część headera - tytuł i instrukcje w jednym wierszu */
.inpost-popup-header-bottom {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-top: 1px solid #fdcb6e;
    overflow: hidden;
    max-height: 80px;
    transition: max-height 1.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity    1.2s ease,
                padding    1.3s ease;
}

/* ═══ SELECTION MODE – ukrywa UI po wyborze paczkomatu ═══ */
.ps-selection-mode .inpost-popup-header-bottom {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ====================
   INSTRUKCJE - W JEDNYM WIERSZU
   ==================== */
.inpost-popup-instructions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2d3436;
    line-height: 1.4;
}

.inpost-popup-instructions-row .instructions-flag {
    font-size: 24px;
    flex-shrink: 0;
}

.inpost-popup-instructions-row .instructions-country {
    font-weight: 700;
    color: #d63031;
    flex-shrink: 0;
}

.inpost-popup-instructions-row .instructions-text {
    color: #2d3436;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ====================
   LOGO (Lewy i Prawy górny róg)
   ==================== */

/* Logo InPost - lewy górny róg */
.inpost-popup-logo-left {
    display: flex;
    align-items: center;
    min-width: 120px;
    position: relative;
    margin-left: 20px; /* ➡️ Oddalenie od lewej belki o 20px */
}

.inpost-logo-img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 10px;
    padding: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: logoSwing 3s ease-in-out infinite; /* Dodana animacja huśtania */
}

@keyframes logoSwing {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(7.5%); }
}

.inpost-logo-img:hover {
    transform: scale(1.05);
    animation-play-state: paused; /* Pauza animacji przy hover */
}

.inpost-logo-placeholder {
    font-weight: 700;
    font-size: 18px;
    color: #FF6600;
    padding: 8px 15px;
    border: 2px solid #FF6600;
    border-radius: 8px;
}

/* Logo sklepu - prawy górny róg */
.inpost-popup-logo-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 100px;
}

.shop-logo-img {
    max-width: 100px;
    max-height: 45px;
    object-fit: contain;
    border-radius: 10px;
    padding: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.shop-logo-img:hover {
    transform: scale(1.05);
}

/* ====================
   FLAGI KRAJÓW - RESPONSIVE LAYOUT
   Desktop: 50px × 11 flags = 550px + gaps (80px) = 630px total ✅
   Tablet: flex-wrap do drugiej linii ✅
   Mobile: 40px × 11 = 440px + gaps (50px) = 490px ⚠️
   Very Small: 30px + horizontal scroll ✅
   ==================== */

/* Container flag - centrum headera */
.inpost-popup-flags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

/* === ANIMACJA DO-RE-MI: fala na przyciskach flag przy starcie mapy ===
   NIEZALEŻNY PROCES: czyste CSS animation-delay – zero JS podczas animacji,
   działa na compositor thread, odporne na lag punktów / mapy.
*/
@keyframes flagWavePulse {
    0%   { transform: scale(1) translateY(0); box-shadow: none; }
    35%  { transform: scale(1.35) translateY(-8px); box-shadow: 0 12px 28px rgba(255,102,0,0.55); border-color: #FF6600; background: white; }
    65%  { transform: scale(1.08) translateY(-3px); box-shadow: 0 6px 14px rgba(255,102,0,0.25); }
    100% { transform: scale(1) translateY(0); box-shadow: none; }
}

/* Stara klasa – zachowana dla wave-confirm (switchCountry) */
.inpost-flag-btn.wave-animate {
    animation: flagWavePulse 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── NOWA: CSS-only staggered wave przy otwarciu mapy ───────────────── */
/* Klasa dodawana jednorazowo przez JS – od tej chwili CSS prowadzi całą sekwencję */
.flags-wave-init.inpost-popup-flags .inpost-flag-btn,
.flags-wave-init .inpost-flag-btn {
    will-change: transform;
    animation: flagWavePulse 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
/* Opóźnienie 130ms na flagę (flagi 1-13) */
.flags-wave-init .inpost-flag-btn:nth-child(1)  { animation-delay: 0.00s; }
.flags-wave-init .inpost-flag-btn:nth-child(2)  { animation-delay: 0.13s; }
.flags-wave-init .inpost-flag-btn:nth-child(3)  { animation-delay: 0.26s; }
.flags-wave-init .inpost-flag-btn:nth-child(4)  { animation-delay: 0.39s; }
.flags-wave-init .inpost-flag-btn:nth-child(5)  { animation-delay: 0.52s; }
.flags-wave-init .inpost-flag-btn:nth-child(6)  { animation-delay: 0.65s; }
.flags-wave-init .inpost-flag-btn:nth-child(7)  { animation-delay: 0.78s; }
.flags-wave-init .inpost-flag-btn:nth-child(8)  { animation-delay: 0.91s; }
.flags-wave-init .inpost-flag-btn:nth-child(9)  { animation-delay: 1.04s; }
.flags-wave-init .inpost-flag-btn:nth-child(10) { animation-delay: 1.17s; }
.flags-wave-init .inpost-flag-btn:nth-child(11) { animation-delay: 1.30s; }
.flags-wave-init .inpost-flag-btn:nth-child(12) { animation-delay: 1.43s; }
.flags-wave-init .inpost-flag-btn:nth-child(13) { animation-delay: 1.56s; }

@keyframes flagWaveConfirm {
    0%   { transform: scale(1.1); }
    25%  { transform: scale(1.55) translateY(-10px); box-shadow: 0 16px 36px rgba(255,102,0,0.7); }
    55%  { transform: scale(1.3) translateY(-5px); box-shadow: 0 10px 24px rgba(255,102,0,0.45); }
    75%  { transform: scale(1.45) translateY(-8px); box-shadow: 0 14px 30px rgba(255,102,0,0.6); }
    100% { transform: scale(1.1); box-shadow: 0 5px 20px rgba(255,102,0,0.4); }
}

.inpost-flag-btn.wave-confirm {
    animation: flagWaveConfirm 0.71s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Przycisk flagi kraju */
.inpost-flag-btn {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-radius: 12px;
    background: #f8f9fa;
    font-size: 44px !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    /* WYMUSZENIE PRAWIDŁOWEGO RENDEROWANIA EMOJI */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    padding: 0 !important;
    margin: 0 5px !important;
}

.inpost-flag-btn .flag-emoji {
    display: inline-block !important;
    font-size: 44px !important;
    line-height: 1 !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif !important;
}

.inpost-flag-btn:hover {
    background: white;
    border-color: #FF6600;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.inpost-flag-btn.active {
    background: linear-gradient(135deg, #FF6600 0%, #FF8800 100%);
    border-color: #FF6600;
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.4);
    transform: scale(1.1);
}

.inpost-flag-btn.active::after {
    content: '✓';
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: white;
    color: #FF6600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FF6600;
}

/* ====================
   PRZYCISK ZAMKNIJ
   ==================== */

.inpost-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    color: #9ca3af;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s, transform 0.22s;
    z-index: 10;
    line-height: 1;
}

.inpost-popup-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* ====================
   TYTUŁ I INSTRUKCJE
   ==================== */

/* Tytuł z flagą i nazwą kraju */
.inpost-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.inpost-popup-title #inpostCurrentFlag {
    font-size: 32px;
}

/* Instrukcje - edytowalne z panelu admin - W JEDNYM WIERSZU */
.inpost-popup-instructions {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #FF6600;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-top: 10px;
    /* W jednym wierszu - nie wjeżdża w prawy róg */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Wyświetlanie jako inline dla <br> w instrukcjach */
.inpost-popup-instructions br {
    display: none;
}

/* Separator między elementami listy */
.inpost-popup-instructions strong::after {
    content: ' • ';
    margin: 0 8px;
}

.inpost-popup-instructions strong {
    color: #FF6600;
    font-weight: 600;
}

/* ====================
   BODY - SIDEBAR I MAPA
   ==================== */

.inpost-popup-body {
    flex: 1;
    display: flex;
    gap: 0;
    overflow: hidden;
}

/* ====================
   SIDEBAR
   ==================== */

.inpost-popup-sidebar {
    width: 350px;
    background: #f8f9fa;
    border-right: 2px solid #eee;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    transition: transform    1.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin-left  1.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity      1.2s ease,
                border-width 1.2s ease;
}

.ps-selection-mode .inpost-popup-sidebar {
    transform: translateX(-100%) !important;
    margin-left: -350px !important;
    opacity: 0 !important;
    border-right-width: 0 !important;
}

/* Wyszukiwarka */
.inpost-search-box {
    padding: 20px;
    background: white;
    border-bottom: 2px solid #eee;
    position: relative; /* 🎯 Dla z-index */
    z-index: 15; /* 🎯 Nad wszystkim */
}

.inpost-search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #FF6600;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    caret-color: #FF6600; /* 🎯 Pomarańczowy migający kursor */
}

.inpost-search-input:focus {
    outline: none;
    border-color: #FF8800;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
    caret-color: #FF8800; /* 🎯 Jaśniejszy kursor przy focus */
    animation: pulse-caret 1.5s ease-in-out infinite; /* Migający efekt */
}

/* 🎯 Animacja migającego kursora - zachęca do pisania */
@keyframes pulse-caret {
    0%, 100% { caret-color: #FF6600; }
    50% { caret-color: #FFA500; }
}

/* 🔍 Loading state dla wyszukiwania - USUNIĘTY, bo input działa natychmiast */

/* 🗺️ STATUS MAPY - oddzielny od inputa */
.inpost-map-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #FFF5F0, #FFE8D6);
    border: 1px solid #FF6600;
    border-radius: 8px;
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

.map-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #FFD4B3;
    border-top-color: #FF6600;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.map-status-text {
    font-size: 12px;
    color: #FF6600;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ANIMACJA LICZNIKA ===== */
@keyframes countUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        color: #FF6600;
    }
    100% {
        transform: scale(1);
    }
}

/* ===== KOMUNIKAT "BRAK WYNIKÓW" ===== */
.inpost-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.no-results-query {
    font-size: 16px;
    color: #FF6600;
    font-weight: 500;
    margin-bottom: 30px;
}

.no-results-hints {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
}

.no-results-hints p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.no-results-hints ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.no-results-hints li {
    padding: 8px 0;
    color: #555;
    font-size: 13px;
}

.no-results-hints li:before {
    content: "💡 ";
    margin-right: 8px;
}

/* ===== v2.10.2: SEARCH HINT ===== */
.inpost-search-hint {
    margin: 10px 0 0 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 3px solid #4CAF50;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

/* ===============================================
   PODPOWIEDZI WYSZUKIWANIA (v2.11.2)
   =============================================== */

.inpost-search-suggestions {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: white;
    border: 2px solid #FF6600;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 100;
    margin-top: 5px;
}

.inpost-search-suggestions.show {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, #FFF5F0, #FFE8D6);
    transform: translateX(5px);
}

.suggestion-item.selected {
    background: linear-gradient(135deg, #FFE8D6, #FFDAB9);
    transform: translateX(5px);
    box-shadow: inset 3px 0 0 #FF6600;
}

/* Komunikat "Szukam..." dla miast */
.suggestion-item.suggestion-searching {
    background: linear-gradient(135deg, #E8F5FF, #D6EFFF);
    cursor: default;
    pointer-events: none;
    animation: pulse-search 1.5s ease-in-out infinite;
}

@keyframes pulse-search {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.suggestion-icon {
    font-size: 24px;
    margin-right: 12px;
    min-width: 30px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
}

.suggestion-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.suggestion-label strong {
    color: #FF6600;
    background: #FFF5F0;
    padding: 2px 4px;
    border-radius: 3px;
}

.suggestion-subtitle {
    font-size: 12px;
    color: #999;
}

/* Scrollbar dla podpowiedzi */
.inpost-search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.inpost-search-suggestions::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.inpost-search-suggestions::-webkit-scrollbar-thumb {
    background: #FF6600;
    border-radius: 10px;
}

.inpost-search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #FF8800;
}

/* Statystyki */
.inpost-stats {
    padding: 15px 20px;
    background: white;
    border-bottom: 2px solid #eee;
}

.inpost-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.inpost-stat .stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.inpost-stat .stat-value {
    font-size: 15px;
    color: #FF6600;
    font-weight: 700;
}

/* Lista punktów */
.inpost-points-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Pojedynczy punkt */
.inpost-point-item {
    background: white;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #FF6600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex; /* ✅ FLEX dla checkboxa */
    align-items: center;
    gap: 12px;
}

.inpost-point-item .point-content {
    flex: 1; /* ✅ Content zajmuje pozostałe miejsce */
}

.inpost-point-item:hover {
    background: #fff3e0;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

.inpost-point-item.active {
    background: linear-gradient(135deg, #FF6600 0%, #FF8800 100%);
    color: white;
    border-left-color: white;
}

.inpost-point-item .point-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.inpost-point-item.active .point-name {
    color: white;
}

.inpost-point-item .point-address {
    font-size: 12px;
    color: #666;
}

.inpost-point-item.active .point-address {
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   PRZYCISK "WYBIERZ" W PIERWSZYM ELEMENCIE HISTORII
   ============================================= */

@keyframes historyWybierzPulse {
    0%, 100% {
        background: linear-gradient(135deg, #FF6600 0%, #FF8800 100%);
        box-shadow: 0 3px 10px rgba(255,102,0,0.35);
        transform: translateY(0);
    }
    50% {
        background: linear-gradient(135deg, #e05500 0%, #e07700 100%);
        box-shadow: 0 6px 20px rgba(255,102,0,0.65);
        transform: translateY(-2px);
    }
}

@keyframes historyCheckBlink {
    0%, 40%, 100% { opacity: 1; }
    50%, 90%      { opacity: 0.2; }
}

.history-wybierz-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding: 9px 14px;
    background: linear-gradient(135deg, #FF6600 0%, #FF8800 100%);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    animation: historyWybierzPulse 1.77s ease-in-out infinite;
    box-shadow: 0 3px 10px rgba(255,102,0,0.35);
    user-select: none;
}

.history-wybierz-check {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    animation: historyCheckBlink 1.77s ease-in-out infinite;
}

.history-wybierz-label {
    flex: 1;
}

.history-wybierz-arrow {
    font-size: 15px;
    flex-shrink: 0;
}

/* Info o więcej punktach */
.more-points-info {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

/* Loading spinner w liście */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* Komunikat powitalny - zamiast listy przed wyszukaniem */
.search-welcome-message {
    text-align: center;
    padding: 60px 30px;
    color: #666;
}

.search-welcome-message .welcome-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.search-welcome-message h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.search-welcome-message p {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
}

.welcome-examples {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-examples span {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: #FF6600;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 2px solid #FFD699;
}

/* ====================
   MAPA
   ==================== */

.inpost-popup-map-container {
    flex: 1;
    position: relative;
    background: #e5e5e5;
}

.inpost-map {
    width: 100%;
    height: 100%;
}

/* Loading overlay na mapie */
.inpost-map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.inpost-map-loading .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #FF6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================
   FOOTER
   ==================== */

.inpost-popup-footer {
    background: #f8f9fa;
    border-top: 2px solid #eee;
    padding: 20px 30px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    max-height: 200px;
    transition: max-height   1.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity      1.2s ease,
                padding      1.3s ease,
                border-width 1.2s ease;
}

.ps-selection-mode .inpost-popup-footer {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
}

/* ═══ SELECTION MODE – zielone akcenty po wyborze paczkomatu ═══ */

/* Lewa belka nagłówka → zielona (!important bo JS ustawia inline style) */
.ps-selection-mode .inpost-popup-header {
    border-left-color: #10b981 !important;
    transition: border-left-color 0.6s ease 0.3s;
}

/* Ramka mapy → zielona poświata */
.ps-selection-mode .inpost-popup-map-container {
    box-shadow: 0 0 0 3px #10b981, 0 0 24px rgba(16,185,129,0.35);
    transition: box-shadow 0.7s ease 0.2s;
}

/* Flaga aktywnego kraju → zielona */
.ps-selection-mode .inpost-flag-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #059669;
    box-shadow: 0 5px 20px rgba(16,185,129,0.5);
    transition: background 0.5s ease 0.4s, border-color 0.5s ease 0.4s, box-shadow 0.5s ease 0.4s;
}

/* Checkmark (::after) w aktywnej fladze → zielony */
.ps-selection-mode .inpost-flag-btn.active::after {
    color: #10b981;
    border-color: #10b981;
    transition: color 0.5s ease 0.4s, border-color 0.5s ease 0.4s;
}

/* Lewa obramówka podpowiedzi z wybranym paczkomaem → zielona */
.ps-selection-mode .inpost-point-item.selected-item,
.inpost-point-item.selected-item {
    border-left-color: #10b981 !important;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
    box-shadow: 0 4px 12px rgba(16,185,129,0.2) !important;
}

/* ═══ SIDEBAR – wjazd z lewej przy starcie mapy ═══ */
.inpost-popup-sidebar {
    transform: translateX(0);
}
.inpost-popup-sidebar.sidebar-hidden {
    transform: translateX(-100%);
    opacity: 0;
}
.inpost-popup-sidebar.sidebar-visible {
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease;
}

/* Statystyki w footerze */
.inpost-popup-footer .inpost-stats {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    border: none;
}

.inpost-popup-footer .inpost-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inpost-popup-footer .stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.inpost-popup-footer .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #FF6600;
}

/* Przyciski w footerze */
.inpost-footer-buttons {
    display: flex;
    gap: 15px;
}

/* Przyciski */
.inpost-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.inpost-btn-primary {
    background: linear-gradient(135deg, #FF6600 0%, #FF8800 100%);
    color: white;
}

.inpost-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF8800 0%, #FF6600 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.4);
}

.inpost-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.inpost-btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #ddd;
}

.inpost-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #FF6600;
    color: #FF6600;
}

/* ====================
   MODAL SZCZEGÓŁÓW PUNKTU (z Francji/Włoch)
   ==================== */

.inpost-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.inpost-detail-modal {
    background: var(--inpost-white);
    border-radius: var(--border-radius-large);
    width: 85%;
    max-width: 460px;
    box-shadow: var(--inpost-shadow-large);
    border: 1px solid var(--inpost-gray-border-light);
    animation: slideUp 0.3s ease;
    margin: 20px;
}

.detail-modal-header {
    background: white;
    color: #333;
    padding: 18px 21px;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.detail-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    color: #9ca3af;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s, transform 0.22s;
    line-height: 1;
}

.detail-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.detail-modal-header h3 {
    font-size: 22px;
    margin-bottom: 5px;
    padding-right: 50px;
}

.detail-modal-header p {
    font-size: 14px;
    opacity: 0.9;
}

.detail-modal-body {
    padding: 18px 21px;
    overflow: visible;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.detail-modal-footer {
    padding: 15px 21px;
    background: white;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 16px 16px;
    display: flex;
    gap: 12px;
}

.detail-modal-footer .inpost-btn {
    flex: 1;
}

/* ====================
   RESPONSYWNOŚĆ
   ==================== */

@media (max-width: 1200px) {
    .inpost-popup-container {
        width: 98%;
        height: 95vh;
    }
    
    .inpost-popup-sidebar {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .inpost-popup-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .inpost-popup-body {
        flex-direction: column;
    }

    .inpost-popup-sidebar {
        width: 100%;
        max-height: 40%;
    }

    .inpost-popup-flags {
        gap: 5px;
        padding: 0 10px;
    }

    .inpost-flag-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    /* Modal szczegółów - responsywność tablet */
    .inpost-detail-modal {
        width: 90%;
        max-width: 500px;
        margin: 15px;
    }

    .detail-modal-header h3 {
        font-size: 20px;
    }

    .detail-modal-close {
        width: var(--touch-target-mobile);
        height: var(--touch-target-mobile);
        font-size: 26px;
    }
}

/* ====================
   BARDZO MAŁE EKRANY (<480px)
   30px × 11 flags + horizontal scroll
   ==================== */
@media (max-width: 480px) {
    .inpost-popup-container {
        width: calc(100% - 20px);
        margin: 10px;
    }

    .inpost-popup-flags {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 4px;
        padding: 8px 10px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .inpost-popup-flags::-webkit-scrollbar { height: 5px; }
    .inpost-popup-flags::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
    .inpost-popup-flags::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #FF6600 0%, #FF8800 100%); border-radius: 3px; }
    .inpost-popup-flags::-webkit-scrollbar-thumb:hover { background: #FF6600; }

    .inpost-flag-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        flex-shrink: 0;
        border-width: 2px;
    }

    .inpost-flag-btn.active::after {
        width: 16px;
        height: 16px;
        font-size: 10px;
        bottom: -4px;
        right: -4px;
    }

    .inpost-detail-modal {
        width: 100%;
        max-width: 100%;
        border-radius: var(--border-radius-medium);
        margin: 5px;
        max-height: calc(100vh - 10px);
    }

    .detail-modal-header h3 { font-size: 18px; padding-right: 55px; }
    .detail-modal-footer { flex-direction: column; gap: 10px; }
    .detail-modal-footer .inpost-btn { width: 100%; }
    .inpost-popup-header-top { flex-wrap: wrap; }
    .inpost-popup-logo-left, .inpost-popup-logo-right { min-width: auto; }
}

/* ====================
   MARKERY NA MAPIE
   ==================== */

.inpost-marker {
    transition: all 0.3s ease;
}

.inpost-marker:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

/* ====================
   ERROR MESSAGE
   ==================== */

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.error-message p:first-child {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}

.error-message p:last-child {
    font-size: 14px;
    color: #999;
}

/* ===============================================
   POJEDYNCZY PUNKT - POWIEKSZONA PINEZKA
   =============================================== */

/* Tooltip dla pojedynczego punktu */
.inpost-single-point-tooltip {
    background: #fff !important;
    border: 2px solid #FF6600 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
    min-width: 250px !important;
    text-align: center !important;
}

.inpost-single-point-tooltip::before {
    border-top-color: #FF6600 !important;
}

.single-point-tooltip {
    text-align: center;
}

.tooltip-id {
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.tooltip-id:hover {
    background: #FFF5F0;
}

.tooltip-id strong {
    font-size: 18px;
    color: #FF6600;
    display: block;
    margin-bottom: 4px;
}

.copy-hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    opacity: 0.7;
}

.tooltip-id:hover .copy-hint {
    opacity: 1;
    color: #FF6600;
}

.inpost-btn-select {
    background: #FF6600;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    text-transform: uppercase;
}

.inpost-btn-select:hover {
    background: #FF8800;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}

.inpost-btn-select:active {
    transform: scale(0.98);
}

/* ===============================================
   TOAST NOTIFICATIONS
   =============================================== */

.inpost-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.inpost-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===============================================
   SUCCESS OVERLAY - KOMUNIKAT SUKCESU
   =============================================== */

.inpost-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.success-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes successBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00C853, #00E676);
    color: white;
    font-size: 60px;
    line-height: 100px;
    border-radius: 50%;
    margin: 0 auto 30px;
    box-shadow: 0 8px 24px rgba(0,200,83,0.3);
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0,200,83,0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0,200,83,0.5);
    }
}

.success-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #00C853;
    margin: 0 0 30px 0;
}

.success-point-info {
    background: #F5F5F5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #00E676;
}

.success-point-id {
    font-size: 24px;
    font-weight: 700;
    color: #FF6600;
    margin-bottom: 10px;
}

.success-point-id strong {
    color: #FF6600;
}

.success-point-address {
    font-size: 16px;
    color: #666;
}

.success-countdown {
    font-size: 18px;
    color: #999;
    font-weight: 600;
}

#successCountdown {
    color: #FF6600;
    font-size: 28px;
    font-weight: 700;
    display: inline-block;
    min-width: 30px;
}
/* ===============================================
   SUCCESS PANEL (wersja INTRO) - dane paczkomatu + klienta
   =============================================== */
.inpost-success-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    backdrop-filter: blur(8px);
    animation: successFadeIn 0.8s ease-out;
}

@keyframes successFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.inpost-success-panel .success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.inpost-success-panel h3 {
    font-size: 22px;
    font-weight: 700;
    color: #00a32a;
    margin: 0 0 6px 0;
}

.inpost-success-panel > p {
    font-size: 14px;
    color: #666;
    margin: 0 0 18px 0;
}

.inpost-success-panel .success-point-info {
    background: linear-gradient(135deg, #f8f9fa, #eef6ee);
    padding: 14px 20px;
    border-radius: 10px;
    border: 2px solid #00a32a;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
    max-width: 380px;
}

.inpost-success-panel .success-point-info strong {
    display: block;
    font-size: 20px;
    color: #FF6600;
    margin-bottom: 6px;
}

.inpost-success-panel .success-point-info span {
    display: block;
    font-size: 13px;
    color: #555;
    margin-top: 3px;
}

/* Dane klienta w success popup */
.success-customer-info {
    background: linear-gradient(135deg, #fffdf0, #fef9e7);
    padding: 14px 20px;
    border-radius: 10px;
    border: 2px solid #FECC01;
    margin-bottom: 14px;
    text-align: center;
    width: 100%;
    max-width: 380px;
}

.success-customer-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.success-customer-info span {
    display: block;
    font-size: 14px;
    color: #333;
    margin-top: 4px;
}

.inpost-success-panel .countdown-text {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.inpost-success-panel .countdown-text #countdownTimer {
    color: #FF6600;
    font-size: 22px;
    font-weight: 700;
}

/* ===============================================
   POJEDYNCZY PUNKT - POWIĘKSZONA PINEZKA
   =============================================== */

/* Tooltip dla pojedynczego punktu */
.inpost-single-point-tooltip {
    background: #fff !important;
    border: 2px solid #FF6600 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
    min-width: 250px !important;
    text-align: center !important;
}

.inpost-single-point-tooltip::before {
    border-top-color: #FF6600 !important;
}

.single-point-tooltip {
    text-align: center;
}

.tooltip-id {
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.tooltip-id:hover {
    background: #FFF5F0;
}

.tooltip-id strong {
    font-size: 18px;
    color: #FF6600;
    display: block;
    margin-bottom: 4px;
}

.copy-hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    opacity: 0.7;
}

.tooltip-id:hover .copy-hint {
    opacity: 1;
    color: #FF6600;
}

.inpost-btn-select {
    background: #FF6600;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    text-transform: uppercase;
}

.inpost-btn-select:hover {
    background: #FF8800;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}

.inpost-btn-select:active {
    transform: scale(0.98);
}

/* ===============================================
   TOAST NOTIFICATIONS
   =============================================== */

.inpost-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.inpost-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===============================================
   SUCCESS OVERLAY - KOMUNIKAT SUKCESU
   =============================================== */

.inpost-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.success-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes successBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00C853, #00E676);
    color: white;
    font-size: 60px;
    line-height: 100px;
    border-radius: 50%;
    margin: 0 auto 30px;
    box-shadow: 0 8px 24px rgba(0,200,83,0.3);
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0,200,83,0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0,200,83,0.5);
    }
}

.success-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #00C853;
    margin: 0 0 30px 0;
}

.success-point-info {
    background: #F5F5F5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #00E676;
}

.success-point-id {
    font-size: 24px;
    font-weight: 700;
    color: #FF6600;
    margin-bottom: 10px;
}

.success-point-id strong {
    color: #FF6600;
}

.success-point-address {
    font-size: 16px;
    color: #666;
}

.success-countdown {
    font-size: 18px;
    color: #999;
    font-weight: 600;
}

#successCountdown {
    color: #FF6600;
    font-size: 28px;
    font-weight: 700;
    display: inline-block;
    min-width: 30px;
}

/* ===============================================
   SUCCESS PANEL - PO PRAWEJ STRONIE (v2.11.1)
   =============================================== */

/* Zmniejszona mapa - 70% szerokości */
.inpost-popup-map-container.map-shrunk {
    width: 70%;
    transition: width 0.5s ease;
}

/* Success panel - 30% szerokości po prawej */
.inpost-success-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-left: 4px solid #00C853;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.inpost-success-panel.show {
    transform: translateX(0);
}

/* Header panelu */
.success-panel-header {
    background: linear-gradient(135deg, #00C853, #00E676);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.success-icon-large {
    width: 80px;
    height: 80px;
    background: white;
    color: #00C853;
    font-size: 50px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: successIconPulse 2s infinite;
}

@keyframes successIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-panel-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* Body panelu */
.success-panel-body {
    padding: 30px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Karta punktu */
.success-point-card {
    background: #fff;
    border: 2px solid #00C853;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,200,83,0.1);
}

.success-point-icon {
    font-size: 40px;
}

.success-point-name {
    flex: 1;
}

.success-point-name strong {
    display: block;
    font-size: 20px;
    color: #FF6600;
    margin-bottom: 5px;
}

.success-point-type {
    color: #999;
    font-size: 14px;
}

/* Sekcja adresu */
.success-address-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.success-address-label {
    font-weight: 600;
    color: #00C853;
    margin-bottom: 8px;
    font-size: 14px;
}

.success-address-value {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

/* Akcje */
.success-actions {
    margin-top: auto;
}

.success-btn-change {
    width: 100%;
    background: linear-gradient(135deg, #FF6600, #FF8800);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}

.success-btn-change:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,102,0,0.4);
}

/* Countdown box */
.success-countdown-box {
    background: #fff3e0;
    border: 2px dashed #FF6600;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.countdown-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.countdown-timer {
    font-size: 32px;
    font-weight: 700;
    color: #FF6600;
}

/* ===============================================
   DOLNY PASEK - WYBRANY PACZKOMAT (STARY)
   =============================================== */

.inpost-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* ===== v2.11.0: PRZEZROCZYSTOŚĆ - widoczność paczkomatu ===== */
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.85), rgba(0, 230, 118, 0.85));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 -4px 20px rgba(0,200,83,0.3);
}

.inpost-bottom-bar.show {
    transform: translateY(0);
}

.bottom-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.bottom-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-check {
    width: 50px;
    height: 50px;
    background: white;
    color: #00C853;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: checkPulse 2s infinite;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bottom-bar-info {
    color: white;
}

.bottom-bar-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.bottom-bar-point-id {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 3px;
}

.bottom-bar-point-id strong {
    font-size: 24px;
}

.bottom-bar-address {
    font-size: 14px;
    opacity: 0.85;
}

.bottom-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.inpost-btn-change {
    background: white;
    color: #00C853;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.inpost-btn-change:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bottom-bar-countdown {
    color: white;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

#bottomCountdown {
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    min-width: 30px;
}

/* ===============================================
   HOVER TOOLTIP - WIĘKSZY + ANIMOWANY
   =============================================== */

.inpost-hover-tooltip {
    background: rgba(76, 175, 80, 0.98) !important;
    border: 3px solid white !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    min-width: 200px !important;
    font-size: 14px !important;
}

.inpost-hover-tooltip-animated {
    animation: tooltipBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes tooltipBounceIn {
    0% {
        transform: scale(0.3) translateY(20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.inpost-hover-tooltip::before {
    border-top-color: rgba(76, 175, 80, 0.98) !important;
    border-width: 12px !important;
}

.hover-tooltip {
    text-align: center;
    color: white;
}

.hover-tooltip-id {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hover-tooltip-city {
    font-size: 13px;
    opacity: 0.95;
    margin-bottom: 8px;
}

.hover-tooltip-hint {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,0.3);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 6px;
    animation: hintPulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@keyframes hintPulse {
    0%, 100% { 
        transform: scale(1);
        background: rgba(255,255,255,0.3);
    }
    50% { 
        transform: scale(1.05);
        background: rgba(255,255,255,0.5);
    }
}

/* ===============================================
   PULSUJĄCA PINEZKA + HOVER EFFECTS
   =============================================== */

/* Subtle hover - przed timerem */
.leaflet-marker-icon:hover {
    filter: brightness(1.15) drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transform: scale(1.05);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    cursor: pointer;
    z-index: 10000 !important;
}

/* Pulsowanie po 1s hover */
/* ===== v2.10.1: MARKER ANIMATIONS - IKONKA ZAWSZE WIDOCZNA ===== */
/* ===== v2.10.2: GLOBAL RULE - ALL MARKERS ALWAYS VISIBLE ===== */
.leaflet-marker-icon {
    visibility: visible !important;
    opacity: 1 !important;
}

.marker-pulse-bounce {
    animation: markerPulseBounce 2s ease-in-out;
    transform-origin: center bottom;
    filter: drop-shadow(0 0 20px rgba(76, 175, 80, 0.9)) brightness(1.2);
    z-index: 10001 !important;
    visibility: visible !important; /* ZAWSZE WIDOCZNA */
    opacity: 1 !important; /* ZAWSZE WIDOCZNA */
}

@keyframes markerPulseBounce {
    0% {
        transform: scale(1) translateY(0);
        visibility: visible;
        opacity: 1;
    }
    10% {
        transform: scale(1.4) translateY(-15px);
        visibility: visible;
        opacity: 1;
    }
    15% {
        transform: scale(1.2) translateY(-8px);
        visibility: visible;
        opacity: 1;
    }
    20% {
        transform: scale(1.35) translateY(-12px);
        visibility: visible;
        opacity: 1;
    }
    25% {
        transform: scale(1.15) translateY(-6px);
        visibility: visible;
        opacity: 1;
    }
    30% {
        transform: scale(1.3) translateY(-10px);
        visibility: visible;
        opacity: 1;
    }
    35% {
        transform: scale(1.1) translateY(-5px);
        visibility: visible;
        opacity: 1;
    }
    40% {
        transform: scale(1.25) translateY(-9px);
        visibility: visible;
        opacity: 1;
    }
    45% {
        transform: scale(1.1) translateY(-4px);
        visibility: visible;
        opacity: 1;
    }
    50% {
        transform: scale(1.2) translateY(-7px);
        visibility: visible;
        opacity: 1;
    }
    55% {
        transform: scale(1.08) translateY(-3px);
        visibility: visible;
        opacity: 1;
    }
    60% {
        transform: scale(1.15) translateY(-5px);
        visibility: visible;
        opacity: 1;
    }
    65% {
        transform: scale(1.05) translateY(-2px);
        visibility: visible;
        opacity: 1;
    }
    70% {
        transform: scale(1.12) translateY(-4px);
        visibility: visible;
        opacity: 1;
    }
    75% {
        transform: scale(1.04) translateY(-1px);
        visibility: visible;
        opacity: 1;
    }
    80% {
        transform: scale(1.08) translateY(-2px);
        visibility: visible;
        opacity: 1;
    }
    85% {
        transform: scale(1.02) translateY(-1px);
        visibility: visible;
        opacity: 1;
    }
    90% {
        transform: scale(1.05) translateY(-1px);
        visibility: visible;
        opacity: 1;
    }
    95% {
        transform: scale(1.01) translateY(0);
        visibility: visible;
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        visibility: visible;
        opacity: 1;
    }
}

/* Progress indicator - wizualizacja timera */
.marker-hover-progress {
    position: relative;
}

.marker-hover-progress::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, #4CAF50 50%, transparent 50%);
    background-size: 200% 100%;
    animation: progressFill 2s linear;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes progressFill {
    from {
        background-position: 100% 0;
    }
    to {
        background-position: 0 0;
    }
}

/* RESPONSYWNOSC DOLNEGO PASKA */
@media (max-width: 768px) {
    .bottom-bar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .bottom-bar-right {
        width: 100%;
        justify-content: center;
    }
}

/* ===============================================
   MALY SPINNER - NIE BLOKUJE MAPY
   =============================================== */

.inpost-map-spinner {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.spinner-icon {
    font-size: 18px;
    animation: spinnerRotate 1s linear infinite;
}

@keyframes spinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Zaktualizowany hover tooltip */
.hover-tooltip-hint {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,0.3);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: hintPulse 2s infinite;
    text-align: center;
    line-height: 1.3;
}

@keyframes hintPulse {
    0%, 100% { 
        transform: scale(1);
        background: rgba(255,255,255,0.3);
    }
    50% { 
        transform: scale(1.05);
        background: rgba(255,255,255,0.5);
    }
}

.hint-icon {
    font-size: 20px;
}

.hint-text {
    font-size: 11px;
    line-height: 1.2;
}

/* ===============================================
   FORMULARZ Z DANYMI KLIENTA - OVERLAY NA MAPIE!
   =============================================== */

.inpost-customer-form-modal {
    position: absolute !important; /* NA MAPIE, nie body */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: 420px;
    max-height: 90%;
    z-index: 10002 !important; /* Ponad markerami */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
}

.inpost-customer-form-modal.show {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
    pointer-events: auto;
}

.inpost-customer-form-overlay {
    display: none; /* BEZ CIEMNEGO TŁA! */
}

.inpost-customer-form-container {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: 100%;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #4CAF50;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-header {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 25px 20px;
    text-align: left;
}

.form-success-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-header h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.form-selected-point {
    background: rgba(255, 255, 255, 0.25);
    padding: 12px;
    border-radius: 10px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.form-point-map-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.form-point-details {
    font-size: 13px;
    line-height: 1.5;
}

.form-point-details strong {
    font-size: 15px;
    display: block;
    margin-bottom: 3px;
}

.form-subtitle {
    margin: 15px 0 0 0;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.95;
}

.inpost-customer-form {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 11px;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-field input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-field input:valid {
    border-color: #4CAF50;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #F5F5F5;
    color: #666;
    order: 3; /* Ostatni */
}

.btn-cancel:hover {
    background: #E0E0E0;
}

.btn-secondary {
    background: #FFF3E0;
    color: #FF6600;
    border: 2px solid #FF6600;
    order: 2; /* Środek */
}

.btn-secondary:hover {
    background: #FF6600;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    order: 1; /* Pierwszy (najważniejszy) */
}

.btn-submit:hover {
    background: linear-gradient(135deg, #388E3C, #4CAF50);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsywność - na mobile pełny ekran */
@media (max-width: 768px) {
    .inpost-customer-form-modal {
        width: 100%;
    }
    
    .form-header h2 {
        font-size: 18px;
    }
}

/* ===============================================
   v2.10.0: DODATKOWE STYLE ANIMACJI MARKERA
   v2.10.1: WSZYSTKIE Z visibility:visible opacity:1 (NIE ZNIKAJĄ!)
   =============================================== */

/* 1. BOUNCE - Odbijanie się */
.marker-bounce {
    animation: markerBounce 0.6s ease-in-out infinite;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes markerBounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
        visibility: visible;
        opacity: 1;
    }
    25% { 
        transform: translateY(-12px) scale(1.1);
        visibility: visible;
        opacity: 1; 
    }
    50% { 
        transform: translateY(0) scale(1.15); 
    }
    75% { 
        transform: translateY(-6px) scale(1.05); 
    }
}

/* 2. GLOW - Świecenie (pulsujący cień) */
.marker-glow {
    animation: markerGlow 1.5s ease-in-out infinite;
}

@keyframes markerGlow {
    0%, 100% {
        filter: drop-shadow(0 0 0px rgba(76, 175, 80, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(76, 175, 80, 0.9));
        transform: scale(1.15);
    }
}

/* 3. SHAKE - Trzęsienie */
.marker-shake {
    animation: markerShake 0.5s ease-in-out infinite;
}

@keyframes markerShake {
    0%, 100% { 
        transform: translateX(0) rotate(0deg); 
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-3px) rotate(-2deg); 
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(3px) rotate(2deg); 
    }
}

/* 4. ROTATE - Obracanie */
.marker-rotate {
    animation: markerRotate 2s linear infinite;
}

@keyframes markerRotate {
    from { 
        transform: rotate(0deg) scale(1); 
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    to { 
        transform: rotate(360deg) scale(1); 
    }
}

/* 5. WOBBLE - Kołysanie */
.marker-wobble {
    animation: markerWobble 1s ease-in-out infinite;
}

@keyframes markerWobble {
    0%, 100% { 
        transform: translateX(0) rotate(0deg); 
    }
    15% { 
        transform: translateX(-5px) rotate(-5deg); 
    }
    30% { 
        transform: translateX(4px) rotate(3deg); 
    }
    45% { 
        transform: translateX(-3px) rotate(-3deg); 
    }
    60% { 
        transform: translateX(2px) rotate(2deg); 
    }
    75% { 
        transform: translateX(-1px) rotate(-1deg); 
    }
}

/* 6. HEARTBEAT - Bicie serca (tylko scale, BEZ opacity) */
.marker-heartbeat {
    animation: markerHeartbeat 1.2s ease-in-out infinite;
}

@keyframes markerHeartbeat {
    0%, 100% { 
        transform: scale(1); 
    }
    10% { 
        transform: scale(1.2); 
    }
    20% { 
        transform: scale(1); 
    }
    30% { 
        transform: scale(1.3); 
    }
    40% { 
        transform: scale(1); 
    }
}

/* 7. SWING - Wahadło */
.marker-swing {
    transform-origin: top center;
    animation: markerSwing 1.5s ease-in-out infinite;
}

@keyframes markerSwing {
    0%, 100% { 
        transform: rotate(0deg); 
    }
    20% { 
        transform: rotate(15deg); 
    }
    40% { 
        transform: rotate(-10deg); 
    }
    60% { 
        transform: rotate(5deg); 
    }
    80% { 
        transform: rotate(-3deg); 
    }
}

/* 8. TADA - Efekt "ta-da!" (kombajn: scale + rotate) */
.marker-tada {
    animation: markerTada 1s ease-in-out;
}

@keyframes markerTada {
    0% { 
        transform: scale(1) rotate(0deg); 
    }
    10%, 20% { 
        transform: scale(0.9) rotate(-3deg); 
    }
    30%, 50%, 70%, 90% { 
        transform: scale(1.2) rotate(3deg); 
    }
    40%, 60%, 80% { 
        transform: scale(1.2) rotate(-3deg); 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
    }
}

/* ====================
   TOOLTIP NA MARKERZE (HOVER)
   ==================== */

.inpost-marker-tooltip {
    min-width: 250px;
    padding: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.inpost-marker-tooltip .tooltip-header {
    background: linear-gradient(135deg, #FF6600 0%, #FF8833 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inpost-marker-tooltip .tooltip-header strong {
    font-size: 14px;
    font-weight: 600;
}

.inpost-marker-tooltip .tooltip-type {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.inpost-marker-tooltip .tooltip-address {
    padding: 10px 15px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.inpost-marker-tooltip .tooltip-info {
    padding: 8px 15px;
    font-size: 12px;
    color: #666;
    background: #f9f9f9;
}

.leaflet-popup-content-wrapper.inpost-tooltip-popup {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content-wrapper.inpost-tooltip-popup .leaflet-popup-content {
    margin: 0;
}

/* ====================
   MARKER POPUP – usunięcie domyślnych marginesów Leaflet
   ==================== */
.inpost-marker-popup .leaflet-popup-content-wrapper {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.inpost-marker-popup .leaflet-popup-content {
    margin: 0 !important;
    line-height: 1 !important;
}

.inpost-marker-popup .leaflet-popup-tip-container {
    display: none !important;
}

/* ====================
   TOOLTIP "WYBIERZ - kliknij w PINEZKĘ"
   ==================== */

.inpost-marker-select-tooltip {
    background: white !important;
    border: 2px solid #FF6600 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 32px rgba(255,102,0,0.28) !important;
    padding: 0 !important;
    min-width: 220px !important;
    max-width: 270px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden !important;
}

.inpost-marker-select-tooltip::before {
    border-top-color: #FF6600 !important;
}

/* Główny wrapper */
.inpost-mtt {
    padding: 0;
}

/* Nazwa Paczkomatu — górna belka */
.inpost-mtt-name {
    background: linear-gradient(135deg, #FF6600 0%, #FF8800 100%);
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 8px 12px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Adres */
.inpost-mtt-address {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    padding: 9px 12px 6px;
    border-bottom: 1px solid #f0f0f0;
}

/* Hint "kliknij w pinezkę" pod adresem */
.inpost-mtt-hint {
    text-align: center;
    font-size: 10px;
    color: #FF6600;
    font-weight: 600;
    padding: 5px 12px 8px;
    letter-spacing: 0.2px;
}

/* ====================
   FORMULARZ DANYCH KLIENTA (PRAWY PANEL)
   ==================== */

.inpost-customer-form {
    position: absolute;
    right: 20px;
    top: 100px;
    width: 380px;
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 10000;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.inpost-customer-form .form-header {
    background: linear-gradient(135deg, #FF6600 0%, #FF8833 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
}

.inpost-customer-form .form-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.inpost-customer-form .selected-point-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.inpost-customer-form .selected-point-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.inpost-customer-form .point-address-small {
    opacity: 0.9;
    font-size: 12px;
}

.inpost-customer-form .form-body {
    padding: 20px;
}

.inpost-customer-form .form-body h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.inpost-customer-form .form-hint {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.inpost-customer-form .form-group {
    margin-bottom: 18px;
}

.inpost-customer-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.inpost-customer-form .form-group .required {
    color: #FF6600;
    font-weight: bold;
}

.inpost-customer-form .form-group input[type="text"],
.inpost-customer-form .form-group input[type="email"],
.inpost-customer-form .form-group input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.inpost-customer-form .form-group input:focus {
    outline: none;
    border-color: #FF6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.inpost-customer-form .form-group input.error {
    border-color: #ff4444;
}

.inpost-customer-form .form-group .error-msg {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #ff4444;
    font-weight: 500;
}

.inpost-customer-form .phone-input-group {
    display: flex;
    gap: 8px;
}

.inpost-customer-form .phone-prefix {
    flex-shrink: 0;
    width: 100px;
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.inpost-customer-form .phone-prefix:focus {
    outline: none;
    border-color: #FF6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.inpost-customer-form .form-footer {
    padding: 15px 20px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
}

.inpost-customer-form .inpost-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.inpost-customer-form .inpost-btn-change {
    background: #f5f5f5;
    color: #FF6600;
    border: 2px solid #FF6600;
}

.inpost-customer-form .inpost-btn-change:hover {
    background: #FF6600;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.inpost-customer-form .inpost-btn-confirm {
    background: #00C853;
    color: white;
    border: 2px solid #00C853;
}

.inpost-customer-form .inpost-btn-confirm:hover {
    background: #00A844;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.inpost-customer-form .inpost-btn:active {
    transform: translateY(0);
}

/* ====================
   KOMUNIKAT SUKCESU Z COUNTDOWN
   ==================== */

.inpost-success-message {
    position: absolute;
    right: 20px;
    top: 100px;
    width: 380px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    z-index: 10000;
    animation: slideInRight 0.4s ease;
}

.inpost-success-message .success-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: successPulse 1s ease infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.inpost-success-message h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #00C853;
}

.inpost-success-message p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.inpost-success-message .countdown-container {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.inpost-success-message .countdown-container p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.inpost-success-message .countdown-number {
    font-size: 48px;
    font-weight: 700;
    color: #FF6600;
    margin: 10px 0;
    animation: countdownPulse 1s ease infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.inpost-success-message .inpost-btn-small {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.inpost-success-message .inpost-btn-small:hover {
    background: #FF6600;
    color: white;
    border-color: #FF6600;
}

/* ====================
   RESPONSYWNOŚĆ FORMULARZA
   ==================== */

@media (max-width: 768px) {
    .inpost-customer-form,
    .inpost-success-message {
        position: fixed;
        right: 10px;
        left: 10px;
        top: auto;
        bottom: 10px;
        width: auto;
        max-height: 70vh;
    }
    
    .inpost-customer-form .form-footer {
        flex-direction: column;
    }
    
    .inpost-customer-form .phone-input-group {
        flex-direction: column;
    }
    
    .inpost-customer-form .phone-prefix {
        width: 100%;
    }
}

/* =============================================================================
   POPUP LABELS A–G  (subtle letter in bottom-right corner of each popup)
   Pozwalają szybko identyfikować pop-upy podczas developmentu / audytu.
   ============================================================================= */
.inpost-popup-label {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.12);
    font-family: 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 2;
    user-select: none;
    line-height: 1;
}

/* A — Main Map Popup (duży kontener) */
.inpost-popup-container {
    position: relative; /* anchor for label */
}
.inpost-popup-container > .inpost-popup-label {
    font-size: 14px;
    bottom: 4px;
    right: 10px;
    color: rgba(0, 0, 0, 0.08);
}

/* C — No Results (wewnątrz sidebar) */
.inpost-no-results {
    position: relative;
}

/* D — Marker Tooltip (bardzo mały) */
.inpost-marker-select-tooltip .inpost-popup-label {
    font-size: 9px;
    bottom: 2px;
    right: 4px;
    color: rgba(0, 0, 0, 0.18);
}

/* E — Detail Modal */
.inpost-detail-modal {
    position: relative;
}

/* F — Customer Form */
.inpost-customer-form {
    position: relative;
}

/* G — Success Panel */
.inpost-success-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    isolation: isolate;
}

/* Success panel zawsze na wierzchu – nadpisuje wszystkie elementy Leaflet */
.parcel-success-panel {
    z-index: 100000 !important;
    isolation: isolate;
}


