.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.gs-before-title .product-labels {
    position: relative !important;
    top: 0px !important;
    inset-inline-start: 0px;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0px;
    max-width: 100%;
    transition: all .3s ease;
    transform: translateZ(0);
}
.gs-before-title .product-label.attribute-label, .gs-before-title .product-label.attribute-label:not(.label-with-img) {
    background: #ECF1EA !important;
    color: #01311C !important;
    padding: 3px 6px !important;
    max-width: 100% !important;
    text-transform: capitalize;
    font-weight: 500;
}
.badge-title img {
    width: 9px !important;
}
.gs-before-title .badge-title, .gs-before-title .tooltip p{
    margin-bottom: 0 !important;
}
.attribute-label {
    cursor: pointer;
    position: relative;
}
/* Tooltip bubble */
.attribute-label .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 120%; /* appears below the label */
    left: 0;
    transform: translateX(0) translateY(3px);
    width: max-content;
    max-width: 240px;
    background-color: #01311C;
    color: #fff;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Tooltip arrow (points upward) */
.attribute-label .tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 20px;
    margin-left: -3px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

/* Show tooltip on hover */
.attribute-label:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(0) translateY(0);
}

@media (max-width: 768px){
    .flex{
        flex-direction: row;
    }
}