/* Etap 6/9 — tooltip „i" przy każdej opcji wysyłki w cart/checkout
 *
 * Konwencja: ikonka inline obok labela, popover inline-block pod labelem
 * (push-down — kolejne radio są zepchnięte). Brak overlay/modal — popover
 * mieści się w kontenerze listy radio.
 */

.stdv-shipping-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    background: #017F1A; /* $brand-primary */
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    transition: background 0.15s ease, transform 0.15s ease;
}
.stdv-shipping-info:hover,
.stdv-shipping-info:focus {
    background: #015d13; /* $brand-primary-dark */
    transform: scale(1.1);
    outline: none;
}
.stdv-shipping-info.is-active {
    background: #015d13;
    transform: scale(1.1);
}

/* Popover — schowany domyślnie; renderowany jako <span>, ale traktowany jako
 * block po otwarciu (HTML5 nie pozwala <div> wewnątrz <label>). */
.stdv-shipping-popover {
    display: none;
    position: relative;
    margin: 10px -2px 0;
    padding: 10px 32px 10px 12px;
    background: #fbfbfb;
    border: 1px solid #e8e8e8;
    border-left: 2px solid #017F1A;
    border-radius: 3px;
    color: #50575e;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
}
.stdv-shipping-popover.is-open {
    display: block;
    animation: stdv-popover-in 0.15s ease-out;
}

@keyframes stdv-popover-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stdv-shipping-popover__body {
    display: block;
}
.stdv-shipping-popover__body p {
    margin: 0 0 8px;
}
.stdv-shipping-popover__body p:last-child {
    margin-bottom: 0;
}
.stdv-shipping-popover__body strong {
    font-weight: 700;
    color: #d97706;
}

.stdv-shipping-popover__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    color: #707070;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}
.stdv-shipping-popover__close:hover,
.stdv-shipping-popover__close:focus {
    background: #f3f3f3;
    color: #1C202B;
    outline: none;
}
