.tr-wc-brand-grid {
    display: grid;
    grid-template-columns: repeat(var(--tr-brand-columns, 2), minmax(0, 1fr));
    gap: var(--tr-brand-gap, 12px);
    width: 100%;
}

.tr-wc-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: opacity .2s ease, transform .2s ease;
}

.tr-wc-brand-item:hover {
    opacity: .82;
    transform: translateY(-1px);
}

.tr-wc-brand-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tr-brand-image-width, 70px);
    height: var(--tr-brand-image-height, 70px);
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--tr-brand-radius, 4px);
}

.tr-wc-brand-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: var(--tr-brand-fit, contain);
}

.tr-wc-brand-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f3f3f3;
    color: #777;
    font-size: 22px;
    font-weight: 600;
}

.tr-wc-brand-text {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    line-height: 1.25;
}

.tr-wc-brand-name {
    overflow-wrap: anywhere;
}

.tr-wc-brand-count {
    opacity: .7;
    font-size: .9em;
}


.tr-wc-brand-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.tr-wc-brand-load-more {
    appearance: none;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 9px 16px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity .2s ease, background-color .2s ease;
}

.tr-wc-brand-load-more:hover { background: rgba(0, 0, 0, .05); }
.tr-wc-brand-load-more:disabled { cursor: wait; opacity: .6; }

.tr-wc-brand-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: tr-wc-brand-spin .7s linear infinite;
}

.tr-wc-brand-wrapper.is-loading .tr-wc-brand-loader { display: inline-block; }
.tr-wc-brand-ajax-message { margin-top: 8px; text-align: center; font-size: .9em; }

@keyframes tr-wc-brand-spin { to { transform: rotate(360deg); } }
