/**
 * SportDog Popular sidebar widget
 */

.jsesd-popular-widget {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
    overflow: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.jsesd-popular-widget *,
.jsesd-popular-widget *::before,
.jsesd-popular-widget *::after {
    box-sizing: border-box;
}

.jsesd-popular-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(118deg, rgb(0, 17, 65) 35%, rgb(17, 146, 232));
}

.jsesd-popular-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.jsesd-popular-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.jsesd-popular-logo img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.jsesd-popular-list {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.5rem 0.5rem;
}

.jsesd-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.45rem 0.25rem;
    border-radius: 0.35rem;
    position: relative;
}

.jsesd-popular-item + .jsesd-popular-item {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.jsesd-popular-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 0.35rem;
    overflow: hidden;
    background: #e9ecef;
    display: block;
}

.jsesd-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jsesd-popular-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.15rem;
}

.jsesd-popular-link {
    text-decoration: none;
    color: inherit;
}

.jsesd-popular-link:hover .jsesd-popular-item-title {
    color: #0d6efd;
}

.jsesd-popular-item-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .jsesd-popular-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .jsesd-popular-title,
    .jsesd-popular-item-title {
        font-size: 1.5rem;
    }

    .jsesd-popular-logo img {
        height: 24px;
    }
}
