/* Tings Market Platform v7.8.7 — native size tables and uniform search cards. */

/* Search results use one card geometry for every sellable product. Gift-card
 * artwork stays uncropped inside the same 4:5 media stage as merchandise. */
.tmds-product-search .tm-platform-product-grid > ul.products > li.tm-product-card--search-result {
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    align-self: stretch !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--search-result .tm-product-card__inner,
.tmds-product-search .tm-platform-product-grid .tm-product-card--search-result .tm-product-card__inner:hover {
    height: 100% !important;
    min-height: 0 !important;
    transform: none !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__media {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    display: grid !important;
    place-items: center !important;
    padding: 14px !important;
    overflow: hidden !important;
    border-bottom: 0 !important;
    background: #f8fafb !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__image {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__image img,
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result img.tmds-giftcard-product-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 8px !important;
    object-fit: contain !important;
    object-position: center !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__body {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    padding: 11px 11px 12px !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__category {
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #0797ac !important;
    background: transparent !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    letter-spacing: .045em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__title {
    min-height: 35px !important;
    margin: 5px 0 0 !important;
    font-size: 13.5px !important;
    line-height: 1.28 !important;
    -webkit-line-clamp: 2 !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__price {
    min-height: 22px !important;
    margin-top: 7px !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__footer {
    margin-top: auto !important;
    gap: 6px !important;
    padding-top: 8px !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__express--digital {
    width: auto !important;
    min-height: 0 !important;
    align-self: flex-start !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #087f91 !important;
    background: transparent !important;
    font-size: 9.5px !important;
    line-height: 1.25 !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result a.tm-product-card__button {
    min-height: 36px !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    gap: 5px !important;
    font-size: 10.5px !important;
    box-shadow: none !important;
}
.tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__button-icon {
    width: 14px !important;
    height: 14px !important;
}

@media (max-width: 600px) {
    .tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__media {
        aspect-ratio: 4 / 5 !important;
        padding: 13px !important;
    }
    .tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__title {
        font-size: 13.5px !important;
    }
    .tmds-product-search .tm-platform-product-grid .tm-product-card--gift-card.tm-product-card--search-result .tm-product-card__price {
        font-size: 20px !important;
    }
}

/* Detailed policy pages: readable evidence/retention tables without widening
 * the page on phones. */
.tm-policy-effective {
    margin: -7px 0 23px !important;
    color: #627187;
    font-size: 12px;
}
.tm-policy-effective strong { color: #25364b; }
.tm-policy-table-wrap {
    width: 100%;
    margin: 15px 0 20px;
    overflow-x: auto;
    border: 1px solid #d7e5e9;
    border-radius: 13px;
    background: #fff;
    scrollbar-width: thin;
}
.tm-policy-table {
    width: 100%;
    min-width: 720px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    color: #2c3c51;
    font-size: 12px;
    line-height: 1.5;
}
.tm-policy-table th,
.tm-policy-table td {
    padding: 12px 14px !important;
    border: 0 !important;
    border-right: 1px solid #dfebee !important;
    border-bottom: 1px solid #dfebee !important;
    text-align: left !important;
    vertical-align: top !important;
}
.tm-policy-table th:last-child,
.tm-policy-table td:last-child { border-right: 0 !important; }
.tm-policy-table tbody tr:last-child td { border-bottom: 0 !important; }
.tm-policy-table thead th {
    background: #073449 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tm-policy-table tbody tr:nth-child(even) td { background: #f6fafb !important; }

@media (max-width: 700px) {
    .tm-policy-table { min-width: 640px; font-size: 11px; }
    .tm-policy-table th,
    .tm-policy-table td { padding: 10px 11px !important; }
}
