.fsb-wrap {
    margin: 10px 0;
    color: var(--fsb-text, #333);
    font-size: 0.95em;
    line-height: 1.4;
}

.cartpage_buttons .fsb-wrap {
    width: 400px;
    max-width: 100%;
    margin-left: auto;
    float: none;
    clear: both;
    padding-bottom: 10px;
}

@media (max-width: 769px) {
    .cartpage_buttons .fsb-wrap {
        width: 100%;
        margin: 4px 0 6px;
    }
}

.fsb-message {
    margin-bottom: 6px;
    text-align: center;
}

.fsb-info {
    position: relative;
    display: inline-flex;
    vertical-align: -2px;
    margin-left: 5px;
    cursor: help;
    opacity: 0.55;
    outline: none;
}

.fsb-info:hover,
.fsb-info:focus {
    opacity: 1;
}

.fsb-info svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}

.fsb-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    /* --fsb-shift koryguje pozycję, gdy dymek wystawałby poza ekran (ustawia JS) */
    transform: translateX(calc(-50% + var(--fsb-shift, 0px)));
    padding: 6px 10px;
    background: #232323;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 1001; /* nad przyklejonym panelem koszyka (z-index 999) */
    pointer-events: none;
}

/* Strzałka hintu — cofa przesunięcie dymka, żeby zawsze celować w ikonę */
.fsb-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: calc(50% - var(--fsb-shift, 0px));
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #232323;
}

.fsb-info:hover .fsb-tooltip,
.fsb-info:focus .fsb-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Długa nazwa przewoźnika na wąskim ekranie: pozwól zawijać */
@media (max-width: 480px) {
    .fsb-tooltip {
        white-space: normal;
        width: max-content;
        max-width: 220px;
    }
}

.fsb-track {
    background: var(--fsb-bg, #e9ecef);
    height: var(--fsb-height, 12px);
    border-radius: var(--fsb-radius, 8px);
    overflow: hidden;
}

.fsb-fill {
    background: var(--fsb-fill, #2fb380);
    height: 100%;
    border-radius: var(--fsb-radius, 8px);
    transition: width 0.6s ease, background-color 0.3s ease;
}

.fsb-reached .fsb-fill {
    background: var(--fsb-success, #2fb380);
}
