.badge-wrapper{
    display:grid;
    max-width:1170px;
    margin:auto;
    width:100%;
    border-top:1px solid #c9c9c9;
}
@media(max-width:1000px){
    .badge-wrapper{grid-template-columns:repeat(2,1fr) !important;}
}
.badge-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    padding:10px 0 20px;
}
.badge-item svg{height:80px}
.badge-text{
    font-size:15px;
    font-weight:700;
    max-width:130px;
    text-align:center;
}

/* ------------------------------------------------------------------
 * Info (i) marker + hover/tap tooltip
 * Styled to match the "How Price Match works" tooltip (.hdm-pm-tip).
 * ------------------------------------------------------------------ */
.badge-item--has-info{position:relative;}

.badge-icon-wrap{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

/* small "i" pinned to the top-right corner of the badge art */
.badge-info-btn{
    position:absolute;
    top:-3px;
    right:-9px;
    padding:0;
    margin:0;
    border:0;
    background:#fff;
    border-radius:50%;
    line-height:0;
    cursor:pointer;
    box-shadow:0 1px 3px rgba(0,0,0,.28);
    transition:transform .12s ease, box-shadow .12s ease;
}
/* size the "i" small — beats the .badge-item svg{height:80px} rule on specificity */
.badge-item .badge-info-icon{
    height:18px;
    width:18px;
    display:block;
    border-radius:50%;
}
.badge-info-btn:hover,
.badge-info-btn:focus-visible{
    transform:scale(1.12);
    box-shadow:0 2px 6px rgba(1,34,93,.35);
    outline:none;
}
.badge-info-btn:focus-visible{outline:2px solid #01225d;outline-offset:2px;}

/* the tooltip box */
.badge-tip{
    position:absolute;
    left:50%;
    bottom:calc(100% - 6px);
    transform:translate(-50%,4px);
    width:max-content;
    max-width:min(260px,80vw);
    padding:10px 12px;
    background:#0f1419;
    color:#fff;
    font-size:12.5px;
    font-weight:400;
    line-height:1.45;
    text-align:left;
    border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,.3);
    opacity:0;
    pointer-events:none;
    transition:opacity .14s ease, transform .14s ease;
    z-index:20;
}
/* little caret under the box */
.badge-tip::after{
    content:"";
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    border:6px solid transparent;
    border-top-color:#0f1419;
}
.badge-item--has-info:hover .badge-tip,
.badge-item--has-info:focus-within .badge-tip,
.badge-item--has-info.is-open .badge-tip{
    opacity:1;
    transform:translate(-50%,0);
    pointer-events:auto;
}

@media(prefers-reduced-motion:reduce){
    .badge-info-btn,
    .badge-tip{transition:none;}
}
