/* Skeleton placeholder for the bs-list-widget.js hydrator. .bs-skeleton is
   otherwise only defined in the DataTable-gated critical CSS, but these widgets
   also render on non-DataTable pages (wallet/company singulars), so define it
   here — identical to the critical rule so there's no conflict where both load. */
.bs-skeleton {
    display: inline-block;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bs-shimmer 1.5s infinite;
    border-radius: 4px;
    height: 16px;
    vertical-align: middle;
}

@keyframes bs-shimmer {
    0% { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* List Widget Header */
.bs-lw-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.bs-lw-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #1DB0E1;
    flex-shrink: 0;
}

.bs-lw-header__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.bs-lw-header h2.bs-lw-header__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #1e293b;
}

.bs-lw-header__subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 1px;
}

.bs-lw-header__period {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}

/* List Widget View All Link */
.bs-lw-view-all {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.bs-lw-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.bs-lw-view-all a:hover {
    color: #1DB0E1;
}

.bs-lw-view-all__icon {
    display: flex;
    align-items: center;
    width: 14px;
    height: 14px;
}

.bs-lw-view-all__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* ── List ── */
.bs-lw-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bs-lw-list > li {
    padding: 3px 5px;
}

/* ── Item Row ── */
.bs-lw-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

a.bs-lw-item,
a.bs-lw-item:link,
a.bs-lw-item:visited {
    color: inherit;
    text-decoration: none;
    transition: background 0.15s;
}

a.bs-lw-item:hover {
    background: #f5f7fa;
}

/* ── Entity (left: logo + name + ticker) ── */
.bs-lw-entity {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bs-lw-entity__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
}

a.bs-lw-entity__name,
a.bs-lw-entity__name:link,
a.bs-lw-entity__name:visited {
    color: #1e293b;
    text-decoration: none;
}

a.bs-lw-entity__name:hover {
    color: #1DB0E1;
}

.bs-lw-entity__name {
    font-size: 13px;
}

.bs-lw-entity__text {
    min-width: 0;
}

.bs-lw-entity__suffix {
    white-space: nowrap;
}

.bs-lw-entity__ticker {
    color: #64748b;
    font-size: 11px;
}

/* ── Trailing Meta (right side) ── */
.bs-lw-meta {
    font-size: 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.bs-lw-meta--gain {
    color: #007a5a;
}

.bs-lw-meta--loss {
    color: #b33030;
}

.bs-lw-meta--neutral {
    color: #5c6b7e;
}

.bs-lw-meta--price {
    color: #1e293b;
}

.bs-lw-meta--votes {
    color: #007a5a;
}

.bs-lw-meta--bold {
    font-weight: 600;
}

/* ── Verified Badge (Featured Coins) ── */
.bs-lw-verified {
    display: inline;
    vertical-align: middle;
    margin-left: 2px;
}

.bs-lw-verified img {
    vertical-align: middle;
}

/* ── Sidebar Advertise Widget ──────────────────────────── */
.bs-sidebar-adv-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bs-sidebar-adv-block {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.bs-sidebar-adv-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #171717;
}
.bs-sidebar-adv-subtitle {
    margin: 4px 0 0 28px;
    font-size: 13px;
    color: #999;
}
.bs-sidebar-adv-body {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bs-sidebar-adv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bs-sidebar-adv-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    background: #f5f5f5;
    color: #666;
}
.bs-sidebar-adv-pill svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
a.bs-sidebar-adv-cta,
a.bs-sidebar-adv-cta:link,
a.bs-sidebar-adv-cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 10px 24px;
    background: #1DB0E1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}
a.bs-sidebar-adv-cta:hover {
    background: #206389;
    color: #fff;
}
