.product-item:has(> .tfbfs-badge--card) {
    position: relative;
}

.tfbfs-badge {
    box-sizing: border-box;
    color: #24713f;
    background: #fff;
    font-family: inherit;
}

.tfbfs-badge .tfbfs-badge__icon {
    display: block;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
}

.tfbfs-badge--card {
    padding: 0;
    appearance: none;
    cursor: pointer;
    touch-action: manipulation;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d5e8da;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgb(0 0 0 / 8%);
}

.tfbfs-badge--card:focus-visible {
    outline: 2px solid #24713f;
    outline-offset: 3px;
}

.tfbfs-tooltip {
    position: fixed;
    z-index: 100000;
    box-sizing: border-box;
    width: 258px;
    max-width: calc(100vw - 24px);
    padding: 15px 16px;
    border: 1px solid #cee3d4;
    border-radius: 12px;
    background: #f8fcf9;
    color: #245b35;
    box-shadow: 0 8px 28px rgb(20 55 32 / 14%), 0 2px 6px rgb(20 55 32 / 5%);
    font: 14px/1.5 Arial, sans-serif;
    text-align: left;
    pointer-events: none;
}

.tfbfs-tooltip::after {
    content: '';
    position: absolute;
    left: var(--tfbfs-arrow-left, 50%);
    width: 10px;
    height: 10px;
    background: #f8fcf9;
    transform: translateX(-50%) rotate(45deg);
}

.tfbfs-tooltip[data-placement="above"]::after {
    bottom: -6px;
    border-right: 1px solid #cee3d4;
    border-bottom: 1px solid #cee3d4;
}

.tfbfs-tooltip[data-placement="below"]::after {
    top: -6px;
    border-left: 1px solid #cee3d4;
    border-top: 1px solid #cee3d4;
}

.tfbfs-tooltip__heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #24713f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.tfbfs-tooltip__heading svg {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
}

.tfbfs-tooltip__message {
    display: block;
    margin-top: 7px;
    color: #4d6254;
    font-size: 13px;
    line-height: 1.5;
}

.tfbfs-tooltip[hidden] {
    display: none;
}

.tfbfs-badge--single {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #d5e8da;
    border-radius: 6px;
    background: #f3faf5;
    text-align: left;
}

.product-item > .tfbfs-card-label {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 8px 6px;
    border-radius: 5px;
    background: #edf7ef;
    color: #1d6535;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.tfbfs-badge__copy strong {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.tfbfs-badge__copy small {
    display: block;
    margin-top: 3px;
    color: #4d6254;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 575px) {
    .tfbfs-badge--card {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
    }

    .tfbfs-badge--card .tfbfs-badge__icon {
        width: 22px;
        height: 22px;
    }
}
