/* Tings Market Platform v7.8.3 — final storefront repair layer. */

/* The slider timer is a visible interaction cue beneath the artwork. */
.tm-home-slider__progress {
    height: 5px !important;
    background: rgba(7,19,39,.12) !important;
}
.tm-home-slider__progress > span {
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg,#0db8c9,#0797ac,#ffd000) !important;
    box-shadow: 0 0 8px rgba(13,184,201,.35);
}

/* The gallery zoom control is intentionally hidden, so Share owns the corner. */
body.tings-market-single-product .tings-product-layout .tings-product-share {
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
}

/* Express timing belongs at checkout, not on physical merchandise cards. */
.tm-platform-product-grid .tm-product-card:not(.tm-product-card--gift-card) .tm-product-card__express { display: none !important; }

/* Never allow the retired FiboSearch overlay to compete with Tings Search. */
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-overlay-mobile,
.dgwt-wcas-search-wrapp,
.dgwt-wcas-search-form { display: none !important; }

/* Ranked first-party search suggestions. */
.tm-search-suggestions { padding: 10px !important; }
.tm-search-suggestions__label {
    display: block;
    padding: 5px 9px 6px;
    color: #66758a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tm-search-destinations { padding-bottom: 8px; border-bottom: 1px solid #e4ecef; }
.tm-search-destinations__links { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 7px 4px; }
.tm-search-destination {
    max-width: 100%;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid #cce2e7;
    border-radius: 999px;
    background: #f4fafb;
    color: #076f82;
    text-decoration: none;
}
.tm-search-destination:hover,
.tm-search-destination:focus-visible { border-color: #12b8ca; background: #e5f8fb; color: #056577; }
.tm-search-destination span { overflow: hidden; font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.tm-search-destination small { flex: 0 0 auto; color: #728095; font-size: 9px; }
.tm-search-suggestion__copy small { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tm-search-suggestion__copy small > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-search-suggestion__stock { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; background: #e8f7ef; color: #177245; font-size: 8px; font-weight: 850; }
.tm-search-suggestion__stock.is-low { background: #fff5d8; color: #936b00; }
.tm-search-suggestion__stock.is-out { background: #fff0f2; color: #a52948; }
.tm-search-suggestions__all { min-height: 40px; }

/* The connector is drawn only between circle centers, never through labels. */
.tm-digital-progress {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    min-height: 70px;
    padding: 12px 10px 9px !important;
    isolation: isolate;
}
.tm-digital-progress::before,
.tm-digital-progress::after {
    position: absolute;
    z-index: 0;
    top: 23px;
    left: 12.5%;
    height: 3px;
    border-radius: 999px;
    content: "";
}
.tm-digital-progress::before { width: 75%; background: #dce6e9; }
.tm-digital-progress::after { width: var(--tm-digital-progress-width,0%); background: #12b8ca; }
.tm-digital-progress > li {
    position: relative !important;
    z-index: 1;
    min-width: 0;
    display: grid !important;
    grid-template-rows: 26px auto !important;
    justify-items: center !important;
    align-items: start !important;
    gap: 7px !important;
    padding: 0 3px !important;
    text-align: center;
}
.tm-digital-progress > li::after { display: none !important; content: none !important; }
.tm-digital-progress > li > span {
    z-index: 2 !important;
    grid-row: 1 !important;
    width: 26px !important;
    height: 26px !important;
    background: #fff;
}
.tm-digital-progress > li > strong {
    position: static !important;
    z-index: 2;
    grid-row: 2 !important;
    max-width: 100%;
    padding: 0 3px !important;
    background: #fff !important;
    color: inherit;
    font-size: 9px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
}

/* Wishlist cards use the available row instead of becoming narrow fragments. */
.tm-wishlist-active .tm-wishlist-grid > ul.products {
    grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)) !important;
}
.tm-wishlist-active .tm-wishlist-grid .tm-product-card__inner { min-width: 0; }

@media (max-width: 900px) {
    /* The prior rule hid live results on mobile; the native panel now works at every size. */
    .tm-header-search--native .tm-search-suggestions {
        display: block !important;
        left: 0 !important;
        right: 0 !important;
        max-height: min(62vh,520px) !important;
    }
    .tm-header-search--native .tm-search-suggestions[hidden] { display: none !important; }
    body.tings-market-single-product .tings-product-layout .tings-product-share { top: 10px !important; right: 10px !important; }
}

@media (max-width: 480px) {
    .tm-search-suggestion { grid-template-columns: 44px minmax(0,1fr); gap: 9px; }
    .tm-search-suggestion img { width: 44px; height: 44px; }
    .tm-search-suggestion__copy strong { font-size: 12px; }
    .tm-search-destinations__links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .tm-search-destination { flex: 0 0 auto; }
    .tm-digital-progress > li > strong { font-size: 8px !important; }
}
