/* brand-pages.css
   Sidebar block with links to brand websites. */
/* sidebar brand block */

.wc-custom-filter-sidebar-item.wc-custom-brand-sidebar {
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 5px;
    background: #fff;
    padding: 0;
}

.wc-custom-brand-sidebar .wc-custom-filter-sidebar__item-header {
    padding: 14px 16px;
    border-bottom: 1px solid #dfe3e8;
}

.wc-custom-brand-sidebar .wc-custom-filter-sidebar__item-header h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.wc-custom-brand-sidebar .wc-custom-filter-sidebar__item-body {
    padding: 0;
}

.wc-custom-brand-pages__list {
    display: flex;
    flex-direction: column;
}

.wc-custom-brand-pages__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 57px;
    padding: 10px 16px;
    border-bottom: 1px solid #dfe3e8;
}

.wc-custom-brand-pages__item:last-child {
    border-bottom: none;
}

.wc-custom-brand-pages__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 96px;
    max-width: 160px;
    height: 34px;
    padding: 4px 6px;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
}

.wc-custom-brand-pages__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 25px;
    object-fit: contain;
}

.wc-custom-brand-pages__logo span {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.wc-custom-brand-pages__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wc-custom-brand-pages__button:hover {
    border-color: #c7cdd4;
    background: #f5f6f7;
    color: #222;
}

.wc-custom-brand-pages__button svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .wc-custom-brand-pages__item {
        gap: 8px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .wc-custom-brand-pages__logo {
        max-width: 140px;
    }
}