.cbew-widget,
.cbew-widget * {
    box-sizing: border-box;
}

.cbew-widget-card {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
}

.cbew-section-title {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 600;
    color: #151515;
}

.cbew-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.cbew-logo-card {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.cbew-logo-card:hover {
    border-color: #dcdcdc;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.055);
}

.cbew-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cbew-brand-logo-img {
    display: block;
    max-width: 100%;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cbew-logo-placeholder {
    display: block;
    color: #222222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.cbew-empty-message {
    padding: 16px 18px;
    border-radius: 10px;
    background: #fff8e5;
    color: #765900;
    font-size: 14px;
}

.cbew-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 0 0 26px;
}

.cbew-alpha-nav a {
    color: #9a9a9a;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.2;
    transition: color .2s ease;
}

.cbew-alpha-nav a:hover {
    color: #111111;
}

.cbew-alpha-groups {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cbew-letter-section {
    scroll-margin-top: 120px;
}

.cbew-letter-title {
    margin: 0 0 16px;
    color: #151515;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
}

.cbew-brand-name-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 12px;
}

.cbew-brand-name-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #8f8f8f;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.3;
    transition: color .2s ease, transform .2s ease;
}

.cbew-brand-name-link:hover {
    color: #111111;
    transform: translateX(2px);
}

@media (max-width: 1024px) {
    .cbew-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cbew-brand-name-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cbew-widget-card {
        padding: 18px;
    }

    .cbew-section-title {
        font-size: 22px;
    }

    .cbew-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cbew-logo-card {
        min-height: 72px;
        padding: 12px;
    }

    .cbew-brand-name-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
    }

    .cbew-alpha-nav {
        gap: 14px;
    }
}
