.brand-warranty-widget {
    margin: 20px 0;
}

.brand-warranty-grid {
    display: grid;
    grid-template-columns: repeat(var(--brand-warranty-columns, 3), minmax(0, 1fr));
    gap: 25px;
}

.brand-warranty-item,
.brand-warranty-item:hover,
.brand-warranty-item:focus,
.brand-warranty-item:active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    background-color: transparent;
    color: inherit;
    cursor: pointer;
    box-shadow: none;
}

.brand-warranty-item:hover,
.brand-warranty-item:focus {
    outline: none;
}

.brand-warranty-item img {
    display: block;
    max-width: 100%;
    max-height: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-warranty-item:hover img,
.brand-warranty-item:focus img {
    transform: scale(1.1);
}

.brand-warranty-popup-content {
    padding: 10px 10px;
    background: #f0f0ae;
}

.brand-warranty-popup-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
}

.brand-warranty-popup-body {
    font-size: 14px;
    line-height: 1.6;
}

.brand-warranty-popup-body ul,
.brand-warranty-popup-body ol {
    padding-left: 20px;
}

/* Center only the brand warranty modal (theme pins all modals to the bottom). */
.modal-popup.brand-warranty-modal .modal-inner-wrap {
    bottom: auto;
    left: 0;
    right: 0;
    top: 20%;
    margin: 5rem auto;
    max-width: 750px;
    width: 90%;
    position: absolute;
    transform: translateY(-200%);
}

.modal-popup.brand-warranty-modal._show .modal-inner-wrap {
    transform: translateY(0);
}

@media only screen and (max-width: 767px) {
    .brand-warranty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-warranty-item img {
        max-height: 60px;
    }

    .modal-popup.brand-warranty-modal .modal-inner-wrap {
        margin: 2rem auto;
        width: 94%;
    }

    .modal-popup.brand-warranty-modal .modal-inner-wrap {
        top:0;
    }
}
