/* =============================================
   StonePro B2B — Bottom Navigation
   ============================================= */

/* ── MOBILE: pełne dolne menu ── */
.stpro-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

/* Elementy menu */
.stpro-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #888;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s;
    min-width: 56px;
}
.stpro-nav-item:hover { color: #1a1a1a; }
.stpro-nav-item.current { color: #1a1a1a; }

/* Ikony */
.stpro-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}
.stpro-nav-icon svg {
    width: 24px;
    height: 24px;
}

/* B2B dla gości */
.stpro-nav-b2b .stpro-nav-icon svg { stroke: #2c6fad; }
.stpro-nav-b2b .stpro-nav-label { color: #2c6fad; font-weight: 600; }

/* Ceny B2B dla aktywnych */
.stpro-nav-b2b-active .stpro-nav-icon svg { stroke: #2e7d32; }
.stpro-nav-b2b-active .stpro-nav-label { color: #2e7d32; font-weight: 600; }

/* Pending */
.stpro-nav-pending-badge { cursor: default; }
.stpro-nav-pending-badge .stpro-nav-label { color: #f57f17; }
.stpro-nav-pending-badge .stpro-nav-icon svg { stroke: #f57f17; }
.stpro-pending-pulse svg {
    animation: stpro-pulse 2s ease-in-out infinite;
}
@keyframes stpro-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* WhatsApp */
.stpro-nav-whatsapp .stpro-nav-icon svg { fill: #25d366; stroke: none; }
.stpro-nav-whatsapp .stpro-nav-label { color: #25d366; font-weight: 600; }

/* Wyloguj mobile */
.stpro-nav-logout .stpro-nav-icon svg { stroke: #c62828; }
.stpro-nav-logout:hover .stpro-nav-label { color: #c62828; }

/* Odstęp na dole */
body { padding-bottom: 80px !important; }

/* ── DESKTOP: widget w prawym dolnym rogu ── */
@media (min-width: 768px) {

    .stpro-nav { display: none !important; }
    body { padding-bottom: 0 !important; }

    .stpro-nav-desktop {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 9999;
        background: #1a6b5a;
        border-radius: 50px;
        padding: 6px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    }

    .wp-whatsapp-button,
    .whatsapp-chat-button,
    [class*="whatsapp"]:not(.stpro-nav-whatsapp-btn) {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .stpro-nav-desktop { display: none !important; }

    .wp-whatsapp-button,
    .whatsapp-chat-button,
    [class*="whatsapp"]:not(.stpro-nav-whatsapp) {
        display: none !important;
    }
}

/* Przyciski desktop — wewnątrz kapsułki */
.stpro-nav-desktop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    transition: transform 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: none;
    padding: 0 !important;
}
.stpro-nav-desktop-btn:hover {
    transform: scale(1.08);
    background: rgba(255,255,255,0.25);
    box-shadow: none;
}
.stpro-nav-desktop-btn svg {
    width: 28px;
    height: 28px;
}

/* WhatsApp */
.stpro-nav-desktop-wa svg { fill: #fff; stroke: none; }

/* B2B dla niezalogowanych */
.stpro-nav-desktop-b2b svg { stroke: #fff; fill: none; }

/* Wyloguj desktop */
.stpro-nav-desktop-logout {
    background: rgba(255,255,255,0.15) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.2s, background 0.2s !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}
.stpro-nav-desktop-logout svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2.0 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
}
.stpro-nav-desktop-logout:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: scale(1.08) !important;
}

/* Ukryj sufiks "— z VAT" dla walut obcych */
body.stpro-currency-eur .woocommerce-Price-currencySymbol ~ *,
body.stpro-currency-eur .price .woocommerce-price-suffix,
body.stpro-currency-gbp .price .woocommerce-price-suffix,
body.stpro-currency-czk .price .woocommerce-price-suffix {
    display: none !important;
}

body.stpro-currency-eur .price .woocommerce-price-suffix,
body.stpro-currency-gbp .price .woocommerce-price-suffix,
body.stpro-currency-czk .price .woocommerce-price-suffix,
body.stpro-currency-eur .woodmart-product-price .woocommerce-price-suffix,
body.stpro-currency-gbp .woodmart-product-price .woocommerce-price-suffix,
body.stpro-currency-czk .woodmart-product-price .woocommerce-price-suffix,
body.stpro-currency-eur span.price > .woocommerce-price-suffix,
body.stpro-currency-gbp span.price > .woocommerce-price-suffix,
body.stpro-currency-czk span.price > .woocommerce-price-suffix {
    display: none !important;
}

/* Desktop widget dla aktywnych partnerów B2B */
.stpro-nav-desktop-currency {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 4px;
}

/* Dropdown zawsze z ciemnym tekstem */
.stpro-currency-dropdown,
.stpro-currency-dropdown .stpro-currency-option,
.stpro-currency-dropdown .stpro-currency-code,
.stpro-currency-dropdown .stpro-currency-name {
    color: #333 !important;
}
.stpro-currency-dropdown .stpro-currency-option.active {
    color: #2e7d32 !important;
}
.stpro-currency-dropdown .stpro-currency-option.active .stpro-currency-name {
    color: #2e7d32 !important;
}