/* One asset suggestion row (static/js/asset_suggestion.js), used inside every
   search dropdown. Name first, then symbol · type · price currency. The row
   inherits the hover/active background of the dropdown it sits in. */
.aiv-as {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
    line-height: 1.25;
}
.aiv-as-logo {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid #e5e9f0;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.aiv-as-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}
.aiv-as-logo--ticker {
    white-space: nowrap;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #2E86C1;
    background: #f4f8fb;
}
.aiv-as-logo--fx {
    position: relative;
    border: 0;
    background: transparent;
}
.aiv-as-logo--fx img {
    position: absolute;
    width: 22px;
    height: 16px;
    padding: 0;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1.5px #ffffff;
}
.aiv-as-logo--fx img:first-child { top: 3px; left: 1px; }
.aiv-as-logo--fx img:last-child { bottom: 3px; right: 1px; }
.aiv-as-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}
.aiv-as-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Text, pill and badge colours follow the dropdown's own text colour, so the
   row reads on every theme's dropdown (some themes keep a white dropdown in
   dark mode, others a dark one). */
.aiv-as-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
}
.aiv-as-meta > span:not(.aiv-as-symbol) {
    opacity: .78;
}
.aiv-as-symbol {
    font-weight: 700;
    color: #2E86C1;
}
.aiv-as-kind {
    font-size: 11.5px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 8%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.aiv-as-ccy::before {
    content: '\00b7';
    margin-right: 6px;
}
.aiv-as-logo {
    border-color: color-mix(in srgb, currentColor 16%, transparent);
}
.aiv-as-logo--ticker {
    background: color-mix(in srgb, currentColor 5%, transparent);
}
.aiv-as-logo--fx {
    border: 0;
}
body.premium-dark-theme .aiv-as-symbol,
body.premium-dark-theme .aiv-as-logo--ticker {
    color: #5dade2;
}
