.ts-gift-table {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    margin: 1.5rem 0;
}

.ts-gift-table__header {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.ts-gift-table__row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    margin-bottom: 0.25rem;
    position: relative;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ts-gift-table__row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}

/* Stati */

.ts-gift-table__row--active {
    background: #ecfdf3;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.ts-gift-table__row--active::before {
    background: #16a34a;
}

.ts-gift-table__row--next {
    background: #eff6ff;
}

.ts-gift-table__row--next::before {
    background: #2563eb;
}

.ts-gift-table__row--unlocked {
    background: #f3f4f6;
}

.ts-gift-table__row--unlocked::before {
    background: #9ca3af;
}

.ts-gift-table__row--locked {
    opacity: 0.75;
}

.ts-gift-table__row--locked::before {
    background: #e5e7eb;
}

/* Colonne */

.ts-gift-table__col {
    display: flex;
    align-items: center;
}

.ts-gift-table__col--info {
    gap: 0.75rem;
}

.ts-gift-table__col--threshold,
.ts-gift-table__col--status {
    justify-content: flex-start;
}

/* Media + testo */

.ts-gift-table__media img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.ts-gift-table__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ts-gift-table__title {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    color: #111827;
}

.ts-gift-table__title a {
    text-decoration: none;
    color: inherit;
}

.ts-gift-table__title a:hover {
    text-decoration: underline;
}

.ts-gift-table__excerpt {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Threshold + stato */

.ts-gift-table__threshold-label {
    font-weight: 500;
    color: #111827;
}

.ts-gift-table__status-text {
    font-weight: 500;
    color: #374151;
}

/* Responsive */

@media (max-width: 768px) {
    .ts-gift-table__header {
        display: none;
    }

    .ts-gift-table__row {
        grid-template-columns: minmax(0, 1fr);
        padding: 0.75rem 0.75rem 0.75rem 0.9rem;
    }

    .ts-gift-table__col {
        justify-content: flex-start;
    }

    .ts-gift-table__col--threshold,
    .ts-gift-table__col--status {
        margin-top: 0.35rem;
    }

    .ts-gift-table__status-text {
        font-size: 0.8rem;
    }
}