/* =============================================
   StonePro B2B — Currency Switcher
   ============================================= */

   .stpro-currency-switcher {
    position: relative;
    display: inline-block;
}

/* Przycisk aktualnej waluty */
.stpro-currency-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    white-space: nowrap;
}
.stpro-currency-current:hover { background: #eee; }

.stpro-currency-flag { font-size: 16px; line-height: 1; }
.stpro-currency-code { font-size: 13px; font-weight: 700; }

.stpro-currency-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}
.stpro-currency-switcher.open .stpro-currency-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.stpro-currency-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 180px;
    z-index: 10000;
    overflow: hidden;
}
.stpro-currency-switcher.open .stpro-currency-dropdown {
    display: block;
}

/* Opcje waluty */
.stpro-currency-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s;
}
.stpro-currency-option:hover { background: #f5f5f5; }
.stpro-currency-option.active {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}
.stpro-currency-name {
    color: #888;
    font-size: 12px;
    margin-left: auto;
}
.stpro-currency-option.active .stpro-currency-name { color: #2e7d32; }

/* W dolnym menu nawigacyjnym */
.stpro-nav .stpro-currency-switcher {
    margin: 0 4px;
}
.stpro-nav .stpro-currency-current {
    flex-direction: column;
    gap: 2px;
    padding: 4px 8px;
    background: none;
    border: none;
    font-size: 11px;
    border-radius: 0;
}
.stpro-nav .stpro-currency-current:hover { background: none; }
.stpro-nav .stpro-currency-arrow { display: none; }
.stpro-nav .stpro-currency-dropdown {
    bottom: calc(100% + 6px);
    top: auto;
    right: 0;
}

/* W menu górnym */
.stpro-menu-currency {
    display: flex;
    align-items: center;
}

/* Styl dla ciemnej górnej belki — transparentny z białym tekstem */
.wd-top-bar .stpro-currency-current,
.woodmart-top-bar .stpro-currency-current,
.wd-header-sticky .stpro-currency-current,
header .stpro-currency-current {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.wd-top-bar .stpro-currency-current:hover,
.woodmart-top-bar .stpro-currency-current:hover,
header .stpro-currency-current:hover {
    background: rgba(255,255,255,0.1);
}
.wd-top-bar .stpro-currency-code,
.woodmart-top-bar .stpro-currency-code,
header .stpro-currency-code {
    color: #fff;
}
.wd-top-bar .stpro-currency-arrow,
.woodmart-top-bar .stpro-currency-arrow,
header .stpro-currency-arrow {
    stroke: #fff;
}

/* Dropdown zawsze z ciemnym tekstem niezależnie od miejsca */
.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;
}