/**
 * WELCOME POPUP - Centered modal nakładka na mape
 * @version 5.0.0 - 2026-03-05
 */

/* ====================================================================================
   CIEMNY BACKDROP - zakrywa mape
   ==================================================================================== */
.wp-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 19999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wpBackdropIn 0.35s ease;
    transition: opacity 0.2s ease;
}

@keyframes wpBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Czas animacji +18% vs oryginalu */

/* ====================================================================================
   OKIENKO MODALU
   ==================================================================================== */
.wp-modal {
    width: 620px;
    max-width: 92vw;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: wpModalIn 0.41s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes wpModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Animacja zamkniecia - modal znika NA SRODKU (scale down w miejscu) */
@keyframes wpModalOut {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to   { opacity: 0; transform: scale(0.88) translateY(8px); }
}

@keyframes wpBackdropOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.wp-backdrop.wp-closing {
    animation: wpBackdropOut 0.33s ease forwards;
    pointer-events: none;
}

.wp-backdrop.wp-closing .wp-modal {
    animation: wpModalOut 0.30s cubic-bezier(0.55, 0, 1, 0.45) forwards;
    transform-origin: center center;
}

/* ====================================================================================
   BANNER (gorna belka pomaranczowa)
   ==================================================================================== */
.wp-banner {
    background: linear-gradient(135deg, #FF6600, #FF8C00);
    color: #fff;
    padding: 10px 50px 10px 16px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;
    position: relative;
    flex-shrink: 0;
}

.wp-close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    padding: 0;
    line-height: 1;
}

.wp-close-btn:hover { background: rgba(255, 255, 255, 0.42); }

/* ====================================================================================
   GORNY RZAD: LOGO (lewo) + TYTUL (prawo)
   ==================================================================================== */
.wp-top-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.wp-logo {
    width: 150px;
    height: auto;
    max-height: 105px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
    display: block;
}

.wp-top-text {
    flex: 1;
    min-width: 0;
}

.wp-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.wp-subtitle {
    font-size: 12px;
    color: #777;
    margin: 0 0 6px;
    line-height: 1.5;
}

.wp-tagline {
    font-size: 11.5px;
    color: #FF6600;
    margin: 0;
    line-height: 1.5;
}

/* ====================================================================================
   TRESC (bez suwaka)
   ==================================================================================== */
.wp-body {
    padding: 16px 20px 10px;
    overflow: hidden;
    flex: 1;
}

.wp-text {
    font-size: 13px;
    color: #444;
    line-height: 1.65;
    margin: 0 0 14px;
}

/* ====================================================================================
   INSTRUKCJA "Jak znalezc Paczkomat?"
   ==================================================================================== */
.wp-how {
    background: #f4f8ff;
    border: 1px solid #d0e4ff;
    border-radius: 10px;
    padding: 11px 16px;
}

.wp-how-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a4db3;
    margin: 0 0 7px;
}

.wp-steps {
    margin: 0;
    padding-left: 18px;
}

.wp-steps li {
    font-size: 12.5px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 3px;
}

.wp-steps li:last-child { margin-bottom: 0; }

/* ====================================================================================
   STOPKA: PRZYCISK OK
   ==================================================================================== */
.wp-footer {
    padding: 14px 20px 18px;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.wp-ok-btn {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, #FF6600, #FF8C00);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-ok-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.38);
}

.wp-ok-btn:active { transform: translateY(0); }

/* ====================================================================================
   RESPONSYWNOSC - mobile
   ==================================================================================== */
@media (max-width: 640px) {
    .wp-modal {
        max-width: 96vw;
        max-height: 92vh;
        border-radius: 12px;
    }

    .wp-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 14px 16px 12px;
    }

    .wp-logo { width: 120px; }

    .wp-body { padding: 12px 16px 8px; }

    .wp-footer { padding: 10px 16px 14px; }
}
