/* Tripp Lite predictive search dropdown (UPB Lane S pattern). */

.tl-drop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 120;
    background: #fff;
    border: 1px solid #d5dee8;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 34px rgba(0, 22, 48, 0.16);
    max-height: min(72vh, 560px);
    overflow-y: auto;
    font-size: 0.86rem;
    color: #1a2332;
}

.tl-drop--open {
    display: block;
}

.tl-drop__group {
    padding: 10px 14px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a6b80;
    background: #f4f7fa;
    position: sticky;
    top: 0;
}

.tl-drop__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px solid #eef2f6;
    text-decoration: none;
    color: inherit;
}

.tl-drop__row:hover,
.tl-drop__row:focus-visible {
    background: #eef5fc;
    outline: none;
}

.tl-drop__tile {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    background: #fff;
    border: 1px solid #e4eaf1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tl-drop__img {
    max-width: 62px;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tl-drop__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tl-drop__title {
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tl-drop__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tl-drop__sku {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    background: #eef2f6;
    border: 1px solid #dbe3ec;
    border-radius: 4px;
    padding: 1px 6px;
    color: #33465e;
}

.tl-drop__stock {
    font-size: 0.7rem;
    color: #2c6e49;
}

.tl-drop__stock--Out-of-stock {
    color: #a33a3a;
}

.tl-drop__stock--Available-on-order {
    color: #8a6d1a;
}

.tl-drop__side {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
    color: #0b3a66;
}

.tl-drop__price s {
    display: block;
    font-weight: 400;
    color: #8794a5;
    font-size: 0.72rem;
}

.tl-drop__seeall {
    display: block;
    padding: 10px 14px;
    font-weight: 700;
    color: #003c71;
    text-decoration: none;
    background: #f4f7fa;
}

.tl-drop__seeall:hover,
.tl-drop__seeall:focus-visible {
    text-decoration: underline;
}

.tl-drop__empty {
    padding: 14px;
    color: #5a6b80;
}

.tl-drop__row--quote {
    font-weight: 700;
    color: #003c71;
}

/* The header form is the positioning context. */
form.tripplite-header__search {
    position: relative;
}

/* Phone: the dropdown spans the header width below the form. */
@media (max-width: 720px) {
    .tl-drop {
        left: -8px;
        right: -8px;
        font-size: 0.84rem;
    }
    .tl-drop__tile {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }
    .tl-drop__img {
        max-width: 50px;
        max-height: 50px;
    }
}

/* Results page: left filter rail on desktop, stacked boxes on phone. */

.tl-results {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 18px;
}

.tl-results__rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 76px;
}

.tl-results__railbox {
    background: #f4f7fa;
    border: 1px solid #e4eaf1;
    border-radius: 10px;
    padding: 12px 14px;
}

.tl-results__railtitle {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a6b80;
    margin-bottom: 8px;
}

.tl-results__railitem {
    display: block;
    padding: 5px 8px;
    margin: 0 -8px;
    border-radius: 6px;
    color: #1a2332;
    text-decoration: none;
    font-size: 0.86rem;
}

.tl-results__railitem:hover,
.tl-results__railitem:focus-visible {
    background: #e7eef7;
}

.tl-results__railitem.is-on {
    background: #003c71;
    color: #fff;
    font-weight: 600;
}

.tl-results__note {
    color: #5a6b80;
    font-size: 0.9rem;
}

.tl-results__sub {
    font-size: 1.05rem;
    margin: 26px 0 10px;
    color: #0b3a66;
}

.tl-results__other {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 6px 20px;
}

.tl-results__other li a {
    color: #1a2332;
    text-decoration: underline;
    text-decoration-color: #b9c8d8;
}

.tl-results__quote {
    display: inline-block;
    background: #003c71;
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 700;
}

.tl-results__quote:hover,
.tl-results__quote:focus-visible {
    background: #002a52;
    color: #fff;
}

@media (max-width: 900px) {
    .tl-results {
        grid-template-columns: 1fr;
    }
    .tl-results__rail {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .tl-results__railbox {
        flex: 1 1 200px;
    }
}

/* Volume discount banner on UPS shop pages. */

.tl-vol-banner {
    background: #eef5fc;
    border: 1px solid #c9dcee;
    border-left: 4px solid #003c71;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 18px;
    font-size: 0.92rem;
    color: #1a2332;
}
